@voybio/ace-swarm 0.2.4 → 2.4.0
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 +11 -1
- package/README.md +20 -13
- package/assets/.agents/skills/eval-harness/SKILL.md +14 -0
- package/assets/.agents/skills/handoff-lint/SKILL.md +14 -0
- package/assets/.agents/skills/incident-commander/SKILL.md +14 -0
- package/assets/.agents/skills/memory-curator/SKILL.md +14 -0
- package/assets/.agents/skills/release-sentry/SKILL.md +14 -0
- package/assets/.agents/skills/risk-quant/SKILL.md +14 -0
- package/assets/.agents/skills/schema-forge/SKILL.md +14 -0
- package/assets/.agents/skills/state-auditor/SKILL.md +14 -0
- package/assets/agent-state/EVIDENCE_LOG.md +1 -1
- package/assets/agent-state/MODULES/gates/gate-correctness.json +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/WORKSPACE_SESSION_REGISTRY.schema.json +11 -0
- package/assets/agent-state/STATUS.md +2 -2
- package/assets/scripts/ace-hook-dispatch.mjs +70 -6
- package/assets/scripts/render-mcp-configs.sh +19 -5
- package/dist/ace-context.js +22 -1
- package/dist/ace-server-instructions.js +3 -3
- package/dist/ace-state-resolver.js +5 -3
- package/dist/astgrep-index.d.ts +9 -1
- package/dist/astgrep-index.js +14 -3
- package/dist/cli.js +52 -20
- 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 +288 -0
- package/dist/helpers/drift.d.ts +13 -0
- package/dist/helpers/drift.js +45 -0
- package/dist/helpers/path-utils.d.ts +17 -0
- package/dist/helpers/path-utils.js +104 -0
- package/dist/helpers/store-resolution.d.ts +19 -0
- package/dist/helpers/store-resolution.js +301 -0
- package/dist/helpers/workspace-root.d.ts +3 -0
- package/dist/helpers/workspace-root.js +80 -0
- package/dist/helpers.d.ts +8 -123
- package/dist/helpers.js +8 -1747
- package/dist/job-scheduler.js +3 -3
- package/dist/local-model-runtime.js +12 -1
- package/dist/model-bridge.d.ts +7 -0
- package/dist/model-bridge.js +75 -5
- package/dist/orchestrator-supervisor.d.ts +14 -0
- package/dist/orchestrator-supervisor.js +72 -1
- 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 +14 -0
- package/dist/runtime-executor.js +669 -171
- package/dist/runtime-profile.d.ts +32 -0
- package/dist/runtime-profile.js +89 -13
- package/dist/runtime-tool-specs.d.ts +21 -0
- package/dist/runtime-tool-specs.js +78 -3
- package/dist/safe-edit.d.ts +7 -0
- package/dist/safe-edit.js +163 -37
- package/dist/schemas.js +19 -0
- package/dist/shared.d.ts +2 -2
- 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 +1 -1
- package/dist/store/bootstrap-store.js +94 -81
- package/dist/store/cache-workspace.d.ts +22 -0
- package/dist/store/cache-workspace.js +149 -0
- package/dist/store/materializers/context-snapshot-materializer.js +6 -7
- 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/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.js +319 -34
- package/dist/tools-discovery.js +1 -1
- package/dist/tools-files.d.ts +7 -0
- package/dist/tools-files.js +299 -10
- package/dist/tools-framework.js +107 -27
- 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/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/vericify-bridge.d.ts +5 -0
- 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
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const SERVER_ROOT: string;
|
|
2
|
+
export declare const PACKAGE_ROOT: string;
|
|
3
|
+
export declare const DEFAULTS_ROOT: string;
|
|
4
|
+
export declare const DEFAULTS_INSTRUCTIONS_ROOT: string;
|
|
5
|
+
export declare const DEFAULTS_TASKS_ROOT: string;
|
|
6
|
+
export declare const DEFAULTS_SKILLS_ROOT: string;
|
|
7
|
+
export declare const DEFAULTS_AGENT_STATE_ROOT: string;
|
|
8
|
+
export declare const DEFAULTS_SCRIPTS_ROOT: string;
|
|
9
|
+
export declare const DEFAULTS_GITHUB_ROOT: string;
|
|
10
|
+
export declare const ACE_ROOT_REL = ".agents/ACE";
|
|
11
|
+
export declare const ACE_SKILLS_ROOT_REL = ".agents/ACE/skills";
|
|
12
|
+
export declare const ACE_TASKS_ROOT_REL = ".agents/ACE/tasks";
|
|
13
|
+
export declare const ACE_SCRIPTS_ROOT_REL = ".agents/ACE/scripts/ace";
|
|
14
|
+
export declare const ACE_BUNDLE_ROOT_REL = ".mcp-config";
|
|
15
|
+
export declare const ACE_LLM_ROOT_REL = ".agents/ACE/.ace";
|
|
16
|
+
export declare const ACE_VSCODE_ROOT_REL = ".vscode";
|
|
17
|
+
export declare const ACE_CURSOR_ROOT_REL = ".cursor";
|
|
18
|
+
export declare const ACE_CLAUDE_ROOT_REL = ".claude";
|
|
19
|
+
export declare const ACE_GITHUB_ROOT_REL = ".github";
|
|
20
|
+
export declare const ACE_HOST_AGENTS_REL = "AGENTS.md";
|
|
21
|
+
export declare const ACE_HOST_CLAUDE_REL = "CLAUDE.md";
|
|
22
|
+
export declare const ACE_HOST_CURSOR_RULES_REL = ".cursorrules";
|
|
23
|
+
export declare const ACE_PROJECTED_WORKSPACE_FILES: Set<string>;
|
|
24
|
+
export declare const ACE_MANAGED_PREFIXES: readonly ["agent-state", "global-state", "venture-state", "brand-state", "business-state", "engineering-state", ".ace", ".mcp-config"];
|
|
25
|
+
export declare const ALL_MCP_CLIENTS: readonly ["codex", "vscode", "copilot", "claude", "cursor", "antigravity"];
|
|
26
|
+
export type McpClient = (typeof ALL_MCP_CLIENTS)[number];
|
|
27
|
+
export declare const ALL_LLM_PROVIDERS: readonly ["ollama", "llama.cpp", "codex", "claude", "gemini", "copilot"];
|
|
28
|
+
export type LlmProvider = (typeof ALL_LLM_PROVIDERS)[number];
|
|
29
|
+
export declare const ALL_AGENTS: readonly ["orchestrator", "vos", "ui", "coders", "astgrep", "skeptic", "ops", "research", "spec", "builder", "qa", "docs", "memory", "security", "observability", "eval", "release"];
|
|
30
|
+
export type AgentRole = (typeof ALL_AGENTS)[number];
|
|
31
|
+
export declare const SWARM_AGENTS: readonly ["orchestrator", "vos", "ui", "coders"];
|
|
32
|
+
export type SwarmAgentRole = (typeof SWARM_AGENTS)[number];
|
|
33
|
+
export declare const COMPOSABLE_AGENTS: readonly ["astgrep", "skeptic", "ops", "research", "spec", "builder", "qa", "docs", "memory", "security", "observability", "eval", "release"];
|
|
34
|
+
export type ComposableAgentRole = (typeof COMPOSABLE_AGENTS)[number];
|
|
35
|
+
export declare const SWARM_SUBAGENT_MAP: Record<SwarmAgentRole, readonly ComposableAgentRole[]>;
|
|
36
|
+
export type TaskKey = "todo" | "role_tasks" | "cli_work_split" | "lessons" | "readme" | "handoff_template" | "handoff_example" | "handoff_example_vos_ui" | "handoff_example_ui_coders";
|
|
37
|
+
export type KernelKey = "directive_kernel" | "agent_registry";
|
|
38
|
+
export declare const AGENT_FILES: Record<AgentRole, string[]>;
|
|
39
|
+
export declare const AGENT_MANIFEST_FILES: Record<AgentRole, string[]>;
|
|
40
|
+
export declare const TASK_FILES: Record<TaskKey, string[]>;
|
|
41
|
+
export declare const KERNEL_FILES: Record<KernelKey, string[]>;
|
|
42
|
+
export declare const DEFAULT_AGENT_INSTRUCTION_FILES: Record<AgentRole, string>;
|
|
43
|
+
export declare const DEFAULT_AGENT_MANIFEST_FILES: Record<AgentRole, string>;
|
|
44
|
+
export declare const DEFAULT_TASK_FILES: Record<TaskKey, string>;
|
|
45
|
+
export declare const DEFAULT_KERNEL_FILES: Record<KernelKey, string>;
|
|
46
|
+
export declare const STORE_AGENT_FILES: Record<AgentRole, {
|
|
47
|
+
agent: string;
|
|
48
|
+
instructions: string[];
|
|
49
|
+
manifests: string[];
|
|
50
|
+
}>;
|
|
51
|
+
export declare const STORE_TASK_FILES: Record<TaskKey, string>;
|
|
52
|
+
export declare const STORE_KERNEL_FILES: Record<KernelKey, string[]>;
|
|
53
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { dirname, resolve } from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
4
|
+
const __dirname = dirname(__filename);
|
|
5
|
+
export const SERVER_ROOT = resolve(__dirname, "..", "..");
|
|
6
|
+
export const PACKAGE_ROOT = SERVER_ROOT;
|
|
7
|
+
export const DEFAULTS_ROOT = resolve(PACKAGE_ROOT, "assets");
|
|
8
|
+
export const DEFAULTS_INSTRUCTIONS_ROOT = resolve(DEFAULTS_ROOT, "instructions");
|
|
9
|
+
export const DEFAULTS_TASKS_ROOT = resolve(DEFAULTS_ROOT, "tasks");
|
|
10
|
+
export const DEFAULTS_SKILLS_ROOT = resolve(DEFAULTS_ROOT, ".agents", "skills");
|
|
11
|
+
export const DEFAULTS_AGENT_STATE_ROOT = resolve(DEFAULTS_ROOT, "agent-state");
|
|
12
|
+
export const DEFAULTS_SCRIPTS_ROOT = resolve(DEFAULTS_ROOT, "scripts");
|
|
13
|
+
export const DEFAULTS_GITHUB_ROOT = resolve(DEFAULTS_ROOT, ".github");
|
|
14
|
+
export const ACE_ROOT_REL = ".agents/ACE";
|
|
15
|
+
export const ACE_SKILLS_ROOT_REL = `${ACE_ROOT_REL}/skills`;
|
|
16
|
+
export const ACE_TASKS_ROOT_REL = `${ACE_ROOT_REL}/tasks`;
|
|
17
|
+
export const ACE_SCRIPTS_ROOT_REL = `${ACE_ROOT_REL}/scripts/ace`;
|
|
18
|
+
export const ACE_BUNDLE_ROOT_REL = ".mcp-config";
|
|
19
|
+
export const ACE_LLM_ROOT_REL = `${ACE_ROOT_REL}/.ace`;
|
|
20
|
+
export const ACE_VSCODE_ROOT_REL = ".vscode";
|
|
21
|
+
export const ACE_CURSOR_ROOT_REL = ".cursor";
|
|
22
|
+
export const ACE_CLAUDE_ROOT_REL = ".claude";
|
|
23
|
+
export const ACE_GITHUB_ROOT_REL = ".github";
|
|
24
|
+
export const ACE_HOST_AGENTS_REL = "AGENTS.md";
|
|
25
|
+
export const ACE_HOST_CLAUDE_REL = "CLAUDE.md";
|
|
26
|
+
export const ACE_HOST_CURSOR_RULES_REL = ".cursorrules";
|
|
27
|
+
export const ACE_PROJECTED_WORKSPACE_FILES = new Set([
|
|
28
|
+
`${ACE_TASKS_ROOT_REL}/todo.md`,
|
|
29
|
+
]);
|
|
30
|
+
export const ACE_MANAGED_PREFIXES = [
|
|
31
|
+
"agent-state",
|
|
32
|
+
"global-state",
|
|
33
|
+
"venture-state",
|
|
34
|
+
"brand-state",
|
|
35
|
+
"business-state",
|
|
36
|
+
"engineering-state",
|
|
37
|
+
".ace",
|
|
38
|
+
".mcp-config",
|
|
39
|
+
];
|
|
40
|
+
export const ALL_MCP_CLIENTS = [
|
|
41
|
+
"codex",
|
|
42
|
+
"vscode",
|
|
43
|
+
"copilot",
|
|
44
|
+
"claude",
|
|
45
|
+
"cursor",
|
|
46
|
+
"antigravity",
|
|
47
|
+
];
|
|
48
|
+
export const ALL_LLM_PROVIDERS = [
|
|
49
|
+
"ollama",
|
|
50
|
+
"llama.cpp",
|
|
51
|
+
"codex",
|
|
52
|
+
"claude",
|
|
53
|
+
"gemini",
|
|
54
|
+
"copilot",
|
|
55
|
+
];
|
|
56
|
+
export const ALL_AGENTS = [
|
|
57
|
+
"orchestrator",
|
|
58
|
+
"vos",
|
|
59
|
+
"ui",
|
|
60
|
+
"coders",
|
|
61
|
+
"astgrep",
|
|
62
|
+
"skeptic",
|
|
63
|
+
"ops",
|
|
64
|
+
"research",
|
|
65
|
+
"spec",
|
|
66
|
+
"builder",
|
|
67
|
+
"qa",
|
|
68
|
+
"docs",
|
|
69
|
+
"memory",
|
|
70
|
+
"security",
|
|
71
|
+
"observability",
|
|
72
|
+
"eval",
|
|
73
|
+
"release",
|
|
74
|
+
];
|
|
75
|
+
export const SWARM_AGENTS = ["orchestrator", "vos", "ui", "coders"];
|
|
76
|
+
export const COMPOSABLE_AGENTS = [
|
|
77
|
+
"astgrep",
|
|
78
|
+
"skeptic",
|
|
79
|
+
"ops",
|
|
80
|
+
"research",
|
|
81
|
+
"spec",
|
|
82
|
+
"builder",
|
|
83
|
+
"qa",
|
|
84
|
+
"docs",
|
|
85
|
+
"memory",
|
|
86
|
+
"security",
|
|
87
|
+
"observability",
|
|
88
|
+
"eval",
|
|
89
|
+
"release",
|
|
90
|
+
];
|
|
91
|
+
export const SWARM_SUBAGENT_MAP = {
|
|
92
|
+
orchestrator: COMPOSABLE_AGENTS,
|
|
93
|
+
vos: COMPOSABLE_AGENTS,
|
|
94
|
+
ui: COMPOSABLE_AGENTS,
|
|
95
|
+
coders: COMPOSABLE_AGENTS,
|
|
96
|
+
};
|
|
97
|
+
export const AGENT_FILES = {
|
|
98
|
+
orchestrator: [
|
|
99
|
+
".agents/ACE/orchestrator/instructions.md",
|
|
100
|
+
".agents/ACE/orchestrator/AGENTS.md",
|
|
101
|
+
"ACE.instructions.md",
|
|
102
|
+
".agents/ACE/ACE-Init/instructions.md",
|
|
103
|
+
".agents/ACE/ACE-Init/AGENTS.md",
|
|
104
|
+
],
|
|
105
|
+
vos: [
|
|
106
|
+
".agents/ACE/VOS/instructions.md",
|
|
107
|
+
".agents/ACE/VOS/AGENTS.md",
|
|
108
|
+
"ACE_VOS.instructions.md",
|
|
109
|
+
],
|
|
110
|
+
ui: [
|
|
111
|
+
".agents/ACE/UI/instructions.md",
|
|
112
|
+
".agents/ACE/UI/AGENTS.md",
|
|
113
|
+
"ACE_UI.instructions.md",
|
|
114
|
+
],
|
|
115
|
+
coders: [
|
|
116
|
+
".agents/ACE/ACE_coders/INSTRUCTIONS.md",
|
|
117
|
+
".agents/ACE/ACE_coders/AGENTS.md",
|
|
118
|
+
"ACE_Coder.instructions.md",
|
|
119
|
+
],
|
|
120
|
+
astgrep: [".agents/ACE/agent-astgrep/instructions.md", ".agents/ACE/agent-astgrep/AGENTS.md"],
|
|
121
|
+
skeptic: [".agents/ACE/agent-skeptic/instructions.md", ".agents/ACE/agent-skeptic/AGENTS.md"],
|
|
122
|
+
ops: [".agents/ACE/agent-ops/instructions.md", ".agents/ACE/agent-ops/AGENTS.md"],
|
|
123
|
+
research: [
|
|
124
|
+
".agents/ACE/agent-research/instructions.md",
|
|
125
|
+
".agents/ACE/agent-research/AGENTS.md",
|
|
126
|
+
],
|
|
127
|
+
spec: [".agents/ACE/agent-spec/instructions.md", ".agents/ACE/agent-spec/AGENTS.md"],
|
|
128
|
+
builder: [
|
|
129
|
+
".agents/ACE/agent-builder/instructions.md",
|
|
130
|
+
".agents/ACE/agent-builder/AGENTS.md",
|
|
131
|
+
],
|
|
132
|
+
qa: [".agents/ACE/agent-qa/instructions.md", ".agents/ACE/agent-qa/AGENTS.md"],
|
|
133
|
+
docs: [".agents/ACE/agent-docs/instructions.md", ".agents/ACE/agent-docs/AGENTS.md"],
|
|
134
|
+
memory: [
|
|
135
|
+
".agents/ACE/agent-memory/instructions.md",
|
|
136
|
+
".agents/ACE/agent-memory/AGENTS.md",
|
|
137
|
+
],
|
|
138
|
+
security: [
|
|
139
|
+
".agents/ACE/agent-security/instructions.md",
|
|
140
|
+
".agents/ACE/agent-security/AGENTS.md",
|
|
141
|
+
],
|
|
142
|
+
observability: [
|
|
143
|
+
".agents/ACE/agent-observability/instructions.md",
|
|
144
|
+
".agents/ACE/agent-observability/AGENTS.md",
|
|
145
|
+
],
|
|
146
|
+
eval: [".agents/ACE/agent-eval/instructions.md", ".agents/ACE/agent-eval/AGENTS.md"],
|
|
147
|
+
release: [".agents/ACE/agent-release/instructions.md", ".agents/ACE/agent-release/AGENTS.md"],
|
|
148
|
+
};
|
|
149
|
+
export const AGENT_MANIFEST_FILES = {
|
|
150
|
+
orchestrator: [
|
|
151
|
+
".agents/ACE/orchestrator/AGENTS.md",
|
|
152
|
+
".agents/ACE/ACE-Init/AGENTS.md",
|
|
153
|
+
],
|
|
154
|
+
vos: [".agents/ACE/VOS/AGENTS.md"],
|
|
155
|
+
ui: [".agents/ACE/UI/AGENTS.md"],
|
|
156
|
+
coders: [".agents/ACE/ACE_coders/AGENTS.md"],
|
|
157
|
+
astgrep: [".agents/ACE/agent-astgrep/AGENTS.md"],
|
|
158
|
+
skeptic: [".agents/ACE/agent-skeptic/AGENTS.md"],
|
|
159
|
+
ops: [".agents/ACE/agent-ops/AGENTS.md"],
|
|
160
|
+
research: [".agents/ACE/agent-research/AGENTS.md"],
|
|
161
|
+
spec: [".agents/ACE/agent-spec/AGENTS.md"],
|
|
162
|
+
builder: [".agents/ACE/agent-builder/AGENTS.md"],
|
|
163
|
+
qa: [".agents/ACE/agent-qa/AGENTS.md"],
|
|
164
|
+
docs: [".agents/ACE/agent-docs/AGENTS.md"],
|
|
165
|
+
memory: [".agents/ACE/agent-memory/AGENTS.md"],
|
|
166
|
+
security: [".agents/ACE/agent-security/AGENTS.md"],
|
|
167
|
+
observability: [".agents/ACE/agent-observability/AGENTS.md"],
|
|
168
|
+
eval: [".agents/ACE/agent-eval/AGENTS.md"],
|
|
169
|
+
release: [".agents/ACE/agent-release/AGENTS.md"],
|
|
170
|
+
};
|
|
171
|
+
export const TASK_FILES = {
|
|
172
|
+
todo: [`${ACE_TASKS_ROOT_REL}/todo.md`],
|
|
173
|
+
role_tasks: [`${ACE_TASKS_ROOT_REL}/role_tasks.md`],
|
|
174
|
+
cli_work_split: [`${ACE_TASKS_ROOT_REL}/cli_work_split.md`],
|
|
175
|
+
lessons: [`${ACE_TASKS_ROOT_REL}/lessons.md`],
|
|
176
|
+
readme: [`${ACE_TASKS_ROOT_REL}/README.md`],
|
|
177
|
+
handoff_template: [`${ACE_TASKS_ROOT_REL}/SWARM_HANDOFF.template.json`],
|
|
178
|
+
handoff_example: [`${ACE_TASKS_ROOT_REL}/SWARM_HANDOFF.example.json`],
|
|
179
|
+
handoff_example_vos_ui: [`${ACE_TASKS_ROOT_REL}/SWARM_HANDOFF.example_vos_to_ui.json`],
|
|
180
|
+
handoff_example_ui_coders: [`${ACE_TASKS_ROOT_REL}/SWARM_HANDOFF.example_ui_to_coders.json`],
|
|
181
|
+
};
|
|
182
|
+
export const KERNEL_FILES = {
|
|
183
|
+
directive_kernel: [
|
|
184
|
+
".agents/ACE/DIRECTIVE_KERNEL.md",
|
|
185
|
+
"agent-state/ACE_MACHINE_KERNEL_DIRECTIVES.md",
|
|
186
|
+
],
|
|
187
|
+
agent_registry: [
|
|
188
|
+
".agents/ACE/AGENT_REGISTRY.md",
|
|
189
|
+
".agents/ACE/AGENT_REGISTRY_7.md",
|
|
190
|
+
"agent-state/ACE_7_AGENT_SYSTEM_SPEC.md",
|
|
191
|
+
],
|
|
192
|
+
};
|
|
193
|
+
export const DEFAULT_AGENT_INSTRUCTION_FILES = {
|
|
194
|
+
orchestrator: resolve(DEFAULTS_INSTRUCTIONS_ROOT, "ACE.instructions.md"),
|
|
195
|
+
vos: resolve(DEFAULTS_INSTRUCTIONS_ROOT, "ACE_VOS.instructions.md"),
|
|
196
|
+
ui: resolve(DEFAULTS_INSTRUCTIONS_ROOT, "ACE_UI.instructions.md"),
|
|
197
|
+
coders: resolve(DEFAULTS_INSTRUCTIONS_ROOT, "ACE_Coder.instructions.md"),
|
|
198
|
+
astgrep: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-astgrep", "instructions.md"),
|
|
199
|
+
skeptic: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-skeptic", "instructions.md"),
|
|
200
|
+
ops: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-ops", "instructions.md"),
|
|
201
|
+
research: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-research", "instructions.md"),
|
|
202
|
+
spec: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-spec", "instructions.md"),
|
|
203
|
+
builder: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-builder", "instructions.md"),
|
|
204
|
+
qa: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-qa", "instructions.md"),
|
|
205
|
+
docs: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-docs", "instructions.md"),
|
|
206
|
+
memory: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-memory", "instructions.md"),
|
|
207
|
+
security: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-security", "instructions.md"),
|
|
208
|
+
observability: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-observability", "instructions.md"),
|
|
209
|
+
eval: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-eval", "instructions.md"),
|
|
210
|
+
release: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-release", "instructions.md"),
|
|
211
|
+
};
|
|
212
|
+
export const DEFAULT_AGENT_MANIFEST_FILES = {
|
|
213
|
+
orchestrator: resolve(DEFAULTS_ROOT, ".agents", "ACE", "orchestrator", "AGENTS.md"),
|
|
214
|
+
vos: resolve(DEFAULTS_ROOT, ".agents", "ACE", "VOS", "AGENTS.md"),
|
|
215
|
+
ui: resolve(DEFAULTS_ROOT, ".agents", "ACE", "UI", "AGENTS.md"),
|
|
216
|
+
coders: resolve(DEFAULTS_ROOT, ".agents", "ACE", "ACE_coders", "AGENTS.md"),
|
|
217
|
+
astgrep: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-astgrep", "AGENTS.md"),
|
|
218
|
+
skeptic: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-skeptic", "AGENTS.md"),
|
|
219
|
+
ops: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-ops", "AGENTS.md"),
|
|
220
|
+
research: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-research", "AGENTS.md"),
|
|
221
|
+
spec: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-spec", "AGENTS.md"),
|
|
222
|
+
builder: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-builder", "AGENTS.md"),
|
|
223
|
+
qa: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-qa", "AGENTS.md"),
|
|
224
|
+
docs: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-docs", "AGENTS.md"),
|
|
225
|
+
memory: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-memory", "AGENTS.md"),
|
|
226
|
+
security: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-security", "AGENTS.md"),
|
|
227
|
+
observability: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-observability", "AGENTS.md"),
|
|
228
|
+
eval: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-eval", "AGENTS.md"),
|
|
229
|
+
release: resolve(DEFAULTS_ROOT, ".agents", "ACE", "agent-release", "AGENTS.md"),
|
|
230
|
+
};
|
|
231
|
+
export const DEFAULT_TASK_FILES = {
|
|
232
|
+
todo: resolve(DEFAULTS_TASKS_ROOT, "todo.md"),
|
|
233
|
+
role_tasks: resolve(DEFAULTS_TASKS_ROOT, "role_tasks.md"),
|
|
234
|
+
cli_work_split: resolve(DEFAULTS_TASKS_ROOT, "cli_work_split.md"),
|
|
235
|
+
lessons: resolve(DEFAULTS_TASKS_ROOT, "lessons.md"),
|
|
236
|
+
readme: resolve(DEFAULTS_TASKS_ROOT, "README.md"),
|
|
237
|
+
handoff_template: resolve(DEFAULTS_TASKS_ROOT, "SWARM_HANDOFF.template.json"),
|
|
238
|
+
handoff_example: resolve(DEFAULTS_TASKS_ROOT, "SWARM_HANDOFF.example.json"),
|
|
239
|
+
handoff_example_vos_ui: resolve(DEFAULTS_TASKS_ROOT, "SWARM_HANDOFF.example_vos_to_ui.json"),
|
|
240
|
+
handoff_example_ui_coders: resolve(DEFAULTS_TASKS_ROOT, "SWARM_HANDOFF.example_ui_to_coders.json"),
|
|
241
|
+
};
|
|
242
|
+
export const DEFAULT_KERNEL_FILES = {
|
|
243
|
+
directive_kernel: resolve(DEFAULTS_ROOT, ".agents", "ACE", "DIRECTIVE_KERNEL.md"),
|
|
244
|
+
agent_registry: resolve(DEFAULTS_ROOT, ".agents", "ACE", "AGENT_REGISTRY.md"),
|
|
245
|
+
};
|
|
246
|
+
export const STORE_AGENT_FILES = {
|
|
247
|
+
orchestrator: {
|
|
248
|
+
agent: "ace-orchestrator",
|
|
249
|
+
instructions: ["instructions.md", "AGENTS.md"],
|
|
250
|
+
manifests: ["AGENTS.md"],
|
|
251
|
+
},
|
|
252
|
+
vos: { agent: "ace-vos", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
253
|
+
ui: { agent: "ace-ui", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
254
|
+
coders: { agent: "ace-coders", instructions: ["INSTRUCTIONS.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
255
|
+
astgrep: { agent: "astgrep", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
256
|
+
skeptic: { agent: "skeptic", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
257
|
+
ops: { agent: "ops", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
258
|
+
research: { agent: "research", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
259
|
+
spec: { agent: "spec", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
260
|
+
builder: { agent: "builder", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
261
|
+
qa: { agent: "qa", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
262
|
+
docs: { agent: "docs", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
263
|
+
memory: { agent: "memory", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
264
|
+
security: { agent: "security", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
265
|
+
observability: {
|
|
266
|
+
agent: "observability",
|
|
267
|
+
instructions: ["instructions.md", "AGENTS.md"],
|
|
268
|
+
manifests: ["AGENTS.md"],
|
|
269
|
+
},
|
|
270
|
+
eval: { agent: "eval", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
271
|
+
release: { agent: "release", instructions: ["instructions.md", "AGENTS.md"], manifests: ["AGENTS.md"] },
|
|
272
|
+
};
|
|
273
|
+
export const STORE_TASK_FILES = {
|
|
274
|
+
todo: "knowledge/tasks/todo.md",
|
|
275
|
+
role_tasks: "knowledge/tasks/role_tasks.md",
|
|
276
|
+
cli_work_split: "knowledge/tasks/cli_work_split.md",
|
|
277
|
+
lessons: "knowledge/tasks/lessons.md",
|
|
278
|
+
readme: "knowledge/tasks/README.md",
|
|
279
|
+
handoff_template: "knowledge/tasks/SWARM_HANDOFF.template.json",
|
|
280
|
+
handoff_example: "knowledge/tasks/SWARM_HANDOFF.example.json",
|
|
281
|
+
handoff_example_vos_ui: "knowledge/tasks/SWARM_HANDOFF.example_vos_to_ui.json",
|
|
282
|
+
handoff_example_ui_coders: "knowledge/tasks/SWARM_HANDOFF.example_ui_to_coders.json",
|
|
283
|
+
};
|
|
284
|
+
export const STORE_KERNEL_FILES = {
|
|
285
|
+
directive_kernel: ["knowledge/kernel/DIRECTIVE_KERNEL.md"],
|
|
286
|
+
agent_registry: ["knowledge/kernel/AGENT_REGISTRY.md", "knowledge/kernel/AGENT_REGISTRY_7.md"],
|
|
287
|
+
};
|
|
288
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface DriftEntry {
|
|
2
|
+
asset_path: string;
|
|
3
|
+
runtime_path: string;
|
|
4
|
+
status: "match" | "drift" | "missing-runtime" | "missing-asset";
|
|
5
|
+
}
|
|
6
|
+
export interface DriftReport {
|
|
7
|
+
checked: number;
|
|
8
|
+
drifted: number;
|
|
9
|
+
missing_runtime: number;
|
|
10
|
+
entries: DriftEntry[];
|
|
11
|
+
}
|
|
12
|
+
export declare function detectAssetDrift(): DriftReport;
|
|
13
|
+
//# sourceMappingURL=drift.d.ts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { existsSync, readdirSync } from "node:fs";
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { DEFAULTS_AGENT_STATE_ROOT, DEFAULTS_TASKS_ROOT, } from "./constants.js";
|
|
4
|
+
import { acePath, readText, wsPath } from "./path-utils.js";
|
|
5
|
+
export function detectAssetDrift() {
|
|
6
|
+
const entries = [];
|
|
7
|
+
const assetDirs = [
|
|
8
|
+
{ assetRoot: DEFAULTS_AGENT_STATE_ROOT, workspaceRoot: wsPath("agent-state") },
|
|
9
|
+
{ assetRoot: DEFAULTS_TASKS_ROOT, workspaceRoot: acePath("tasks") },
|
|
10
|
+
];
|
|
11
|
+
function walkAndCompare(assetDir, runtimeDir) {
|
|
12
|
+
if (!existsSync(assetDir))
|
|
13
|
+
return;
|
|
14
|
+
const items = readdirSync(assetDir, { withFileTypes: true });
|
|
15
|
+
for (const item of items) {
|
|
16
|
+
const assetPath = resolve(assetDir, item.name);
|
|
17
|
+
const runtimePath = resolve(runtimeDir, item.name);
|
|
18
|
+
if (item.isDirectory()) {
|
|
19
|
+
walkAndCompare(assetPath, runtimePath);
|
|
20
|
+
continue;
|
|
21
|
+
}
|
|
22
|
+
if (!existsSync(runtimePath)) {
|
|
23
|
+
entries.push({ asset_path: assetPath, runtime_path: runtimePath, status: "missing-runtime" });
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
const assetContent = readText(assetPath);
|
|
27
|
+
const runtimeContent = readText(runtimePath);
|
|
28
|
+
entries.push({
|
|
29
|
+
asset_path: assetPath,
|
|
30
|
+
runtime_path: runtimePath,
|
|
31
|
+
status: assetContent === runtimeContent ? "match" : "drift",
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
for (const { assetRoot, workspaceRoot } of assetDirs) {
|
|
36
|
+
walkAndCompare(assetRoot, workspaceRoot);
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
checked: entries.length,
|
|
40
|
+
drifted: entries.filter((e) => e.status === "drift").length,
|
|
41
|
+
missing_runtime: entries.filter((e) => e.status === "missing-runtime").length,
|
|
42
|
+
entries,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=drift.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SWARM_AGENTS } from "./constants.js";
|
|
2
|
+
export declare function currentWorkspaceRoot(): string;
|
|
3
|
+
export declare function mapAceWorkspaceRelativePath(path: string): string;
|
|
4
|
+
export declare function isProjectedAceWorkspacePath(filePath: string): boolean;
|
|
5
|
+
export declare function acePath(...segments: string[]): string;
|
|
6
|
+
export declare function wsPath(...segments: string[]): string;
|
|
7
|
+
export declare function normalizePathForValidation(path: string): string;
|
|
8
|
+
export declare function isSwarmRole(role: string): role is (typeof SWARM_AGENTS)[number];
|
|
9
|
+
export declare function atomicWrite(filePath: string, content: string): string;
|
|
10
|
+
export declare function fileExists(filePath: string): boolean;
|
|
11
|
+
export declare function resolveWorkspaceWritePath(filePath: string): string;
|
|
12
|
+
export declare function resolveWorkspaceReadPath(filePath: string): string;
|
|
13
|
+
export declare function resolveWorkspaceArtifactPath(filePath: string, mode?: "read" | "write"): string;
|
|
14
|
+
export declare function toAbsoluteWorkspaceCandidates(candidates: string[]): string[];
|
|
15
|
+
export declare function firstExistingPath(paths: string[]): string | undefined;
|
|
16
|
+
export declare function readText(absPath: string): string;
|
|
17
|
+
//# sourceMappingURL=path-utils.d.ts.map
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync, } from "node:fs";
|
|
2
|
+
import { dirname, isAbsolute, relative, resolve } from "node:path";
|
|
3
|
+
import { isInside, normalizeRelPath } from "../shared.js";
|
|
4
|
+
import { ACE_MANAGED_PREFIXES, ACE_PROJECTED_WORKSPACE_FILES, ACE_ROOT_REL, SWARM_AGENTS, } from "./constants.js";
|
|
5
|
+
import { resolveWorkspaceRoot } from "./workspace-root.js";
|
|
6
|
+
export function currentWorkspaceRoot() {
|
|
7
|
+
return resolveWorkspaceRoot();
|
|
8
|
+
}
|
|
9
|
+
export function mapAceWorkspaceRelativePath(path) {
|
|
10
|
+
const normalized = normalizeRelPath(path);
|
|
11
|
+
if (!normalized || normalized === ".")
|
|
12
|
+
return normalized;
|
|
13
|
+
if (normalized === "agent-state" || normalized.startsWith("agent-state/")) {
|
|
14
|
+
return normalized;
|
|
15
|
+
}
|
|
16
|
+
if (normalized === ACE_ROOT_REL || normalized.startsWith(`${ACE_ROOT_REL}/`)) {
|
|
17
|
+
return normalized;
|
|
18
|
+
}
|
|
19
|
+
for (const prefix of ACE_MANAGED_PREFIXES) {
|
|
20
|
+
if (normalized === prefix || normalized.startsWith(`${prefix}/`)) {
|
|
21
|
+
return `${ACE_ROOT_REL}/${normalized}`;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return normalized;
|
|
25
|
+
}
|
|
26
|
+
export function isProjectedAceWorkspacePath(filePath) {
|
|
27
|
+
const canonical = mapAceWorkspaceRelativePath(normalizeRelPath(filePath));
|
|
28
|
+
return ACE_PROJECTED_WORKSPACE_FILES.has(canonical);
|
|
29
|
+
}
|
|
30
|
+
export function acePath(...segments) {
|
|
31
|
+
return resolve(currentWorkspaceRoot(), ACE_ROOT_REL, ...segments);
|
|
32
|
+
}
|
|
33
|
+
export function wsPath(...segments) {
|
|
34
|
+
const relativePath = normalizeRelPath(segments.join("/"));
|
|
35
|
+
return resolve(currentWorkspaceRoot(), mapAceWorkspaceRelativePath(relativePath));
|
|
36
|
+
}
|
|
37
|
+
export function normalizePathForValidation(path) {
|
|
38
|
+
const root = currentWorkspaceRoot();
|
|
39
|
+
const relPath = isAbsolute(path) ? relative(root, path) : path;
|
|
40
|
+
return normalizeRelPath(relPath);
|
|
41
|
+
}
|
|
42
|
+
export function isSwarmRole(role) {
|
|
43
|
+
return SWARM_AGENTS.includes(role);
|
|
44
|
+
}
|
|
45
|
+
export function atomicWrite(filePath, content) {
|
|
46
|
+
const abs = isAbsolute(filePath) ? filePath : resolveWorkspaceWritePath(filePath);
|
|
47
|
+
mkdirSync(dirname(abs), { recursive: true });
|
|
48
|
+
const tmpPath = `${abs}.${process.pid}.tmp`;
|
|
49
|
+
writeFileSync(tmpPath, content, "utf-8");
|
|
50
|
+
renameSync(tmpPath, abs);
|
|
51
|
+
return abs;
|
|
52
|
+
}
|
|
53
|
+
export function fileExists(filePath) {
|
|
54
|
+
const abs = isAbsolute(filePath) ? filePath : resolveWorkspaceReadPath(filePath);
|
|
55
|
+
return existsSync(abs);
|
|
56
|
+
}
|
|
57
|
+
export function resolveWorkspaceWritePath(filePath) {
|
|
58
|
+
const root = currentWorkspaceRoot();
|
|
59
|
+
if (dirname(root) === root) {
|
|
60
|
+
throw new Error("Workspace root resolved to filesystem root. Set ACE_WORKSPACE_ROOT or run ACE from the target workspace.");
|
|
61
|
+
}
|
|
62
|
+
const abs = isAbsolute(filePath)
|
|
63
|
+
? filePath
|
|
64
|
+
: resolve(root, mapAceWorkspaceRelativePath(filePath));
|
|
65
|
+
if (!isInside(root, abs)) {
|
|
66
|
+
throw new Error(`Path escapes workspace root: ${filePath}`);
|
|
67
|
+
}
|
|
68
|
+
return abs;
|
|
69
|
+
}
|
|
70
|
+
export function resolveWorkspaceReadPath(filePath) {
|
|
71
|
+
const root = currentWorkspaceRoot();
|
|
72
|
+
if (isAbsolute(filePath)) {
|
|
73
|
+
if (!isInside(root, filePath)) {
|
|
74
|
+
throw new Error(`Path escapes workspace root: ${filePath}`);
|
|
75
|
+
}
|
|
76
|
+
return filePath;
|
|
77
|
+
}
|
|
78
|
+
const normalized = normalizeRelPath(filePath);
|
|
79
|
+
const canonicalRel = mapAceWorkspaceRelativePath(normalized);
|
|
80
|
+
const canonicalAbs = resolve(root, canonicalRel);
|
|
81
|
+
if (canonicalRel !== normalized) {
|
|
82
|
+
const legacyAbs = resolve(root, normalized);
|
|
83
|
+
if (!existsSync(canonicalAbs) && existsSync(legacyAbs)) {
|
|
84
|
+
return legacyAbs;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (!isInside(root, canonicalAbs)) {
|
|
88
|
+
throw new Error(`Path escapes workspace root: ${filePath}`);
|
|
89
|
+
}
|
|
90
|
+
return canonicalAbs;
|
|
91
|
+
}
|
|
92
|
+
export function resolveWorkspaceArtifactPath(filePath, mode = "write") {
|
|
93
|
+
return mode === "read" ? resolveWorkspaceReadPath(filePath) : resolveWorkspaceWritePath(filePath);
|
|
94
|
+
}
|
|
95
|
+
export function toAbsoluteWorkspaceCandidates(candidates) {
|
|
96
|
+
return candidates.map((candidate) => isAbsolute(candidate) ? candidate : resolveWorkspaceReadPath(candidate));
|
|
97
|
+
}
|
|
98
|
+
export function firstExistingPath(paths) {
|
|
99
|
+
return paths.find((candidate) => existsSync(candidate));
|
|
100
|
+
}
|
|
101
|
+
export function readText(absPath) {
|
|
102
|
+
return readFileSync(absPath, "utf-8");
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=path-utils.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type ArtifactSource = "workspace" | "package-defaults" | "store" | "missing";
|
|
2
|
+
export declare function formatStorePath(key: string): string;
|
|
3
|
+
export declare function readStoreText(keys: string[]): {
|
|
4
|
+
key: string;
|
|
5
|
+
path: string;
|
|
6
|
+
text: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
export declare function listStoreSkillReferences(): Array<{
|
|
9
|
+
name: string;
|
|
10
|
+
path: string;
|
|
11
|
+
source: "store";
|
|
12
|
+
}>;
|
|
13
|
+
export declare function resolveStoreFallbackKeysForPath(filePath: string): string[];
|
|
14
|
+
export declare function classifyPathSource(path?: string): ArtifactSource;
|
|
15
|
+
export declare function safeRead(filePath: string): string;
|
|
16
|
+
export declare function safeWrite(filePath: string, content: string): string;
|
|
17
|
+
export declare function safeWriteAsync(filePath: string, content: string): Promise<string>;
|
|
18
|
+
export declare function withFileLock<T>(path: string, fn: () => T | Promise<T>): Promise<T>;
|
|
19
|
+
//# sourceMappingURL=store-resolution.d.ts.map
|