Skip to content

Conversation

@just-be-dev
Copy link
Owner

This is an experiment in using Claude Code to implement new clients. This isn't ready to land yet, it needs a thorough review, but it looks very compelling so far!

@@ -0,0 +1,3 @@
module github.com/justbe-engineering/webview-client-go
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This module path is a hallucination. Need to fix that.

Comment on lines +3 to +15
import (
"bufio"
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"os/exec"
"path/filepath"
"runtime"
"sync"
)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to review these dependencies

Comment on lines +17 to +18
// BinVersion should match the cargo package version
const BinVersion = "0.3.1"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should check to ensure the version updating script will also keep this version in sync

)

// Notification Messages that are sent unbidden from the webview to the client.
type Notification interface{}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to express this as a union type?

Comment on lines +152 to +156
wn("// ContentProvider interface that all content types must implement");
wn("type ContentProvider interface {");
wn("\tisContent() // marker method");
wn("}");
wn("");
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't actually like how mangled this is. Should just do a template string gen function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants