@cubis/foundry 0.3.41 → 0.3.42
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/README.md +3 -3
- package/bin/cubis.js +13 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Skill install default is profile-based:
|
|
|
32
32
|
|
|
33
33
|
- Workflow files (`/plan`, `/create`, etc.)
|
|
34
34
|
- Skill folders
|
|
35
|
-
- Codex callable wrapper skills (
|
|
35
|
+
- Codex callable wrapper skills ($workflow-*, $agent-*)
|
|
36
36
|
- Platform rule files (`AGENTS.md`, `GEMINI.md`, etc.)
|
|
37
37
|
- Engineering artifacts in workspace (`ENGINEERING_RULES.md`, `TECH.md`)
|
|
38
38
|
- Managed MCP config for Postman and Stitch
|
|
@@ -145,7 +145,7 @@ Postman and Stitch now support multiple named profiles with active selection.
|
|
|
145
145
|
"runtime": "docker",
|
|
146
146
|
"fallback": "local",
|
|
147
147
|
"docker": {
|
|
148
|
-
"image": "ghcr.io/
|
|
148
|
+
"image": "ghcr.io/cubetiq/foundry-mcp:<package-version>",
|
|
149
149
|
"updatePolicy": "pinned"
|
|
150
150
|
},
|
|
151
151
|
"catalog": {
|
|
@@ -286,7 +286,7 @@ MCP runtime flags (install):
|
|
|
286
286
|
cbx workflows install --platform codex --bundle agent-environment-setup --postman \
|
|
287
287
|
--mcp-runtime docker \
|
|
288
288
|
--mcp-fallback local \
|
|
289
|
-
--mcp-image ghcr.io/
|
|
289
|
+
--mcp-image ghcr.io/cubetiq/foundry-mcp:<package-version> \
|
|
290
290
|
--mcp-update-policy pinned \
|
|
291
291
|
--mcp-build-local # optional: build image locally instead of docker pull
|
|
292
292
|
```
|
package/bin/cubis.js
CHANGED
|
@@ -177,7 +177,7 @@ const MCP_UPDATE_POLICIES = new Set(["pinned", "latest"]);
|
|
|
177
177
|
const DEFAULT_MCP_RUNTIME = "docker";
|
|
178
178
|
const DEFAULT_MCP_FALLBACK = "local";
|
|
179
179
|
const DEFAULT_MCP_UPDATE_POLICY = "pinned";
|
|
180
|
-
const DEFAULT_MCP_DOCKER_IMAGE =
|
|
180
|
+
const DEFAULT_MCP_DOCKER_IMAGE = `ghcr.io/cubetiq/foundry-mcp:${CLI_VERSION}`;
|
|
181
181
|
const DEFAULT_MCP_DOCKER_CONTAINER_NAME = "cbx-mcp";
|
|
182
182
|
const DEFAULT_MCP_DOCKER_HOST_PORT = 3310;
|
|
183
183
|
const MCP_DOCKER_CONTAINER_PORT = 3100;
|
|
@@ -2512,7 +2512,7 @@ function escapeRegExp(value) {
|
|
|
2512
2512
|
|
|
2513
2513
|
function rewriteCodexWorkflowAgentReferences(sourceBody, agentIds) {
|
|
2514
2514
|
if (!sourceBody || !Array.isArray(agentIds) || agentIds.length === 0)
|
|
2515
|
-
return sourceBody;
|
|
2515
|
+
return normalizeCodexWrapperMentions(sourceBody);
|
|
2516
2516
|
|
|
2517
2517
|
let rewritten = sourceBody;
|
|
2518
2518
|
const sortedAgentIds = unique(agentIds.filter(Boolean)).sort(
|
|
@@ -2530,14 +2530,23 @@ function rewriteCodexWorkflowAgentReferences(sourceBody, agentIds) {
|
|
|
2530
2530
|
);
|
|
2531
2531
|
}
|
|
2532
2532
|
|
|
2533
|
-
return rewritten;
|
|
2533
|
+
return normalizeCodexWrapperMentions(rewritten);
|
|
2534
2534
|
}
|
|
2535
2535
|
|
|
2536
2536
|
function rewriteCodexAgentSkillReferences(sourceBody) {
|
|
2537
2537
|
if (!sourceBody) return sourceBody;
|
|
2538
2538
|
// Agent source files live under platforms/*/agents, but wrapper skills live
|
|
2539
2539
|
// under .agents/skills/agent-*. Rebase ../skills/<id> links accordingly.
|
|
2540
|
-
|
|
2540
|
+
const rebased = sourceBody.replace(/\(\.\.\/skills\//g, "(../");
|
|
2541
|
+
return normalizeCodexWrapperMentions(rebased);
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
function normalizeCodexWrapperMentions(sourceBody) {
|
|
2545
|
+
if (!sourceBody) return sourceBody;
|
|
2546
|
+
return sourceBody.replace(
|
|
2547
|
+
/`\$(workflow|agent)-([A-Za-z0-9_-]+|\*)`/g,
|
|
2548
|
+
(_match, kind, id) => `$${kind}-${id}`,
|
|
2549
|
+
);
|
|
2541
2550
|
}
|
|
2542
2551
|
|
|
2543
2552
|
async function parseWorkflowMetadata(filePath) {
|