@apexops/cli 0.10.0-next.4 → 0.10.0-next.5
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 +40 -0
- package/assets/client-projection-metadata/copilot-cli-agent-tools.json +8 -0
- package/assets/client-projections/github-copilot-cli/.github/agents/apex-architect.agent.md +9 -8
- package/assets/client-projections/github-copilot-cli/.github/agents/apex-planner.agent.md +7 -5
- package/assets/client-projections/github-copilot-cli/.github/agents/apex-requirements.agent.md +18 -11
- package/assets/client-projections/github-copilot-cli/.github/mcp.json +5 -0
- package/assets/client-projections/github-copilot-cli/.github/skills/apex-requirements/SKILL.md +7 -4
- package/assets/client-projections/github-copilot-vscode/.github/agents/apex-architect.agent.md +9 -8
- package/assets/client-projections/github-copilot-vscode/.github/agents/apex-planner.agent.md +7 -5
- package/assets/client-projections/github-copilot-vscode/.github/agents/apex-requirements.agent.md +18 -11
- package/assets/client-projections/github-copilot-vscode/.github/agents/apex-reviewer.agent.md +9 -5
- package/assets/client-projections/github-copilot-vscode/.github/skills/apex-requirements/SKILL.md +7 -4
- package/assets/config/runtime-bundle.v1.json +7 -7
- package/assets/customizations/.github/agents/apex-architect.agent.md +9 -8
- package/assets/customizations/.github/agents/apex-planner.agent.md +7 -5
- package/assets/customizations/.github/agents/apex-requirements.agent.md +18 -11
- package/assets/customizations/.github/agents/apex-reviewer.agent.md +9 -5
- package/assets/customizations/.github/mcp.json +5 -0
- package/assets/customizations/.github/skills/apex-requirements/SKILL.md +7 -4
- package/assets/customizations/manifest.json +1 -1
- package/assets/manifest.json +50 -50
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +42 -2
- package/dist/mcp.js +58 -16
- package/dist/service.d.ts +41 -1
- package/dist/service.js +448 -40
- package/dist/state-transfer.js +23 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
package/dist/state-transfer.js
CHANGED
|
@@ -186,6 +186,9 @@ export async function createStateTransferBundle(root, options, now = new Date())
|
|
|
186
186
|
throw new Error("State transfer envelope cannot outlive its writer-transfer claim");
|
|
187
187
|
}
|
|
188
188
|
const runRoot = join(state.apexRoot, "projects", state.selection.projectId, "runs", state.selection.runId);
|
|
189
|
+
const generationRoot = join(state.apexRoot, "runtime-generations", state.run.runtimeLockHash);
|
|
190
|
+
const generationAvailable = (await readOptionalRegular(join(generationRoot, "apex.lock.json"), "runtime generation lock")) !== undefined;
|
|
191
|
+
const runtimeRoot = generationAvailable ? generationRoot : join(state.apexRoot, "runtime");
|
|
189
192
|
const paths = new Set([
|
|
190
193
|
"config.json",
|
|
191
194
|
"apex.lock.json",
|
|
@@ -195,11 +198,13 @@ export async function createStateTransferBundle(root, options, now = new Date())
|
|
|
195
198
|
paths.add(".gitignore");
|
|
196
199
|
}
|
|
197
200
|
try {
|
|
198
|
-
for (const
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
for (const sourceRoot of [...new Set([runtimeRoot, join(state.apexRoot, "runtime")])]) {
|
|
202
|
+
for (const entry of await readdir(sourceRoot, { withFileTypes: true })) {
|
|
203
|
+
if (entry.isSymbolicLink())
|
|
204
|
+
throw new Error(`State transfer runtime contains a symlink: ${entry.name}`);
|
|
205
|
+
if (entry.isFile() && entry.name.endsWith(".json"))
|
|
206
|
+
paths.add(`runtime/${entry.name}`);
|
|
207
|
+
}
|
|
203
208
|
}
|
|
204
209
|
}
|
|
205
210
|
catch (error) {
|
|
@@ -211,9 +216,21 @@ export async function createStateTransferBundle(root, options, now = new Date())
|
|
|
211
216
|
}
|
|
212
217
|
const sourceFiles = [];
|
|
213
218
|
for (const path of [...paths].sort()) {
|
|
219
|
+
let sourcePath = join(state.apexRoot, ...path.split("/"));
|
|
220
|
+
if (path === "apex.lock.json") {
|
|
221
|
+
sourcePath = generationAvailable ? join(runtimeRoot, "apex.lock.json") : join(state.apexRoot, "apex.lock.json");
|
|
222
|
+
}
|
|
223
|
+
if (path.startsWith("runtime/")) {
|
|
224
|
+
const relativeRuntimePath = path.slice("runtime/".length);
|
|
225
|
+
const generationPath = join(runtimeRoot, relativeRuntimePath);
|
|
226
|
+
sourcePath =
|
|
227
|
+
(await readOptionalRegular(generationPath, "runtime generation file")) === undefined
|
|
228
|
+
? join(state.apexRoot, "runtime", relativeRuntimePath)
|
|
229
|
+
: generationPath;
|
|
230
|
+
}
|
|
214
231
|
sourceFiles.push({
|
|
215
232
|
path,
|
|
216
|
-
bytes: await readRegular(
|
|
233
|
+
bytes: await readRegular(sourcePath, "State transfer file"),
|
|
217
234
|
});
|
|
218
235
|
}
|
|
219
236
|
const runPrefix = `projects/${state.selection.projectId}/runs/${state.selection.runId}/`;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const APEX_VERSION: "0.10.0-next.
|
|
1
|
+
export declare const APEX_VERSION: "0.10.0-next.5";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const APEX_VERSION = "0.10.0-next.
|
|
1
|
+
export const APEX_VERSION = "0.10.0-next.5";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apexops/cli",
|
|
3
|
-
"version": "0.10.0-next.
|
|
3
|
+
"version": "0.10.0-next.5",
|
|
4
4
|
"description": "Portable no-shell CLI and MCP facade for APEX",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"assets"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@apexops/capabilities": "0.10.0-next.
|
|
36
|
-
"@apexops/contracts": "0.10.0-next.
|
|
37
|
-
"@apexops/kernel": "0.10.0-next.
|
|
38
|
-
"@apexops/renderers": "0.10.0-next.
|
|
35
|
+
"@apexops/capabilities": "0.10.0-next.5",
|
|
36
|
+
"@apexops/contracts": "0.10.0-next.5",
|
|
37
|
+
"@apexops/kernel": "0.10.0-next.5",
|
|
38
|
+
"@apexops/renderers": "0.10.0-next.5",
|
|
39
39
|
"@azure/mcp": "3.0.0-beta.37",
|
|
40
40
|
"@hono/node-server": "2.0.11",
|
|
41
41
|
"@modelcontextprotocol/sdk": "1.29.0",
|