@voybio/ace-swarm 0.1.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 +109 -0
- package/LICENSE +186 -0
- package/README.md +229 -0
- package/assets/.agents/ACE/ACE-Init/AGENTS.md +210 -0
- package/assets/.agents/ACE/ACE-Init/instructions.md +118 -0
- package/assets/.agents/ACE/ACE_coders/AGENTS.md +154 -0
- package/assets/.agents/ACE/ACE_coders/INSTRUCTIONS.md +216 -0
- package/assets/.agents/ACE/AGENT_REGISTRY.md +70 -0
- package/assets/.agents/ACE/AGENT_REGISTRY_7.md +9 -0
- package/assets/.agents/ACE/DIRECTIVE_KERNEL.md +234 -0
- package/assets/.agents/ACE/UI/AGENTS.md +115 -0
- package/assets/.agents/ACE/UI/instructions.md +178 -0
- package/assets/.agents/ACE/VOS/ACE_VOS_MISSING_INFO_MATRIX.md +42 -0
- package/assets/.agents/ACE/VOS/AGENTS.md +72 -0
- package/assets/.agents/ACE/VOS/instructions.md +211 -0
- package/assets/.agents/ACE/agent-astgrep/AGENTS.md +123 -0
- package/assets/.agents/ACE/agent-astgrep/instructions.md +91 -0
- package/assets/.agents/ACE/agent-builder/AGENTS.md +172 -0
- package/assets/.agents/ACE/agent-builder/instructions.md +137 -0
- package/assets/.agents/ACE/agent-docs/AGENTS.md +159 -0
- package/assets/.agents/ACE/agent-docs/instructions.md +133 -0
- package/assets/.agents/ACE/agent-eval/AGENTS.md +46 -0
- package/assets/.agents/ACE/agent-eval/instructions.md +56 -0
- package/assets/.agents/ACE/agent-memory/AGENTS.md +49 -0
- package/assets/.agents/ACE/agent-memory/instructions.md +50 -0
- package/assets/.agents/ACE/agent-observability/AGENTS.md +46 -0
- package/assets/.agents/ACE/agent-observability/instructions.md +50 -0
- package/assets/.agents/ACE/agent-ops/AGENTS.md +201 -0
- package/assets/.agents/ACE/agent-ops/instructions.md +136 -0
- package/assets/.agents/ACE/agent-qa/AGENTS.md +189 -0
- package/assets/.agents/ACE/agent-qa/instructions.md +121 -0
- package/assets/.agents/ACE/agent-release/AGENTS.md +48 -0
- package/assets/.agents/ACE/agent-release/instructions.md +49 -0
- package/assets/.agents/ACE/agent-research/AGENTS.md +160 -0
- package/assets/.agents/ACE/agent-research/instructions.md +118 -0
- package/assets/.agents/ACE/agent-security/AGENTS.md +48 -0
- package/assets/.agents/ACE/agent-security/instructions.md +50 -0
- package/assets/.agents/ACE/agent-skeptic/AGENTS.md +178 -0
- package/assets/.agents/ACE/agent-skeptic/instructions.md +196 -0
- package/assets/.agents/ACE/agent-spec/AGENTS.md +169 -0
- package/assets/.agents/ACE/agent-spec/instructions.md +116 -0
- package/assets/.agents/ACE/orchestrator/AGENTS.md +365 -0
- package/assets/.agents/ACE/orchestrator/instructions.md +231 -0
- package/assets/.agents/skills/ace-orchestrator/SKILL.md +63 -0
- package/assets/.agents/skills/ace-orchestrator/references/engineering-bootstrap-playbook.md +360 -0
- package/assets/.agents/skills/astgrep-index/SKILL.md +58 -0
- package/assets/.agents/skills/codemunch/SKILL.md +65 -0
- package/assets/.agents/skills/codemunch/references/ast-driven-protocol.md +543 -0
- package/assets/.agents/skills/codesnipe/SKILL.md +64 -0
- package/assets/.agents/skills/codesnipe/references/dual-codebase-playbook.md +671 -0
- package/assets/.agents/skills/eval-harness/SKILL.md +203 -0
- package/assets/.agents/skills/handoff-lint/SKILL.md +164 -0
- package/assets/.agents/skills/incident-commander/SKILL.md +174 -0
- package/assets/.agents/skills/landing-review-watcher/SKILL.md +68 -0
- package/assets/.agents/skills/memory-curator/SKILL.md +179 -0
- package/assets/.agents/skills/problem-triage/SKILL.md +57 -0
- package/assets/.agents/skills/problem-triage/agents/openai.yaml +3 -0
- package/assets/.agents/skills/release-sentry/SKILL.md +189 -0
- package/assets/.agents/skills/risk-quant/SKILL.md +190 -0
- package/assets/.agents/skills/schema-forge/SKILL.md +174 -0
- package/assets/.agents/skills/skill-auditor/SKILL.md +52 -0
- package/assets/.agents/skills/state-auditor/SKILL.md +182 -0
- package/assets/.github/hooks/ace-copilot.json +68 -0
- package/assets/agent-state/ACE_WORKFLOW.md +131 -0
- package/assets/agent-state/ARTIFACT_MANIFEST.json +5 -0
- package/assets/agent-state/AST_GREP_COMMANDS.md +121 -0
- package/assets/agent-state/AST_GREP_INDEX.json +13 -0
- package/assets/agent-state/AST_GREP_INDEX.md +15 -0
- package/assets/agent-state/DECISIONS.md +7 -0
- package/assets/agent-state/EVIDENCE_LOG.md +7 -0
- package/assets/agent-state/HANDOFF.json +24 -0
- package/assets/agent-state/INTERFACE_REGISTRY.md +75 -0
- package/assets/agent-state/MODULES/gates/gate-autonomy.json +7 -0
- package/assets/agent-state/MODULES/gates/gate-completeness.json +7 -0
- package/assets/agent-state/MODULES/gates/gate-correctness.json +7 -0
- package/assets/agent-state/MODULES/gates/gate-evaluation.json +7 -0
- package/assets/agent-state/MODULES/gates/gate-operability.json +7 -0
- package/assets/agent-state/MODULES/gates/gate-security.json +7 -0
- package/assets/agent-state/MODULES/gates/gate-typescript-public-surface.json +7 -0
- package/assets/agent-state/MODULES/registry.json +41 -0
- package/assets/agent-state/MODULES/roles/capability-astgrep.json +49 -0
- package/assets/agent-state/MODULES/roles/capability-build.json +39 -0
- package/assets/agent-state/MODULES/roles/capability-docs.json +38 -0
- package/assets/agent-state/MODULES/roles/capability-eval.json +20 -0
- package/assets/agent-state/MODULES/roles/capability-memory.json +20 -0
- package/assets/agent-state/MODULES/roles/capability-observability.json +20 -0
- package/assets/agent-state/MODULES/roles/capability-ops.json +45 -0
- package/assets/agent-state/MODULES/roles/capability-qa.json +40 -0
- package/assets/agent-state/MODULES/roles/capability-release.json +21 -0
- package/assets/agent-state/MODULES/roles/capability-research.json +44 -0
- package/assets/agent-state/MODULES/roles/capability-security.json +21 -0
- package/assets/agent-state/MODULES/roles/capability-skeptic.json +48 -0
- package/assets/agent-state/MODULES/roles/capability-spec.json +42 -0
- package/assets/agent-state/MODULES/schemas/ACE_RUNTIME_PROFILE.schema.json +289 -0
- package/assets/agent-state/MODULES/schemas/ARTIFACT_MANIFEST.schema.json +185 -0
- package/assets/agent-state/MODULES/schemas/HANDOFF.agent-state.schema.json +124 -0
- package/assets/agent-state/MODULES/schemas/HANDOFF.schema.json +55 -0
- package/assets/agent-state/MODULES/schemas/RUNTIME_EXECUTOR_SESSION_REGISTRY.schema.json +290 -0
- package/assets/agent-state/MODULES/schemas/RUNTIME_TOOL_SPEC_REGISTRY.schema.json +144 -0
- package/assets/agent-state/MODULES/schemas/STATUS_EVENT.schema.json +84 -0
- package/assets/agent-state/MODULES/schemas/SWARM_HANDOFF.schema.json +138 -0
- package/assets/agent-state/MODULES/schemas/TRACKER_SNAPSHOT.schema.json +134 -0
- package/assets/agent-state/MODULES/schemas/VERICIFY_BRIDGE_SNAPSHOT.schema.json +157 -0
- package/assets/agent-state/MODULES/schemas/VERICIFY_PROCESS_POST_LOG.schema.json +93 -0
- package/assets/agent-state/MODULES/schemas/WORKSPACE_SESSION_REGISTRY.schema.json +133 -0
- package/assets/agent-state/PROVENANCE_LOG.md +28 -0
- package/assets/agent-state/QUALITY_GATES.md +15 -0
- package/assets/agent-state/RISKS.md +8 -0
- package/assets/agent-state/SCOPE.md +20 -0
- package/assets/agent-state/SKILL_CATALOG.md +48 -0
- package/assets/agent-state/STATUS.md +8 -0
- package/assets/agent-state/STATUS_EVENTS.ndjson +1 -0
- package/assets/agent-state/TASK.md +18 -0
- package/assets/agent-state/TEAL_CONFIG.md +117 -0
- package/assets/agent-state/handoff-registry.json +5 -0
- package/assets/agent-state/index-fingerprints.json +7 -0
- package/assets/agent-state/index.json +32 -0
- package/assets/agent-state/run-ledger.json +5 -0
- package/assets/agent-state/runtime-executor-sessions.json +5 -0
- package/assets/agent-state/runtime-tool-specs.json +5 -0
- package/assets/agent-state/runtime-workspaces.json +5 -0
- package/assets/agent-state/todo-state.json +7 -0
- package/assets/agent-state/tracker-snapshot.json +7 -0
- package/assets/agent-state/vericify/ace-bridge.json +60 -0
- package/assets/agent-state/vericify/process-posts.json +5 -0
- package/assets/instructions/ACE.instructions.md +187 -0
- package/assets/instructions/ACE_Coder.instructions.md +146 -0
- package/assets/instructions/ACE_UI.instructions.md +178 -0
- package/assets/instructions/ACE_VOS.instructions.md +211 -0
- package/assets/scripts/ace-hook-dispatch.mjs +538 -0
- package/assets/scripts/bootstrap-workspace.sh +27 -0
- package/assets/scripts/copilot-hook-dispatch.mjs +3 -0
- package/assets/scripts/eval-harness.sh +68 -0
- package/assets/scripts/render-mcp-configs.sh +396 -0
- package/assets/tasks/README.md +48 -0
- package/assets/tasks/SWARM_HANDOFF.example.json +53 -0
- package/assets/tasks/SWARM_HANDOFF.example_ui_to_coders.json +55 -0
- package/assets/tasks/SWARM_HANDOFF.example_vos_to_ui.json +55 -0
- package/assets/tasks/SWARM_HANDOFF.template.json +52 -0
- package/assets/tasks/cli_work_split.md +22 -0
- package/assets/tasks/lessons.md +17 -0
- package/assets/tasks/role_tasks.md +206 -0
- package/assets/tasks/todo.md +23 -0
- package/dist/ace-autonomy.d.ts +137 -0
- package/dist/ace-autonomy.js +472 -0
- package/dist/ace-context.d.ts +29 -0
- package/dist/ace-context.js +240 -0
- package/dist/ace-internal-tools.d.ts +8 -0
- package/dist/ace-internal-tools.js +76 -0
- package/dist/ace-server-instructions.d.ts +12 -0
- package/dist/ace-server-instructions.js +324 -0
- package/dist/agent-runtime/role-adapters.d.ts +29 -0
- package/dist/agent-runtime/role-adapters.js +573 -0
- package/dist/astgrep-index.d.ts +24 -0
- package/dist/astgrep-index.js +476 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +591 -0
- package/dist/git-ops.d.ts +53 -0
- package/dist/git-ops.js +238 -0
- package/dist/handoff-registry.d.ts +71 -0
- package/dist/handoff-registry.js +422 -0
- package/dist/helpers.d.ts +126 -0
- package/dist/helpers.js +1687 -0
- package/dist/index-store.d.ts +51 -0
- package/dist/index-store.js +328 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +7 -0
- package/dist/internal-tool-runtime.d.ts +21 -0
- package/dist/internal-tool-runtime.js +136 -0
- package/dist/job-scheduler.d.ts +175 -0
- package/dist/job-scheduler.js +1217 -0
- package/dist/kanban.d.ts +27 -0
- package/dist/kanban.js +339 -0
- package/dist/local-model-runtime.d.ts +40 -0
- package/dist/local-model-runtime.js +174 -0
- package/dist/model-bridge.d.ts +54 -0
- package/dist/model-bridge.js +587 -0
- package/dist/orchestrator-supervisor.d.ts +100 -0
- package/dist/orchestrator-supervisor.js +399 -0
- package/dist/problem-triage.d.ts +23 -0
- package/dist/problem-triage.js +448 -0
- package/dist/prompts.d.ts +7 -0
- package/dist/prompts.js +628 -0
- package/dist/public-surface.d.ts +30 -0
- package/dist/public-surface.js +316 -0
- package/dist/resources.d.ts +7 -0
- package/dist/resources.js +545 -0
- package/dist/run-ledger.d.ts +36 -0
- package/dist/run-ledger.js +257 -0
- package/dist/runtime-command.d.ts +18 -0
- package/dist/runtime-command.js +76 -0
- package/dist/runtime-executor.d.ts +104 -0
- package/dist/runtime-executor.js +985 -0
- package/dist/runtime-profile.d.ts +116 -0
- package/dist/runtime-profile.js +532 -0
- package/dist/runtime-tool-specs.d.ts +68 -0
- package/dist/runtime-tool-specs.js +527 -0
- package/dist/safe-edit.d.ts +52 -0
- package/dist/safe-edit.js +255 -0
- package/dist/schemas.d.ts +44 -0
- package/dist/schemas.js +830 -0
- package/dist/semantic-cache.d.ts +147 -0
- package/dist/semantic-cache.js +552 -0
- package/dist/semantic-hash.d.ts +83 -0
- package/dist/semantic-hash.js +346 -0
- package/dist/server.d.ts +10 -0
- package/dist/server.js +46 -0
- package/dist/shared.d.ts +136 -0
- package/dist/shared.js +269 -0
- package/dist/skill-auditor.d.ts +26 -0
- package/dist/skill-auditor.js +184 -0
- package/dist/skill-catalog.d.ts +60 -0
- package/dist/skill-catalog.js +305 -0
- package/dist/status-events.d.ts +40 -0
- package/dist/status-events.js +269 -0
- package/dist/store/ace-packed-store.d.ts +69 -0
- package/dist/store/ace-packed-store.js +434 -0
- package/dist/store/bootstrap-store.d.ts +46 -0
- package/dist/store/bootstrap-store.js +242 -0
- package/dist/store/catalog-builder.d.ts +21 -0
- package/dist/store/catalog-builder.js +68 -0
- package/dist/store/importer.d.ts +19 -0
- package/dist/store/importer.js +157 -0
- package/dist/store/knowledge-bake.d.ts +59 -0
- package/dist/store/knowledge-bake.js +339 -0
- package/dist/store/materializers/hook-context-materializer.d.ts +25 -0
- package/dist/store/materializers/hook-context-materializer.js +100 -0
- package/dist/store/materializers/host-file-materializer.d.ts +37 -0
- package/dist/store/materializers/host-file-materializer.js +271 -0
- package/dist/store/materializers/todo-syncer.d.ts +30 -0
- package/dist/store/materializers/todo-syncer.js +140 -0
- package/dist/store/materializers/vericify-projector.d.ts +38 -0
- package/dist/store/materializers/vericify-projector.js +239 -0
- package/dist/store/repositories/discovery-repository.d.ts +24 -0
- package/dist/store/repositories/discovery-repository.js +58 -0
- package/dist/store/repositories/handoff-repository.d.ts +31 -0
- package/dist/store/repositories/handoff-repository.js +67 -0
- package/dist/store/repositories/ledger-repository.d.ts +26 -0
- package/dist/store/repositories/ledger-repository.js +49 -0
- package/dist/store/repositories/runtime-kv-repository.d.ts +16 -0
- package/dist/store/repositories/runtime-kv-repository.js +36 -0
- package/dist/store/repositories/scheduler-repository.d.ts +50 -0
- package/dist/store/repositories/scheduler-repository.js +123 -0
- package/dist/store/repositories/session-repository.d.ts +33 -0
- package/dist/store/repositories/session-repository.js +82 -0
- package/dist/store/repositories/todo-repository.d.ts +31 -0
- package/dist/store/repositories/todo-repository.js +77 -0
- package/dist/store/repositories/tracker-repository.d.ts +25 -0
- package/dist/store/repositories/tracker-repository.js +43 -0
- package/dist/store/repositories/vericify-repository.d.ts +32 -0
- package/dist/store/repositories/vericify-repository.js +58 -0
- package/dist/store/skills-install.d.ts +28 -0
- package/dist/store/skills-install.js +86 -0
- package/dist/store/state-reader.d.ts +49 -0
- package/dist/store/state-reader.js +111 -0
- package/dist/store/store-artifacts.d.ts +12 -0
- package/dist/store/store-artifacts.js +138 -0
- package/dist/store/store-snapshot.d.ts +19 -0
- package/dist/store/store-snapshot.js +140 -0
- package/dist/store/topology-bake.d.ts +15 -0
- package/dist/store/topology-bake.js +215 -0
- package/dist/store/types.d.ts +155 -0
- package/dist/store/types.js +35 -0
- package/dist/store/workspace-snapshot.d.ts +26 -0
- package/dist/store/workspace-snapshot.js +107 -0
- package/dist/store/write-queue.d.ts +7 -0
- package/dist/store/write-queue.js +26 -0
- package/dist/todo-state.d.ts +41 -0
- package/dist/todo-state.js +399 -0
- package/dist/tools-agent.d.ts +7 -0
- package/dist/tools-agent.js +1542 -0
- package/dist/tools-discovery.d.ts +6 -0
- package/dist/tools-discovery.js +178 -0
- package/dist/tools-drift.d.ts +13 -0
- package/dist/tools-drift.js +357 -0
- package/dist/tools-files.d.ts +6 -0
- package/dist/tools-files.js +679 -0
- package/dist/tools-framework.d.ts +7 -0
- package/dist/tools-framework.js +1414 -0
- package/dist/tools-git.d.ts +6 -0
- package/dist/tools-git.js +183 -0
- package/dist/tools-handoff.d.ts +32 -0
- package/dist/tools-handoff.js +489 -0
- package/dist/tools-lifecycle.d.ts +6 -0
- package/dist/tools-lifecycle.js +205 -0
- package/dist/tools-memory.d.ts +6 -0
- package/dist/tools-memory.js +260 -0
- package/dist/tools-scheduler.d.ts +6 -0
- package/dist/tools-scheduler.js +228 -0
- package/dist/tools-skills.d.ts +3 -0
- package/dist/tools-skills.js +104 -0
- package/dist/tools-todo.d.ts +6 -0
- package/dist/tools-todo.js +154 -0
- package/dist/tools.d.ts +9 -0
- package/dist/tools.js +33 -0
- package/dist/tracker-adapters.d.ts +74 -0
- package/dist/tracker-adapters.js +776 -0
- package/dist/tracker-sync.d.ts +10 -0
- package/dist/tracker-sync.js +84 -0
- package/dist/tui/agent-runner.d.ts +137 -0
- package/dist/tui/agent-runner.js +466 -0
- package/dist/tui/agent-worker.d.ts +10 -0
- package/dist/tui/agent-worker.js +347 -0
- package/dist/tui/chat.d.ts +84 -0
- package/dist/tui/chat.js +368 -0
- package/dist/tui/commands.d.ts +57 -0
- package/dist/tui/commands.js +432 -0
- package/dist/tui/dashboard.d.ts +24 -0
- package/dist/tui/dashboard.js +110 -0
- package/dist/tui/index.d.ts +114 -0
- package/dist/tui/index.js +1059 -0
- package/dist/tui/input.d.ts +49 -0
- package/dist/tui/input.js +336 -0
- package/dist/tui/layout.d.ts +116 -0
- package/dist/tui/layout.js +367 -0
- package/dist/tui/ollama.d.ts +116 -0
- package/dist/tui/ollama.js +192 -0
- package/dist/tui/openai-compatible.d.ts +63 -0
- package/dist/tui/openai-compatible.js +370 -0
- package/dist/tui/provider-discovery.d.ts +59 -0
- package/dist/tui/provider-discovery.js +530 -0
- package/dist/tui/renderer.d.ts +166 -0
- package/dist/tui/renderer.js +304 -0
- package/dist/tui/tabs.d.ts +70 -0
- package/dist/tui/tabs.js +208 -0
- package/dist/tui/telemetry.d.ts +56 -0
- package/dist/tui/telemetry.js +106 -0
- package/dist/vericify-bridge.d.ts +146 -0
- package/dist/vericify-bridge.js +571 -0
- package/dist/vericify-context.d.ts +10 -0
- package/dist/vericify-context.js +72 -0
- package/dist/workspace-manager.d.ts +107 -0
- package/dist/workspace-manager.js +636 -0
- package/package.json +83 -0
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* knowledge-bake.ts
|
|
3
|
+
*
|
|
4
|
+
* Reads core assets from the npm package (assets/) and writes them into an
|
|
5
|
+
* open AcePackedStore. Called once at `ace init` time.
|
|
6
|
+
*
|
|
7
|
+
* Baked categories:
|
|
8
|
+
* - Agent instructions (17 agents: 4 swarm + 13 composable)
|
|
9
|
+
* - Module definitions (gates, roles, schemas)
|
|
10
|
+
* - Kernel artifacts (DIRECTIVE_KERNEL, AGENT_REGISTRY)
|
|
11
|
+
* - Static ACE state artifacts (TASK, STATUS, TEAL_CONFIG, runtime registries, etc.)
|
|
12
|
+
* - Task artifacts (role packs, handoff templates, lessons seed, todo seed)
|
|
13
|
+
* - Runtime profile seed (ACE_WORKFLOW.md)
|
|
14
|
+
* - Skills (baked at init so the store is authoritative)
|
|
15
|
+
* - Hook/bootstrap scripts used by turnkey materialization
|
|
16
|
+
*/
|
|
17
|
+
import { readdirSync, readFileSync, statSync, existsSync } from "fs";
|
|
18
|
+
import { join, relative, extname } from "path";
|
|
19
|
+
import { ContentSource, EntityKind } from "./types.js";
|
|
20
|
+
const TEXT = new TextDecoder();
|
|
21
|
+
// Map asset directory names → canonical store agent names
|
|
22
|
+
const AGENT_DIR_MAP = {
|
|
23
|
+
orchestrator: "ace-orchestrator",
|
|
24
|
+
VOS: "ace-vos",
|
|
25
|
+
UI: "ace-ui",
|
|
26
|
+
ACE_coders: "ace-coders",
|
|
27
|
+
"ACE-Init": "ace-init",
|
|
28
|
+
"agent-astgrep": "astgrep",
|
|
29
|
+
"agent-builder": "builder",
|
|
30
|
+
"agent-docs": "docs",
|
|
31
|
+
"agent-eval": "eval",
|
|
32
|
+
"agent-memory": "memory",
|
|
33
|
+
"agent-observability": "observability",
|
|
34
|
+
"agent-ops": "ops",
|
|
35
|
+
"agent-qa": "qa",
|
|
36
|
+
"agent-release": "release",
|
|
37
|
+
"agent-research": "research",
|
|
38
|
+
"agent-security": "security",
|
|
39
|
+
"agent-skeptic": "skeptic",
|
|
40
|
+
"agent-spec": "spec",
|
|
41
|
+
};
|
|
42
|
+
const MARKDOWN_EXTS = new Set([".md", ".mdc", ".txt", ".json", ".yaml", ".yml"]);
|
|
43
|
+
const STATIC_AGENT_STATE_FILES = [
|
|
44
|
+
"ACE_WORKFLOW.md",
|
|
45
|
+
"ARTIFACT_MANIFEST.json",
|
|
46
|
+
"AST_GREP_COMMANDS.md",
|
|
47
|
+
"AST_GREP_INDEX.json",
|
|
48
|
+
"AST_GREP_INDEX.md",
|
|
49
|
+
"DECISIONS.md",
|
|
50
|
+
"EVIDENCE_LOG.md",
|
|
51
|
+
"HANDOFF.json",
|
|
52
|
+
"INTERFACE_REGISTRY.md",
|
|
53
|
+
"PROVENANCE_LOG.md",
|
|
54
|
+
"QUALITY_GATES.md",
|
|
55
|
+
"RISKS.md",
|
|
56
|
+
"SCOPE.md",
|
|
57
|
+
"SKILL_CATALOG.md",
|
|
58
|
+
"STATUS.md",
|
|
59
|
+
"STATUS_EVENTS.ndjson",
|
|
60
|
+
"TASK.md",
|
|
61
|
+
"TEAL_CONFIG.md",
|
|
62
|
+
"handoff-registry.json",
|
|
63
|
+
"index-fingerprints.json",
|
|
64
|
+
"index.json",
|
|
65
|
+
"run-ledger.json",
|
|
66
|
+
"runtime-executor-sessions.json",
|
|
67
|
+
"runtime-tool-specs.json",
|
|
68
|
+
"runtime-workspaces.json",
|
|
69
|
+
"todo-state.json",
|
|
70
|
+
"tracker-snapshot.json",
|
|
71
|
+
"MODULES/registry.json",
|
|
72
|
+
"vericify/ace-bridge.json",
|
|
73
|
+
"vericify/process-posts.json",
|
|
74
|
+
];
|
|
75
|
+
function readText(filePath) {
|
|
76
|
+
return readFileSync(filePath, "utf8");
|
|
77
|
+
}
|
|
78
|
+
function walkDir(dir) {
|
|
79
|
+
const results = [];
|
|
80
|
+
if (!existsSync(dir))
|
|
81
|
+
return results;
|
|
82
|
+
for (const entry of readdirSync(dir)) {
|
|
83
|
+
const full = join(dir, entry);
|
|
84
|
+
if (statSync(full).isDirectory()) {
|
|
85
|
+
results.push(...walkDir(full));
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
results.push(full);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return results;
|
|
92
|
+
}
|
|
93
|
+
// ── Agent Instructions ────────────────────────────────────────────────────────
|
|
94
|
+
export async function bakeAgentInstructions(store, assetsRoot) {
|
|
95
|
+
const aceDir = join(assetsRoot, ".agents", "ACE");
|
|
96
|
+
if (!existsSync(aceDir)) {
|
|
97
|
+
console.warn(`[knowledge-bake] .agents/ACE not found at ${aceDir}`);
|
|
98
|
+
return { agents: [], files: 0 };
|
|
99
|
+
}
|
|
100
|
+
const agents = [];
|
|
101
|
+
let fileCount = 0;
|
|
102
|
+
for (const dirEntry of readdirSync(aceDir)) {
|
|
103
|
+
const dirPath = join(aceDir, dirEntry);
|
|
104
|
+
if (!statSync(dirPath).isDirectory())
|
|
105
|
+
continue;
|
|
106
|
+
const agentName = AGENT_DIR_MAP[dirEntry] ?? dirEntry.toLowerCase().replace(/^ace[-_]?/, "");
|
|
107
|
+
agents.push(agentName);
|
|
108
|
+
for (const filePath of walkDir(dirPath)) {
|
|
109
|
+
const ext = extname(filePath);
|
|
110
|
+
if (!MARKDOWN_EXTS.has(ext))
|
|
111
|
+
continue;
|
|
112
|
+
const relPath = relative(dirPath, filePath);
|
|
113
|
+
const content = readText(filePath);
|
|
114
|
+
await store.setAgentInstruction(agentName, relPath, content, ContentSource.Package);
|
|
115
|
+
fileCount++;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
// Kernel artifacts live directly in aceDir (not in agent subdirs)
|
|
119
|
+
const kernelFiles = ["DIRECTIVE_KERNEL.md", "AGENT_REGISTRY.md", "AGENT_REGISTRY_7.md"];
|
|
120
|
+
for (const kf of kernelFiles) {
|
|
121
|
+
const kfPath = join(aceDir, kf);
|
|
122
|
+
if (!existsSync(kfPath))
|
|
123
|
+
continue;
|
|
124
|
+
const content = readText(kfPath);
|
|
125
|
+
const key = `knowledge/kernel/${kf}`;
|
|
126
|
+
await store.setBlob(key, content);
|
|
127
|
+
await store.appendEntry({
|
|
128
|
+
kind: EntityKind.KernelArtifact,
|
|
129
|
+
content_source: ContentSource.Package,
|
|
130
|
+
key,
|
|
131
|
+
payload: { file: kf, length: content.length },
|
|
132
|
+
});
|
|
133
|
+
fileCount++;
|
|
134
|
+
}
|
|
135
|
+
console.log(`[knowledge-bake] agents: baked ${agents.length} agents, ${fileCount} files`);
|
|
136
|
+
return { agents, files: fileCount };
|
|
137
|
+
}
|
|
138
|
+
// ── Module Definitions (Gates, Roles, Schemas) ────────────────────────────────
|
|
139
|
+
export async function bakeModules(store, assetsRoot) {
|
|
140
|
+
const modulesDir = join(assetsRoot, "agent-state", "MODULES");
|
|
141
|
+
if (!existsSync(modulesDir)) {
|
|
142
|
+
console.warn(`[knowledge-bake] MODULES not found at ${modulesDir}`);
|
|
143
|
+
return { gates: 0, roles: 0, schemas: 0 };
|
|
144
|
+
}
|
|
145
|
+
let gates = 0, roles = 0, schemas = 0;
|
|
146
|
+
// Gates
|
|
147
|
+
const gatesDir = join(modulesDir, "gates");
|
|
148
|
+
if (existsSync(gatesDir)) {
|
|
149
|
+
for (const file of readdirSync(gatesDir)) {
|
|
150
|
+
const filePath = join(gatesDir, file);
|
|
151
|
+
if (!statSync(filePath).isFile())
|
|
152
|
+
continue;
|
|
153
|
+
const content = readText(filePath);
|
|
154
|
+
const key = `knowledge/gates/${file}`;
|
|
155
|
+
await store.setBlob(key, content);
|
|
156
|
+
await store.appendEntry({
|
|
157
|
+
kind: EntityKind.GateDefinition,
|
|
158
|
+
content_source: ContentSource.Package,
|
|
159
|
+
key,
|
|
160
|
+
payload: { file },
|
|
161
|
+
});
|
|
162
|
+
gates++;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
// Roles
|
|
166
|
+
const rolesDir = join(modulesDir, "roles");
|
|
167
|
+
if (existsSync(rolesDir)) {
|
|
168
|
+
for (const file of readdirSync(rolesDir)) {
|
|
169
|
+
const filePath = join(rolesDir, file);
|
|
170
|
+
if (!statSync(filePath).isFile())
|
|
171
|
+
continue;
|
|
172
|
+
const content = readText(filePath);
|
|
173
|
+
const key = `knowledge/roles/${file}`;
|
|
174
|
+
await store.setBlob(key, content);
|
|
175
|
+
await store.appendEntry({
|
|
176
|
+
kind: EntityKind.RoleCapability,
|
|
177
|
+
content_source: ContentSource.Package,
|
|
178
|
+
key,
|
|
179
|
+
payload: { file },
|
|
180
|
+
});
|
|
181
|
+
roles++;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
// Schemas
|
|
185
|
+
const schemasDir = join(modulesDir, "schemas");
|
|
186
|
+
if (existsSync(schemasDir)) {
|
|
187
|
+
for (const file of readdirSync(schemasDir)) {
|
|
188
|
+
const filePath = join(schemasDir, file);
|
|
189
|
+
if (!statSync(filePath).isFile())
|
|
190
|
+
continue;
|
|
191
|
+
const content = readText(filePath);
|
|
192
|
+
const key = `knowledge/schemas/${file}`;
|
|
193
|
+
await store.setBlob(key, content);
|
|
194
|
+
await store.appendEntry({
|
|
195
|
+
kind: EntityKind.SchemaDefinition,
|
|
196
|
+
content_source: ContentSource.Package,
|
|
197
|
+
key,
|
|
198
|
+
payload: { file },
|
|
199
|
+
});
|
|
200
|
+
schemas++;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
console.log(`[knowledge-bake] modules: ${gates} gates, ${roles} roles, ${schemas} schemas`);
|
|
204
|
+
return { gates, roles, schemas };
|
|
205
|
+
}
|
|
206
|
+
// ── Static state artifacts + runtime profile ─────────────────────────────────
|
|
207
|
+
export async function bakeStaticStateArtifacts(store, assetsRoot) {
|
|
208
|
+
const agentStateDir = join(assetsRoot, "agent-state");
|
|
209
|
+
if (!existsSync(agentStateDir)) {
|
|
210
|
+
return 0;
|
|
211
|
+
}
|
|
212
|
+
let count = 0;
|
|
213
|
+
for (const relPath of STATIC_AGENT_STATE_FILES) {
|
|
214
|
+
const filePath = join(agentStateDir, relPath);
|
|
215
|
+
if (!existsSync(filePath) || !statSync(filePath).isFile())
|
|
216
|
+
continue;
|
|
217
|
+
const content = readText(filePath);
|
|
218
|
+
const key = `knowledge/agent-state/${relPath.replace(/\\/g, "/")}`;
|
|
219
|
+
await store.setBlob(key, content);
|
|
220
|
+
await store.appendEntry({
|
|
221
|
+
kind: EntityKind.DomainDocument,
|
|
222
|
+
content_source: ContentSource.Package,
|
|
223
|
+
key,
|
|
224
|
+
payload: { file: relPath, length: content.length },
|
|
225
|
+
});
|
|
226
|
+
count++;
|
|
227
|
+
}
|
|
228
|
+
return count;
|
|
229
|
+
}
|
|
230
|
+
// ── Scripts ──────────────────────────────────────────────────────────────────
|
|
231
|
+
export async function bakeScripts(store, assetsRoot) {
|
|
232
|
+
const scriptsDir = join(assetsRoot, "scripts");
|
|
233
|
+
if (!existsSync(scriptsDir))
|
|
234
|
+
return 0;
|
|
235
|
+
let count = 0;
|
|
236
|
+
for (const filePath of walkDir(scriptsDir)) {
|
|
237
|
+
if (!statSync(filePath).isFile())
|
|
238
|
+
continue;
|
|
239
|
+
const relPath = relative(scriptsDir, filePath).replace(/\\/g, "/");
|
|
240
|
+
const content = readText(filePath);
|
|
241
|
+
const key = `knowledge/scripts/${relPath}`;
|
|
242
|
+
await store.setBlob(key, content);
|
|
243
|
+
await store.appendEntry({
|
|
244
|
+
kind: EntityKind.DomainDocument,
|
|
245
|
+
content_source: ContentSource.Package,
|
|
246
|
+
key,
|
|
247
|
+
payload: { file: relPath, length: content.length },
|
|
248
|
+
});
|
|
249
|
+
count++;
|
|
250
|
+
}
|
|
251
|
+
console.log(`[knowledge-bake] scripts: ${count} files baked`);
|
|
252
|
+
return count;
|
|
253
|
+
}
|
|
254
|
+
// ── Task artifacts + runtime profile ─────────────────────────────────────────
|
|
255
|
+
export async function bakeTaskArtifacts(store, assetsRoot) {
|
|
256
|
+
const tasksDir = join(assetsRoot, "tasks");
|
|
257
|
+
let tasks = 0;
|
|
258
|
+
const state = await bakeStaticStateArtifacts(store, assetsRoot);
|
|
259
|
+
if (existsSync(tasksDir)) {
|
|
260
|
+
for (const file of readdirSync(tasksDir)) {
|
|
261
|
+
const filePath = join(tasksDir, file);
|
|
262
|
+
if (!statSync(filePath).isFile())
|
|
263
|
+
continue;
|
|
264
|
+
const content = readText(filePath);
|
|
265
|
+
const key = `knowledge/tasks/${file}`;
|
|
266
|
+
await store.setBlob(key, content);
|
|
267
|
+
await store.appendEntry({
|
|
268
|
+
kind: EntityKind.DomainDocument,
|
|
269
|
+
content_source: ContentSource.Package,
|
|
270
|
+
key,
|
|
271
|
+
payload: { file, length: content.length },
|
|
272
|
+
});
|
|
273
|
+
tasks++;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
let runtime = 0;
|
|
277
|
+
const runtimeProfilePath = join(assetsRoot, "agent-state", "ACE_WORKFLOW.md");
|
|
278
|
+
if (existsSync(runtimeProfilePath)) {
|
|
279
|
+
const content = readText(runtimeProfilePath);
|
|
280
|
+
const key = "knowledge/runtime/ACE_WORKFLOW.md";
|
|
281
|
+
await store.setBlob(key, content);
|
|
282
|
+
await store.appendEntry({
|
|
283
|
+
kind: EntityKind.DomainDocument,
|
|
284
|
+
content_source: ContentSource.Package,
|
|
285
|
+
key,
|
|
286
|
+
payload: { file: "ACE_WORKFLOW.md", length: content.length },
|
|
287
|
+
});
|
|
288
|
+
runtime = 1;
|
|
289
|
+
}
|
|
290
|
+
console.log(`[knowledge-bake] tasks: ${tasks} task artifacts, ${runtime} runtime profile`);
|
|
291
|
+
console.log(`[knowledge-bake] static state artifacts: ${state}`);
|
|
292
|
+
return { state, tasks, runtime };
|
|
293
|
+
}
|
|
294
|
+
// ── Skills ───────────────────────────────────────────────────────────────────
|
|
295
|
+
export async function bakeSkillPack(store, assetsRoot, skillName) {
|
|
296
|
+
const skillDir = join(assetsRoot, ".agents", "skills", skillName);
|
|
297
|
+
if (!existsSync(skillDir)) {
|
|
298
|
+
throw new Error(`[knowledge-bake] skill pack not found: ${skillName} at ${skillDir}`);
|
|
299
|
+
}
|
|
300
|
+
let fileCount = 0;
|
|
301
|
+
for (const filePath of walkDir(skillDir)) {
|
|
302
|
+
const ext = extname(filePath);
|
|
303
|
+
if (!MARKDOWN_EXTS.has(ext))
|
|
304
|
+
continue;
|
|
305
|
+
const relPath = relative(skillDir, filePath);
|
|
306
|
+
const content = readText(filePath);
|
|
307
|
+
await store.setSkillContent(skillName, relPath, content, ContentSource.Package);
|
|
308
|
+
fileCount++;
|
|
309
|
+
}
|
|
310
|
+
console.log(`[knowledge-bake] skill ${skillName}: ${fileCount} files baked`);
|
|
311
|
+
return fileCount;
|
|
312
|
+
}
|
|
313
|
+
export async function listAvailableSkills(assetsRoot) {
|
|
314
|
+
const skillsDir = join(assetsRoot, ".agents", "skills");
|
|
315
|
+
if (!existsSync(skillsDir))
|
|
316
|
+
return [];
|
|
317
|
+
return readdirSync(skillsDir).filter((d) => statSync(join(skillsDir, d)).isDirectory());
|
|
318
|
+
}
|
|
319
|
+
// ── Full bake (called from bootstrapAceWorkspace) ─────────────────────────────
|
|
320
|
+
export async function bakeAllCoreKnowledge(store, assetsRoot) {
|
|
321
|
+
const agents = await bakeAgentInstructions(store, assetsRoot);
|
|
322
|
+
const modules = await bakeModules(store, assetsRoot);
|
|
323
|
+
const taskArtifacts = await bakeTaskArtifacts(store, assetsRoot);
|
|
324
|
+
let skillsCount = 0;
|
|
325
|
+
let skillFiles = 0;
|
|
326
|
+
const scripts = await bakeScripts(store, assetsRoot);
|
|
327
|
+
for (const skillName of await listAvailableSkills(assetsRoot)) {
|
|
328
|
+
skillFiles += await bakeSkillPack(store, assetsRoot, skillName);
|
|
329
|
+
skillsCount++;
|
|
330
|
+
}
|
|
331
|
+
return {
|
|
332
|
+
agents,
|
|
333
|
+
modules,
|
|
334
|
+
taskArtifacts,
|
|
335
|
+
skills: { count: skillsCount, files: skillFiles },
|
|
336
|
+
scripts: { count: scripts },
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
//# sourceMappingURL=knowledge-bake.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HookContextMaterializer
|
|
3
|
+
*
|
|
4
|
+
* Writes .agents/ACE/ace-hook-context.json from store state.
|
|
5
|
+
* Called at every session start, prompt submit, and tool gating change.
|
|
6
|
+
*
|
|
7
|
+
* The hook dispatcher (ace-hook-dispatch.mjs) reads ONLY this file.
|
|
8
|
+
* It never touches the .zarr store directly.
|
|
9
|
+
*/
|
|
10
|
+
import { AcePackedStore } from "../ace-packed-store.js";
|
|
11
|
+
export declare class HookContextMaterializer {
|
|
12
|
+
private store;
|
|
13
|
+
private workspaceRoot;
|
|
14
|
+
private kv;
|
|
15
|
+
constructor(store: AcePackedStore, workspaceRoot: string);
|
|
16
|
+
private contextPath;
|
|
17
|
+
materialize(): Promise<void>;
|
|
18
|
+
private _readContent;
|
|
19
|
+
private _readKernelWorkflow;
|
|
20
|
+
private _getEnabledAgents;
|
|
21
|
+
private _buildGateMap;
|
|
22
|
+
/** Update a runtime content field (task, status, scope, etc.) */
|
|
23
|
+
setContent(kind: string, content: string): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=hook-context-materializer.d.ts.map
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HookContextMaterializer
|
|
3
|
+
*
|
|
4
|
+
* Writes .agents/ACE/ace-hook-context.json from store state.
|
|
5
|
+
* Called at every session start, prompt submit, and tool gating change.
|
|
6
|
+
*
|
|
7
|
+
* The hook dispatcher (ace-hook-dispatch.mjs) reads ONLY this file.
|
|
8
|
+
* It never touches the .zarr store directly.
|
|
9
|
+
*/
|
|
10
|
+
import { writeFileSync, mkdirSync, existsSync } from "fs";
|
|
11
|
+
import { join, dirname } from "path";
|
|
12
|
+
import { RuntimeKVRepository } from "../repositories/runtime-kv-repository.js";
|
|
13
|
+
function fnv1a(s) {
|
|
14
|
+
let h = 2166136261;
|
|
15
|
+
for (let i = 0; i < s.length; i++) {
|
|
16
|
+
h ^= s.charCodeAt(i);
|
|
17
|
+
h = Math.imul(h, 16777619) >>> 0;
|
|
18
|
+
}
|
|
19
|
+
return (h >>> 0).toString(16);
|
|
20
|
+
}
|
|
21
|
+
export class HookContextMaterializer {
|
|
22
|
+
store;
|
|
23
|
+
workspaceRoot;
|
|
24
|
+
kv;
|
|
25
|
+
constructor(store, workspaceRoot) {
|
|
26
|
+
this.store = store;
|
|
27
|
+
this.workspaceRoot = workspaceRoot;
|
|
28
|
+
this.kv = new RuntimeKVRepository(store);
|
|
29
|
+
}
|
|
30
|
+
contextPath() {
|
|
31
|
+
return join(this.workspaceRoot, ".agents", "ACE", "ace-hook-context.json");
|
|
32
|
+
}
|
|
33
|
+
async materialize() {
|
|
34
|
+
const task = await this._readContent("task");
|
|
35
|
+
const status = await this._readContent("status");
|
|
36
|
+
const scope = await this._readContent("scope");
|
|
37
|
+
const evidence = await this._readContent("evidence_log");
|
|
38
|
+
const workflow = await this._readKernelWorkflow();
|
|
39
|
+
const enabledAgents = await this._getEnabledAgents();
|
|
40
|
+
const gatedTools = await this._buildGateMap();
|
|
41
|
+
const snapshot = {
|
|
42
|
+
schema_version: 1,
|
|
43
|
+
generated_at: new Date().toISOString(),
|
|
44
|
+
task: { content: task, hash: fnv1a(task) },
|
|
45
|
+
status: { content: status, hash: fnv1a(status) },
|
|
46
|
+
scope: { content: scope, hash: fnv1a(scope) },
|
|
47
|
+
evidence_log: { content: evidence, hash: fnv1a(evidence) },
|
|
48
|
+
workflow: { content: workflow, hash: fnv1a(workflow) },
|
|
49
|
+
active_agents: enabledAgents,
|
|
50
|
+
gated_tools: gatedTools,
|
|
51
|
+
};
|
|
52
|
+
const contextPath = this.contextPath();
|
|
53
|
+
const dir = dirname(contextPath);
|
|
54
|
+
if (!existsSync(dir))
|
|
55
|
+
mkdirSync(dir, { recursive: true });
|
|
56
|
+
writeFileSync(contextPath, JSON.stringify(snapshot, null, 2), "utf8");
|
|
57
|
+
}
|
|
58
|
+
async _readContent(kind) {
|
|
59
|
+
// Try KV first (runtime overrides), then store blobs, then empty
|
|
60
|
+
const kv = await this.kv.getString(`context/${kind}`);
|
|
61
|
+
if (kv)
|
|
62
|
+
return kv;
|
|
63
|
+
const blob = await this.store.getBlob(`state/runtime/${kind}`);
|
|
64
|
+
if (blob)
|
|
65
|
+
return blob;
|
|
66
|
+
const fallback = {
|
|
67
|
+
task: "knowledge/agent-state/TASK.md",
|
|
68
|
+
status: "knowledge/agent-state/STATUS.md",
|
|
69
|
+
scope: "knowledge/agent-state/SCOPE.md",
|
|
70
|
+
evidence_log: "knowledge/agent-state/EVIDENCE_LOG.md",
|
|
71
|
+
};
|
|
72
|
+
const fallbackKey = fallback[kind];
|
|
73
|
+
return fallbackKey ? (await this.store.getBlob(fallbackKey)) ?? "" : "";
|
|
74
|
+
}
|
|
75
|
+
async _readKernelWorkflow() {
|
|
76
|
+
return ((await this.store.getBlob("knowledge/runtime/ACE_WORKFLOW.md")) ??
|
|
77
|
+
(await this.store.getBlob("knowledge/agent-state/ACE_WORKFLOW.md")) ??
|
|
78
|
+
(await this.store.getBlob("knowledge/kernel/ACE_WORKFLOW.md")) ??
|
|
79
|
+
"");
|
|
80
|
+
}
|
|
81
|
+
async _getEnabledAgents() {
|
|
82
|
+
const entries = await this.store.getTopology("agent_enablement");
|
|
83
|
+
return entries
|
|
84
|
+
.filter((e) => e.value.enabled)
|
|
85
|
+
.map((e) => e.key);
|
|
86
|
+
}
|
|
87
|
+
async _buildGateMap() {
|
|
88
|
+
// Read gate definitions from store
|
|
89
|
+
const gatedTools = {};
|
|
90
|
+
// All tools are allowed by default; gates can restrict
|
|
91
|
+
// Specific gate logic would read knowledge/gates/* and apply rules
|
|
92
|
+
return gatedTools;
|
|
93
|
+
}
|
|
94
|
+
/** Update a runtime content field (task, status, scope, etc.) */
|
|
95
|
+
async setContent(kind, content) {
|
|
96
|
+
await this.kv.setString(`context/${kind}`, content);
|
|
97
|
+
await this.materialize();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=hook-context-materializer.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostFileMaterializer
|
|
3
|
+
*
|
|
4
|
+
* Writes the minimal host-facing shim files that must remain on disk because
|
|
5
|
+
* external tools do not read the ACE store directly.
|
|
6
|
+
*
|
|
7
|
+
* The store remains authoritative. These files are projections only.
|
|
8
|
+
*/
|
|
9
|
+
import { AcePackedStore } from "../ace-packed-store.js";
|
|
10
|
+
export interface HostMaterializeOptions {
|
|
11
|
+
mcpServerPath?: string;
|
|
12
|
+
includeMcpConfig?: boolean;
|
|
13
|
+
includeClientConfigBundle?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class HostFileMaterializer {
|
|
16
|
+
private store;
|
|
17
|
+
private workspaceRoot;
|
|
18
|
+
private packageName;
|
|
19
|
+
constructor(store: AcePackedStore, workspaceRoot: string, packageName?: string);
|
|
20
|
+
private ace;
|
|
21
|
+
private root;
|
|
22
|
+
private hostKey;
|
|
23
|
+
private materializeProjectedText;
|
|
24
|
+
private seedProjectedText;
|
|
25
|
+
private materializeEntry;
|
|
26
|
+
private buildInstructionShimEntries;
|
|
27
|
+
private buildHookFileEntries;
|
|
28
|
+
private buildOptionalHookBundleEntries;
|
|
29
|
+
private buildScriptEntries;
|
|
30
|
+
private buildWorkspaceScriptEntries;
|
|
31
|
+
private buildMcpBundleEntries;
|
|
32
|
+
private buildVsCodeMcpEntry;
|
|
33
|
+
private buildAllProjectedEntries;
|
|
34
|
+
seedStorePayload(): Promise<void>;
|
|
35
|
+
materializeAll(opts?: HostMaterializeOptions): Promise<string[]>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=host-file-materializer.d.ts.map
|