@fusionkit/protocol 0.1.8 → 0.3.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/dist/model-fusion.d.ts +4 -4
- package/dist/model-fusion.js +6 -6
- package/package.json +1 -1
package/dist/model-fusion.d.ts
CHANGED
|
@@ -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:
|
|
3
|
+
export declare const MODEL_FUSION_SCHEMA_BUNDLE_HASH = "sha256:3e8388595aefc8e82962d76e822c514db6552f6ee65e62d487534ef825ad87b8";
|
|
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" | "
|
|
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
|
-
|
|
109
|
+
input_trajectory_ids: string[];
|
|
110
110
|
status: ModelFusionStatus;
|
|
111
111
|
decision: JudgeSynthesisDecision;
|
|
112
|
-
|
|
112
|
+
selected_trajectory_id?: string;
|
|
113
113
|
rationale?: string;
|
|
114
114
|
final_output: string;
|
|
115
115
|
score?: number;
|
package/dist/model-fusion.js
CHANGED
|
@@ -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:
|
|
13
|
+
export const MODEL_FUSION_SCHEMA_BUNDLE_HASH = "sha256:3e8388595aefc8e82962d76e822c514db6552f6ee65e62d487534ef825ad87b8";
|
|
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
|
-
"
|
|
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
|
-
"
|
|
423
|
+
"input_trajectory_ids",
|
|
424
424
|
"status",
|
|
425
425
|
"decision",
|
|
426
|
-
"
|
|
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.
|
|
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.
|
|
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");
|