@voybio/ace-swarm 2.4.0 → 2.4.2

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.
Files changed (80) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +502 -56
  3. package/assets/.agents/ACE/agent-qa/instructions.md +11 -0
  4. package/assets/agent-state/MODULES/schemas/RUNTIME_TOOL_SPEC_REGISTRY.schema.json +43 -0
  5. package/assets/agent-state/runtime-tool-specs.json +70 -2
  6. package/assets/instructions/ACE_Coder.instructions.md +13 -0
  7. package/assets/instructions/ACE_UI.instructions.md +11 -0
  8. package/dist/ace-context.js +70 -11
  9. package/dist/ace-internal-tools.d.ts +3 -1
  10. package/dist/ace-internal-tools.js +10 -2
  11. package/dist/agent-runtime/role-adapters.d.ts +18 -1
  12. package/dist/agent-runtime/role-adapters.js +49 -5
  13. package/dist/astgrep-index.d.ts +48 -0
  14. package/dist/astgrep-index.js +126 -1
  15. package/dist/cli.js +487 -17
  16. package/dist/discovery-runtime-wrappers.d.ts +108 -0
  17. package/dist/discovery-runtime-wrappers.js +615 -0
  18. package/dist/helpers/bootstrap.js +1 -1
  19. package/dist/helpers/constants.d.ts +4 -2
  20. package/dist/helpers/constants.js +8 -0
  21. package/dist/helpers/path-utils.d.ts +8 -1
  22. package/dist/helpers/path-utils.js +27 -8
  23. package/dist/helpers/store-resolution.js +7 -3
  24. package/dist/hermes/bridge-protocol.d.ts +41 -0
  25. package/dist/hermes/bridge-protocol.js +70 -0
  26. package/dist/hermes/launch-profile.d.ts +19 -0
  27. package/dist/hermes/launch-profile.js +81 -0
  28. package/dist/hermes/session-manager.d.ts +42 -0
  29. package/dist/hermes/session-manager.js +187 -0
  30. package/dist/job-scheduler.js +30 -4
  31. package/dist/json-sanitizer.d.ts +16 -0
  32. package/dist/json-sanitizer.js +26 -0
  33. package/dist/local-model-policy.d.ts +27 -0
  34. package/dist/local-model-policy.js +84 -0
  35. package/dist/local-model-runtime.d.ts +17 -0
  36. package/dist/local-model-runtime.js +77 -20
  37. package/dist/model-bridge.d.ts +6 -1
  38. package/dist/model-bridge.js +338 -21
  39. package/dist/orchestrator-supervisor.d.ts +42 -0
  40. package/dist/orchestrator-supervisor.js +110 -3
  41. package/dist/plan-proposal.d.ts +115 -0
  42. package/dist/plan-proposal.js +1073 -0
  43. package/dist/runtime-executor.d.ts +6 -1
  44. package/dist/runtime-executor.js +72 -5
  45. package/dist/runtime-tool-specs.d.ts +19 -1
  46. package/dist/runtime-tool-specs.js +67 -26
  47. package/dist/schemas.js +30 -1
  48. package/dist/server.d.ts +3 -0
  49. package/dist/server.js +73 -4
  50. package/dist/shared.d.ts +1 -0
  51. package/dist/shared.js +2 -0
  52. package/dist/store/bootstrap-store.d.ts +1 -0
  53. package/dist/store/bootstrap-store.js +8 -2
  54. package/dist/store/materializers/vericify-projector.js +3 -0
  55. package/dist/store/repositories/local-model-runtime-repository.d.ts +13 -1
  56. package/dist/store/repositories/local-model-runtime-repository.js +4 -1
  57. package/dist/store/repositories/vericify-repository.d.ts +1 -1
  58. package/dist/tools-agent.d.ts +20 -0
  59. package/dist/tools-agent.js +544 -29
  60. package/dist/tools-discovery.js +135 -0
  61. package/dist/tools-files.js +768 -66
  62. package/dist/tools-framework.js +80 -61
  63. package/dist/tools.d.ts +4 -1
  64. package/dist/tools.js +35 -13
  65. package/dist/tui/chat.d.ts +8 -0
  66. package/dist/tui/chat.js +74 -0
  67. package/dist/tui/index.d.ts +7 -0
  68. package/dist/tui/index.js +45 -2
  69. package/dist/tui/layout.d.ts +1 -0
  70. package/dist/tui/layout.js +4 -1
  71. package/dist/tui/ollama.d.ts +8 -1
  72. package/dist/tui/ollama.js +53 -12
  73. package/dist/tui/openai-compatible.d.ts +13 -0
  74. package/dist/tui/openai-compatible.js +305 -5
  75. package/dist/tui/provider-discovery.d.ts +1 -0
  76. package/dist/tui/provider-discovery.js +50 -24
  77. package/dist/vericify-bridge.d.ts +4 -1
  78. package/dist/vericify-bridge.js +3 -0
  79. package/package.json +2 -1
  80. package/scripts/hermes_bridge_worker.py +136 -0
@@ -27,6 +27,12 @@ export interface AceSessionContinuityRecord {
27
27
  recent_decisions: string[];
28
28
  recommended_next_action?: string;
29
29
  evidence_refs: string[];
30
+ execution_engine?: "direct" | "hermes_local";
31
+ underlying_provider?: string;
32
+ underlying_model?: string;
33
+ hermes_bridge_protocol_version?: string;
34
+ hermes_session_id?: string;
35
+ shadow_mcp_session_id?: string;
30
36
  last_transition_id?: string;
31
37
  }
32
38
  export interface AceRuntimeStatusPacket {
@@ -56,6 +62,12 @@ export interface AceRuntimeStatusPacket {
56
62
  tokens_in?: number;
57
63
  tokens_out?: number;
58
64
  updated_at: number;
65
+ execution_engine?: "direct" | "hermes_local";
66
+ underlying_provider?: string;
67
+ underlying_model?: string;
68
+ hermes_bridge_protocol_version?: string;
69
+ hermes_session_id?: string;
70
+ shadow_mcp_session_id?: string;
59
71
  surface_kind?: "tui_interactive" | "unattended_runtime" | "scheduled_job" | "bridge_resumed" | "supervised_step";
60
72
  model_class?: "frontier" | "mid" | "small_local";
61
73
  waiting_on?: string;
@@ -101,7 +113,7 @@ export interface AceArchivedChatRecord {
101
113
  export interface TransitionRecord {
102
114
  transition_id: string;
103
115
  session_id?: string;
104
- subject_kind: "runtime_status" | "continuity" | "plan_step" | "nudge" | "capability" | "workspace_session" | "turn" | "activation";
116
+ subject_kind: "runtime_status" | "continuity" | "plan_step" | "plan_proposal" | "nudge" | "capability" | "workspace_session" | "turn" | "activation";
105
117
  subject_id: string;
106
118
  from?: string;
107
119
  to: string;
@@ -196,6 +196,9 @@ export class LocalModelRuntimeRepository {
196
196
  session_id: record.session_id,
197
197
  bridge_status: record.bridge_status,
198
198
  preflight_state: record.preflight_state,
199
+ execution_engine: record.execution_engine,
200
+ underlying_provider: record.underlying_provider,
201
+ underlying_model: record.underlying_model,
199
202
  });
200
203
  await this.addToIndex(STATUS_INDEX_KEY, record.session_id);
201
204
  return record;
@@ -255,7 +258,7 @@ export class LocalModelRuntimeRepository {
255
258
  deduped.set(record.transition_id, record);
256
259
  }
257
260
  const kinds = [
258
- "runtime_status", "continuity", "turn", "plan_step", "capability", "workspace_session", "nudge", "activation",
261
+ "runtime_status", "continuity", "turn", "plan_step", "plan_proposal", "capability", "workspace_session", "nudge", "activation",
259
262
  ];
260
263
  for (const kind of kinds) {
261
264
  const records = await this.store.getJSON(this.transitionLogKey(kind, sessionId)) ?? [];
@@ -9,7 +9,7 @@ export interface VericifyPost {
9
9
  id: string;
10
10
  run_id: string;
11
11
  agent_id: string;
12
- kind: "intent" | "progress" | "completion" | "blocker" | "handoff_note" | "stale_ack";
12
+ kind: "intent" | "progress" | "completion" | "blocker" | "handoff_note" | "stale_ack" | "plan_proposal" | "plan_quality_assessment";
13
13
  summary: string;
14
14
  ts: number;
15
15
  metadata?: Record<string, unknown>;
@@ -2,6 +2,26 @@
2
2
  * Agent, skill, kernel, and task-pack tool registrations.
3
3
  */
4
4
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
5
+ import { type BridgeResult } from "./model-bridge.js";
6
+ import { proposePlan as proposePlanImpl, validatePlan as validatePlanImpl, loadAcceptanceTraceContract as loadAcceptanceTraceContractImpl } from "./plan-proposal.js";
7
+ import { type TaskPlan, type TaskStep } from "./orchestrator-supervisor.js";
5
8
  export type { TaskPlan, TaskStep } from "./orchestrator-supervisor.js";
9
+ export declare function formatStepTaskForBridge(step: Pick<TaskStep, "task" | "upstream_outputs">): string;
10
+ type IntentVerificationOutcome = "ok" | "revisit_step" | "replan_required";
11
+ type IntentDriftReasonCode = "contract_missing" | "contract_invalid" | "bridge_output_malformed_json" | "role_drift_ui_off_topic" | "coder_artifact_stub" | "qa_rewrote_artifact" | "artifact_mismatch" | "forbidden_pattern" | "required_evidence_missing";
12
+ interface IntentVerificationResult {
13
+ outcome: IntentVerificationOutcome;
14
+ reason: string;
15
+ reason_code?: IntentDriftReasonCode;
16
+ uncovered_clauses?: string[];
17
+ }
18
+ export { loadAcceptanceTraceContractImpl as loadAcceptanceTraceContract };
19
+ export { proposePlanImpl as proposePlan, validatePlanImpl as validatePlan };
20
+ export declare function verifyIntentAgainstContract(input: {
21
+ plan: TaskPlan;
22
+ step: TaskStep;
23
+ result: BridgeResult;
24
+ intent_contract: unknown;
25
+ }): IntentVerificationResult;
6
26
  export declare function registerAgentTools(server: McpServer): void;
7
27
  //# sourceMappingURL=tools-agent.d.ts.map