@fusionkit/protocol 0.1.8 → 0.2.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.
@@ -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:955da2d6891c88d4c40746a8206439e2dae2efc1e7ffefca015e84d4ce265671";
3
+ export declare const MODEL_FUSION_SCHEMA_BUNDLE_HASH = "sha256:aae33b89a771fd5916e21bfffc5993d2d7ef98ecfc8542ba9570a8c99074d541";
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";
@@ -13,7 +13,7 @@ export type ModelFusionChatRole = "system" | "user" | "assistant" | "tool";
13
13
  export type BenchmarkTaskKind = "model_fusion" | "harness_coding";
14
14
  export type BenchmarkSourceRepo = "fusionkit" | "handoffkit" | "cursorkit" | "mlx-lm";
15
15
  export type BenchmarkScorerKind = "exact" | "contains" | "record_join" | "custom";
16
- export type JudgeSynthesisDecision = "synthesize" | "select_candidate" | "repair_required" | "failed";
16
+ export type JudgeSynthesisDecision = "synthesize" | "select_trajectory" | "repair_required" | "failed";
17
17
  export type ContractMetadataV1<S extends ModelFusionSchemaName> = {
18
18
  schema: S;
19
19
  schema_version: "v1";
@@ -106,10 +106,10 @@ export type HarnessCandidateRecordV1 = ContractMetadataV1<"harness-candidate-rec
106
106
  export type JudgeSynthesisRecordV1 = ContractMetadataV1<"judge-synthesis-record.v1"> & {
107
107
  synthesis_id: string;
108
108
  judge_model_call_id?: string;
109
- input_candidate_ids: string[];
109
+ input_trajectory_ids: string[];
110
110
  status: ModelFusionStatus;
111
111
  decision: JudgeSynthesisDecision;
112
- selected_candidate_id?: string;
112
+ selected_trajectory_id?: string;
113
113
  rationale?: string;
114
114
  final_output: string;
115
115
  score?: number;
@@ -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:955da2d6891c88d4c40746a8206439e2dae2efc1e7ffefca015e84d4ce265671";
13
+ export const MODEL_FUSION_SCHEMA_BUNDLE_HASH = "sha256:aae33b89a771fd5916e21bfffc5993d2d7ef98ecfc8542ba9570a8c99074d541";
14
14
  const HASH_PATTERN = /^sha256:[a-f0-9]{64}$/;
15
15
  const GIT_SHA_PATTERN = /^[a-f0-9]{40}$/;
16
16
  const STATUSES = [
@@ -76,7 +76,7 @@ const BENCHMARK_SOURCE_REPOS = ["fusionkit", "handoffkit", "cursorkit", "mlx-lm"
76
76
  const BENCHMARK_SCORER_KINDS = ["exact", "contains", "record_join", "custom"];
77
77
  const JUDGE_DECISIONS = [
78
78
  "synthesize",
79
- "select_candidate",
79
+ "select_trajectory",
80
80
  "repair_required",
81
81
  "failed"
82
82
  ];
@@ -420,10 +420,10 @@ export function assertJudgeSynthesisRecordV1(value) {
420
420
  "created_at",
421
421
  "synthesis_id",
422
422
  "judge_model_call_id",
423
- "input_candidate_ids",
423
+ "input_trajectory_ids",
424
424
  "status",
425
425
  "decision",
426
- "selected_candidate_id",
426
+ "selected_trajectory_id",
427
427
  "rationale",
428
428
  "final_output",
429
429
  "score",
@@ -432,10 +432,10 @@ export function assertJudgeSynthesisRecordV1(value) {
432
432
  assertMetadata(value, "judge-synthesis-record.v1");
433
433
  assertString(value.synthesis_id, "synthesis_id");
434
434
  assertOptionalString(value.judge_model_call_id, "judge_model_call_id");
435
- assertStringArray(value.input_candidate_ids, "input_candidate_ids", 1);
435
+ assertStringArray(value.input_trajectory_ids, "input_trajectory_ids", 1);
436
436
  assertStatus(value.status, "status");
437
437
  assertEnum(value.decision, JUDGE_DECISIONS, "decision");
438
- assertOptionalString(value.selected_candidate_id, "selected_candidate_id");
438
+ assertOptionalString(value.selected_trajectory_id, "selected_trajectory_id");
439
439
  assertOptionalString(value.rationale, "rationale");
440
440
  assertString(value.final_output, "final_output");
441
441
  assertOptionalNumber(value.score, "score");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusionkit/protocol",
3
3
  "private": false,
4
- "version": "0.1.8",
4
+ "version": "0.2.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/velum-labs/handoffkit.git",