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
@@ -10,10 +10,7 @@
10
10
  },
11
11
  "load": {
12
12
  "type": "string",
13
- "enum": [
14
- "preload",
15
- "lazy"
16
- ],
13
+ "enum": ["preload", "lazy"],
17
14
  "default": "lazy"
18
15
  },
19
16
  "when_to_load": {
@@ -32,10 +29,7 @@
32
29
  "minLength": 1
33
30
  }
34
31
  },
35
- "required": [
36
- "kind",
37
- "tool"
38
- ],
32
+ "required": ["kind", "tool"],
39
33
  "additionalProperties": false
40
34
  },
41
35
  {
@@ -50,10 +44,7 @@
50
44
  "minLength": 1
51
45
  }
52
46
  },
53
- "required": [
54
- "kind",
55
- "pattern"
56
- ],
47
+ "required": ["kind", "pattern"],
57
48
  "additionalProperties": false
58
49
  },
59
50
  {
@@ -68,10 +59,7 @@
68
59
  "minLength": 1
69
60
  }
70
61
  },
71
- "required": [
72
- "kind",
73
- "glob"
74
- ],
62
+ "required": ["kind", "glob"],
75
63
  "additionalProperties": false
76
64
  },
77
65
  {
@@ -97,10 +85,7 @@
97
85
  ]
98
86
  }
99
87
  },
100
- "required": [
101
- "kind",
102
- "type"
103
- ],
88
+ "required": ["kind", "type"],
104
89
  "additionalProperties": false
105
90
  }
106
91
  ]
@@ -119,9 +104,7 @@
119
104
  "const": "automation_mode_on"
120
105
  }
121
106
  },
122
- "required": [
123
- "kind"
124
- ],
107
+ "required": ["kind"],
125
108
  "additionalProperties": false
126
109
  },
127
110
  {
@@ -132,9 +115,7 @@
132
115
  "const": "active_task_present"
133
116
  }
134
117
  },
135
- "required": [
136
- "kind"
137
- ],
118
+ "required": ["kind"],
138
119
  "additionalProperties": false
139
120
  }
140
121
  ]
@@ -153,9 +134,7 @@
153
134
  "const": "active_task_completes"
154
135
  }
155
136
  },
156
- "required": [
157
- "kind"
158
- ],
137
+ "required": ["kind"],
159
138
  "additionalProperties": false
160
139
  },
161
140
  {
@@ -166,9 +145,7 @@
166
145
  "const": "session_ends"
167
146
  }
168
147
  },
169
- "required": [
170
- "kind"
171
- ],
148
+ "required": ["kind"],
172
149
  "additionalProperties": false
173
150
  },
174
151
  {
@@ -183,10 +160,7 @@
183
160
  "exclusiveMinimum": 0
184
161
  }
185
162
  },
186
- "required": [
187
- "kind",
188
- "n"
189
- ],
163
+ "required": ["kind", "n"],
190
164
  "additionalProperties": false
191
165
  }
192
166
  ]
@@ -205,9 +179,7 @@
205
179
  "const": "tool_call"
206
180
  }
207
181
  },
208
- "required": [
209
- "kind"
210
- ],
182
+ "required": ["kind"],
211
183
  "additionalProperties": false
212
184
  },
213
185
  {
@@ -218,9 +190,7 @@
218
190
  "const": "post_tool_call"
219
191
  }
220
192
  },
221
- "required": [
222
- "kind"
223
- ],
193
+ "required": ["kind"],
224
194
  "additionalProperties": false
225
195
  },
226
196
  {
@@ -231,9 +201,7 @@
231
201
  "const": "prompt_submit"
232
202
  }
233
203
  },
234
- "required": [
235
- "kind"
236
- ],
204
+ "required": ["kind"],
237
205
  "additionalProperties": false
238
206
  },
239
207
  {
@@ -244,9 +212,7 @@
244
212
  "const": "session_end"
245
213
  }
246
214
  },
247
- "required": [
248
- "kind"
249
- ],
215
+ "required": ["kind"],
250
216
  "additionalProperties": false
251
217
  },
252
218
  {
@@ -257,9 +223,7 @@
257
223
  "const": "stop"
258
224
  }
259
225
  },
260
- "required": [
261
- "kind"
262
- ],
226
+ "required": ["kind"],
263
227
  "additionalProperties": false
264
228
  },
265
229
  {
@@ -270,9 +234,7 @@
270
234
  "const": "session_start"
271
235
  }
272
236
  },
273
- "required": [
274
- "kind"
275
- ],
237
+ "required": ["kind"],
276
238
  "additionalProperties": false
277
239
  },
278
240
  {
@@ -287,16 +249,10 @@
287
249
  },
288
250
  "cost_tier": {
289
251
  "type": "string",
290
- "enum": [
291
- "cheap",
292
- "balanced",
293
- "premium"
294
- ]
252
+ "enum": ["cheap", "balanced", "premium"]
295
253
  }
296
254
  },
297
- "required": [
298
- "kind"
299
- ],
255
+ "required": ["kind"],
300
256
  "additionalProperties": false
301
257
  },
302
258
  {
@@ -311,16 +267,10 @@
311
267
  },
312
268
  "cost_tier": {
313
269
  "type": "string",
314
- "enum": [
315
- "cheap",
316
- "balanced",
317
- "premium"
318
- ]
270
+ "enum": ["cheap", "balanced", "premium"]
319
271
  }
320
272
  },
321
- "required": [
322
- "kind"
323
- ],
273
+ "required": ["kind"],
324
274
  "additionalProperties": false
325
275
  },
326
276
  {
@@ -338,16 +288,10 @@
338
288
  },
339
289
  "cost_tier": {
340
290
  "type": "string",
341
- "enum": [
342
- "cheap",
343
- "balanced",
344
- "premium"
345
- ]
291
+ "enum": ["cheap", "balanced", "premium"]
346
292
  }
347
293
  },
348
- "required": [
349
- "kind"
350
- ],
294
+ "required": ["kind"],
351
295
  "additionalProperties": false
352
296
  },
353
297
  {
@@ -371,16 +315,10 @@
371
315
  },
372
316
  "cost_tier": {
373
317
  "type": "string",
374
- "enum": [
375
- "cheap",
376
- "balanced",
377
- "premium"
378
- ]
318
+ "enum": ["cheap", "balanced", "premium"]
379
319
  }
380
320
  },
381
- "required": [
382
- "kind"
383
- ],
321
+ "required": ["kind"],
384
322
  "additionalProperties": false
385
323
  }
386
324
  ]
@@ -420,9 +358,7 @@
420
358
  "const": "automation_mode_on"
421
359
  }
422
360
  },
423
- "required": [
424
- "kind"
425
- ],
361
+ "required": ["kind"],
426
362
  "additionalProperties": false
427
363
  },
428
364
  {
@@ -433,9 +369,7 @@
433
369
  "const": "active_task_present"
434
370
  }
435
371
  },
436
- "required": [
437
- "kind"
438
- ],
372
+ "required": ["kind"],
439
373
  "additionalProperties": false
440
374
  }
441
375
  ]
@@ -463,32 +397,20 @@
463
397
  },
464
398
  "on_empty": {
465
399
  "type": "string",
466
- "enum": [
467
- "pass",
468
- "block",
469
- "continue"
470
- ]
400
+ "enum": ["pass", "block", "continue"]
471
401
  },
472
402
  "on_error": {
473
403
  "type": "string",
474
- "enum": [
475
- "abort",
476
- "continue"
477
- ]
404
+ "enum": ["abort", "continue"]
478
405
  }
479
406
  },
480
- "required": [
481
- "call"
482
- ],
407
+ "required": ["call"],
483
408
  "additionalProperties": false
484
409
  },
485
410
  "minItems": 1
486
411
  }
487
412
  },
488
- "required": [
489
- "id",
490
- "process"
491
- ],
413
+ "required": ["id", "process"],
492
414
  "additionalProperties": false
493
415
  },
494
416
  {
@@ -510,9 +432,7 @@
510
432
  "exclusiveMinimum": 0
511
433
  }
512
434
  },
513
- "required": [
514
- "every_n_tool_calls"
515
- ],
435
+ "required": ["every_n_tool_calls"],
516
436
  "additionalProperties": false
517
437
  },
518
438
  "model_alias": {
@@ -523,12 +443,7 @@
523
443
  "type": "string"
524
444
  }
525
445
  },
526
- "required": [
527
- "id",
528
- "kind",
529
- "interval",
530
- "prompt_template"
531
- ],
446
+ "required": ["id", "kind", "interval", "prompt_template"],
532
447
  "additionalProperties": false
533
448
  }
534
449
  ]
@@ -546,9 +461,7 @@
546
461
  "type": "string"
547
462
  }
548
463
  },
549
- "required": [
550
- "name"
551
- ],
464
+ "required": ["name"],
552
465
  "additionalProperties": false
553
466
  }
554
467
  },
@@ -0,0 +1,46 @@
1
+ {
2
+ "$ref": "#/definitions/team",
3
+ "definitions": {
4
+ "team": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "minLength": 1
10
+ },
11
+ "roles": {
12
+ "type": "array",
13
+ "items": {
14
+ "type": "object",
15
+ "properties": {
16
+ "name": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ "pack": {
21
+ "type": "string",
22
+ "minLength": 1
23
+ },
24
+ "model_alias": {
25
+ "type": "string",
26
+ "minLength": 1
27
+ },
28
+ "handoff_signal": {
29
+ "type": "string"
30
+ },
31
+ "instructions": {
32
+ "type": "string"
33
+ }
34
+ },
35
+ "required": ["name", "pack", "model_alias"],
36
+ "additionalProperties": false
37
+ },
38
+ "minItems": 1
39
+ }
40
+ },
41
+ "required": ["name", "roles"],
42
+ "additionalProperties": false
43
+ }
44
+ },
45
+ "$schema": "http://json-schema.org/draft-07/schema#"
46
+ }