sneakoscope 5.5.3 → 5.6.1

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 (49) hide show
  1. package/README.md +4 -1
  2. package/crates/sks-core/Cargo.lock +1 -1
  3. package/crates/sks-core/Cargo.toml +1 -1
  4. package/crates/sks-core/src/main.rs +1 -1
  5. package/dist/bin/sks.js +1 -1
  6. package/dist/cli/command-registry.js +7 -1
  7. package/dist/cli/router.js +28 -0
  8. package/dist/commands/doctor.js +65 -3
  9. package/dist/config/skills-manifest.json +58 -58
  10. package/dist/core/agent-bridge/agent-manifest.js +64 -0
  11. package/dist/core/agent-bridge/agent-mode.js +29 -0
  12. package/dist/core/agent-bridge/mcp-server.js +156 -0
  13. package/dist/core/agents/agent-orchestrator.js +1 -11
  14. package/dist/core/codex-app/sks-menubar.js +47 -2
  15. package/dist/core/commands/agent-bridge-command.js +86 -0
  16. package/dist/core/commands/image-ux-review-command.js +6 -6
  17. package/dist/core/commands/loop-command.js +2 -6
  18. package/dist/core/commands/mad-sks-command.js +3 -3
  19. package/dist/core/commands/mcp-server-command.js +13 -0
  20. package/dist/core/commands/naruto-command.js +4 -4
  21. package/dist/core/commands/ppt-command.js +6 -3
  22. package/dist/core/commands/qa-loop-command.js +64 -26
  23. package/dist/core/commands/team-command.js +1 -1
  24. package/dist/core/commands/wiki-command.js +89 -3
  25. package/dist/core/config/secret-preservation.js +43 -1
  26. package/dist/core/doctor/browser-use-repair.js +149 -0
  27. package/dist/core/doctor/computer-use-repair.js +166 -0
  28. package/dist/core/doctor/imagegen-repair.js +9 -0
  29. package/dist/core/doctor/mcp-transport-collision-repair.js +129 -0
  30. package/dist/core/feature-fixtures.js +19 -11
  31. package/dist/core/feature-registry.js +21 -0
  32. package/dist/core/fsx.js +1 -1
  33. package/dist/core/hooks-runtime/code-pack-freshness-preflight.js +48 -0
  34. package/dist/core/hooks-runtime.js +4 -0
  35. package/dist/core/mad-db/mad-db-capability.js +1 -1
  36. package/dist/core/mission.js +19 -3
  37. package/dist/core/naruto/naruto-real-worker-child.js +5 -4
  38. package/dist/core/naruto/naruto-real-worker-runtime.js +5 -4
  39. package/dist/core/naruto/normalize-worker-prompt-text.js +12 -0
  40. package/dist/core/routes.js +3 -1
  41. package/dist/core/triwiki/code-index-scanner.js +313 -0
  42. package/dist/core/triwiki/code-pack.js +169 -0
  43. package/dist/core/triwiki/triwiki-cache-key.js +24 -2
  44. package/dist/core/triwiki-attention.js +42 -5
  45. package/dist/core/triwiki-wrongness/wrongness-schema.js +18 -1
  46. package/dist/core/update-check.js +50 -0
  47. package/dist/core/version.js +1 -1
  48. package/dist/scripts/doctor-imagegen-repair-check.js +6 -1
  49. package/package.json +2 -2
@@ -1,39 +1,39 @@
1
1
  {
2
2
  "schema": "sks.skills-manifest.v1",
3
- "package_version": "5.5.3",
3
+ "package_version": "5.6.1",
4
4
  "skills": [
5
5
  {
6
6
  "canonical_name": "answer",
7
7
  "type": "official",
8
- "content_sha256": "15e28b78e74f54112f2a70d494076d79b974076aabb8a440f25ad76b318eec46",
8
+ "content_sha256": "a9438e441f9e8712be80fb4944263fb6df86a1ae0a95c469b809236ca3e5b94e",
9
9
  "hash_history": [],
10
10
  "deprecated_aliases": []
11
11
  },
12
12
  {
13
13
  "canonical_name": "autoresearch",
14
14
  "type": "official",
15
- "content_sha256": "fa0ff64ab44d744379617a145031a4a34ffcce342217e854526ee7dc713319e4",
15
+ "content_sha256": "bf321ce0908dfc7fe42bff239cfb039246adb042dea094dfaec841a4b6d9efc1",
16
16
  "hash_history": [],
17
17
  "deprecated_aliases": []
18
18
  },
19
19
  {
20
20
  "canonical_name": "autoresearch-loop",
21
21
  "type": "official",
22
- "content_sha256": "1d6f4b00bc3e5806bf16574ec626b5cb06bdfba2c6e0b1b91ba91f12f9bb8ae3",
22
+ "content_sha256": "3abfea32a7da820c8b1dea54a7aed03e333b30ae2ab71eb1ee4e74f096de8e39",
23
23
  "hash_history": [],
24
24
  "deprecated_aliases": []
25
25
  },
26
26
  {
27
27
  "canonical_name": "commit",
28
28
  "type": "official",
29
- "content_sha256": "bd8fafef9f0cb985bb2619607571bc7f1399c9eb4e29a4e4356a062cb622bdac",
29
+ "content_sha256": "59ac19c1536a13b0b9eb7a7e0a979677977c8d8c1572064c6b7c3ec190acdb71",
30
30
  "hash_history": [],
31
31
  "deprecated_aliases": []
32
32
  },
33
33
  {
34
34
  "canonical_name": "commit-and-push",
35
35
  "type": "official",
36
- "content_sha256": "23b231c86f16cf05dead065f15a5fcf3ec77cc8a35259feca87383d6c45fa507",
36
+ "content_sha256": "48287131d164beb514f57d1c5d83f3a342526b676b9a03e60379f30fcbd5fe49",
37
37
  "hash_history": [],
38
38
  "deprecated_aliases": []
39
39
  },
@@ -47,56 +47,56 @@
47
47
  {
48
48
  "canonical_name": "computer-use-fast",
49
49
  "type": "official",
50
- "content_sha256": "f7fdc4dc6bc622c6d75b3a53da189a819c9ed6efaf93fb9d14a155c3858f0652",
50
+ "content_sha256": "6d1e240295802ece7e476f4b134ef21818eff86015fd5f14259fa9b2cdacfbb3",
51
51
  "hash_history": [],
52
52
  "deprecated_aliases": []
53
53
  },
54
54
  {
55
55
  "canonical_name": "context7-docs",
56
56
  "type": "official",
57
- "content_sha256": "2e1e89fb2239d423e4d07823ad1d5ce19d89935a55dc62befe26171546076eb3",
57
+ "content_sha256": "962a5ca121d75f4946499a5a0492058d408c8fb50d2a2c2d75282949a6328c25",
58
58
  "hash_history": [],
59
59
  "deprecated_aliases": []
60
60
  },
61
61
  {
62
62
  "canonical_name": "cu",
63
63
  "type": "official",
64
- "content_sha256": "ebfb47d15906062e64f86dbfab3404ad3e4d595d9f97c268589f8eb4002a34ae",
64
+ "content_sha256": "49cbb5f6c392d645ef63a21d67e40fad48c3265a7039aa3c7afca6d1fa447515",
65
65
  "hash_history": [],
66
66
  "deprecated_aliases": []
67
67
  },
68
68
  {
69
69
  "canonical_name": "db",
70
70
  "type": "official",
71
- "content_sha256": "dc67693037722aa6c2af6dd94235c85211916d9693f80050fef98e86cc8b85f9",
71
+ "content_sha256": "bd76c7d20453b748aa5674bc8d47303fd42856cb2e0c58a9cbb8406564b645c4",
72
72
  "hash_history": [],
73
73
  "deprecated_aliases": []
74
74
  },
75
75
  {
76
76
  "canonical_name": "db-safety-guard",
77
77
  "type": "official",
78
- "content_sha256": "1735c85ef5323b20da5c53d31884c897060bd464951b2a17a888f5a3d11d6e05",
78
+ "content_sha256": "813e895094e5da7f4cd9e73da39a26fd409b676b00c2331008ea28f56817b8a1",
79
79
  "hash_history": [],
80
80
  "deprecated_aliases": []
81
81
  },
82
82
  {
83
83
  "canonical_name": "design-artifact-expert",
84
84
  "type": "official",
85
- "content_sha256": "86a7c9106efc754d4b41ff93e4b97af36c221dccf6acc77b1c2eabf04941167e",
85
+ "content_sha256": "c3768fcca475d2c85fe4da6fab0b91640632902356ee47fdf82a35965837c7c6",
86
86
  "hash_history": [],
87
87
  "deprecated_aliases": []
88
88
  },
89
89
  {
90
90
  "canonical_name": "design-system-builder",
91
91
  "type": "official",
92
- "content_sha256": "8ea28e5d426ef96075f9b935e29f997a6b865e6001c12bfd7c9f24ed55aaa5bd",
92
+ "content_sha256": "101336edb08ec1f6bf2ddca42d4b8e30edc81aa5208ee94ee1d021fc51ccde92",
93
93
  "hash_history": [],
94
94
  "deprecated_aliases": []
95
95
  },
96
96
  {
97
97
  "canonical_name": "design-ui-editor",
98
98
  "type": "official",
99
- "content_sha256": "92421072813d700e67716e9ee4259f11f659afa8a6b546db59089321e5bf30aa",
99
+ "content_sha256": "79658b85e4c3a05752eca771c9e8e703e3492e84d4d0d8ba1897adbe3ac1caa1",
100
100
  "hash_history": [],
101
101
  "deprecated_aliases": []
102
102
  },
@@ -110,98 +110,98 @@
110
110
  {
111
111
  "canonical_name": "fast-mode",
112
112
  "type": "official",
113
- "content_sha256": "5e6c12266f998a5074a277d3ca231c0cba1f8bfa0e930d08575d93b14cff8d7e",
113
+ "content_sha256": "609197646a1ed3c75579c0bff1cfbab5924e65118804c4a3ee54965efb9fa81d",
114
114
  "hash_history": [],
115
115
  "deprecated_aliases": []
116
116
  },
117
117
  {
118
118
  "canonical_name": "fast-off",
119
119
  "type": "official",
120
- "content_sha256": "ea1e1bf06dfa6060ff6c665cd89c5fd743dbfb416ab35b303648b78a31bdc7ee",
120
+ "content_sha256": "c2a15c56840a6d801ce89cb1f055b281e61435929fb02f36c444d396cbdc188f",
121
121
  "hash_history": [],
122
122
  "deprecated_aliases": []
123
123
  },
124
124
  {
125
125
  "canonical_name": "fast-on",
126
126
  "type": "official",
127
- "content_sha256": "faed35d78ac2ca4c104f4e2a1201c13c67c871a3892a83da201ea5d76b3f2a22",
127
+ "content_sha256": "5ef3fcf8d37a836e22775a682e4b95271aa383fae5533eb2ba1f113dcff7c14a",
128
128
  "hash_history": [],
129
129
  "deprecated_aliases": []
130
130
  },
131
131
  {
132
132
  "canonical_name": "from-chat-img",
133
133
  "type": "official",
134
- "content_sha256": "76b6439e653a87fd771d3b50095ca5883ecdf778bd195b05293f2be47ac0fec1",
134
+ "content_sha256": "1417c67034eafd12459e811643bb70cf64fe922236d25ac56dad74afc137f87c",
135
135
  "hash_history": [],
136
136
  "deprecated_aliases": []
137
137
  },
138
138
  {
139
139
  "canonical_name": "getdesign-reference",
140
140
  "type": "official",
141
- "content_sha256": "09b90208575a13ac26d38e02219f39f6bafd5f59116c70872e31cd321ee59fe0",
141
+ "content_sha256": "a768bd818c2034cb26d72a7206ac813a153dad6095a85c7be0c0c5ee9af998bf",
142
142
  "hash_history": [],
143
143
  "deprecated_aliases": []
144
144
  },
145
145
  {
146
146
  "canonical_name": "goal",
147
147
  "type": "official",
148
- "content_sha256": "c96a7c76482431065e389180f43b400666cb50d075abf3e8ac97cb55a881eb94",
148
+ "content_sha256": "e29b26eacc6e971765c6fde14d17af3037fa0c4c3ec687748f76bba1441dfbb9",
149
149
  "hash_history": [],
150
150
  "deprecated_aliases": []
151
151
  },
152
152
  {
153
153
  "canonical_name": "gx",
154
154
  "type": "official",
155
- "content_sha256": "28c563803c07a4bc8462c82a2a07e0ffa637ba88212845bef9c4325186fa4676",
155
+ "content_sha256": "f816edc3d2e47ad927683f32547f0bf229dca5794672cda3b4b8b6775c63e407",
156
156
  "hash_history": [],
157
157
  "deprecated_aliases": []
158
158
  },
159
159
  {
160
160
  "canonical_name": "gx-visual-generate",
161
161
  "type": "official",
162
- "content_sha256": "719365a7de842093ce17ce5ea56300dc5e8de076ac67f8d4194c0a3c7a0802d1",
162
+ "content_sha256": "77ebd655dd0d35b01b094b2416a715d3e7936393df681b3bf609ef3b0634b653",
163
163
  "hash_history": [],
164
164
  "deprecated_aliases": []
165
165
  },
166
166
  {
167
167
  "canonical_name": "gx-visual-read",
168
168
  "type": "official",
169
- "content_sha256": "0568152086abc7a27a9edf17029022a8af180e7f1822b09073b0210d0013589b",
169
+ "content_sha256": "4c78ba33cb4b81695328d29ff2f10efbd8f2a3bede448a700fce95eed4c9234c",
170
170
  "hash_history": [],
171
171
  "deprecated_aliases": []
172
172
  },
173
173
  {
174
174
  "canonical_name": "gx-visual-validate",
175
175
  "type": "official",
176
- "content_sha256": "693108ed0e6ad124fea56fc781f8a1e423838ed70222def564c151c2d94af1f4",
176
+ "content_sha256": "7a500cc1516240653bc5c51e63c6c944e705793a8630a54cc061bf4e0ef136bc",
177
177
  "hash_history": [],
178
178
  "deprecated_aliases": []
179
179
  },
180
180
  {
181
181
  "canonical_name": "help",
182
182
  "type": "official",
183
- "content_sha256": "f0933cd97d5af2a05e43fd66271a1d4ae5a7209bc690dbfd9ba5a343ea28365f",
183
+ "content_sha256": "a55a5345a267e53fbf4c457f5292be05ff18c0aa22094d8074f1db58f89cfc85",
184
184
  "hash_history": [],
185
185
  "deprecated_aliases": []
186
186
  },
187
187
  {
188
188
  "canonical_name": "honest-mode",
189
189
  "type": "official",
190
- "content_sha256": "a74ea27ff9d4d653e5d7e416fad5176bcf9ce61d01ea9ab7e23abe40c4b5d0db",
190
+ "content_sha256": "5f2bb3fc7d577938d7f0625f540abe4566fb75edfdeb0011513bc9f69d59462b",
191
191
  "hash_history": [],
192
192
  "deprecated_aliases": []
193
193
  },
194
194
  {
195
195
  "canonical_name": "hproof-claim-ledger",
196
196
  "type": "official",
197
- "content_sha256": "d1a0d35fd6f22bf4b7a666f3f086daf343890a7d2babef304dc7285e45f63c77",
197
+ "content_sha256": "3dc20afb9c3812177913d02ecfb629d4235d74efa13b1076e0cffb0faaf02a4b",
198
198
  "hash_history": [],
199
199
  "deprecated_aliases": []
200
200
  },
201
201
  {
202
202
  "canonical_name": "hproof-evidence-bind",
203
203
  "type": "official",
204
- "content_sha256": "af33a58af2b2784e03e6dd2a89e5dbb6da78c74986aa263123cd802a46edf519",
204
+ "content_sha256": "452c3abacd8e34ded7f8ddf7743fb89b9880ea34c2900e7f05317280c95376e4",
205
205
  "hash_history": [],
206
206
  "deprecated_aliases": []
207
207
  },
@@ -215,14 +215,14 @@
215
215
  {
216
216
  "canonical_name": "imagegen",
217
217
  "type": "official",
218
- "content_sha256": "2cfcbf5786a4db435455771f86300190d75241564101ed21e2dcb97cfb8b563f",
218
+ "content_sha256": "29da586a7011162fec287a2ef8caec6815c49c6e57b6eb421118cd1c0997a96a",
219
219
  "hash_history": [],
220
220
  "deprecated_aliases": []
221
221
  },
222
222
  {
223
223
  "canonical_name": "imagegen-source-scout",
224
224
  "type": "official",
225
- "content_sha256": "44927a5b1fe0c2891f4395285ff0d520a55b24a777c41196a254b175138f8569",
225
+ "content_sha256": "b2dee2532b88299297a948177bccaa3c77e167f71a4a5656aa75704ab0e6934a",
226
226
  "hash_history": [],
227
227
  "deprecated_aliases": []
228
228
  },
@@ -236,14 +236,14 @@
236
236
  {
237
237
  "canonical_name": "insane-search",
238
238
  "type": "official",
239
- "content_sha256": "d34abe1a67810a9acd349bbff5e45be131aaa6fee3472b80e0377e03fcd27b7c",
239
+ "content_sha256": "1f6dd17de304a8f9e5ce88fb110cfb9b169d4cb6c44cd649886e10af9939fe62",
240
240
  "hash_history": [],
241
241
  "deprecated_aliases": []
242
242
  },
243
243
  {
244
244
  "canonical_name": "kage-bunshin",
245
245
  "type": "official",
246
- "content_sha256": "276f80ff3d01997c1991a7e5cb873037e2760343ee592bdf29b74ae5861de5b4",
246
+ "content_sha256": "f1ce549cdc9cae6cd97dcec11e863d4e49e0ea284cc323042abd5e0357a6380f",
247
247
  "hash_history": [],
248
248
  "deprecated_aliases": []
249
249
  },
@@ -257,14 +257,14 @@
257
257
  {
258
258
  "canonical_name": "mad-db",
259
259
  "type": "official",
260
- "content_sha256": "a70d6e0096499505debd77dac0febccea01ee5d294d372f773a1efcf6742fd2e",
260
+ "content_sha256": "968b0af4bddd5e42f14f4b218b9618d7acfb7d7789b0d7d2b1042ae8a84b6913",
261
261
  "hash_history": [],
262
262
  "deprecated_aliases": []
263
263
  },
264
264
  {
265
265
  "canonical_name": "mad-sks",
266
266
  "type": "official",
267
- "content_sha256": "d7fa9a26822e735c62144f679481a8c6dcc93074d6f5ae409c455441f398bdf9",
267
+ "content_sha256": "521c8568ea15185bceee7c8d85b7524525b93f4b33d30dae75dc27eff03eb0aa",
268
268
  "hash_history": [],
269
269
  "deprecated_aliases": []
270
270
  },
@@ -280,35 +280,35 @@
280
280
  {
281
281
  "canonical_name": "performance-evaluator",
282
282
  "type": "official",
283
- "content_sha256": "16140fedd8ce9fd4858bc9ac43264903c327cdb46b41f18307c9ee8e66fa0450",
283
+ "content_sha256": "0a6ff7b4ec29ba921b2c15ea6913595703b18d3a2a6f732ca019f6a1359ebb04",
284
284
  "hash_history": [],
285
285
  "deprecated_aliases": []
286
286
  },
287
287
  {
288
288
  "canonical_name": "pipeline-runner",
289
289
  "type": "official",
290
- "content_sha256": "ae19aaf5eff2a3d7c077365d9558cea6d55af148163cb9b941b68fcb944e5c32",
290
+ "content_sha256": "c6a00924cba641bf19380aa61ae4e26cc8ed64d1ad4e866a4e95ec489ee6dd9f",
291
291
  "hash_history": [],
292
292
  "deprecated_aliases": []
293
293
  },
294
294
  {
295
295
  "canonical_name": "plan",
296
296
  "type": "official",
297
- "content_sha256": "260c54f4f0cc7b9223dd4068f147e93d13a0953c400a402ab26292d60f4cc5cd",
297
+ "content_sha256": "f415b47e08cf25ec980182ef7badcaf50f6506a0fbd7edd2a2e9fd51729d7815",
298
298
  "hash_history": [],
299
299
  "deprecated_aliases": []
300
300
  },
301
301
  {
302
302
  "canonical_name": "ppt",
303
303
  "type": "official",
304
- "content_sha256": "7907317c4e1e720343a33dd4412f1e75533306261620144d45c7c2ab0c7e2cc4",
304
+ "content_sha256": "dba300be1e31ee8b50d634ccdc0096b753320b85ee827f312f0136d4287dd8be",
305
305
  "hash_history": [],
306
306
  "deprecated_aliases": []
307
307
  },
308
308
  {
309
309
  "canonical_name": "prompt-pipeline",
310
310
  "type": "official",
311
- "content_sha256": "d872997c808218716398fc059407802e027b5b7f69f2940d391e48e0549ec771",
311
+ "content_sha256": "86c130cad13a8e7d4b7a7a7ee7474c517b705c4f834598b2cdb44602af06d0c1",
312
312
  "hash_history": [],
313
313
  "deprecated_aliases": []
314
314
  },
@@ -324,21 +324,21 @@
324
324
  {
325
325
  "canonical_name": "reasoning-router",
326
326
  "type": "official",
327
- "content_sha256": "008198bb290c1caad7675221f5d6a61f8eba97f1d4c6d3304f01e67567c60239",
327
+ "content_sha256": "719ec55847e6eea7fabf088c4c068e8cfc688a2fc3298be8d1edc93fbe6eb48f",
328
328
  "hash_history": [],
329
329
  "deprecated_aliases": []
330
330
  },
331
331
  {
332
332
  "canonical_name": "reflection",
333
333
  "type": "official",
334
- "content_sha256": "75945d37d4e6999c087bc261e352a312ef42b406093dbea8eeb5105338777e23",
334
+ "content_sha256": "6315dec228c5f6350b8a5569605c8b3f62700b9a5b1b5c101c533c47365602a5",
335
335
  "hash_history": [],
336
336
  "deprecated_aliases": []
337
337
  },
338
338
  {
339
339
  "canonical_name": "release-review",
340
340
  "type": "official",
341
- "content_sha256": "77557fcb288c0b13ed1f9ff859fc6595c36c812f519e47f0a269cb12f48f9a84",
341
+ "content_sha256": "df3b3dc676103a71f872079d050f4a95e5208f85d6910833a5cf83b6434029f4",
342
342
  "hash_history": [],
343
343
  "deprecated_aliases": []
344
344
  },
@@ -352,14 +352,14 @@
352
352
  {
353
353
  "canonical_name": "research-discovery",
354
354
  "type": "official",
355
- "content_sha256": "fe0ff5a7c4f35a9cf72da3b6d918b082dc091a22b013e620341afb2c3ad3692c",
355
+ "content_sha256": "5e4589085fc14c27cc24e4afbfc3666c78801b7ef5b013f1fb32a3ea081df7b0",
356
356
  "hash_history": [],
357
357
  "deprecated_aliases": []
358
358
  },
359
359
  {
360
360
  "canonical_name": "review",
361
361
  "type": "official",
362
- "content_sha256": "7cab4b29a28f9be1480cd133a26629967de3c35df915f82d0871ef66719f9c8d",
362
+ "content_sha256": "f360c1a70676d1ae4a123c482b2dd2819b7b4d1a13843df3b920ef8b150ca4b5",
363
363
  "hash_history": [],
364
364
  "deprecated_aliases": []
365
365
  },
@@ -380,14 +380,14 @@
380
380
  {
381
381
  "canonical_name": "shadow-clone",
382
382
  "type": "official",
383
- "content_sha256": "86d5cf4428c19598dc900f8669317a67116785afba2c23c1b6395ba65065338f",
383
+ "content_sha256": "546b6a8c5f68dc8270fde061bfcd0e9d8cf6e3f86a39bae65b068c9c61a248fe",
384
384
  "hash_history": [],
385
385
  "deprecated_aliases": []
386
386
  },
387
387
  {
388
388
  "canonical_name": "sks",
389
389
  "type": "official",
390
- "content_sha256": "994d4a8065b8403418bcd6c873832447f00d7778df159cdcad075ad4f8258703",
390
+ "content_sha256": "34a2c8181e7ececa09af714ea01c8f7ee6ca37cf38cee89d65bc59c52263b76d",
391
391
  "hash_history": [],
392
392
  "deprecated_aliases": [
393
393
  "ralph",
@@ -399,21 +399,21 @@
399
399
  {
400
400
  "canonical_name": "solution-scout",
401
401
  "type": "official",
402
- "content_sha256": "fd4709add13e2b70d4bcd490280cf494e329aed717af9f47218ec3090e37eba7",
402
+ "content_sha256": "67f1f1aea3a0d46d5c77b823dea935519559693dc173d68668f015015d46e305",
403
403
  "hash_history": [],
404
404
  "deprecated_aliases": []
405
405
  },
406
406
  {
407
407
  "canonical_name": "swarm",
408
408
  "type": "official",
409
- "content_sha256": "c0046a9a93496acf3ce7b44bbd7228b7f53ead76a7ca27b489f8645c096fa47d",
409
+ "content_sha256": "88633d29d184a88c56dc6421356467a8c72c7a0a8cd4002fed3b988109eaa7f7",
410
410
  "hash_history": [],
411
411
  "deprecated_aliases": []
412
412
  },
413
413
  {
414
414
  "canonical_name": "team",
415
415
  "type": "official",
416
- "content_sha256": "e47500dfc35424e541e5cd387ef6b7ff8f05aa79573c95f78779f28e08e2bd0a",
416
+ "content_sha256": "db177921687585bc98ff9cc13c5ec70b9f37d7cd993df4ae8b1e94df4b087073",
417
417
  "hash_history": [],
418
418
  "deprecated_aliases": [
419
419
  "agent-team"
@@ -422,42 +422,42 @@
422
422
  {
423
423
  "canonical_name": "turbo-context-pack",
424
424
  "type": "official",
425
- "content_sha256": "6d99ba34b95a7de9dad04447b463f956ca95cc07f21a2324152926a585e65404",
425
+ "content_sha256": "ac5de382728f451fd41e1a840cb10e3e945506f839c8b6866d22aefc452db3d1",
426
426
  "hash_history": [],
427
427
  "deprecated_aliases": []
428
428
  },
429
429
  {
430
430
  "canonical_name": "ui-ux-review",
431
431
  "type": "official",
432
- "content_sha256": "75642e03523b9ef7382d8d537c5bcb69bae2f5d884c285564cd91a7e48cfff84",
432
+ "content_sha256": "62550c9d9099bb42a4b739d089c24c3677bb7549a59729a5a73861321e0dca9d",
433
433
  "hash_history": [],
434
434
  "deprecated_aliases": []
435
435
  },
436
436
  {
437
437
  "canonical_name": "ultra-search",
438
438
  "type": "official",
439
- "content_sha256": "7033091cf44c663ca7a0adb4b065e757766635acbe91bea9617ca712253fbd65",
439
+ "content_sha256": "4ac0cbc5d14a355591193da3b9f2897d6adfdd969adca10309475dd2fda67d78",
440
440
  "hash_history": [],
441
441
  "deprecated_aliases": []
442
442
  },
443
443
  {
444
444
  "canonical_name": "ux-review",
445
445
  "type": "official",
446
- "content_sha256": "92d7a98dbd428bbe2773975d865063de5087e6d08d9ca5ecf206fab22569074f",
446
+ "content_sha256": "47234af087692589857e114f71b994482d9b1017310868d39a46ecf7e96d22f4",
447
447
  "hash_history": [],
448
448
  "deprecated_aliases": []
449
449
  },
450
450
  {
451
451
  "canonical_name": "visual-review",
452
452
  "type": "official",
453
- "content_sha256": "80357614f9f244cd5708559790a2de73a34b1ff5172a0d408617b28dc356be00",
453
+ "content_sha256": "42c082f9093a7ce7a788570b93b7cde285d82daa37471364118a0c9c49407314",
454
454
  "hash_history": [],
455
455
  "deprecated_aliases": []
456
456
  },
457
457
  {
458
458
  "canonical_name": "wiki",
459
459
  "type": "official",
460
- "content_sha256": "2196ffda8a225705a96b4ae5f3210445d584962c7b385e526b54f4e5316cfe5c",
460
+ "content_sha256": "a12c5f5e8b701efd423269e4d7067c73dc67987c60de982bf6f2969d808d86c9",
461
461
  "hash_history": [],
462
462
  "deprecated_aliases": [
463
463
  "wiki-refresh",
@@ -467,21 +467,21 @@
467
467
  {
468
468
  "canonical_name": "with-local-llm-off",
469
469
  "type": "official",
470
- "content_sha256": "ac4247fd330d70696434e71137b0461e349161690a43e8cc2c95a14fe76002c9",
470
+ "content_sha256": "52683242008800a0e81317402d16e4685772b2237dbe83193c46bca63fe22683",
471
471
  "hash_history": [],
472
472
  "deprecated_aliases": []
473
473
  },
474
474
  {
475
475
  "canonical_name": "with-local-llm-on",
476
476
  "type": "official",
477
- "content_sha256": "9d34d742968ef9952121a5d013c6be731caac50b40f7582fc34a2cae961c3879",
477
+ "content_sha256": "236ed87e556c26b10837fc11966efbc5738165fc3fe63153f3e9adcdb1c820a9",
478
478
  "hash_history": [],
479
479
  "deprecated_aliases": []
480
480
  },
481
481
  {
482
482
  "canonical_name": "work",
483
483
  "type": "official",
484
- "content_sha256": "fe499515c433c1f6924669c6561bcf778775f37ac1860ae9ef71c4a0e94d295b",
484
+ "content_sha256": "55a19da1bf184f6d867bae2b121e975213124fdb8c113793029a5e04731fa616",
485
485
  "hash_history": [],
486
486
  "deprecated_aliases": []
487
487
  }
@@ -0,0 +1,64 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { COMMANDS } from '../../cli/command-registry.js';
4
+ import { nowIso, packageRoot } from '../fsx.js';
5
+ /** Keyword match on name+summary only, word-bounded to avoid substrings like "preset" matching "reset"; never invent commands not present in COMMANDS. */
6
+ const DESTRUCTIVE_NAME_PATTERNS = [/uninstall/, /^mad-sks$/, /^mad-db$/, /\breset\b/, /\bpurge\b/, /\bwipe\b/, /\bdelete\b/];
7
+ const DESTRUCTIVE_SUMMARY_PATTERNS = [/uninstall/i, /irreversib/i, /destructive/i, /\bdeletes?\b/i, /\bwipe[sd]?\b/i, /\bpurge[sd]?\b/i, /\breset[s]?\b/i];
8
+ const LONG_RUNNING_NAME_PATTERNS = [/^naruto$/, /^mad-sks$/, /^mad-db$/, /^update$/, /^update-check$/, /^postinstall$/, /^agent$/, /^team$/, /^loop$/, /^research$/, /^autoresearch$/];
9
+ const LONG_RUNNING_SUMMARY_PATTERNS = [/naruto/i, /shadow-clone swarm/i, /\bmad[- ]sks\b/i, /\bmad[- ]db\b/i, /\binstall\b/i, /\bupdate\b/i, /multi-session agent missions/i];
10
+ function isDestructive(name, summary) {
11
+ if (DESTRUCTIVE_NAME_PATTERNS.some((re) => re.test(name)))
12
+ return true;
13
+ return DESTRUCTIVE_SUMMARY_PATTERNS.some((re) => re.test(summary));
14
+ }
15
+ function isLongRunning(name, summary) {
16
+ if (LONG_RUNNING_NAME_PATTERNS.some((re) => re.test(name)))
17
+ return true;
18
+ return LONG_RUNNING_SUMMARY_PATTERNS.some((re) => re.test(summary));
19
+ }
20
+ /** Best-effort literal scan of the compiled command file; unreadable (e.g. packaged install without dist) means false, never a guessed true. */
21
+ function scanSupportsJsonFlag(packageRequiredFiles) {
22
+ const root = packageRoot();
23
+ for (const relFile of packageRequiredFiles) {
24
+ try {
25
+ const abs = path.join(root, relFile);
26
+ if (!fs.existsSync(abs))
27
+ continue;
28
+ const text = fs.readFileSync(abs, 'utf8');
29
+ if (text.includes("'--json'") || text.includes('"--json"'))
30
+ return true;
31
+ }
32
+ catch {
33
+ continue;
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+ function exampleInvocation(name, jsonSupported) {
39
+ return jsonSupported ? `sks ${name} --json` : `sks ${name}`;
40
+ }
41
+ function buildEntry(name, command) {
42
+ const readOnly = command.readonly === true;
43
+ const jsonSupported = scanSupportsJsonFlag(command.packageRequiredFiles);
44
+ return {
45
+ name,
46
+ description: command.summary,
47
+ read_only: readOnly,
48
+ requires_explicit_opt_in: isDestructive(name, command.summary),
49
+ json_output_supported: jsonSupported,
50
+ latency_class: readOnly ? 'fast' : (isLongRunning(name, command.summary) ? 'long' : 'normal'),
51
+ example_invocation: exampleInvocation(name, jsonSupported),
52
+ maturity: command.maturity
53
+ };
54
+ }
55
+ export function buildAgentManifest() {
56
+ const names = Object.keys(COMMANDS).sort();
57
+ const tools = names.map((name) => buildEntry(name, COMMANDS[name]));
58
+ return {
59
+ schema: 'sks.agent-manifest.v1',
60
+ generated_at: nowIso(),
61
+ tools
62
+ };
63
+ }
64
+ //# sourceMappingURL=agent-manifest.js.map
@@ -0,0 +1,29 @@
1
+ import { nowIso } from '../fsx.js';
2
+ // non-interactive contract: any subprocess-invoking system can gate readline prompts on agentModeActive() without hanging.
3
+ export function agentModeActive(env = process.env) {
4
+ return env.SKS_AGENT_MODE === '1';
5
+ }
6
+ const STREAM_EVENT_KINDS = ['start', 'progress', 'partial', 'result', 'error'];
7
+ // Real-time consumers (e.g. a Slack bot relaying progress) parse stdout line-by-line;
8
+ // one write per event keeps events from interleaving mid-line under backpressure.
9
+ export function emitStreamEvent(event, data, out = process.stdout) {
10
+ if (!STREAM_EVENT_KINDS.includes(event))
11
+ throw new Error(`invalid stream event kind: ${String(event)}`);
12
+ const line = { event, ts: nowIso(), data };
13
+ out.write(JSON.stringify(line) + '\n');
14
+ }
15
+ export function interactiveInputRequiredResponse(question, nonInteractiveHint) {
16
+ return {
17
+ ok: false,
18
+ error: 'interactive_input_required',
19
+ question,
20
+ non_interactive_hint: nonInteractiveHint
21
+ };
22
+ }
23
+ // Existing gate-skipping env vars (see src/core/update-check.ts, src/core/update/update-migration-state.ts) that
24
+ // agent mode should also imply are set once the later integration step wires SKS_AGENT_MODE into the CLI entrypoint.
25
+ export const AGENT_MODE_ENV_PASSTHROUGH = [
26
+ 'SKS_UPDATE_MIGRATION_GATE_DISABLED',
27
+ 'SKS_DISABLE_UPDATE_CHECK'
28
+ ];
29
+ //# sourceMappingURL=agent-mode.js.map