@jaggerxtrm/specialists 3.14.1 → 3.15.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/LICENSE +21 -0
- package/README.md +24 -3
- package/config/catalog/gitnexus.json +12 -0
- package/config/catalog/index.json +59 -0
- package/config/catalog/native.json +12 -0
- package/config/catalog/serena.json +12 -0
- package/config/mandatory-rules/README.md +7 -6
- package/config/mandatory-rules/code-quality-defaults.md +5 -0
- package/config/mandatory-rules/diagnose-loop.md +13 -0
- package/config/mandatory-rules/gitnexus-required.md +1 -0
- package/config/mandatory-rules/research-tool-routing.md +12 -0
- package/config/mandatory-rules/security-review-defaults.md +9 -0
- package/config/mandatory-rules/serena-cheatsheet.md +16 -4
- package/config/presets.json +1 -1
- package/config/skills/memory-audit-transaction/SKILL.md +196 -0
- package/config/skills/memory-audit-transaction/scripts/pre-bulk-export.sh +58 -0
- package/config/skills/using-specialists/SKILL.md +13 -12
- package/config/skills/using-specialists-auto/SKILL.md +137 -0
- package/config/skills/using-specialists-v2/SKILL.md +14 -21
- package/config/skills/using-specialists-v3/SKILL.md +399 -27
- package/config/specialists/changelog-drafter.specialist.json +3 -2
- package/config/specialists/changelog-keeper.specialist.json +1 -1
- package/config/specialists/code-sanity.specialist.json +3 -5
- package/config/specialists/debugger.specialist.json +4 -8
- package/config/specialists/executor.specialist.json +6 -8
- package/config/specialists/explorer.specialist.json +7 -8
- package/config/specialists/memory-processor.specialist.json +14 -7
- package/config/specialists/node-coordinator.specialist.json +2 -2
- package/config/specialists/overthinker.specialist.json +7 -10
- package/config/specialists/planner.specialist.json +3 -4
- package/config/specialists/researcher.specialist.json +15 -19
- package/config/specialists/reviewer.specialist.json +4 -8
- package/config/specialists/security-auditor.specialist.json +3 -8
- package/config/specialists/specialists-creator.specialist.json +4 -2
- package/config/specialists/test-runner.specialist.json +10 -10
- package/config/specialists/xt-merge.specialist.json +10 -4
- package/dist/asset-contract.json +205 -0
- package/dist/index.js +1990 -704
- package/dist/lib.js +99 -17
- package/dist/types/cli/clean.d.ts.map +1 -1
- package/dist/types/cli/doctor.d.ts +1 -0
- package/dist/types/cli/doctor.d.ts.map +1 -1
- package/dist/types/cli/edit.d.ts.map +1 -1
- package/dist/types/cli/epic.d.ts +0 -1
- package/dist/types/cli/epic.d.ts.map +1 -1
- package/dist/types/cli/feed.d.ts.map +1 -1
- package/dist/types/cli/finalize.d.ts +2 -0
- package/dist/types/cli/finalize.d.ts.map +1 -0
- package/dist/types/cli/format-helpers.d.ts.map +1 -1
- package/dist/types/cli/init.d.ts.map +1 -1
- package/dist/types/cli/list-rules.d.ts.map +1 -1
- package/dist/types/cli/merge.d.ts +4 -3
- package/dist/types/cli/merge.d.ts.map +1 -1
- package/dist/types/cli/ps.d.ts.map +1 -1
- package/dist/types/cli/quickstart.d.ts.map +1 -1
- package/dist/types/cli/run.d.ts +1 -0
- package/dist/types/cli/run.d.ts.map +1 -1
- package/dist/types/pi/session.d.ts.map +1 -1
- package/dist/types/specialist/epic-lifecycle.d.ts +5 -5
- package/dist/types/specialist/epic-lifecycle.d.ts.map +1 -1
- package/dist/types/specialist/epic-readiness.d.ts +1 -1
- package/dist/types/specialist/epic-readiness.d.ts.map +1 -1
- package/dist/types/specialist/jobRegistry.d.ts +5 -0
- package/dist/types/specialist/jobRegistry.d.ts.map +1 -1
- package/dist/types/specialist/observability-sqlite.d.ts +8 -0
- package/dist/types/specialist/observability-sqlite.d.ts.map +1 -1
- package/dist/types/specialist/process-health.d.ts +77 -0
- package/dist/types/specialist/process-health.d.ts.map +1 -0
- package/dist/types/specialist/runner.d.ts.map +1 -1
- package/dist/types/specialist/schema.d.ts +162 -0
- package/dist/types/specialist/schema.d.ts.map +1 -1
- package/dist/types/specialist/script-runner.d.ts +31 -1
- package/dist/types/specialist/script-runner.d.ts.map +1 -1
- package/dist/types/specialist/supervisor.d.ts +8 -0
- package/dist/types/specialist/supervisor.d.ts.map +1 -1
- package/dist/types/specialist/timeline-query.d.ts +1 -1
- package/dist/types/specialist/timeline-query.d.ts.map +1 -1
- package/dist/types/specialist/worktree.d.ts.map +1 -1
- package/package.json +32 -7
- package/config/benchmarks/executor-benchmark-matrix.json +0 -25
- package/config/mandatory-rules/debugger-trace-first.md +0 -5
- package/config/skills/using-specialists/evals/evals.json +0 -68
- package/config/skills/using-specialists-v3/evals/evals.json +0 -89
|
@@ -59,6 +59,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
59
59
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
60
60
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
61
61
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
62
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
63
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
64
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
65
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
66
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
67
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
62
68
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
63
69
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
64
70
|
model: z.ZodString;
|
|
@@ -95,6 +101,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
95
101
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
96
102
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
97
103
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
104
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
105
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
106
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
107
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
108
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
109
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
98
110
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
99
111
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
100
112
|
model: z.ZodString;
|
|
@@ -131,6 +143,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
131
143
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
132
144
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
133
145
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
146
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
147
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
148
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
149
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
150
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
151
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
134
152
|
}, z.ZodTypeAny, "passthrough">>;
|
|
135
153
|
prompt: z.ZodObject<{
|
|
136
154
|
system: z.ZodOptional<z.ZodString>;
|
|
@@ -381,6 +399,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
381
399
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
382
400
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
383
401
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
402
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
403
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
404
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
405
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
406
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
407
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
384
408
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
385
409
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
386
410
|
model: z.ZodString;
|
|
@@ -417,6 +441,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
417
441
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
418
442
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
419
443
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
444
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
445
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
446
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
447
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
448
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
449
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
420
450
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
421
451
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
422
452
|
model: z.ZodString;
|
|
@@ -453,6 +483,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
453
483
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
454
484
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
455
485
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
486
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
487
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
488
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
489
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
490
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
491
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
456
492
|
}, z.ZodTypeAny, "passthrough">>;
|
|
457
493
|
prompt: z.ZodObject<{
|
|
458
494
|
system: z.ZodOptional<z.ZodString>;
|
|
@@ -703,6 +739,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
703
739
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
704
740
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
705
741
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
742
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
743
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
744
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
745
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
746
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
747
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
706
748
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
707
749
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
708
750
|
model: z.ZodString;
|
|
@@ -739,6 +781,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
739
781
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
740
782
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
741
783
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
784
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
785
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
786
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
787
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
788
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
789
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
742
790
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
743
791
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
744
792
|
model: z.ZodString;
|
|
@@ -775,6 +823,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
775
823
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
776
824
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
777
825
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
826
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
827
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
828
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
829
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
830
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
831
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
778
832
|
}, z.ZodTypeAny, "passthrough">>;
|
|
779
833
|
prompt: z.ZodObject<{
|
|
780
834
|
system: z.ZodOptional<z.ZodString>;
|
|
@@ -1027,6 +1081,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
1027
1081
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
1028
1082
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
1029
1083
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1084
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
1085
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
1086
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
1087
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
1088
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
1089
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1030
1090
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1031
1091
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
1032
1092
|
model: z.ZodString;
|
|
@@ -1063,6 +1123,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
1063
1123
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
1064
1124
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
1065
1125
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1126
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
1127
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
1128
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
1129
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
1130
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
1131
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1066
1132
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1067
1133
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
1068
1134
|
model: z.ZodString;
|
|
@@ -1099,6 +1165,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
1099
1165
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
1100
1166
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
1101
1167
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1168
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
1169
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
1170
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
1171
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
1172
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
1173
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1102
1174
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1103
1175
|
prompt: z.ZodObject<{
|
|
1104
1176
|
system: z.ZodOptional<z.ZodString>;
|
|
@@ -1349,6 +1421,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
1349
1421
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
1350
1422
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
1351
1423
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1424
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
1425
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
1426
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
1427
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
1428
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
1429
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1352
1430
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1353
1431
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
1354
1432
|
model: z.ZodString;
|
|
@@ -1385,6 +1463,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
1385
1463
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
1386
1464
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
1387
1465
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1466
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
1467
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
1468
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
1469
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
1470
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
1471
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1388
1472
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1389
1473
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
1390
1474
|
model: z.ZodString;
|
|
@@ -1421,6 +1505,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
1421
1505
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
1422
1506
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
1423
1507
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1508
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
1509
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
1510
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
1511
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
1512
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
1513
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1424
1514
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1425
1515
|
prompt: z.ZodObject<{
|
|
1426
1516
|
system: z.ZodOptional<z.ZodString>;
|
|
@@ -1671,6 +1761,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
1671
1761
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
1672
1762
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
1673
1763
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1764
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
1765
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
1766
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
1767
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
1768
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
1769
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1674
1770
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1675
1771
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
1676
1772
|
model: z.ZodString;
|
|
@@ -1707,6 +1803,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
1707
1803
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
1708
1804
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
1709
1805
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1806
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
1807
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
1808
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
1809
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
1810
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
1811
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1710
1812
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1711
1813
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
1712
1814
|
model: z.ZodString;
|
|
@@ -1743,6 +1845,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
1743
1845
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
1744
1846
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
1745
1847
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1848
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
1849
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
1850
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
1851
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
1852
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
1853
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1746
1854
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1747
1855
|
prompt: z.ZodObject<{
|
|
1748
1856
|
system: z.ZodOptional<z.ZodString>;
|
|
@@ -1995,6 +2103,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
1995
2103
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
1996
2104
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
1997
2105
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2106
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
2107
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
2108
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
2109
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
2110
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
2111
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1998
2112
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1999
2113
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
2000
2114
|
model: z.ZodString;
|
|
@@ -2031,6 +2145,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
2031
2145
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
2032
2146
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
2033
2147
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2148
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
2149
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
2150
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
2151
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
2152
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
2153
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2034
2154
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2035
2155
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
2036
2156
|
model: z.ZodString;
|
|
@@ -2067,6 +2187,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
2067
2187
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
2068
2188
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
2069
2189
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2190
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
2191
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
2192
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
2193
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
2194
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
2195
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2070
2196
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2071
2197
|
prompt: z.ZodObject<{
|
|
2072
2198
|
system: z.ZodOptional<z.ZodString>;
|
|
@@ -2317,6 +2443,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
2317
2443
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
2318
2444
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
2319
2445
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2446
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
2447
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
2448
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
2449
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
2450
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
2451
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2320
2452
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2321
2453
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
2322
2454
|
model: z.ZodString;
|
|
@@ -2353,6 +2485,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
2353
2485
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
2354
2486
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
2355
2487
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2488
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
2489
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
2490
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
2491
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
2492
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
2493
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2356
2494
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2357
2495
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
2358
2496
|
model: z.ZodString;
|
|
@@ -2389,6 +2527,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
2389
2527
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
2390
2528
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
2391
2529
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2530
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
2531
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
2532
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
2533
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
2534
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
2535
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2392
2536
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2393
2537
|
prompt: z.ZodObject<{
|
|
2394
2538
|
system: z.ZodOptional<z.ZodString>;
|
|
@@ -2639,6 +2783,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
2639
2783
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
2640
2784
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
2641
2785
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2786
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
2787
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
2788
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
2789
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
2790
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
2791
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2642
2792
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2643
2793
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
2644
2794
|
model: z.ZodString;
|
|
@@ -2675,6 +2825,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
2675
2825
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
2676
2826
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
2677
2827
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2828
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
2829
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
2830
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
2831
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
2832
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
2833
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2678
2834
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2679
2835
|
mode: z.ZodDefault<z.ZodEnum<["tool", "skill", "auto"]>>;
|
|
2680
2836
|
model: z.ZodString;
|
|
@@ -2711,6 +2867,12 @@ export declare const SpecialistSchema: z.ZodObject<{
|
|
|
2711
2867
|
serena: z.ZodOptional<z.ZodBoolean>;
|
|
2712
2868
|
gitnexus: z.ZodOptional<z.ZodBoolean>;
|
|
2713
2869
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2870
|
+
/** Required JSON keys the assistant output must contain. Triggers a required-keys
|
|
2871
|
+
* check independent of `response_format`. Use for specs that ship their JSON
|
|
2872
|
+
* contract inline in `task_template` and run with `response_format: text` so the
|
|
2873
|
+
* consumer parses — without this, hallucinated key sets pass through as success.
|
|
2874
|
+
* On miss the runtime returns `error_type: 'invalid_json'`. */
|
|
2875
|
+
expected_output_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2714
2876
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2715
2877
|
prompt: z.ZodObject<{
|
|
2716
2878
|
system: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/specialist/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/specialist/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAiHzB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAxF3B,4FAA4F;;YAE5F;;;;;eAKG;;YAEH,yKAAyK;;YAEzK,qFAAqF;;;YAGrF,uFAAuF;;;;;;;;;;;YAKvF;;;;4EAIgE;;;;;;;;;;;;;YAvBhE,4FAA4F;;YAE5F;;;;;eAKG;;YAEH,yKAAyK;;YAEzK,qFAAqF;;;YAGrF,uFAAuF;;;;;;;;;;;YAKvF;;;;4EAIgE;;;;;;;;;;;;;YAvBhE,4FAA4F;;YAE5F;;;;;eAKG;;YAEH,yKAAyK;;YAEzK,qFAAqF;;;YAGrF,uFAAuF;;;;;;;;;;;YAKvF;;;;4EAIgE;;;;;;;;;;;;;;;;;;;;YAqBhE,gFAAgF;;YAEhF,8EAA8E;;;;;;;;;;;;;;;YAF9E,gFAAgF;;YAEhF,8EAA8E;;;;;;;;;;;;;;;YAF9E,gFAAgF;;YAEhF,8EAA8E;;;;;;;;;;;;;;;;YAK9E,8FAA8F;;YAE9F,uFAAuF;;;YAFvF,8FAA8F;;YAE9F,uFAAuF;;;YAFvF,8FAA8F;;YAE9F,uFAAuF;;;;YAKvF,wFAAwF;;YAExF,0CAA0C;;;YAF1C,wFAAwF;;YAExF,0CAA0C;;;YAF1C,wFAAwF;;YAExF,0CAA0C;;;;YAkB1C,+DAA+D;;YAE/D,yE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loader.js';
|
|
3
3
|
import type { Specialist } from './schema.js';
|
|
4
|
-
export type ScriptSpecialistErrorType = 'specialist_not_found' | 'specialist_load_error' | 'template_variable_missing' | 'auth' | 'quota' | 'timeout' | 'network' | 'invalid_json' | 'prompt_too_large' | 'output_too_large' | 'internal';
|
|
4
|
+
export type ScriptSpecialistErrorType = 'specialist_not_found' | 'specialist_load_error' | 'template_variable_missing' | 'template_field_misuse' | 'auth' | 'quota' | 'timeout' | 'network' | 'invalid_json' | 'prompt_too_large' | 'output_too_large' | 'internal';
|
|
5
5
|
export interface ScriptGenerateRequest {
|
|
6
6
|
specialist: string;
|
|
7
7
|
requested_specialist?: string;
|
|
@@ -72,6 +72,36 @@ export declare const DEFAULT_STDERR_LIMIT_BYTES: number;
|
|
|
72
72
|
export declare const DEFAULT_PROMPT_LIMIT_BYTES: number;
|
|
73
73
|
export declare function resolvePromptLimitBytes(spec: Specialist): number;
|
|
74
74
|
export declare function resolveAssistantTextLimitBytes(spec: Specialist): number;
|
|
75
|
+
/**
|
|
76
|
+
* Returns the deduplicated list of required output keys for this spec.
|
|
77
|
+
* Sources, in order:
|
|
78
|
+
* 1. `execution.expected_output_keys` — author-declared, fires for any response_format.
|
|
79
|
+
* 2. `prompt.output_schema.required` — JSON Schema required array, only relevant when
|
|
80
|
+
* `response_format === 'json'` (the runtime parses the JSON anyway in that case).
|
|
81
|
+
* Authors using `response_format: 'text'` with an inline JSON contract should declare
|
|
82
|
+
* `expected_output_keys` so saved-but-corrupt outputs are caught instead of stored.
|
|
83
|
+
*/
|
|
84
|
+
export declare function collectRequiredOutputKeys(spec: {
|
|
85
|
+
specialist: {
|
|
86
|
+
execution: {
|
|
87
|
+
response_format?: string;
|
|
88
|
+
expected_output_keys?: unknown;
|
|
89
|
+
};
|
|
90
|
+
prompt: {
|
|
91
|
+
output_schema?: {
|
|
92
|
+
required?: unknown;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}): string[];
|
|
97
|
+
/**
|
|
98
|
+
* Detects when `input.template` looks like a spec field name (e.g. "task_template",
|
|
99
|
+
* "normalize_template") instead of an actual template body. This catches the
|
|
100
|
+
* production bug where a consumer passes the key name expecting the service to
|
|
101
|
+
* dereference it on `spec.prompt`. Returns the offending field name when misused,
|
|
102
|
+
* or null otherwise.
|
|
103
|
+
*/
|
|
104
|
+
export declare function detectTemplateFieldMisuse(template: string, specPrompt: Record<string, unknown> | null | undefined): string | null;
|
|
75
105
|
export declare function runScriptSpecialist(input: ScriptGenerateRequest, options: ScriptRunnerOptions): Promise<ScriptGenerateResult>;
|
|
76
106
|
export declare function collectModelCandidates(input: ScriptGenerateRequest, spec: Specialist, options: ScriptRunnerOptions): string[];
|
|
77
107
|
type AttemptFailureReason = 'assistant_text_too_large' | 'stderr_too_large' | 'malformed_line_too_large';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"script-runner.d.ts","sourceRoot":"","sources":["../../../src/specialist/script-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAI9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,MAAM,MAAM,yBAAyB,GACjC,sBAAsB,GACtB,uBAAuB,GACvB,2BAA2B,GAC3B,MAAM,GACN,OAAO,GACP,SAAS,GACT,SAAS,GACT,cAAc,GACd,kBAAkB,GAClB,kBAAkB,GAClB,UAAU,CAAC;AAEf,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;I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,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA2GnI;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,mBAAmB,GAAG,MAAM,EAAE,CAI7H;AAED,KAAK,oBAAoB,GAAG,0BAA0B,GAAG,kBAAkB,GAAG,0BAA0B,CAAC;AAsGzG,wBAAgB,eAAe,CAAC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,OAAO,CAAC;IAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;CAAE,GAAG;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,SAAS,GAAG,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,yBAAyB,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAiB5S;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE7E"}
|
|
@@ -97,6 +97,11 @@ export interface SupervisorOptions {
|
|
|
97
97
|
stallDetection?: StallDetectionConfig;
|
|
98
98
|
}
|
|
99
99
|
type ContextHealth = 'OK' | 'MONITOR' | 'WARN' | 'CRITICAL';
|
|
100
|
+
export declare const AUTO_COMMIT_NOISE_PREFIXES: readonly [".xtrm/", ".wolf/", ".specialists/jobs/", ".beads/", ".pi/"];
|
|
101
|
+
/** Detects whether the GitNexus index in `cwd` has embeddings, so a re-analyze
|
|
102
|
+
* preserves them via `--embeddings`. Reads `.gitnexus/meta.json` and inspects
|
|
103
|
+
* `stats.embeddings`. Falls back to `false` (no `--embeddings`) on any error. */
|
|
104
|
+
export declare function gitnexusHasEmbeddings(cwd: string): boolean;
|
|
100
105
|
export declare function isPidAlive(pid: number | undefined): boolean;
|
|
101
106
|
export declare function isJobDead(status: Pick<SupervisorStatus, 'status' | 'pid' | 'tmux_session'>): boolean;
|
|
102
107
|
export declare class Supervisor {
|
|
@@ -124,6 +129,9 @@ export declare class Supervisor {
|
|
|
124
129
|
private withComputedLiveness;
|
|
125
130
|
readStatus(id: string): SupervisorStatusView | null;
|
|
126
131
|
listLiveJobsForBead(beadId: string): string[];
|
|
132
|
+
listChainJobIds(chainId: string): string[];
|
|
133
|
+
readResult(id: string): string | null;
|
|
134
|
+
finalizeWaitingJob(id: string): SupervisorStatusView | null;
|
|
127
135
|
emitMetaEvent(jobId: string, model: string, backend: string): void;
|
|
128
136
|
updateJobStatus(id: string, status: Extract<SupervisorJobStatus, 'done' | 'cancelled' | 'error' | 'waiting' | 'running' | 'starting'>, error?: string): SupervisorStatusView | null;
|
|
129
137
|
aggregateJobMetricsBestEffort(jobId: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supervisor.d.ts","sourceRoot":"","sources":["../../../src/specialist/supervisor.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAiB9C,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAWxD,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,oBAAoB,CAKnE,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;AAEtG,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,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mBAAmB;IAK3B,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,oBAAoB;IAO5B,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI;IAuBnD,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE;IAY7C,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAY1C,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAsBrC,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI;IAe3D,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAalE,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,EAAE,MAAM,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI;IAgBnL,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAQlD,yCAAyC;IACzC,QAAQ,IAAI,oBAAoB,EAAE;IA8BlC,OAAO,CAAC,yBAAyB;IA4BjC,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,eAAe;IA4CvB,mDAAmD;IACnD,OAAO,CAAC,EAAE;IAaV,yFAAyF;IACzF,OAAO,CAAC,aAAa;IA0FrB;;;OAGG;IACG,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;CA0rC7B"}
|
|
@@ -46,7 +46,7 @@ export interface JobEventsBatch {
|
|
|
46
46
|
* Read events from all jobs in a jobs directory.
|
|
47
47
|
* Returns batches unsorted — use mergeTimelineEvents for chronological order.
|
|
48
48
|
*/
|
|
49
|
-
export declare function readAllJobEvents(jobsDir: string): JobEventsBatch[];
|
|
49
|
+
export declare function readAllJobEvents(jobsDir: string, jobId?: string): JobEventsBatch[];
|
|
50
50
|
/**
|
|
51
51
|
* Merge timeline events from multiple jobs into a single chronological stream.
|
|
52
52
|
* Events are sorted by timestamp ascending (oldest first).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-query.d.ts","sourceRoot":"","sources":["../../../src/specialist/timeline-query.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAKH,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,sBAAsB,CAAC;AAM9B;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,EAAE,CA6B7D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE,CAEjF;AAMD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"timeline-query.d.ts","sourceRoot":"","sources":["../../../src/specialist/timeline-query.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAKH,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,sBAAsB,CAAC;AAM9B;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,EAAE,CA6B7D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE,CAEjF;AAMD,MAAM,WAAW,cAAc;IAC7B,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C,EAAE,MAAM,CAAC;CACd;AAID;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAE/E;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAEjF;AAcD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,SAAgB,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAQtE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,SAAgB,GAAG,MAAM,GAAG,SAAS,CAE5F;AAID;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,eAAe,GAAG,YAAY,CAgExE"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaggerxtrm/specialists",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
4
4
|
"description": "OmniSpecialist — 7-tool MCP orchestration layer powered by the Specialist System. Discover and execute .specialist.yaml files across project/user/system scopes via pi.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/types/lib.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
@@ -17,8 +18,19 @@
|
|
|
17
18
|
"dist/index.js",
|
|
18
19
|
"dist/lib.js",
|
|
19
20
|
"dist/types/",
|
|
21
|
+
"dist/asset-contract.json",
|
|
20
22
|
"bin/install.js",
|
|
21
|
-
"config/"
|
|
23
|
+
"config/specialists/",
|
|
24
|
+
"config/mandatory-rules/",
|
|
25
|
+
"config/skills/",
|
|
26
|
+
"config/catalog/",
|
|
27
|
+
"config/nodes/",
|
|
28
|
+
"config/hooks/",
|
|
29
|
+
"config/presets.json",
|
|
30
|
+
"LICENSE",
|
|
31
|
+
"!config/benchmarks/",
|
|
32
|
+
"!config/skills/**/evals/",
|
|
33
|
+
"!config/skills/**/evals/**"
|
|
22
34
|
],
|
|
23
35
|
"bin": {
|
|
24
36
|
"specialists": "dist/index.js",
|
|
@@ -26,7 +38,7 @@
|
|
|
26
38
|
"install": "bin/install.js"
|
|
27
39
|
},
|
|
28
40
|
"scripts": {
|
|
29
|
-
"build": "bun build src/index.ts --target=bun --outfile=dist/index.js && sed -i '1s|#!/usr/bin/env node|#!/usr/bin/env bun|' dist/index.js && chmod +x dist/index.js && bun build src/lib.ts --target=node --format=esm --outfile=dist/lib.js && tsc --emitDeclarationOnly --declaration --outDir dist/types",
|
|
41
|
+
"build": "bun run generate:contract && bun build src/index.ts --target=bun --outfile=dist/index.js && sed -i '1s|#!/usr/bin/env node|#!/usr/bin/env bun|' dist/index.js && chmod +x dist/index.js && bun build src/lib.ts --target=node --format=esm --outfile=dist/lib.js && tsc --emitDeclarationOnly --declaration --outDir dist/types",
|
|
30
42
|
"dev": "bun run src/index.ts",
|
|
31
43
|
"start": "bun dist/index.js",
|
|
32
44
|
"lint": "tsc --noEmit",
|
|
@@ -36,7 +48,8 @@
|
|
|
36
48
|
"test:watch": "bun --bun vitest",
|
|
37
49
|
"test:coverage": "bun --bun vitest run --coverage",
|
|
38
50
|
"test:supervisor": "bun --bun vitest run tests/unit/specialist/supervisor.test.ts --no-file-parallelism",
|
|
39
|
-
"benchmark:executor": "node scripts/run-executor-benchmark.mjs"
|
|
51
|
+
"benchmark:executor": "node scripts/run-executor-benchmark.mjs",
|
|
52
|
+
"generate:contract": "node scripts/generate-asset-contract.mjs"
|
|
40
53
|
},
|
|
41
54
|
"keywords": [
|
|
42
55
|
"omnispecialist",
|
|
@@ -52,6 +65,13 @@
|
|
|
52
65
|
],
|
|
53
66
|
"author": "",
|
|
54
67
|
"license": "MIT",
|
|
68
|
+
"_runtime_prerequisites": {
|
|
69
|
+
"xtrm-tools": {
|
|
70
|
+
"required": true,
|
|
71
|
+
"scope": "runtime",
|
|
72
|
+
"reason": "specialists init requires xt CLI and .xtrm/ managed by xtrm-tools"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
55
75
|
"dependencies": {
|
|
56
76
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
57
77
|
"yaml": "2.8.4",
|
|
@@ -61,12 +81,17 @@
|
|
|
61
81
|
"devDependencies": {
|
|
62
82
|
"@types/bun": "1.3.10",
|
|
63
83
|
"@types/node": "^24.0.0",
|
|
64
|
-
"@vitest/coverage-v8": "^
|
|
84
|
+
"@vitest/coverage-v8": "^4.1.6",
|
|
65
85
|
"tsx": "^4.20.6",
|
|
66
86
|
"typescript": "^5.0.0",
|
|
67
|
-
"vitest": "^
|
|
87
|
+
"vitest": "^4.1.6"
|
|
68
88
|
},
|
|
69
89
|
"engines": {
|
|
70
|
-
"
|
|
90
|
+
"bun": ">=1.0.0"
|
|
91
|
+
},
|
|
92
|
+
"overrides": {
|
|
93
|
+
"fast-uri": "^3.1.2",
|
|
94
|
+
"ip-address": "^10.2.0",
|
|
95
|
+
"hono": "^4.12.18"
|
|
71
96
|
}
|
|
72
97
|
}
|