Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions pkgs/mcpx/cmd/mcpx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"strings"
"syscall"

"github.com/dezren39/mcpx/internal/cli"
"github.com/dezren39/mcpx/internal/config"
"github.com/dezren39/mcpx/internal/daemon"
"github.com/developing-today/code/pkgs/mcpx/internal/cli"
"github.com/developing-today/code/pkgs/mcpx/internal/config"
"github.com/developing-today/code/pkgs/mcpx/internal/daemon"
)

// version is overridden at build time with -ldflags "-X main.version=...".
Expand Down
27 changes: 15 additions & 12 deletions pkgs/mcpx/docs/decisions/0005-release-pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ code: 7d1b081c
`package.nix` (`-X main.version=0.1.0`), the fallback
`var version = "0.1.0"` in `cmd/mcpx/main.go`, and
`ARG VERSION=0.1.0` in `Containerfile`.
- `go.mod` declares `module github.com/dezren39/mcpx` and
`package.nix`'s `meta.homepage` points at the same repository, which
returns 404. mcpx actually lives at `pkgs/mcpx` in
developing-today/code. 328 Go files import by the current path.
- The module path was the last thing naming a repository that does not
exist: slice 3 below renamed it to
`github.com/developing-today/code/pkgs/mcpx`, where the code lives,
and pointed `meta.homepage` at the real tree. (Before the rename,
`go.mod` declared the legacy path and `meta.homepage` 404'd; the
328 Go files that imported by it moved with it in the same pass.)
- A static build works: the SQLite driver is pure Go, `CGO_ENABLED=0`
cross-compiles, and a fully static Linux binary was verified in #182's
container work. The shipped artifacts are not static by choice:
Expand Down Expand Up @@ -95,9 +97,9 @@ records #1881's recommendation against it as a decision.

## 4. The module path — options and recommendation

`github.com/dezren39/mcpx` names a repository that does not exist, so
`go install …@latest` cannot work and `meta.homepage` 404s. Three ways
out:
The module path used to name a repository that does not exist, so
`go install …@latest` could not work and `meta.homepage` 404'd. Three
ways out were recorded:

- **A — Create the repository the path names** (dezren39/mcpx or
developing-today/mcpx) and move mcpx into it. Cleanest end state:
Expand All @@ -120,9 +122,10 @@ out:
releases), the homepage stays a lie, and two repositories must be kept
in sync forever. Recorded for completeness; not recommended.

**Recommendation: B, now.** It makes every other part of this note true
with one mechanical change and no new repository. A remains available
whenever Drew wants mcpx to stand alone; nothing in B makes A harder.
**Decision: B, done in slice 3.** It made every other part of this note
true with one mechanical change and no new repository. A remains
available whenever Drew wants mcpx to stand alone; nothing in B makes A
harder.

## 5. Static-build policy for releases

Expand All @@ -139,8 +142,8 @@ where NSS is the point, and it already exists.
1. This design note.
2. Version single-sourcing (§3): VERSION file, package.nix, Containerfile
build-arg, the `0.0.0-dev` fallback sentinel.
3. Rename slice (§4-B), if Drew has not overruled it: module path,
imports, package.nix references, meta.homepage.
3. Rename slice (§4-B), done: module path, imports, package.nix
references, meta.homepage.
4. Release workflow: tag-triggered (`mcpx/v*`) plus `workflow_dispatch`
snapshot mode that builds the three artifacts and checksums without
publishing; the snapshot run is the slice's proof.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/examples/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"testing"
"time"

"github.com/dezren39/mcpx/internal/testsupport"
"github.com/developing-today/code/pkgs/mcpx/internal/testsupport"
)

// paramDecl is the head of a recipe declaration, the same shape
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/dezren39/mcpx
module github.com/developing-today/code/pkgs/mcpx

go 1.27.2

Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/adapter/adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/dezren39/mcpx/internal/adapter"
"github.com/developing-today/code/pkgs/mcpx/internal/adapter"
)

func echoSpec() adapter.Spec {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/adapter/bare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/dezren39/mcpx/internal/adapter"
"github.com/developing-today/code/pkgs/mcpx/internal/adapter"
)

func bareEchoSpec() adapter.Spec {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/adapter/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"

"github.com/dezren39/mcpx/internal/defaults"
"github.com/developing-today/code/pkgs/mcpx/internal/defaults"
)

// Runtime kinds a declaration may name. The set is the issue's: bash, js,
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/api/advisory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/dezren39/mcpx/internal/api"
"github.com/developing-today/code/pkgs/mcpx/internal/api"
)

// TestAPrivilegedOperationSaysItIsAdvisory holds the admin label to
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/api/authz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api_test
import (
"testing"

"github.com/dezren39/mcpx/internal/api"
"github.com/developing-today/code/pkgs/mcpx/internal/api"
)

// Every operation in the table declares a permission, and the declared
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/api/boundaries_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"testing"

"github.com/dezren39/mcpx/internal/api"
"github.com/developing-today/code/pkgs/mcpx/internal/api"
)

// testFuncs is every Test function in the module, found by parsing rather
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/api/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"strings"

"github.com/dezren39/mcpx/internal/settings"
"github.com/developing-today/code/pkgs/mcpx/internal/settings"
)

// OpenAPI describes the daemon's /v1 API.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/api/ops_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/dezren39/mcpx/internal/api"
"github.com/developing-today/code/pkgs/mcpx/internal/api"
)

func op(t *testing.T, name string) api.Op {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/mcpx/internal/api/parity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"testing"

"github.com/dezren39/mcpx/internal/api"
"github.com/dezren39/mcpx/internal/mcpserver"
"github.com/developing-today/code/pkgs/mcpx/internal/api"
"github.com/developing-today/code/pkgs/mcpx/internal/mcpserver"
)

// routePattern finds every route the daemon registers.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/api/plugin_ts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

"github.com/dezren39/mcpx/internal/api"
"github.com/developing-today/code/pkgs/mcpx/internal/api"
)

var update = flag.Bool("update", false, "rewrite generated files instead of comparing them")
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/artifacts/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
"strings"
"time"

"github.com/dezren39/mcpx/internal/defaults"
"github.com/developing-today/code/pkgs/mcpx/internal/defaults"
_ "modernc.org/sqlite" // the driver the log index already registers
)

Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/artifacts/artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/dezren39/mcpx/internal/artifacts"
"github.com/developing-today/code/pkgs/mcpx/internal/artifacts"
_ "modernc.org/sqlite"
)

Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/artifacts/name.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"

"github.com/dezren39/mcpx/internal/defaults"
"github.com/developing-today/code/pkgs/mcpx/internal/defaults"
)

// SanitizeName makes a script-supplied name safe to write to disk.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/artifacts/name_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

"github.com/dezren39/mcpx/internal/artifacts"
"github.com/developing-today/code/pkgs/mcpx/internal/artifacts"
)

func asErr(err error, target any) bool { return errors.As(err, target) }
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/dezren39/mcpx/internal/cache"
"github.com/developing-today/code/pkgs/mcpx/internal/cache"
)

func writeEntry(t *testing.T, c *cache.Cache, kind, key string, size int, age time.Duration) string {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/catalog/embeddings.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"sync"

"github.com/dezren39/mcpx/internal/defaults"
"github.com/developing-today/code/pkgs/mcpx/internal/defaults"
"github.com/tetratelabs/wazero"
"github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1"
)
Expand Down
6 changes: 3 additions & 3 deletions pkgs/mcpx/internal/cli/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"sort"
"strings"

"github.com/dezren39/mcpx/internal/adapter"
"github.com/dezren39/mcpx/internal/config"
"github.com/dezren39/mcpx/internal/mcpserver"
"github.com/developing-today/code/pkgs/mcpx/internal/adapter"
"github.com/developing-today/code/pkgs/mcpx/internal/config"
"github.com/developing-today/code/pkgs/mcpx/internal/mcpserver"
)

// AdapterFile is a document declaring command-line programs as servers.
Expand Down
6 changes: 3 additions & 3 deletions pkgs/mcpx/internal/cli/adapter_add_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"strings"
"testing"

"github.com/dezren39/mcpx/internal/config"
"github.com/dezren39/mcpx/internal/daemon"
"github.com/dezren39/mcpx/internal/testsupport"
"github.com/developing-today/code/pkgs/mcpx/internal/config"
"github.com/developing-today/code/pkgs/mcpx/internal/daemon"
"github.com/developing-today/code/pkgs/mcpx/internal/testsupport"
)

// The advertised form puts flags after the name: mcpx adapter add demo
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/cli/adapter_import_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

"github.com/dezren39/mcpx/internal/adapter"
"github.com/developing-today/code/pkgs/mcpx/internal/adapter"
)

func TestBuildBareImportEmitsLoadableDeclaration(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions pkgs/mcpx/internal/cli/adapter_runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"strings"
"testing"

"github.com/dezren39/mcpx/internal/adapter"
"github.com/dezren39/mcpx/internal/mcpserver"
"github.com/dezren39/mcpx/internal/recipes"
"github.com/developing-today/code/pkgs/mcpx/internal/adapter"
"github.com/developing-today/code/pkgs/mcpx/internal/mcpserver"
"github.com/developing-today/code/pkgs/mcpx/internal/recipes"
)

// These spawn for real: `mcpx adapter serve` mounts exactly these extras,
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/cli/agents_help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

mcpx "github.com/dezren39/mcpx"
mcpx "github.com/developing-today/code/pkgs/mcpx"
)

// firstDifference describes where two strings first disagree, for a test
Expand Down
4 changes: 2 additions & 2 deletions pkgs/mcpx/internal/cli/bearer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"testing"

"github.com/dezren39/mcpx/internal/daemon"
"github.com/dezren39/mcpx/internal/settings"
"github.com/developing-today/code/pkgs/mcpx/internal/daemon"
"github.com/developing-today/code/pkgs/mcpx/internal/settings"
)

// #1975: the CLI attaches the same transport.bearerToken the daemon
Expand Down
4 changes: 2 additions & 2 deletions pkgs/mcpx/internal/cli/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"sort"
"text/tabwriter"

"github.com/dezren39/mcpx/internal/cache"
"github.com/dezren39/mcpx/internal/defaults"
"github.com/developing-today/code/pkgs/mcpx/internal/cache"
"github.com/developing-today/code/pkgs/mcpx/internal/defaults"
)

// CmdCache is the listing and pruning surface for the one cache
Expand Down
12 changes: 6 additions & 6 deletions pkgs/mcpx/internal/cli/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/dezren39/mcpx/internal/defaults"
"github.com/dezren39/mcpx/internal/events"
"github.com/developing-today/code/pkgs/mcpx/internal/defaults"
"github.com/developing-today/code/pkgs/mcpx/internal/events"
"io"
"net"
"net/http"
Expand All @@ -23,10 +23,10 @@ import (
"syscall"
"time"

"github.com/dezren39/mcpx/internal/config"
"github.com/dezren39/mcpx/internal/daemon"
"github.com/dezren39/mcpx/internal/mcpclient"
"github.com/dezren39/mcpx/internal/settings"
"github.com/developing-today/code/pkgs/mcpx/internal/config"
"github.com/developing-today/code/pkgs/mcpx/internal/daemon"
"github.com/developing-today/code/pkgs/mcpx/internal/mcpclient"
"github.com/developing-today/code/pkgs/mcpx/internal/settings"
)

// Client talks to the daemon over its unix socket, starting one if needed.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/cli/client_socket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"

"github.com/dezren39/mcpx/internal/daemon"
"github.com/developing-today/code/pkgs/mcpx/internal/daemon"
)

// Codex round 2 on PR #2561: Socket() must follow the same re-resolution
Expand Down
26 changes: 13 additions & 13 deletions pkgs/mcpx/internal/cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/dezren39/mcpx/internal/defaults"
"github.com/dezren39/mcpx/internal/settings"
"github.com/dezren39/mcpx/plugin/opencode/skills"
"github.com/developing-today/code/pkgs/mcpx/internal/defaults"
"github.com/developing-today/code/pkgs/mcpx/internal/settings"
"github.com/developing-today/code/pkgs/mcpx/plugin/opencode/skills"
"io"
"io/fs"
"log/slog"
Expand All @@ -20,16 +20,16 @@ import (
"text/tabwriter"
"time"

"github.com/dezren39/mcpx/internal/artifacts"
"github.com/dezren39/mcpx/internal/config"
"github.com/dezren39/mcpx/internal/daemon"
"github.com/dezren39/mcpx/internal/diagnose"
"github.com/dezren39/mcpx/internal/execsvc"
"github.com/dezren39/mcpx/internal/logging"
"github.com/dezren39/mcpx/internal/preflight"
"github.com/dezren39/mcpx/internal/runner"
"github.com/dezren39/mcpx/internal/source"
"github.com/dezren39/mcpx/internal/tasks"
"github.com/developing-today/code/pkgs/mcpx/internal/artifacts"
"github.com/developing-today/code/pkgs/mcpx/internal/config"
"github.com/developing-today/code/pkgs/mcpx/internal/daemon"
"github.com/developing-today/code/pkgs/mcpx/internal/diagnose"
"github.com/developing-today/code/pkgs/mcpx/internal/execsvc"
"github.com/developing-today/code/pkgs/mcpx/internal/logging"
"github.com/developing-today/code/pkgs/mcpx/internal/preflight"
"github.com/developing-today/code/pkgs/mcpx/internal/runner"
"github.com/developing-today/code/pkgs/mcpx/internal/source"
"github.com/developing-today/code/pkgs/mcpx/internal/tasks"
)

// App carries state shared by every subcommand.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/cli/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sort"
"strings"

"github.com/dezren39/mcpx/internal/settings"
"github.com/developing-today/code/pkgs/mcpx/internal/settings"
)

// Completion renders a shell completion script.
Expand Down
Loading
Loading