@osovv/vv-opencode 2.4.0 → 2.6.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/CHANGELOG.md +25 -0
- package/README.md +12 -7
- package/dist/cli.js +5 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/plugin-toggle.d.ts +0 -16
- package/dist/commands/plugin-toggle.js +2 -34
- package/dist/commands/plugin-toggle.js.map +1 -1
- package/dist/commands/preset.d.ts +0 -8
- package/dist/commands/preset.js +3 -24
- package/dist/commands/preset.js.map +1 -1
- package/dist/commands/role.js +2 -30
- package/dist/commands/role.js.map +1 -1
- package/dist/commands/session.d.ts +50 -0
- package/dist/commands/session.js +354 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/lib/managed-agents.js +2 -2
- package/dist/lib/managed-agents.js.map +1 -1
- package/dist/plugins/analytics/index.js +8 -19
- package/dist/plugins/analytics/index.js.map +1 -1
- package/dist/plugins/guardian/index.js +7 -21
- package/dist/plugins/guardian/index.js.map +1 -1
- package/dist/plugins/hashline-edit/atomic-write.d.ts +49 -0
- package/dist/plugins/hashline-edit/atomic-write.js +198 -0
- package/dist/plugins/hashline-edit/atomic-write.js.map +1 -0
- package/dist/plugins/hashline-edit/index.js +60 -38
- package/dist/plugins/hashline-edit/index.js.map +1 -1
- package/dist/plugins/hashline-edit/str-replace-editor.d.ts +14 -1
- package/dist/plugins/hashline-edit/str-replace-editor.js +55 -22
- package/dist/plugins/hashline-edit/str-replace-editor.js.map +1 -1
- package/dist/plugins/hashline-edit/target-lock.d.ts +10 -0
- package/dist/plugins/hashline-edit/target-lock.js +96 -0
- package/dist/plugins/hashline-edit/target-lock.js.map +1 -0
- package/dist/plugins/model-roles/index.d.ts +3 -3
- package/dist/plugins/model-roles/index.js +8 -8
- package/dist/plugins/model-roles/index.js.map +1 -1
- package/dist/plugins/peak-hours/index.js +9 -20
- package/dist/plugins/peak-hours/index.js.map +1 -1
- package/dist/plugins/secrets-redaction/index.js +11 -24
- package/dist/plugins/secrets-redaction/index.js.map +1 -1
- package/dist/plugins/spec-guard/index.js +10 -22
- package/dist/plugins/spec-guard/index.js.map +1 -1
- package/dist/plugins/system-context-injection/guidance.d.ts +6 -0
- package/dist/plugins/system-context-injection/guidance.js +79 -0
- package/dist/plugins/system-context-injection/guidance.js.map +1 -0
- package/dist/plugins/system-context-injection/index.js +20 -121
- package/dist/plugins/system-context-injection/index.js.map +1 -1
- package/dist/plugins/tool-history-compaction/index.js +14 -25
- package/dist/plugins/tool-history-compaction/index.js.map +1 -1
- package/dist/plugins/web-tools/index.js +14 -25
- package/dist/plugins/web-tools/index.js.map +1 -1
- package/dist/plugins/workflow/index.d.ts +3 -2
- package/dist/plugins/workflow/index.js +6 -22
- package/dist/plugins/workflow/index.js.map +1 -1
- package/dist/plugins/workflow/results.d.ts +40 -40
- package/dist/runtime/auxiliary.d.ts +11 -6
- package/dist/runtime/auxiliary.js +43 -35
- package/dist/runtime/auxiliary.js.map +1 -1
- package/dist/runtime/context-inspection.d.ts +7 -6
- package/dist/runtime/context-inspection.js +37 -43
- package/dist/runtime/context-inspection.js.map +1 -1
- package/dist/runtime/context.d.ts +22 -45
- package/dist/runtime/context.js +348 -634
- package/dist/runtime/context.js.map +1 -1
- package/dist/runtime/model-registry.d.ts +3 -34
- package/dist/runtime/model-registry.js +10 -190
- package/dist/runtime/model-registry.js.map +1 -1
- package/dist/runtime/session-settings.d.ts +204 -0
- package/dist/runtime/session-settings.js +445 -0
- package/dist/runtime/session-settings.js.map +1 -0
- package/dist/runtime/snapshot-config.d.ts +7 -70
- package/dist/runtime/snapshot-config.js +16 -198
- package/dist/runtime/snapshot-config.js.map +1 -1
- package/dist/runtime/types.d.ts +15 -256
- package/dist/runtime/types.js +9 -63
- package/dist/runtime/types.js.map +1 -1
- package/dist/tui/settings/plugin.d.ts +29 -0
- package/dist/tui/settings/plugin.js +134 -0
- package/dist/tui/settings/plugin.js.map +1 -0
- package/dist/tui.js +12 -12
- package/dist/tui.js.map +1 -1
- package/package.json +1 -1
- package/schemas/vvoc/v3.json +1 -1
- package/templates/agents/vv-controller.md +176 -151
- package/templates/skills/vv-execute/references/tool-contracts.md +1 -1
- package/dist/lib/rebind-request.d.ts +0 -41
- package/dist/lib/rebind-request.js +0 -134
- package/dist/lib/rebind-request.js.map +0 -1
- package/dist/runtime/snapshot-store.d.ts +0 -63
- package/dist/runtime/snapshot-store.js +0 -668
- package/dist/runtime/snapshot-store.js.map +0 -1
- package/dist/runtime/snapshots.d.ts +0 -36
- package/dist/runtime/snapshots.js +0 -508
- package/dist/runtime/snapshots.js.map +0 -1
- package/dist/tui/rebind/plugin.d.ts +0 -22
- package/dist/tui/rebind/plugin.js +0 -101
- package/dist/tui/rebind/plugin.js.map +0 -1
|
@@ -112,8 +112,8 @@ export declare const workflowFailureSchema: z.ZodObject<{
|
|
|
112
112
|
errorCode: z.ZodString;
|
|
113
113
|
category: z.ZodEnum<{
|
|
114
114
|
input: "input";
|
|
115
|
-
state: "state";
|
|
116
115
|
authorization: "authorization";
|
|
116
|
+
state: "state";
|
|
117
117
|
internal: "internal";
|
|
118
118
|
host_context: "host_context";
|
|
119
119
|
persistence: "persistence";
|
|
@@ -306,9 +306,9 @@ declare const workItemViewSchema: z.ZodObject<{
|
|
|
306
306
|
latestAttempt: z.ZodOptional<z.ZodObject<{
|
|
307
307
|
attempt: z.ZodNumber;
|
|
308
308
|
status: z.ZodEnum<{
|
|
309
|
+
failed: "failed";
|
|
309
310
|
completed: "completed";
|
|
310
311
|
in_flight: "in_flight";
|
|
311
|
-
failed: "failed";
|
|
312
312
|
report_rejected: "report_rejected";
|
|
313
313
|
}>;
|
|
314
314
|
resultStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -372,9 +372,9 @@ declare const executionViewSchema: z.ZodObject<{
|
|
|
372
372
|
latestAttempt: z.ZodOptional<z.ZodObject<{
|
|
373
373
|
attempt: z.ZodNumber;
|
|
374
374
|
status: z.ZodEnum<{
|
|
375
|
+
failed: "failed";
|
|
375
376
|
completed: "completed";
|
|
376
377
|
in_flight: "in_flight";
|
|
377
|
-
failed: "failed";
|
|
378
378
|
report_rejected: "report_rejected";
|
|
379
379
|
}>;
|
|
380
380
|
resultStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -406,8 +406,8 @@ declare const executionViewSchema: z.ZodObject<{
|
|
|
406
406
|
generationBudget: z.ZodOptional<z.ZodNumber>;
|
|
407
407
|
remainingGenerations: z.ZodOptional<z.ZodNumber>;
|
|
408
408
|
lastOutcome: z.ZodOptional<z.ZodEnum<{
|
|
409
|
-
stale: "stale";
|
|
410
409
|
failed: "failed";
|
|
410
|
+
stale: "stale";
|
|
411
411
|
passed: "passed";
|
|
412
412
|
stopped: "stopped";
|
|
413
413
|
incomplete: "incomplete";
|
|
@@ -431,8 +431,8 @@ declare const executionViewSchema: z.ZodObject<{
|
|
|
431
431
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
432
432
|
generation: z.ZodNumber;
|
|
433
433
|
outcome: z.ZodEnum<{
|
|
434
|
-
stale: "stale";
|
|
435
434
|
failed: "failed";
|
|
435
|
+
stale: "stale";
|
|
436
436
|
passed: "passed";
|
|
437
437
|
stopped: "stopped";
|
|
438
438
|
}>;
|
|
@@ -496,8 +496,8 @@ declare const delegatedRunViewSchema: z.ZodObject<{
|
|
|
496
496
|
}>;
|
|
497
497
|
attempts: z.ZodNumber;
|
|
498
498
|
lastOutcome: z.ZodOptional<z.ZodEnum<{
|
|
499
|
-
stale: "stale";
|
|
500
499
|
failed: "failed";
|
|
500
|
+
stale: "stale";
|
|
501
501
|
passed: "passed";
|
|
502
502
|
stopped: "stopped";
|
|
503
503
|
incomplete: "incomplete";
|
|
@@ -524,8 +524,8 @@ declare const delegatedRunViewSchema: z.ZodObject<{
|
|
|
524
524
|
history: z.ZodArray<z.ZodObject<{
|
|
525
525
|
generation: z.ZodNumber;
|
|
526
526
|
outcome: z.ZodEnum<{
|
|
527
|
-
stale: "stale";
|
|
528
527
|
failed: "failed";
|
|
528
|
+
stale: "stale";
|
|
529
529
|
passed: "passed";
|
|
530
530
|
stopped: "stopped";
|
|
531
531
|
}>;
|
|
@@ -692,9 +692,9 @@ declare const workItemListViewSchema: z.ZodObject<{
|
|
|
692
692
|
latestAttempt: z.ZodOptional<z.ZodObject<{
|
|
693
693
|
attempt: z.ZodNumber;
|
|
694
694
|
status: z.ZodEnum<{
|
|
695
|
+
failed: "failed";
|
|
695
696
|
completed: "completed";
|
|
696
697
|
in_flight: "in_flight";
|
|
697
|
-
failed: "failed";
|
|
698
698
|
report_rejected: "report_rejected";
|
|
699
699
|
}>;
|
|
700
700
|
resultStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -762,8 +762,8 @@ declare const workItemListViewSchema: z.ZodObject<{
|
|
|
762
762
|
}>;
|
|
763
763
|
attempts: z.ZodNumber;
|
|
764
764
|
lastOutcome: z.ZodOptional<z.ZodEnum<{
|
|
765
|
-
stale: "stale";
|
|
766
765
|
failed: "failed";
|
|
766
|
+
stale: "stale";
|
|
767
767
|
passed: "passed";
|
|
768
768
|
stopped: "stopped";
|
|
769
769
|
incomplete: "incomplete";
|
|
@@ -790,8 +790,8 @@ declare const workItemListViewSchema: z.ZodObject<{
|
|
|
790
790
|
history: z.ZodArray<z.ZodObject<{
|
|
791
791
|
generation: z.ZodNumber;
|
|
792
792
|
outcome: z.ZodEnum<{
|
|
793
|
-
stale: "stale";
|
|
794
793
|
failed: "failed";
|
|
794
|
+
stale: "stale";
|
|
795
795
|
passed: "passed";
|
|
796
796
|
stopped: "stopped";
|
|
797
797
|
}>;
|
|
@@ -834,9 +834,9 @@ declare const workItemListViewSchema: z.ZodObject<{
|
|
|
834
834
|
latestAttempt: z.ZodOptional<z.ZodObject<{
|
|
835
835
|
attempt: z.ZodNumber;
|
|
836
836
|
status: z.ZodEnum<{
|
|
837
|
+
failed: "failed";
|
|
837
838
|
completed: "completed";
|
|
838
839
|
in_flight: "in_flight";
|
|
839
|
-
failed: "failed";
|
|
840
840
|
report_rejected: "report_rejected";
|
|
841
841
|
}>;
|
|
842
842
|
resultStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -868,8 +868,8 @@ declare const workItemListViewSchema: z.ZodObject<{
|
|
|
868
868
|
generationBudget: z.ZodOptional<z.ZodNumber>;
|
|
869
869
|
remainingGenerations: z.ZodOptional<z.ZodNumber>;
|
|
870
870
|
lastOutcome: z.ZodOptional<z.ZodEnum<{
|
|
871
|
-
stale: "stale";
|
|
872
871
|
failed: "failed";
|
|
872
|
+
stale: "stale";
|
|
873
873
|
passed: "passed";
|
|
874
874
|
stopped: "stopped";
|
|
875
875
|
incomplete: "incomplete";
|
|
@@ -893,8 +893,8 @@ declare const workItemListViewSchema: z.ZodObject<{
|
|
|
893
893
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
894
894
|
generation: z.ZodNumber;
|
|
895
895
|
outcome: z.ZodEnum<{
|
|
896
|
-
stale: "stale";
|
|
897
896
|
failed: "failed";
|
|
897
|
+
stale: "stale";
|
|
898
898
|
passed: "passed";
|
|
899
899
|
stopped: "stopped";
|
|
900
900
|
}>;
|
|
@@ -1082,9 +1082,9 @@ export declare const workflowToolResultSchemas: {
|
|
|
1082
1082
|
latestAttempt: z.ZodOptional<z.ZodObject<{
|
|
1083
1083
|
attempt: z.ZodNumber;
|
|
1084
1084
|
status: z.ZodEnum<{
|
|
1085
|
+
failed: "failed";
|
|
1085
1086
|
completed: "completed";
|
|
1086
1087
|
in_flight: "in_flight";
|
|
1087
|
-
failed: "failed";
|
|
1088
1088
|
report_rejected: "report_rejected";
|
|
1089
1089
|
}>;
|
|
1090
1090
|
resultStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1118,8 +1118,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1118
1118
|
errorCode: z.ZodString;
|
|
1119
1119
|
category: z.ZodOptional<z.ZodEnum<{
|
|
1120
1120
|
input: "input";
|
|
1121
|
-
state: "state";
|
|
1122
1121
|
authorization: "authorization";
|
|
1122
|
+
state: "state";
|
|
1123
1123
|
internal: "internal";
|
|
1124
1124
|
host_context: "host_context";
|
|
1125
1125
|
persistence: "persistence";
|
|
@@ -1171,9 +1171,9 @@ export declare const workflowToolResultSchemas: {
|
|
|
1171
1171
|
latestAttempt: z.ZodOptional<z.ZodObject<{
|
|
1172
1172
|
attempt: z.ZodNumber;
|
|
1173
1173
|
status: z.ZodEnum<{
|
|
1174
|
+
failed: "failed";
|
|
1174
1175
|
completed: "completed";
|
|
1175
1176
|
in_flight: "in_flight";
|
|
1176
|
-
failed: "failed";
|
|
1177
1177
|
report_rejected: "report_rejected";
|
|
1178
1178
|
}>;
|
|
1179
1179
|
resultStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1205,8 +1205,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1205
1205
|
generationBudget: z.ZodOptional<z.ZodNumber>;
|
|
1206
1206
|
remainingGenerations: z.ZodOptional<z.ZodNumber>;
|
|
1207
1207
|
lastOutcome: z.ZodOptional<z.ZodEnum<{
|
|
1208
|
-
stale: "stale";
|
|
1209
1208
|
failed: "failed";
|
|
1209
|
+
stale: "stale";
|
|
1210
1210
|
passed: "passed";
|
|
1211
1211
|
stopped: "stopped";
|
|
1212
1212
|
incomplete: "incomplete";
|
|
@@ -1230,8 +1230,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1230
1230
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1231
1231
|
generation: z.ZodNumber;
|
|
1232
1232
|
outcome: z.ZodEnum<{
|
|
1233
|
-
stale: "stale";
|
|
1234
1233
|
failed: "failed";
|
|
1234
|
+
stale: "stale";
|
|
1235
1235
|
passed: "passed";
|
|
1236
1236
|
stopped: "stopped";
|
|
1237
1237
|
}>;
|
|
@@ -1298,9 +1298,9 @@ export declare const workflowToolResultSchemas: {
|
|
|
1298
1298
|
latestAttempt: z.ZodOptional<z.ZodObject<{
|
|
1299
1299
|
attempt: z.ZodNumber;
|
|
1300
1300
|
status: z.ZodEnum<{
|
|
1301
|
+
failed: "failed";
|
|
1301
1302
|
completed: "completed";
|
|
1302
1303
|
in_flight: "in_flight";
|
|
1303
|
-
failed: "failed";
|
|
1304
1304
|
report_rejected: "report_rejected";
|
|
1305
1305
|
}>;
|
|
1306
1306
|
resultStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1332,8 +1332,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1332
1332
|
generationBudget: z.ZodOptional<z.ZodNumber>;
|
|
1333
1333
|
remainingGenerations: z.ZodOptional<z.ZodNumber>;
|
|
1334
1334
|
lastOutcome: z.ZodOptional<z.ZodEnum<{
|
|
1335
|
-
stale: "stale";
|
|
1336
1335
|
failed: "failed";
|
|
1336
|
+
stale: "stale";
|
|
1337
1337
|
passed: "passed";
|
|
1338
1338
|
stopped: "stopped";
|
|
1339
1339
|
incomplete: "incomplete";
|
|
@@ -1357,8 +1357,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1357
1357
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1358
1358
|
generation: z.ZodNumber;
|
|
1359
1359
|
outcome: z.ZodEnum<{
|
|
1360
|
-
stale: "stale";
|
|
1361
1360
|
failed: "failed";
|
|
1361
|
+
stale: "stale";
|
|
1362
1362
|
passed: "passed";
|
|
1363
1363
|
stopped: "stopped";
|
|
1364
1364
|
}>;
|
|
@@ -1390,8 +1390,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1390
1390
|
errorCode: z.ZodString;
|
|
1391
1391
|
category: z.ZodEnum<{
|
|
1392
1392
|
input: "input";
|
|
1393
|
-
state: "state";
|
|
1394
1393
|
authorization: "authorization";
|
|
1394
|
+
state: "state";
|
|
1395
1395
|
internal: "internal";
|
|
1396
1396
|
host_context: "host_context";
|
|
1397
1397
|
persistence: "persistence";
|
|
@@ -1588,9 +1588,9 @@ export declare const workflowToolResultSchemas: {
|
|
|
1588
1588
|
latestAttempt: z.ZodOptional<z.ZodObject<{
|
|
1589
1589
|
attempt: z.ZodNumber;
|
|
1590
1590
|
status: z.ZodEnum<{
|
|
1591
|
+
failed: "failed";
|
|
1591
1592
|
completed: "completed";
|
|
1592
1593
|
in_flight: "in_flight";
|
|
1593
|
-
failed: "failed";
|
|
1594
1594
|
report_rejected: "report_rejected";
|
|
1595
1595
|
}>;
|
|
1596
1596
|
resultStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1658,8 +1658,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1658
1658
|
}>;
|
|
1659
1659
|
attempts: z.ZodNumber;
|
|
1660
1660
|
lastOutcome: z.ZodOptional<z.ZodEnum<{
|
|
1661
|
-
stale: "stale";
|
|
1662
1661
|
failed: "failed";
|
|
1662
|
+
stale: "stale";
|
|
1663
1663
|
passed: "passed";
|
|
1664
1664
|
stopped: "stopped";
|
|
1665
1665
|
incomplete: "incomplete";
|
|
@@ -1686,8 +1686,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1686
1686
|
history: z.ZodArray<z.ZodObject<{
|
|
1687
1687
|
generation: z.ZodNumber;
|
|
1688
1688
|
outcome: z.ZodEnum<{
|
|
1689
|
-
stale: "stale";
|
|
1690
1689
|
failed: "failed";
|
|
1690
|
+
stale: "stale";
|
|
1691
1691
|
passed: "passed";
|
|
1692
1692
|
stopped: "stopped";
|
|
1693
1693
|
}>;
|
|
@@ -1730,9 +1730,9 @@ export declare const workflowToolResultSchemas: {
|
|
|
1730
1730
|
latestAttempt: z.ZodOptional<z.ZodObject<{
|
|
1731
1731
|
attempt: z.ZodNumber;
|
|
1732
1732
|
status: z.ZodEnum<{
|
|
1733
|
+
failed: "failed";
|
|
1733
1734
|
completed: "completed";
|
|
1734
1735
|
in_flight: "in_flight";
|
|
1735
|
-
failed: "failed";
|
|
1736
1736
|
report_rejected: "report_rejected";
|
|
1737
1737
|
}>;
|
|
1738
1738
|
resultStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1764,8 +1764,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1764
1764
|
generationBudget: z.ZodOptional<z.ZodNumber>;
|
|
1765
1765
|
remainingGenerations: z.ZodOptional<z.ZodNumber>;
|
|
1766
1766
|
lastOutcome: z.ZodOptional<z.ZodEnum<{
|
|
1767
|
-
stale: "stale";
|
|
1768
1767
|
failed: "failed";
|
|
1768
|
+
stale: "stale";
|
|
1769
1769
|
passed: "passed";
|
|
1770
1770
|
stopped: "stopped";
|
|
1771
1771
|
incomplete: "incomplete";
|
|
@@ -1789,8 +1789,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1789
1789
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1790
1790
|
generation: z.ZodNumber;
|
|
1791
1791
|
outcome: z.ZodEnum<{
|
|
1792
|
-
stale: "stale";
|
|
1793
1792
|
failed: "failed";
|
|
1793
|
+
stale: "stale";
|
|
1794
1794
|
passed: "passed";
|
|
1795
1795
|
stopped: "stopped";
|
|
1796
1796
|
}>;
|
|
@@ -1828,8 +1828,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1828
1828
|
errorCode: z.ZodString;
|
|
1829
1829
|
category: z.ZodEnum<{
|
|
1830
1830
|
input: "input";
|
|
1831
|
-
state: "state";
|
|
1832
1831
|
authorization: "authorization";
|
|
1832
|
+
state: "state";
|
|
1833
1833
|
internal: "internal";
|
|
1834
1834
|
host_context: "host_context";
|
|
1835
1835
|
persistence: "persistence";
|
|
@@ -1897,8 +1897,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
1897
1897
|
errorCode: z.ZodString;
|
|
1898
1898
|
category: z.ZodEnum<{
|
|
1899
1899
|
input: "input";
|
|
1900
|
-
state: "state";
|
|
1901
1900
|
authorization: "authorization";
|
|
1901
|
+
state: "state";
|
|
1902
1902
|
internal: "internal";
|
|
1903
1903
|
host_context: "host_context";
|
|
1904
1904
|
persistence: "persistence";
|
|
@@ -2023,8 +2023,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
2023
2023
|
errorCode: z.ZodString;
|
|
2024
2024
|
category: z.ZodEnum<{
|
|
2025
2025
|
input: "input";
|
|
2026
|
-
state: "state";
|
|
2027
2026
|
authorization: "authorization";
|
|
2027
|
+
state: "state";
|
|
2028
2028
|
internal: "internal";
|
|
2029
2029
|
host_context: "host_context";
|
|
2030
2030
|
persistence: "persistence";
|
|
@@ -2101,8 +2101,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
2101
2101
|
runId: z.ZodString;
|
|
2102
2102
|
checkpointId: z.ZodString;
|
|
2103
2103
|
outcome: z.ZodEnum<{
|
|
2104
|
-
stale: "stale";
|
|
2105
2104
|
failed: "failed";
|
|
2105
|
+
stale: "stale";
|
|
2106
2106
|
passed: "passed";
|
|
2107
2107
|
stopped: "stopped";
|
|
2108
2108
|
incomplete: "incomplete";
|
|
@@ -2160,8 +2160,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
2160
2160
|
generationBudget: z.ZodOptional<z.ZodNumber>;
|
|
2161
2161
|
settledStoppedGeneration: z.ZodOptional<z.ZodNumber>;
|
|
2162
2162
|
lastOutcome: z.ZodOptional<z.ZodEnum<{
|
|
2163
|
-
stale: "stale";
|
|
2164
2163
|
failed: "failed";
|
|
2164
|
+
stale: "stale";
|
|
2165
2165
|
passed: "passed";
|
|
2166
2166
|
stopped: "stopped";
|
|
2167
2167
|
incomplete: "incomplete";
|
|
@@ -2207,9 +2207,9 @@ export declare const workflowToolResultSchemas: {
|
|
|
2207
2207
|
latestAttempt: z.ZodOptional<z.ZodObject<{
|
|
2208
2208
|
attempt: z.ZodNumber;
|
|
2209
2209
|
status: z.ZodEnum<{
|
|
2210
|
+
failed: "failed";
|
|
2210
2211
|
completed: "completed";
|
|
2211
2212
|
in_flight: "in_flight";
|
|
2212
|
-
failed: "failed";
|
|
2213
2213
|
report_rejected: "report_rejected";
|
|
2214
2214
|
}>;
|
|
2215
2215
|
resultStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2241,8 +2241,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
2241
2241
|
generationBudget: z.ZodOptional<z.ZodNumber>;
|
|
2242
2242
|
remainingGenerations: z.ZodOptional<z.ZodNumber>;
|
|
2243
2243
|
lastOutcome: z.ZodOptional<z.ZodEnum<{
|
|
2244
|
-
stale: "stale";
|
|
2245
2244
|
failed: "failed";
|
|
2245
|
+
stale: "stale";
|
|
2246
2246
|
passed: "passed";
|
|
2247
2247
|
stopped: "stopped";
|
|
2248
2248
|
incomplete: "incomplete";
|
|
@@ -2266,8 +2266,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
2266
2266
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2267
2267
|
generation: z.ZodNumber;
|
|
2268
2268
|
outcome: z.ZodEnum<{
|
|
2269
|
-
stale: "stale";
|
|
2270
2269
|
failed: "failed";
|
|
2270
|
+
stale: "stale";
|
|
2271
2271
|
passed: "passed";
|
|
2272
2272
|
stopped: "stopped";
|
|
2273
2273
|
}>;
|
|
@@ -2337,9 +2337,9 @@ export declare const workflowToolResultSchemas: {
|
|
|
2337
2337
|
latestAttempt: z.ZodOptional<z.ZodObject<{
|
|
2338
2338
|
attempt: z.ZodNumber;
|
|
2339
2339
|
status: z.ZodEnum<{
|
|
2340
|
+
failed: "failed";
|
|
2340
2341
|
completed: "completed";
|
|
2341
2342
|
in_flight: "in_flight";
|
|
2342
|
-
failed: "failed";
|
|
2343
2343
|
report_rejected: "report_rejected";
|
|
2344
2344
|
}>;
|
|
2345
2345
|
resultStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2371,8 +2371,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
2371
2371
|
generationBudget: z.ZodOptional<z.ZodNumber>;
|
|
2372
2372
|
remainingGenerations: z.ZodOptional<z.ZodNumber>;
|
|
2373
2373
|
lastOutcome: z.ZodOptional<z.ZodEnum<{
|
|
2374
|
-
stale: "stale";
|
|
2375
2374
|
failed: "failed";
|
|
2375
|
+
stale: "stale";
|
|
2376
2376
|
passed: "passed";
|
|
2377
2377
|
stopped: "stopped";
|
|
2378
2378
|
incomplete: "incomplete";
|
|
@@ -2396,8 +2396,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
2396
2396
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2397
2397
|
generation: z.ZodNumber;
|
|
2398
2398
|
outcome: z.ZodEnum<{
|
|
2399
|
-
stale: "stale";
|
|
2400
2399
|
failed: "failed";
|
|
2400
|
+
stale: "stale";
|
|
2401
2401
|
passed: "passed";
|
|
2402
2402
|
stopped: "stopped";
|
|
2403
2403
|
}>;
|
|
@@ -2476,8 +2476,8 @@ export declare const workflowToolResultSchemas: {
|
|
|
2476
2476
|
errorCode: z.ZodString;
|
|
2477
2477
|
category: z.ZodEnum<{
|
|
2478
2478
|
input: "input";
|
|
2479
|
-
state: "state";
|
|
2480
2479
|
authorization: "authorization";
|
|
2480
|
+
state: "state";
|
|
2481
2481
|
internal: "internal";
|
|
2482
2482
|
host_context: "host_context";
|
|
2483
2483
|
persistence: "persistence";
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
1
|
+
import { type FamilySettingsView } from "./session-settings.js";
|
|
2
|
+
import type { AuxiliaryService, AuxiliarySessionApi, ModelSelection } from "./types.js";
|
|
3
|
+
/** Injectable native boundaries for settings-bound auxiliary generation. */
|
|
3
4
|
export interface AuxiliaryServiceDeps {
|
|
4
5
|
familyOf(sessionID: string): Promise<string>;
|
|
5
|
-
policy(sessionID: string): Promise<
|
|
6
|
+
policy(sessionID: string): Promise<FamilySettingsView | undefined>;
|
|
6
7
|
readonly session: AuxiliarySessionApi;
|
|
8
|
+
/** Runtime location directory used when the family root exposes none. */
|
|
9
|
+
readonly fallbackDirectory: string;
|
|
7
10
|
}
|
|
11
|
+
/** Select the family's default model for auxiliary work: default role, first role, then the root's native model. */
|
|
12
|
+
export declare function primarySettingsSelection(view: FamilySettingsView): ModelSelection | undefined;
|
|
8
13
|
/**
|
|
9
|
-
* Build the
|
|
10
|
-
* lineage child of the family root whose model is the family's
|
|
11
|
-
*
|
|
14
|
+
* Build the settings-bound auxiliary service. Bound work runs on a verified
|
|
15
|
+
* lineage child of the family root whose model is the family's resolved role
|
|
16
|
+
* selection; unresolvable settings refuse to fabricate a model.
|
|
12
17
|
*/
|
|
13
18
|
export declare function createAuxiliaryService(deps: AuxiliaryServiceDeps): AuxiliaryService;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
// FILE: src/runtime/auxiliary.ts
|
|
2
|
-
// VERSION:
|
|
2
|
+
// VERSION: 3.0.0
|
|
3
3
|
// START_MODULE_CONTRACT
|
|
4
|
-
// PURPOSE: Provide
|
|
5
|
-
// SCOPE:
|
|
6
|
-
// DEPENDS: [src/runtime/
|
|
4
|
+
// PURPOSE: Provide family-settings-bound auxiliary generation for titles and Guardian inference through an explicitly created native child session and native session.generate.
|
|
5
|
+
// SCOPE: Auxiliary child creation parented to the family root (explicit role model from the family settings, recorded workload metadata, not a fork that copies the parent agent), awaited model pinning per use, title-result short-circuit, retention of native title message content, recursion/deadlock guard, and fail-closed refusal when no family settings can be resolved. Never calls the stateless experimental generate API and never invents a model.
|
|
6
|
+
// DEPENDS: [src/runtime/session-settings.ts, src/runtime/types.ts]
|
|
7
7
|
// LINKS: [M-NATIVE-RUNTIME, V-M-NATIVE-RUNTIME]
|
|
8
8
|
// ROLE: RUNTIME
|
|
9
9
|
// MAP_MODE: EXPORTS
|
|
10
10
|
// END_MODULE_CONTRACT
|
|
11
11
|
//
|
|
12
12
|
// START_MODULE_MAP
|
|
13
|
-
// AuxiliaryServiceDeps - Injectable native boundaries for
|
|
14
|
-
//
|
|
13
|
+
// AuxiliaryServiceDeps - Injectable native boundaries for settings-bound auxiliary generation.
|
|
14
|
+
// primarySettingsSelection - Select the family's default model for auxiliary work.
|
|
15
|
+
// createAuxiliaryService - Build the settings-bound auxiliary service consumed by title and Guardian.
|
|
15
16
|
// END_MODULE_MAP
|
|
16
17
|
//
|
|
17
18
|
// START_CHANGE_SUMMARY
|
|
18
|
-
// LAST_CHANGE: [C-
|
|
19
|
+
// LAST_CHANGE: [C-SESSION-OWNED-SETTINGS T-002 - Auxiliary children now bind through the family settings view: role selections come from root metadata, qualification and snapshot variants are gone, and the child model is the plain resolved selection.]
|
|
19
20
|
// END_CHANGE_SUMMARY
|
|
20
|
-
import {
|
|
21
|
-
import { SnapshotUnboundError, } from "./types.js";
|
|
21
|
+
import { SessionLineageError } from "./session-settings.js";
|
|
22
22
|
const TITLE_INSTRUCTION = "Generate a short, specific title for this session from the conversation above.";
|
|
23
23
|
/** Build a title prompt from retained native messages plus a stable instruction. */
|
|
24
24
|
function titlePrompt(messages) {
|
|
@@ -30,25 +30,33 @@ function titlePrompt(messages) {
|
|
|
30
30
|
.join("\n");
|
|
31
31
|
return `${transcript}\n\n${TITLE_INSTRUCTION}`;
|
|
32
32
|
}
|
|
33
|
+
/** Select the family's default model for auxiliary work: default role, first role, then the root's native model. */
|
|
34
|
+
export function primarySettingsSelection(view) {
|
|
35
|
+
const defaultRole = view.roleModels.default;
|
|
36
|
+
if (defaultRole !== undefined)
|
|
37
|
+
return defaultRole;
|
|
38
|
+
for (const selection of Object.values(view.roleModels))
|
|
39
|
+
return selection;
|
|
40
|
+
return view.rootModel;
|
|
41
|
+
}
|
|
33
42
|
/**
|
|
34
|
-
* Build the
|
|
35
|
-
* lineage child of the family root whose model is the family's
|
|
36
|
-
*
|
|
43
|
+
* Build the settings-bound auxiliary service. Bound work runs on a verified
|
|
44
|
+
* lineage child of the family root whose model is the family's resolved role
|
|
45
|
+
* selection; unresolvable settings refuse to fabricate a model.
|
|
37
46
|
*/
|
|
38
47
|
export function createAuxiliaryService(deps) {
|
|
39
48
|
const children = new Map();
|
|
40
49
|
const active = new Set();
|
|
41
|
-
async function boundChild(
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
50
|
+
async function boundChild(view, kind, role) {
|
|
51
|
+
const selection = role === undefined ? primarySettingsSelection(view) : view.roleModels[role];
|
|
52
|
+
if (selection === undefined)
|
|
44
53
|
return undefined;
|
|
45
|
-
const
|
|
46
|
-
const cacheKey = `${capture.familyId}\u0000${kind}`;
|
|
54
|
+
const cacheKey = `${view.familyId}\u0000${kind}`;
|
|
47
55
|
let child = children.get(cacheKey);
|
|
48
56
|
if (child === undefined) {
|
|
49
57
|
const created = await deps.session.create({
|
|
50
|
-
parentID:
|
|
51
|
-
locationDirectory:
|
|
58
|
+
parentID: view.familyId,
|
|
59
|
+
locationDirectory: view.locationDirectory ?? deps.fallbackDirectory,
|
|
52
60
|
title: `vvoc ${kind}`,
|
|
53
61
|
kind,
|
|
54
62
|
...(role === undefined ? {} : { role }),
|
|
@@ -60,8 +68,8 @@ export function createAuxiliaryService(deps) {
|
|
|
60
68
|
await deps.session.switchModel({ sessionID: child, model: selection });
|
|
61
69
|
return child;
|
|
62
70
|
}
|
|
63
|
-
async function generateBound(
|
|
64
|
-
const child = await boundChild(
|
|
71
|
+
async function generateBound(view, kind, prompt, role) {
|
|
72
|
+
const child = await boundChild(view, kind, role);
|
|
65
73
|
if (child === undefined)
|
|
66
74
|
return undefined;
|
|
67
75
|
return deps.session.generate({ sessionID: child, prompt });
|
|
@@ -71,35 +79,35 @@ export function createAuxiliaryService(deps) {
|
|
|
71
79
|
// A host-supplied title always wins; the plugin never overrides it.
|
|
72
80
|
if (typeof event.result === "string" && event.result.length > 0)
|
|
73
81
|
return event.result;
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
82
|
+
const view = await deps.policy(event.sessionID);
|
|
83
|
+
if (view === undefined)
|
|
76
84
|
return undefined;
|
|
77
85
|
// Guard the whole family against a bound generate recursively re-entering title work.
|
|
78
|
-
if (active.has(
|
|
86
|
+
if (active.has(view.familyId))
|
|
79
87
|
return undefined;
|
|
80
|
-
active.add(
|
|
88
|
+
active.add(view.familyId);
|
|
81
89
|
try {
|
|
82
|
-
const generated = await generateBound(
|
|
90
|
+
const generated = await generateBound(view, "title", titlePrompt(event.messages), event.role);
|
|
83
91
|
return generated?.text;
|
|
84
92
|
}
|
|
85
93
|
finally {
|
|
86
|
-
active.delete(
|
|
94
|
+
active.delete(view.familyId);
|
|
87
95
|
}
|
|
88
96
|
},
|
|
89
97
|
async generate(input) {
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
92
|
-
throw new
|
|
98
|
+
const view = await deps.policy(input.sessionID);
|
|
99
|
+
if (view === undefined) {
|
|
100
|
+
throw new SessionLineageError("Auxiliary generation requires resolvable family settings; refusing stateless generation.");
|
|
93
101
|
}
|
|
94
|
-
if (active.has(
|
|
95
|
-
throw new
|
|
102
|
+
if (active.has(view.familyId)) {
|
|
103
|
+
throw new SessionLineageError("Auxiliary generation is already running for this family.");
|
|
96
104
|
}
|
|
97
|
-
active.add(
|
|
105
|
+
active.add(view.familyId);
|
|
98
106
|
try {
|
|
99
|
-
return await generateBound(
|
|
107
|
+
return await generateBound(view, input.kind, input.prompt, input.role);
|
|
100
108
|
}
|
|
101
109
|
finally {
|
|
102
|
-
active.delete(
|
|
110
|
+
active.delete(view.familyId);
|
|
103
111
|
}
|
|
104
112
|
},
|
|
105
113
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auxiliary.js","sourceRoot":"","sources":["../../src/runtime/auxiliary.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iBAAiB;AACjB,wBAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"auxiliary.js","sourceRoot":"","sources":["../../src/runtime/auxiliary.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iBAAiB;AACjB,wBAAwB;AACxB,kLAAkL;AAClL,qcAAqc;AACrc,qEAAqE;AACrE,kDAAkD;AAClD,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,iGAAiG;AACjG,qFAAqF;AACrF,wGAAwG;AACxG,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,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C1B,IAAI,CAAC;gBACH,OAAO,MAAM,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YACzE,CAAC;oBAAS,CAAC;gBACT,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC/B,CAAC;QACH,CAAC;KACF,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -18,9 +18,9 @@ export interface ContextInspectionServerContext {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Structural runtime
|
|
22
|
-
* session-family
|
|
23
|
-
* config used only for a labelled current-runtime preview.
|
|
21
|
+
* Structural runtime settings/config seam the handler may read. `policy` is the
|
|
22
|
+
* session-family settings resolution; `currentConfig` is the already-loaded
|
|
23
|
+
* effective config used only for a labelled current-runtime preview.
|
|
24
24
|
*/
|
|
25
25
|
export interface ContextInspectionServerRuntime {
|
|
26
26
|
policy(sessionID: string): Promise<unknown>;
|
|
@@ -46,7 +46,8 @@ export declare function registerContextInspectionRpc(ctx: ContextInspectionServe
|
|
|
46
46
|
*/
|
|
47
47
|
export declare function loadSchemaOwnedVendorConverter(): Promise<ContextInspectionSchemaConverter | undefined>;
|
|
48
48
|
/**
|
|
49
|
-
* Validate a
|
|
50
|
-
* arbitrary object (for example `{}`) is never treated as available
|
|
49
|
+
* Validate a resolved family settings view before exposing any allowlisted
|
|
50
|
+
* policy. An arbitrary object (for example `{}`) is never treated as available
|
|
51
|
+
* defaults.
|
|
51
52
|
*/
|
|
52
|
-
export declare function
|
|
53
|
+
export declare function isMeaningfulFamilySettingsView(value: unknown): value is Record<string, unknown>;
|