opensquid 0.5.426 → 0.5.441

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.
Files changed (129) hide show
  1. package/dist/channels/env-token.js +2 -2
  2. package/dist/channels/env-token.js.map +1 -1
  3. package/dist/cli.js +2 -1
  4. package/dist/cli.js.map +1 -1
  5. package/dist/functions/event.d.ts.map +1 -1
  6. package/dist/functions/event.js +18 -2
  7. package/dist/functions/event.js.map +1 -1
  8. package/dist/functions/index.d.ts +3 -0
  9. package/dist/functions/index.d.ts.map +1 -1
  10. package/dist/functions/index.js +3 -0
  11. package/dist/functions/index.js.map +1 -1
  12. package/dist/functions/inject_context.d.ts +18 -0
  13. package/dist/functions/inject_context.d.ts.map +1 -0
  14. package/dist/functions/inject_context.js +16 -0
  15. package/dist/functions/inject_context.js.map +1 -0
  16. package/dist/functions/procedure_pre_inject.d.ts +23 -0
  17. package/dist/functions/procedure_pre_inject.d.ts.map +1 -0
  18. package/dist/functions/procedure_pre_inject.js +49 -0
  19. package/dist/functions/procedure_pre_inject.js.map +1 -0
  20. package/dist/functions/registry.d.ts +6 -0
  21. package/dist/functions/registry.d.ts.map +1 -1
  22. package/dist/functions/registry.js.map +1 -1
  23. package/dist/functions/rubric_pre_inject.d.ts.map +1 -1
  24. package/dist/functions/rubric_pre_inject.js +2 -1
  25. package/dist/functions/rubric_pre_inject.js.map +1 -1
  26. package/dist/functions/session_status_manifest.d.ts.map +1 -1
  27. package/dist/functions/session_status_manifest.js +15 -0
  28. package/dist/functions/session_status_manifest.js.map +1 -1
  29. package/dist/functions/set_request_type.d.ts +11 -0
  30. package/dist/functions/set_request_type.d.ts.map +1 -0
  31. package/dist/functions/set_request_type.js +34 -0
  32. package/dist/functions/set_request_type.js.map +1 -0
  33. package/dist/functions/shell_parse.d.ts +1 -0
  34. package/dist/functions/shell_parse.d.ts.map +1 -1
  35. package/dist/functions/shell_parse.js +22 -4
  36. package/dist/functions/shell_parse.js.map +1 -1
  37. package/dist/mcp/tools/memorize.d.ts +3 -0
  38. package/dist/mcp/tools/memorize.d.ts.map +1 -1
  39. package/dist/mcp/tools/memorize.js +8 -0
  40. package/dist/mcp/tools/memorize.js.map +1 -1
  41. package/dist/packs/loader.d.ts.map +1 -1
  42. package/dist/packs/loader.js +26 -0
  43. package/dist/packs/loader.js.map +1 -1
  44. package/dist/rag/backends/libsql_store.d.ts.map +1 -1
  45. package/dist/rag/backends/libsql_store.js +13 -5
  46. package/dist/rag/backends/libsql_store.js.map +1 -1
  47. package/dist/rag/backends/perfile_source.d.ts.map +1 -1
  48. package/dist/rag/backends/perfile_source.js +6 -0
  49. package/dist/rag/backends/perfile_source.js.map +1 -1
  50. package/dist/rag/durability.d.ts +26 -0
  51. package/dist/rag/durability.d.ts.map +1 -0
  52. package/dist/rag/durability.js +34 -0
  53. package/dist/rag/durability.js.map +1 -0
  54. package/dist/rag/memory/store.d.ts.map +1 -1
  55. package/dist/rag/memory/store.js +11 -3
  56. package/dist/rag/memory/store.js.map +1 -1
  57. package/dist/rag/types.d.ts +3 -0
  58. package/dist/rag/types.d.ts.map +1 -1
  59. package/dist/rag/types.js.map +1 -1
  60. package/dist/runtime/agent_bridge/daemon.d.ts.map +1 -1
  61. package/dist/runtime/agent_bridge/daemon.js +9 -6
  62. package/dist/runtime/agent_bridge/daemon.js.map +1 -1
  63. package/dist/runtime/bootstrap.d.ts.map +1 -1
  64. package/dist/runtime/bootstrap.js +4 -0
  65. package/dist/runtime/bootstrap.js.map +1 -1
  66. package/dist/runtime/fsm_state.d.ts +6 -0
  67. package/dist/runtime/fsm_state.d.ts.map +1 -1
  68. package/dist/runtime/fsm_state.js +14 -0
  69. package/dist/runtime/fsm_state.js.map +1 -1
  70. package/dist/runtime/handoff/stranded_scoping.d.ts +21 -0
  71. package/dist/runtime/handoff/stranded_scoping.d.ts.map +1 -0
  72. package/dist/runtime/handoff/stranded_scoping.js +39 -0
  73. package/dist/runtime/handoff/stranded_scoping.js.map +1 -0
  74. package/dist/runtime/hooks/dispatch.d.ts.map +1 -1
  75. package/dist/runtime/hooks/dispatch.js +3 -0
  76. package/dist/runtime/hooks/dispatch.js.map +1 -1
  77. package/dist/runtime/hooks/session-start.js +17 -0
  78. package/dist/runtime/hooks/session-start.js.map +1 -1
  79. package/dist/runtime/hooks/user-prompt-submit.d.ts.map +1 -1
  80. package/dist/runtime/hooks/user-prompt-submit.js +22 -1
  81. package/dist/runtime/hooks/user-prompt-submit.js.map +1 -1
  82. package/dist/runtime/ralph/ralph_template.d.ts +1 -1
  83. package/dist/runtime/ralph/ralph_template.d.ts.map +1 -1
  84. package/dist/runtime/ralph/ralph_template.js +1 -1
  85. package/dist/runtime/request_type.d.ts +33 -0
  86. package/dist/runtime/request_type.d.ts.map +1 -0
  87. package/dist/runtime/request_type.js +38 -0
  88. package/dist/runtime/request_type.js.map +1 -0
  89. package/dist/runtime/session_state.d.ts +11 -0
  90. package/dist/runtime/session_state.d.ts.map +1 -1
  91. package/dist/runtime/session_state.js +30 -0
  92. package/dist/runtime/session_state.js.map +1 -1
  93. package/dist/runtime/types.d.ts +5 -0
  94. package/dist/runtime/types.d.ts.map +1 -1
  95. package/dist/runtime/types.js +3 -0
  96. package/dist/runtime/types.js.map +1 -1
  97. package/dist/setup/cli/chat_actions.js +1 -1
  98. package/dist/setup/cli/chat_actions.js.map +1 -1
  99. package/dist/setup/cli/chat_actions_prompts_alias.js +4 -1
  100. package/dist/setup/cli/chat_actions_prompts_alias.js.map +1 -1
  101. package/dist/setup/cli/chat_actions_test_step.js +2 -2
  102. package/dist/setup/cli/chat_actions_test_step.js.map +1 -1
  103. package/dist/setup/cli/chat_state.d.ts.map +1 -1
  104. package/dist/setup/cli/chat_state.js +3 -2
  105. package/dist/setup/cli/chat_state.js.map +1 -1
  106. package/dist/setup/cli/mcp.d.ts +1 -1
  107. package/dist/setup/cli/mcp.d.ts.map +1 -1
  108. package/dist/setup/cli/mcp.js +7 -8
  109. package/dist/setup/cli/mcp.js.map +1 -1
  110. package/dist/setup/cli/ralph.d.ts.map +1 -1
  111. package/dist/setup/cli/ralph.js +16 -4
  112. package/dist/setup/cli/ralph.js.map +1 -1
  113. package/dist/setup/wizard/mcp-writer.d.ts +3 -3
  114. package/dist/setup/wizard/mcp-writer.d.ts.map +1 -1
  115. package/dist/setup/wizard/mcp-writer.js +17 -0
  116. package/dist/setup/wizard/mcp-writer.js.map +1 -1
  117. package/docs/pack-runtime.md +26 -10
  118. package/package.json +2 -2
  119. package/packs/builtin/coding-flow/procedure.md +43 -0
  120. package/packs/builtin/coding-flow/skills/entry-and-handoffs/skill.yaml +48 -1
  121. package/packs/builtin/coding-flow/skills/execute-gate/skill.yaml +10 -2
  122. package/packs/builtin/coding-flow/skills/pause-stop-guard/skill.yaml +11 -1
  123. package/packs/builtin/default-discipline/manifest.yaml +15 -6
  124. package/packs/builtin/pack-architect/skills/skill-yaml-author-walkthrough/skill.yaml +8 -0
  125. package/schemas/manifest.schema.json +45 -203
  126. package/schemas/models.schema.json +3 -13
  127. package/schemas/notifications.schema.json +6 -24
  128. package/schemas/skill.schema.json +33 -120
  129. package/schemas/team.schema.json +46 -0
@@ -15,13 +15,7 @@
15
15
  },
16
16
  "scope": {
17
17
  "type": "string",
18
- "enum": [
19
- "universal",
20
- "domain",
21
- "specialty",
22
- "workflow",
23
- "project"
24
- ]
18
+ "enum": ["universal", "domain", "specialty", "workflow", "project"]
25
19
  },
26
20
  "goal": {
27
21
  "type": "string",
@@ -64,21 +58,14 @@
64
58
  },
65
59
  "per": {
66
60
  "type": "string",
67
- "enum": [
68
- "minute",
69
- "hour",
70
- "day"
71
- ]
61
+ "enum": ["minute", "hour", "day"]
72
62
  },
73
63
  "concurrent": {
74
64
  "type": "integer",
75
65
  "exclusiveMinimum": 0
76
66
  }
77
67
  },
78
- "required": [
79
- "max",
80
- "per"
81
- ],
68
+ "required": ["max", "per"],
82
69
  "additionalProperties": false
83
70
  },
84
71
  "prompt_submit": {
@@ -90,21 +77,14 @@
90
77
  },
91
78
  "per": {
92
79
  "type": "string",
93
- "enum": [
94
- "minute",
95
- "hour",
96
- "day"
97
- ]
80
+ "enum": ["minute", "hour", "day"]
98
81
  },
99
82
  "concurrent": {
100
83
  "type": "integer",
101
84
  "exclusiveMinimum": 0
102
85
  }
103
86
  },
104
- "required": [
105
- "max",
106
- "per"
107
- ],
87
+ "required": ["max", "per"],
108
88
  "additionalProperties": false
109
89
  },
110
90
  "session_end": {
@@ -116,21 +96,14 @@
116
96
  },
117
97
  "per": {
118
98
  "type": "string",
119
- "enum": [
120
- "minute",
121
- "hour",
122
- "day"
123
- ]
99
+ "enum": ["minute", "hour", "day"]
124
100
  },
125
101
  "concurrent": {
126
102
  "type": "integer",
127
103
  "exclusiveMinimum": 0
128
104
  }
129
105
  },
130
- "required": [
131
- "max",
132
- "per"
133
- ],
106
+ "required": ["max", "per"],
134
107
  "additionalProperties": false
135
108
  },
136
109
  "stop": {
@@ -142,21 +115,14 @@
142
115
  },
143
116
  "per": {
144
117
  "type": "string",
145
- "enum": [
146
- "minute",
147
- "hour",
148
- "day"
149
- ]
118
+ "enum": ["minute", "hour", "day"]
150
119
  },
151
120
  "concurrent": {
152
121
  "type": "integer",
153
122
  "exclusiveMinimum": 0
154
123
  }
155
124
  },
156
- "required": [
157
- "max",
158
- "per"
159
- ],
125
+ "required": ["max", "per"],
160
126
  "additionalProperties": false
161
127
  },
162
128
  "schedule": {
@@ -168,21 +134,14 @@
168
134
  },
169
135
  "per": {
170
136
  "type": "string",
171
- "enum": [
172
- "minute",
173
- "hour",
174
- "day"
175
- ]
137
+ "enum": ["minute", "hour", "day"]
176
138
  },
177
139
  "concurrent": {
178
140
  "type": "integer",
179
141
  "exclusiveMinimum": 0
180
142
  }
181
143
  },
182
- "required": [
183
- "max",
184
- "per"
185
- ],
144
+ "required": ["max", "per"],
186
145
  "additionalProperties": false
187
146
  },
188
147
  "webhook": {
@@ -194,21 +153,14 @@
194
153
  },
195
154
  "per": {
196
155
  "type": "string",
197
- "enum": [
198
- "minute",
199
- "hour",
200
- "day"
201
- ]
156
+ "enum": ["minute", "hour", "day"]
202
157
  },
203
158
  "concurrent": {
204
159
  "type": "integer",
205
160
  "exclusiveMinimum": 0
206
161
  }
207
162
  },
208
- "required": [
209
- "max",
210
- "per"
211
- ],
163
+ "required": ["max", "per"],
212
164
  "additionalProperties": false
213
165
  },
214
166
  "inbound_channel": {
@@ -220,21 +172,14 @@
220
172
  },
221
173
  "per": {
222
174
  "type": "string",
223
- "enum": [
224
- "minute",
225
- "hour",
226
- "day"
227
- ]
175
+ "enum": ["minute", "hour", "day"]
228
176
  },
229
177
  "concurrent": {
230
178
  "type": "integer",
231
179
  "exclusiveMinimum": 0
232
180
  }
233
181
  },
234
- "required": [
235
- "max",
236
- "per"
237
- ],
182
+ "required": ["max", "per"],
238
183
  "additionalProperties": false
239
184
  },
240
185
  "file_changed": {
@@ -246,21 +191,14 @@
246
191
  },
247
192
  "per": {
248
193
  "type": "string",
249
- "enum": [
250
- "minute",
251
- "hour",
252
- "day"
253
- ]
194
+ "enum": ["minute", "hour", "day"]
254
195
  },
255
196
  "concurrent": {
256
197
  "type": "integer",
257
198
  "exclusiveMinimum": 0
258
199
  }
259
200
  },
260
- "required": [
261
- "max",
262
- "per"
263
- ],
201
+ "required": ["max", "per"],
264
202
  "additionalProperties": false
265
203
  }
266
204
  },
@@ -306,19 +244,9 @@
306
244
  "type": "array",
307
245
  "items": {
308
246
  "type": "string",
309
- "enum": [
310
- "GET",
311
- "POST",
312
- "PUT",
313
- "PATCH",
314
- "DELETE",
315
- "HEAD",
316
- "OPTIONS"
317
- ]
247
+ "enum": ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]
318
248
  },
319
- "default": [
320
- "GET"
321
- ]
249
+ "default": ["GET"]
322
250
  },
323
251
  "deny": {
324
252
  "type": "array",
@@ -438,9 +366,7 @@
438
366
  "type": "string"
439
367
  }
440
368
  },
441
- "required": [
442
- "name"
443
- ],
369
+ "required": ["name"],
444
370
  "additionalProperties": false
445
371
  },
446
372
  "default": []
@@ -466,13 +392,7 @@
466
392
  },
467
393
  "activation_scope": {
468
394
  "type": "string",
469
- "enum": [
470
- "project",
471
- "user",
472
- "hybrid",
473
- "team",
474
- "global"
475
- ],
395
+ "enum": ["project", "user", "hybrid", "team", "global"],
476
396
  "default": "project"
477
397
  },
478
398
  "detected_by": {
@@ -491,10 +411,7 @@
491
411
  "minLength": 1
492
412
  }
493
413
  },
494
- "required": [
495
- "kind",
496
- "path"
497
- ],
414
+ "required": ["kind", "path"],
498
415
  "additionalProperties": false
499
416
  },
500
417
  {
@@ -509,10 +426,7 @@
509
426
  "minLength": 1
510
427
  }
511
428
  },
512
- "required": [
513
- "kind",
514
- "path"
515
- ],
429
+ "required": ["kind", "path"],
516
430
  "additionalProperties": false
517
431
  },
518
432
  {
@@ -533,11 +447,7 @@
533
447
  }
534
448
  }
535
449
  },
536
- "required": [
537
- "kind",
538
- "path",
539
- "matches"
540
- ],
450
+ "required": ["kind", "path", "matches"],
541
451
  "additionalProperties": false
542
452
  },
543
453
  {
@@ -557,10 +467,7 @@
557
467
  "default": 1
558
468
  }
559
469
  },
560
- "required": [
561
- "kind",
562
- "pattern"
563
- ],
470
+ "required": ["kind", "pattern"],
564
471
  "additionalProperties": false
565
472
  },
566
473
  {
@@ -575,10 +482,7 @@
575
482
  "minLength": 1
576
483
  }
577
484
  },
578
- "required": [
579
- "kind",
580
- "pattern"
581
- ],
485
+ "required": ["kind", "pattern"],
582
486
  "additionalProperties": false
583
487
  },
584
488
  {
@@ -593,10 +497,7 @@
593
497
  "minLength": 1
594
498
  }
595
499
  },
596
- "required": [
597
- "kind",
598
- "pattern"
599
- ],
500
+ "required": ["kind", "pattern"],
600
501
  "additionalProperties": false
601
502
  },
602
503
  {
@@ -607,9 +508,7 @@
607
508
  "const": "user_pinned"
608
509
  }
609
510
  },
610
- "required": [
611
- "kind"
612
- ],
511
+ "required": ["kind"],
613
512
  "additionalProperties": false
614
513
  }
615
514
  ]
@@ -618,19 +517,12 @@
618
517
  },
619
518
  "kind": {
620
519
  "type": "string",
621
- "enum": [
622
- "focused",
623
- "composite"
624
- ],
520
+ "enum": ["focused", "composite"],
625
521
  "default": "focused"
626
522
  },
627
523
  "usage": {
628
524
  "type": "string",
629
- "enum": [
630
- "active",
631
- "profession",
632
- "both"
633
- ],
525
+ "enum": ["active", "profession", "both"],
634
526
  "default": "active"
635
527
  },
636
528
  "includes": {
@@ -647,10 +539,7 @@
647
539
  "minLength": 1
648
540
  }
649
541
  },
650
- "required": [
651
- "pack_id",
652
- "semver"
653
- ],
542
+ "required": ["pack_id", "semver"],
654
543
  "additionalProperties": false
655
544
  },
656
545
  "default": []
@@ -684,9 +573,7 @@
684
573
  "default": null
685
574
  }
686
575
  },
687
- "required": [
688
- "base_version"
689
- ],
576
+ "required": ["base_version"],
690
577
  "additionalProperties": false
691
578
  },
692
579
  "seed_lessons": {
@@ -709,10 +596,7 @@
709
596
  },
710
597
  "scope": {
711
598
  "type": "string",
712
- "enum": [
713
- "user",
714
- "global"
715
- ],
599
+ "enum": ["user", "global"],
716
600
  "default": "user"
717
601
  },
718
602
  "tags": {
@@ -727,9 +611,7 @@
727
611
  "type": "string"
728
612
  }
729
613
  },
730
- "required": [
731
- "title"
732
- ],
614
+ "required": ["title"],
733
615
  "additionalProperties": false
734
616
  },
735
617
  "default": []
@@ -750,17 +632,10 @@
750
632
  "properties": {
751
633
  "event_kind": {
752
634
  "type": "string",
753
- "enum": [
754
- "tool_call",
755
- "prompt_submit",
756
- "stop",
757
- "session_end"
758
- ]
635
+ "enum": ["tool_call", "prompt_submit", "stop", "session_end"]
759
636
  }
760
637
  },
761
- "required": [
762
- "event_kind"
763
- ],
638
+ "required": ["event_kind"],
764
639
  "additionalProperties": false
765
640
  },
766
641
  "check": {
@@ -772,29 +647,18 @@
772
647
  "properties": {
773
648
  "level": {
774
649
  "type": "string",
775
- "enum": [
776
- "warn",
777
- "block"
778
- ]
650
+ "enum": ["warn", "block"]
779
651
  },
780
652
  "message": {
781
653
  "type": "string",
782
654
  "minLength": 1
783
655
  }
784
656
  },
785
- "required": [
786
- "level",
787
- "message"
788
- ],
657
+ "required": ["level", "message"],
789
658
  "additionalProperties": false
790
659
  }
791
660
  },
792
- "required": [
793
- "name",
794
- "when",
795
- "check",
796
- "on_fail"
797
- ],
661
+ "required": ["name", "when", "check", "on_fail"],
798
662
  "additionalProperties": false
799
663
  },
800
664
  "default": []
@@ -812,12 +676,7 @@
812
676
  },
813
677
  "on": {
814
678
  "type": "string",
815
- "enum": [
816
- "tool_call",
817
- "prompt_submit",
818
- "stop",
819
- "session_end"
820
- ],
679
+ "enum": ["tool_call", "prompt_submit", "stop", "session_end"],
821
680
  "default": "tool_call"
822
681
  },
823
682
  "detect": {
@@ -832,9 +691,7 @@
832
691
  "additionalProperties": {}
833
692
  }
834
693
  },
835
- "required": [
836
- "call"
837
- ],
694
+ "required": ["call"],
838
695
  "additionalProperties": false
839
696
  },
840
697
  "as": {
@@ -848,22 +705,14 @@
848
705
  },
849
706
  "level": {
850
707
  "type": "string",
851
- "enum": [
852
- "warn",
853
- "block"
854
- ]
708
+ "enum": ["warn", "block"]
855
709
  },
856
710
  "message": {
857
711
  "type": "string",
858
712
  "minLength": 1
859
713
  }
860
714
  },
861
- "required": [
862
- "name",
863
- "when",
864
- "level",
865
- "message"
866
- ],
715
+ "required": ["name", "when", "level", "message"],
867
716
  "additionalProperties": false
868
717
  },
869
718
  "default": []
@@ -883,20 +732,13 @@
883
732
  "default": {}
884
733
  }
885
734
  },
886
- "required": [
887
- "template"
888
- ],
735
+ "required": ["template"],
889
736
  "additionalProperties": false
890
737
  },
891
738
  "default": []
892
739
  }
893
740
  },
894
- "required": [
895
- "name",
896
- "version",
897
- "scope",
898
- "goal"
899
- ],
741
+ "required": ["name", "version", "scope", "goal"],
900
742
  "additionalProperties": false
901
743
  }
902
744
  },
@@ -12,19 +12,11 @@
12
12
  },
13
13
  "mode": {
14
14
  "type": "string",
15
- "enum": [
16
- "subscription",
17
- "api",
18
- "local",
19
- "mcp"
20
- ]
15
+ "enum": ["subscription", "api", "local", "mcp"]
21
16
  },
22
17
  "impl": {
23
18
  "type": "string",
24
- "enum": [
25
- "cli",
26
- "sdk"
27
- ]
19
+ "enum": ["cli", "sdk"]
28
20
  },
29
21
  "cli": {
30
22
  "type": "string"
@@ -56,9 +48,7 @@
56
48
  "type": "string"
57
49
  }
58
50
  },
59
- "required": [
60
- "mode"
61
- ],
51
+ "required": ["mode"],
62
52
  "additionalProperties": false
63
53
  },
64
54
  "default": {}
@@ -13,26 +13,13 @@
13
13
  }
14
14
  },
15
15
  "propertyNames": {
16
- "enum": [
17
- "critical",
18
- "error",
19
- "warning",
20
- "info"
21
- ]
16
+ "enum": ["critical", "error", "warning", "info"]
22
17
  },
23
18
  "default": {
24
- "critical": [
25
- "alerts"
26
- ],
27
- "error": [
28
- "alerts"
29
- ],
30
- "warning": [
31
- "chat"
32
- ],
33
- "info": [
34
- "chat"
35
- ]
19
+ "critical": ["alerts"],
20
+ "error": ["alerts"],
21
+ "warning": ["chat"],
22
+ "info": ["chat"]
36
23
  }
37
24
  },
38
25
  "per_project_override": {
@@ -46,12 +33,7 @@
46
33
  }
47
34
  },
48
35
  "propertyNames": {
49
- "enum": [
50
- "critical",
51
- "error",
52
- "warning",
53
- "info"
54
- ]
36
+ "enum": ["critical", "error", "warning", "info"]
55
37
  }
56
38
  },
57
39
  "default": {}