@monster-orange/den 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +108 -0
- package/docs/distributions.md +115 -2
- package/package.json +1 -1
- package/src/shared/agent-actor.ts +38 -3
- package/src/shared/config-error.ts +33 -0
- package/src/shared/den-config.ts +46 -4
- package/src/shared/environment-manager/catalog.ts +52 -1
- package/src/shared/environment-manager/default-workspace.ts +10 -2
- package/src/shared/environment-manager/git-remote.ts +49 -0
- package/src/shared/environment-manager/workspace-manager.ts +67 -25
- package/src/shared/environment-manager/workspace-org.ts +26 -11
- package/src/shared/manifest/service-links.ts +20 -8
- package/src/shared/org-sources.ts +309 -0
- package/src/shared/types/index.ts +12 -2
- package/src/ui/cli/clone-plan.ts +154 -23
- package/src/ui/cli/flag-parser.ts +57 -3
- package/src/ui/cli/index.ts +106 -17
- package/src/ui/cli/org-command.ts +12 -2
- package/src/ui/cli/up-args.ts +15 -0
- package/src/ui/mcp/scope.ts +277 -0
- package/src/ui/mcp/server.ts +70 -8
- package/src/ui/mcp/tools.ts +101 -17
- package/src/ui/server/audit.ts +90 -3
- package/src/ui/server/github-service.ts +6 -1
- package/src/ui/server/index.ts +65 -1
- package/src/ui/server/public/panel.js +1 -1
- package/src/ui/server/readonly-routes.ts +12 -3
- package/src/ui/server/release-service.ts +25 -3
- package/src/ui/server/workspace-routes.ts +10 -6
|
@@ -86,10 +86,12 @@ import { depService } from "../../shared/manifest/deps.js";
|
|
|
86
86
|
import { waitForReady } from "../../shared/environment-manager/readiness.js";
|
|
87
87
|
import {
|
|
88
88
|
readCatalog,
|
|
89
|
-
|
|
89
|
+
needsGhRepair,
|
|
90
|
+
resolveRepoCloneSource,
|
|
90
91
|
upsertCatalogEntry,
|
|
91
92
|
} from "../../shared/environment-manager/catalog.js";
|
|
92
93
|
import { getReposRoot, readUserConfig } from "../../shared/den-config.js";
|
|
94
|
+
import { redactRemote } from "../../shared/environment-manager/git-remote.js";
|
|
93
95
|
import { getDistRoot } from "../../shared/paths.js";
|
|
94
96
|
import { recordRemovedFromWorkspace } from "../../shared/environment-manager/default-workspace.js";
|
|
95
97
|
import { getSudoEnv, prewarmSudo } from "./sudo-store.js";
|
|
@@ -320,7 +322,7 @@ async function buildAvailableRepos(wsOverride: string | null) {
|
|
|
320
322
|
hasManifest: false,
|
|
321
323
|
alreadyAdded,
|
|
322
324
|
source: "catalog",
|
|
323
|
-
gh: entry.gh,
|
|
325
|
+
gh: entry.gh ?? null,
|
|
324
326
|
});
|
|
325
327
|
}
|
|
326
328
|
|
|
@@ -2159,16 +2161,18 @@ export async function handleWorkspaceRoutes(
|
|
|
2159
2161
|
// flow writes one), which used to read as "not in the catalog" and
|
|
2160
2162
|
// skip the clone entirely. Derive the conventional slug instead, and
|
|
2161
2163
|
// persist it so every other flow (CLI up/setup) stops hitting this.
|
|
2162
|
-
|
|
2164
|
+
// ORG-1d: a repo with no source and a `remote:` clones from it.
|
|
2165
|
+
const ghSlug = resolveRepoCloneSource(svc.repoName, readCatalog(), () =>
|
|
2163
2166
|
githubOrgFor(ws.name),
|
|
2164
2167
|
);
|
|
2165
|
-
|
|
2166
|
-
|
|
2168
|
+
const entry = readCatalog()[svc.repoName];
|
|
2169
|
+
if (needsGhRepair(entry, ghSlug)) {
|
|
2170
|
+
upsertCatalogEntry(svc.repoName, { ...entry, gh: ghSlug });
|
|
2167
2171
|
}
|
|
2168
2172
|
const branch = (svc as { branch?: string | null }).branch ?? "main";
|
|
2169
2173
|
emit({
|
|
2170
2174
|
type: "line",
|
|
2171
|
-
text: ` ${svc.repoName}: cloning ${ghSlug} (${branch})…`,
|
|
2175
|
+
text: ` ${svc.repoName}: cloning ${redactRemote(ghSlug)} (${branch})…`,
|
|
2172
2176
|
});
|
|
2173
2177
|
try {
|
|
2174
2178
|
// Synchronous (same helper the workspace-add flow uses) — the server
|