@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.
- package/CHANGELOG.md +16 -0
- package/README.md +502 -56
- package/assets/.agents/ACE/agent-qa/instructions.md +11 -0
- package/assets/agent-state/MODULES/schemas/RUNTIME_TOOL_SPEC_REGISTRY.schema.json +43 -0
- 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/dist/ace-context.js +70 -11
- package/dist/ace-internal-tools.d.ts +3 -1
- package/dist/ace-internal-tools.js +10 -2
- 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 +48 -0
- package/dist/astgrep-index.js +126 -1
- package/dist/cli.js +487 -17
- package/dist/discovery-runtime-wrappers.d.ts +108 -0
- package/dist/discovery-runtime-wrappers.js +615 -0
- package/dist/helpers/bootstrap.js +1 -1
- package/dist/helpers/constants.d.ts +4 -2
- package/dist/helpers/constants.js +8 -0
- package/dist/helpers/path-utils.d.ts +8 -1
- package/dist/helpers/path-utils.js +27 -8
- package/dist/helpers/store-resolution.js +7 -3
- package/dist/hermes/bridge-protocol.d.ts +41 -0
- package/dist/hermes/bridge-protocol.js +70 -0
- package/dist/hermes/launch-profile.d.ts +19 -0
- package/dist/hermes/launch-profile.js +81 -0
- package/dist/hermes/session-manager.d.ts +42 -0
- package/dist/hermes/session-manager.js +187 -0
- package/dist/job-scheduler.js +30 -4
- 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 +17 -0
- package/dist/local-model-runtime.js +77 -20
- package/dist/model-bridge.d.ts +6 -1
- package/dist/model-bridge.js +338 -21
- package/dist/orchestrator-supervisor.d.ts +42 -0
- package/dist/orchestrator-supervisor.js +110 -3
- package/dist/plan-proposal.d.ts +115 -0
- package/dist/plan-proposal.js +1073 -0
- package/dist/runtime-executor.d.ts +6 -1
- package/dist/runtime-executor.js +72 -5
- package/dist/runtime-tool-specs.d.ts +19 -1
- package/dist/runtime-tool-specs.js +67 -26
- package/dist/schemas.js +30 -1
- package/dist/server.d.ts +3 -0
- package/dist/server.js +73 -4
- package/dist/shared.d.ts +1 -0
- package/dist/shared.js +2 -0
- package/dist/store/bootstrap-store.d.ts +1 -0
- package/dist/store/bootstrap-store.js +8 -2
- package/dist/store/materializers/vericify-projector.js +3 -0
- package/dist/store/repositories/local-model-runtime-repository.d.ts +13 -1
- package/dist/store/repositories/local-model-runtime-repository.js +4 -1
- package/dist/store/repositories/vericify-repository.d.ts +1 -1
- package/dist/tools-agent.d.ts +20 -0
- package/dist/tools-agent.js +544 -29
- package/dist/tools-discovery.js +135 -0
- package/dist/tools-files.js +768 -66
- package/dist/tools-framework.js +80 -61
- package/dist/tools.d.ts +4 -1
- package/dist/tools.js +35 -13
- package/dist/tui/chat.d.ts +8 -0
- package/dist/tui/chat.js +74 -0
- package/dist/tui/index.d.ts +7 -0
- package/dist/tui/index.js +45 -2
- package/dist/tui/layout.d.ts +1 -0
- package/dist/tui/layout.js +4 -1
- 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 +50 -24
- package/dist/vericify-bridge.d.ts +4 -1
- package/dist/vericify-bridge.js +3 -0
- package/package.json +2 -1
- 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>;
|
package/dist/tools-agent.d.ts
CHANGED
|
@@ -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
|