@voybio/ace-swarm 0.2.5 → 2.4.1
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 +19 -1
- package/README.md +21 -13
- package/assets/.agents/ACE/agent-qa/instructions.md +11 -0
- package/assets/agent-state/EVIDENCE_LOG.md +1 -1
- package/assets/agent-state/MODULES/roles/capability-framework.json +41 -0
- package/assets/agent-state/MODULES/roles/capability-git.json +33 -0
- package/assets/agent-state/MODULES/roles/capability-safety.json +37 -0
- package/assets/agent-state/MODULES/schemas/ACE_RUNTIME_PROFILE.schema.json +21 -0
- package/assets/agent-state/MODULES/schemas/RUNTIME_EXECUTOR_SESSION_REGISTRY.schema.json +43 -0
- package/assets/agent-state/MODULES/schemas/RUNTIME_TOOL_SPEC_REGISTRY.schema.json +43 -0
- package/assets/agent-state/MODULES/schemas/WORKSPACE_SESSION_REGISTRY.schema.json +11 -0
- package/assets/agent-state/STATUS.md +2 -2
- package/assets/agent-state/runtime-tool-specs.json +70 -2
- package/assets/instructions/ACE_Coder.instructions.md +13 -0
- package/assets/instructions/ACE_UI.instructions.md +11 -0
- package/assets/scripts/ace-hook-dispatch.mjs +70 -6
- package/assets/scripts/render-mcp-configs.sh +19 -5
- package/dist/ace-context.js +91 -11
- package/dist/ace-internal-tools.d.ts +3 -1
- package/dist/ace-internal-tools.js +10 -2
- package/dist/ace-server-instructions.js +3 -3
- package/dist/ace-state-resolver.js +5 -3
- package/dist/agent-runtime/role-adapters.d.ts +18 -1
- package/dist/agent-runtime/role-adapters.js +49 -5
- package/dist/astgrep-index.d.ts +57 -1
- package/dist/astgrep-index.js +140 -4
- package/dist/cli.js +232 -35
- package/dist/discovery-runtime-wrappers.d.ts +108 -0
- package/dist/discovery-runtime-wrappers.js +615 -0
- package/dist/handoff-registry.js +5 -5
- package/dist/helpers/artifacts.d.ts +19 -0
- package/dist/helpers/artifacts.js +152 -0
- package/dist/helpers/bootstrap.d.ts +24 -0
- package/dist/helpers/bootstrap.js +894 -0
- package/dist/helpers/constants.d.ts +53 -0
- package/dist/helpers/constants.js +295 -0
- package/dist/helpers/drift.d.ts +13 -0
- package/dist/helpers/drift.js +45 -0
- package/dist/helpers/path-utils.d.ts +24 -0
- package/dist/helpers/path-utils.js +123 -0
- package/dist/helpers/store-resolution.d.ts +19 -0
- package/dist/helpers/store-resolution.js +305 -0
- package/dist/helpers/workspace-root.d.ts +3 -0
- package/dist/helpers/workspace-root.js +80 -0
- package/dist/helpers.d.ts +8 -125
- package/dist/helpers.js +8 -1768
- package/dist/job-scheduler.js +33 -7
- package/dist/json-sanitizer.d.ts +16 -0
- package/dist/json-sanitizer.js +26 -0
- package/dist/local-model-policy.d.ts +27 -0
- package/dist/local-model-policy.js +84 -0
- package/dist/local-model-runtime.d.ts +6 -0
- package/dist/local-model-runtime.js +33 -21
- package/dist/model-bridge.d.ts +13 -1
- package/dist/model-bridge.js +410 -23
- package/dist/orchestrator-supervisor.d.ts +56 -0
- package/dist/orchestrator-supervisor.js +179 -1
- package/dist/plan-proposal.d.ts +115 -0
- package/dist/plan-proposal.js +1073 -0
- package/dist/run-ledger.js +3 -3
- package/dist/runtime-command.d.ts +8 -0
- package/dist/runtime-command.js +38 -6
- package/dist/runtime-executor.d.ts +20 -1
- package/dist/runtime-executor.js +737 -172
- package/dist/runtime-profile.d.ts +32 -0
- package/dist/runtime-profile.js +89 -13
- package/dist/runtime-tool-specs.d.ts +39 -0
- package/dist/runtime-tool-specs.js +144 -28
- package/dist/safe-edit.d.ts +7 -0
- package/dist/safe-edit.js +163 -37
- package/dist/schemas.js +48 -1
- package/dist/server.js +51 -0
- package/dist/shared.d.ts +3 -2
- package/dist/shared.js +2 -0
- package/dist/status-events.js +9 -6
- package/dist/store/ace-packed-store.d.ts +3 -2
- package/dist/store/ace-packed-store.js +188 -110
- package/dist/store/bootstrap-store.d.ts +2 -1
- package/dist/store/bootstrap-store.js +102 -83
- package/dist/store/cache-workspace.js +11 -5
- package/dist/store/materializers/context-snapshot-materializer.js +6 -2
- package/dist/store/materializers/hook-context-materializer.d.ts +6 -9
- package/dist/store/materializers/hook-context-materializer.js +11 -21
- package/dist/store/materializers/host-file-materializer.js +6 -0
- package/dist/store/materializers/projection-manager.d.ts +0 -1
- package/dist/store/materializers/projection-manager.js +5 -13
- package/dist/store/materializers/scheduler-projection-materializer.js +1 -1
- package/dist/store/materializers/vericify-projector.d.ts +7 -7
- package/dist/store/materializers/vericify-projector.js +11 -11
- package/dist/store/repositories/local-model-runtime-repository.d.ts +120 -3
- package/dist/store/repositories/local-model-runtime-repository.js +242 -6
- package/dist/store/repositories/vericify-repository.d.ts +1 -1
- package/dist/store/skills-install.d.ts +4 -0
- package/dist/store/skills-install.js +21 -12
- package/dist/store/state-reader.d.ts +2 -0
- package/dist/store/state-reader.js +20 -0
- package/dist/store/store-artifacts.d.ts +7 -0
- package/dist/store/store-artifacts.js +27 -1
- package/dist/store/store-authority-audit.d.ts +18 -1
- package/dist/store/store-authority-audit.js +115 -5
- package/dist/store/store-snapshot.d.ts +3 -0
- package/dist/store/store-snapshot.js +22 -2
- package/dist/store/workspace-store-paths.d.ts +39 -0
- package/dist/store/workspace-store-paths.js +94 -0
- package/dist/store/write-coordinator.d.ts +65 -0
- package/dist/store/write-coordinator.js +386 -0
- package/dist/todo-state.js +5 -5
- package/dist/tools-agent.d.ts +20 -0
- package/dist/tools-agent.js +789 -25
- package/dist/tools-discovery.js +136 -1
- package/dist/tools-files.d.ts +7 -0
- package/dist/tools-files.js +1002 -11
- package/dist/tools-framework.js +105 -66
- package/dist/tools-handoff.js +2 -2
- package/dist/tools-lifecycle.js +4 -4
- package/dist/tools-memory.js +6 -6
- package/dist/tools-todo.js +2 -2
- package/dist/tracker-adapters.d.ts +1 -1
- package/dist/tracker-adapters.js +13 -18
- package/dist/tracker-sync.js +5 -3
- package/dist/tui/agent-runner.js +3 -1
- package/dist/tui/chat.js +103 -7
- package/dist/tui/dashboard.d.ts +1 -0
- package/dist/tui/dashboard.js +43 -0
- package/dist/tui/index.js +10 -1
- package/dist/tui/layout.d.ts +20 -0
- package/dist/tui/layout.js +31 -1
- package/dist/tui/local-model-contract.d.ts +6 -2
- package/dist/tui/local-model-contract.js +16 -3
- package/dist/tui/ollama.d.ts +8 -1
- package/dist/tui/ollama.js +53 -12
- package/dist/tui/openai-compatible.d.ts +13 -0
- package/dist/tui/openai-compatible.js +305 -5
- package/dist/tui/provider-discovery.d.ts +1 -0
- package/dist/tui/provider-discovery.js +35 -11
- package/dist/vericify-bridge.d.ts +6 -1
- package/dist/vericify-bridge.js +27 -3
- package/dist/workspace-manager.d.ts +30 -3
- package/dist/workspace-manager.js +257 -27
- package/package.json +1 -2
- package/dist/internal-tool-runtime.d.ts +0 -21
- package/dist/internal-tool-runtime.js +0 -136
- package/dist/store/workspace-snapshot.d.ts +0 -26
- package/dist/store/workspace-snapshot.js +0 -107
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { readdirSync, readFileSync, statSync } from "node:fs";
|
|
2
|
-
import { relative, resolve, sep } from "node:path";
|
|
3
|
-
import { openStore } from "./ace-packed-store.js";
|
|
4
|
-
import { getWorkspaceStorePath, toVirtualStorePath } from "./store-snapshot.js";
|
|
5
|
-
import { withStoreWriteQueue } from "./write-queue.js";
|
|
6
|
-
function normalizeRelPath(path) {
|
|
7
|
-
return path.split(sep).join("/");
|
|
8
|
-
}
|
|
9
|
-
function workspaceSnapshotPrefix(sessionId) {
|
|
10
|
-
return `state/runtime/executor/sessions/${sessionId}/workspace`;
|
|
11
|
-
}
|
|
12
|
-
function workspaceSnapshotFileKey(sessionId, relPath) {
|
|
13
|
-
return `${workspaceSnapshotPrefix(sessionId)}/files/${normalizeRelPath(relPath)}`;
|
|
14
|
-
}
|
|
15
|
-
function workspaceSnapshotManifestKey(sessionId) {
|
|
16
|
-
return `${workspaceSnapshotPrefix(sessionId)}/manifest.json`;
|
|
17
|
-
}
|
|
18
|
-
function encodeBuffer(content) {
|
|
19
|
-
const utf8 = content.toString("utf8");
|
|
20
|
-
if (Buffer.from(utf8, "utf8").equals(content)) {
|
|
21
|
-
return { encoding: "utf8", body: utf8 };
|
|
22
|
-
}
|
|
23
|
-
return { encoding: "base64", body: content.toString("base64") };
|
|
24
|
-
}
|
|
25
|
-
function collectWorkspaceFiles(rootPath, currentPath, output, skipped) {
|
|
26
|
-
const entries = readdirSync(currentPath, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name));
|
|
27
|
-
for (const entry of entries) {
|
|
28
|
-
const absPath = resolve(currentPath, entry.name);
|
|
29
|
-
const relPath = normalizeRelPath(relative(rootPath, absPath));
|
|
30
|
-
if (entry.isSymbolicLink()) {
|
|
31
|
-
skipped.push({ path: relPath, reason: "symlink" });
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
if (entry.isDirectory()) {
|
|
35
|
-
collectWorkspaceFiles(rootPath, absPath, output, skipped);
|
|
36
|
-
continue;
|
|
37
|
-
}
|
|
38
|
-
if (entry.isFile()) {
|
|
39
|
-
output.push({ absPath, relPath });
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
skipped.push({ path: relPath, reason: "unsupported_entry_type" });
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
export function workspaceSnapshotVirtualRoot(workspaceRoot, sessionId) {
|
|
46
|
-
return toVirtualStorePath(getWorkspaceStorePath(workspaceRoot), workspaceSnapshotPrefix(sessionId));
|
|
47
|
-
}
|
|
48
|
-
export async function persistWorkspaceSnapshot(workspaceRoot, sessionId, sourceWorkspacePath) {
|
|
49
|
-
const files = [];
|
|
50
|
-
const skipped = [];
|
|
51
|
-
collectWorkspaceFiles(sourceWorkspacePath, sourceWorkspacePath, files, skipped);
|
|
52
|
-
const storePath = getWorkspaceStorePath(workspaceRoot);
|
|
53
|
-
const manifestKey = workspaceSnapshotManifestKey(sessionId);
|
|
54
|
-
const virtualRoot = workspaceSnapshotVirtualRoot(workspaceRoot, sessionId);
|
|
55
|
-
const capturedAt = new Date().toISOString();
|
|
56
|
-
const manifestFiles = [];
|
|
57
|
-
await withStoreWriteQueue(storePath, async () => {
|
|
58
|
-
const store = await openStore(storePath);
|
|
59
|
-
try {
|
|
60
|
-
for (const file of files) {
|
|
61
|
-
const content = readFileSync(file.absPath);
|
|
62
|
-
const stats = statSync(file.absPath);
|
|
63
|
-
const encoded = encodeBuffer(content);
|
|
64
|
-
const key = workspaceSnapshotFileKey(sessionId, file.relPath);
|
|
65
|
-
await store.setBlob(key, encoded.body);
|
|
66
|
-
manifestFiles.push({
|
|
67
|
-
path: file.relPath,
|
|
68
|
-
size: stats.size,
|
|
69
|
-
mtime_ms: stats.mtimeMs,
|
|
70
|
-
encoding: encoded.encoding,
|
|
71
|
-
key,
|
|
72
|
-
virtual_path: toVirtualStorePath(storePath, key),
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
const manifest = {
|
|
76
|
-
version: 1,
|
|
77
|
-
captured_at: capturedAt,
|
|
78
|
-
session_id: sessionId,
|
|
79
|
-
source_workspace_path: sourceWorkspacePath,
|
|
80
|
-
virtual_root: virtualRoot,
|
|
81
|
-
manifest_key: manifestKey,
|
|
82
|
-
manifest_path: toVirtualStorePath(storePath, manifestKey),
|
|
83
|
-
file_count: manifestFiles.length,
|
|
84
|
-
files: manifestFiles,
|
|
85
|
-
skipped_paths: skipped,
|
|
86
|
-
};
|
|
87
|
-
await store.setJSON(manifestKey, manifest);
|
|
88
|
-
await store.commit();
|
|
89
|
-
}
|
|
90
|
-
finally {
|
|
91
|
-
await store.close();
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
return {
|
|
95
|
-
version: 1,
|
|
96
|
-
captured_at: capturedAt,
|
|
97
|
-
session_id: sessionId,
|
|
98
|
-
source_workspace_path: sourceWorkspacePath,
|
|
99
|
-
virtual_root: virtualRoot,
|
|
100
|
-
manifest_key: manifestKey,
|
|
101
|
-
manifest_path: toVirtualStorePath(storePath, manifestKey),
|
|
102
|
-
file_count: manifestFiles.length,
|
|
103
|
-
files: manifestFiles,
|
|
104
|
-
skipped_paths: skipped,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=workspace-snapshot.js.map
|