@fusionkit/protocol 0.1.3 → 0.1.5

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.
@@ -1,6 +1,6 @@
1
1
  import type { JsonValue } from "./jcs.js";
2
2
  export declare const MODEL_FUSION_SCHEMA_NAMES: readonly ["model-call-record.v1", "harness-run-request.v1", "harness-run-result.v1", "harness-candidate-record.v1", "judge-synthesis-record.v1", "benchmark-task-record.v1", "artifact-ref.v1", "tool-call-plan.v1", "tool-execution-record.v1", "ensemble-receipt.v1"];
3
- export declare const MODEL_FUSION_SCHEMA_BUNDLE_HASH = "sha256:75792f89c091b6ab4fd317a15fb03fd73438563dceff5ccf9f5d7c752dbf35f3";
3
+ export declare const MODEL_FUSION_SCHEMA_BUNDLE_HASH = "sha256:955da2d6891c88d4c40746a8206439e2dae2efc1e7ffefca015e84d4ce265671";
4
4
  export type ModelFusionSchemaName = (typeof MODEL_FUSION_SCHEMA_NAMES)[number];
5
5
  export type ModelFusionStatus = "pending" | "running" | "succeeded" | "failed" | "canceled" | "requires_action" | "skipped" | "unsupported";
6
6
  export type ModelFusionSideEffects = "none" | "read_only" | "writes_workspace" | "network" | "tool_execution" | "unknown";
@@ -10,7 +10,7 @@ export const MODEL_FUSION_SCHEMA_NAMES = [
10
10
  "tool-execution-record.v1",
11
11
  "ensemble-receipt.v1"
12
12
  ];
13
- export const MODEL_FUSION_SCHEMA_BUNDLE_HASH = "sha256:75792f89c091b6ab4fd317a15fb03fd73438563dceff5ccf9f5d7c752dbf35f3";
13
+ export const MODEL_FUSION_SCHEMA_BUNDLE_HASH = "sha256:955da2d6891c88d4c40746a8206439e2dae2efc1e7ffefca015e84d4ce265671";
14
14
  const HASH_PATTERN = /^sha256:[a-f0-9]{64}$/;
15
15
  const GIT_SHA_PATTERN = /^[a-f0-9]{40}$/;
16
16
  const STATUSES = [
@@ -57,7 +57,7 @@ test("event chain appends and verifies; tampering breaks it", () => {
57
57
  assert.equal(droppedResult.ok, false);
58
58
  });
59
59
  test("protocol vocabulary is canonical and guarded", () => {
60
- assert.deepEqual(AGENT_KINDS, ["claude-code", "codex", "pi", "mock", "command"]);
60
+ assert.deepEqual(AGENT_KINDS, ["claude-code", "codex", "cursor", "pi", "mock", "command"]);
61
61
  assert.deepEqual(SESSION_ISOLATIONS, [
62
62
  "process",
63
63
  "hermetic",
package/dist/types.d.ts CHANGED
@@ -29,9 +29,10 @@ export type SessionIsolation = "process" | "hermetic" | "vercel-sandbox";
29
29
  * a single shell command executed inside a governed session. "mock" is the
30
30
  * built-in test harness. "pi" is a host-runtime harness with no vendor CLI:
31
31
  * it runs only through the AI SDK harness session backend, never as a
32
- * spawned process. The rest are vendor CLIs wrapped as-is.
32
+ * spawned process. The rest are vendor CLIs wrapped as-is. "cursor" is the
33
+ * Cursor CLI (cursor-agent), wrapped as-is and run against a Cursorkit bridge.
33
34
  */
34
- export type AgentKind = "claude-code" | "codex" | "pi" | "mock" | "command";
35
+ export type AgentKind = "claude-code" | "codex" | "cursor" | "pi" | "mock" | "command";
35
36
  export type AgentSpec = {
36
37
  kind: AgentKind;
37
38
  version?: string;
@@ -1,7 +1,7 @@
1
1
  import type { AgentKind, RunEvent, RunStatus } from "./types.js";
2
2
  export declare const RUN_STATUSES: readonly ["created", "claimed", "provisioning", "running", "awaiting_approval", "completed", "failed", "cancelled"];
3
3
  export declare const TERMINAL_RUN_STATUSES: readonly ["completed", "failed", "cancelled"];
4
- export declare const AGENT_KINDS: readonly ["claude-code", "codex", "pi", "mock", "command"];
4
+ export declare const AGENT_KINDS: readonly ["claude-code", "codex", "cursor", "pi", "mock", "command"];
5
5
  export declare const SESSION_ISOLATIONS: readonly ["process", "hermetic", "vercel-sandbox"];
6
6
  export declare const DISCLOSURE_MODES: readonly ["none", "metadata-only", "redacted", "minimal-context", "full"];
7
7
  export declare const CHECKPOINT_TIERS: readonly ["semantic", "workspace"];
@@ -16,6 +16,7 @@ export const TERMINAL_RUN_STATUSES = [
16
16
  export const AGENT_KINDS = [
17
17
  "claude-code",
18
18
  "codex",
19
+ "cursor",
19
20
  "pi",
20
21
  "mock",
21
22
  "command"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusionkit/protocol",
3
3
  "private": false,
4
- "version": "0.1.3",
4
+ "version": "0.1.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/velum-labs/handoffkit.git",