sneakoscope 5.5.0 → 5.5.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.
- package/crates/sks-core/Cargo.lock +1 -1
- package/crates/sks-core/Cargo.toml +1 -1
- package/crates/sks-core/src/main.rs +1 -1
- package/dist/bin/sks.js +1 -1
- package/dist/cli/install-helpers.js +17 -0
- package/dist/config/skills-manifest.json +58 -58
- package/dist/core/codex-app/sks-menubar.js +15 -3
- package/dist/core/fsx.js +1 -1
- package/dist/core/update/update-migration-state.js +15 -1
- package/dist/core/update-check.js +44 -2
- package/dist/core/version.js +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ use std::io::{self, Read, Seek, SeekFrom};
|
|
|
4
4
|
fn main() {
|
|
5
5
|
let mut args = std::env::args().skip(1);
|
|
6
6
|
match args.next().as_deref() {
|
|
7
|
-
Some("--version") => println!("sks-rs 5.5.
|
|
7
|
+
Some("--version") => println!("sks-rs 5.5.1"),
|
|
8
8
|
Some("compact-info") => {
|
|
9
9
|
let mut input = String::new();
|
|
10
10
|
let _ = io::stdin().read_to_string(&mut input);
|
package/dist/bin/sks.js
CHANGED
|
@@ -50,6 +50,23 @@ export async function postinstall({ bootstrap, args = [] }) {
|
|
|
50
50
|
// restore the codex-lb snapshot in finally (even on the early bootstrap return / on throw).
|
|
51
51
|
try {
|
|
52
52
|
console.log('\nSKS installed.');
|
|
53
|
+
// The published tarball deliberately excludes dist/.sks-build-stamp.json
|
|
54
|
+
// (package.json files: "!dist/.sks-build-stamp.json"), but `sks update`
|
|
55
|
+
// self-verification requires a version-matching stamp inside the installed
|
|
56
|
+
// package. Regenerate it here so npm installs are verifiable; never
|
|
57
|
+
// overwrite an existing stamp (in a dev checkout the build writes the real
|
|
58
|
+
// one, and re-stamping against the current source tree would mask a stale
|
|
59
|
+
// dist).
|
|
60
|
+
try {
|
|
61
|
+
const stampLib = await import('../scripts/lib/ensure-dist-fresh.js');
|
|
62
|
+
await fsp.access(stampLib.distStampPath).catch(async () => {
|
|
63
|
+
await fsp.writeFile(stampLib.distStampPath, `${JSON.stringify(stampLib.buildStampPayload(), null, 2)}\n`);
|
|
64
|
+
console.log('SKS build stamp: restored for update self-verification (npm packages ship without it).');
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
console.log(`SKS build stamp: could not restore (${err?.message || err}); \`sks update\` self-verification may report dist_stamp missing.`);
|
|
69
|
+
}
|
|
53
70
|
const shim = await ensureSksCommandDuringInstall();
|
|
54
71
|
if (shim.status === 'present')
|
|
55
72
|
console.log(`SKS command: available (${shim.command ?? 'unknown'}).`);
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "sks.skills-manifest.v1",
|
|
3
|
-
"package_version": "5.5.
|
|
3
|
+
"package_version": "5.5.1",
|
|
4
4
|
"skills": [
|
|
5
5
|
{
|
|
6
6
|
"canonical_name": "answer",
|
|
7
7
|
"type": "official",
|
|
8
|
-
"content_sha256": "
|
|
8
|
+
"content_sha256": "eb355d9d95a624456d1c11ba5f7c2e943eed3e608eaeb7577484bb8684e98f49",
|
|
9
9
|
"hash_history": [],
|
|
10
10
|
"deprecated_aliases": []
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"canonical_name": "autoresearch",
|
|
14
14
|
"type": "official",
|
|
15
|
-
"content_sha256": "
|
|
15
|
+
"content_sha256": "fb8516b857e6c19c1848464a6a21fb52532542a97140ad151b75b8ba532ecd86",
|
|
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": "
|
|
22
|
+
"content_sha256": "3ba603f8f2afc373f4a6a83f0814bb2ed43e076adc02f0fb19795b2b64221c62",
|
|
23
23
|
"hash_history": [],
|
|
24
24
|
"deprecated_aliases": []
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"canonical_name": "commit",
|
|
28
28
|
"type": "official",
|
|
29
|
-
"content_sha256": "
|
|
29
|
+
"content_sha256": "445981ac546ca6649718fb677e88c20b0c15604af962ba9b2c29632657f4bf97",
|
|
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": "
|
|
36
|
+
"content_sha256": "276bc9e8f0ae40e4ad67c3e9386ad44a272c347e54d78587f93a7e4446e167c9",
|
|
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": "
|
|
50
|
+
"content_sha256": "291f0dd63ff5d22c829e13e91f1f3248b370565d94ed971ef8fab8c253f27516",
|
|
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": "
|
|
57
|
+
"content_sha256": "36ed3c0fbeb474476b3aa24e88978e580b5d804087155aac01d1705ee5034234",
|
|
58
58
|
"hash_history": [],
|
|
59
59
|
"deprecated_aliases": []
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"canonical_name": "cu",
|
|
63
63
|
"type": "official",
|
|
64
|
-
"content_sha256": "
|
|
64
|
+
"content_sha256": "035445a9c7f9435df2d14d4c9dc4fda1ab7997b5e7da70aded75f66d38a820ea",
|
|
65
65
|
"hash_history": [],
|
|
66
66
|
"deprecated_aliases": []
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"canonical_name": "db",
|
|
70
70
|
"type": "official",
|
|
71
|
-
"content_sha256": "
|
|
71
|
+
"content_sha256": "a498006166404534318e628709ce5f832ec495dfc3bcc6808c5a771755951283",
|
|
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": "
|
|
78
|
+
"content_sha256": "c548b2bde99dea4860e9e21d85a2c86cdb87e4a7a9a7a038e209547c41f967b1",
|
|
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": "
|
|
85
|
+
"content_sha256": "75287c098a423d5b10dccdbe49dea78d4752201491e25ff52efa110bd35ed60a",
|
|
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": "
|
|
92
|
+
"content_sha256": "50f9ca760b29f9b99775aa0c4a6edda99304c24dba3ba9c37e5c7686f7512a62",
|
|
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": "
|
|
99
|
+
"content_sha256": "f179afd065f360bf98d4f55aa2f0fc670b5927bf990c10bf943fe56292569223",
|
|
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": "
|
|
113
|
+
"content_sha256": "edc872f6ed65d03c1b65d607108b5a48f6ea19c984ca25242b68c4a76b271799",
|
|
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": "
|
|
120
|
+
"content_sha256": "98f25503ce2a9ac5e72c15958340e05a0e6561f4fec827fe8a9211bbac87a2b5",
|
|
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": "
|
|
127
|
+
"content_sha256": "d91d8a574f8fdc73adb6b9fc01d2183fc30f02f9b43ff36db93901a845af93d4",
|
|
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": "
|
|
134
|
+
"content_sha256": "c7f348b7c6b443eb2cc04dfa6797fbd370381005921985b423603c5040b5f12c",
|
|
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": "
|
|
141
|
+
"content_sha256": "08b6d5589d88fa99765a48e88834a25cd7f012b1d85146f001ad75c309d789c5",
|
|
142
142
|
"hash_history": [],
|
|
143
143
|
"deprecated_aliases": []
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
"canonical_name": "goal",
|
|
147
147
|
"type": "official",
|
|
148
|
-
"content_sha256": "
|
|
148
|
+
"content_sha256": "3671a7b401c8a996f9cbe4b7e7706cbe7e413f083490bd3302412cd74d019ff0",
|
|
149
149
|
"hash_history": [],
|
|
150
150
|
"deprecated_aliases": []
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"canonical_name": "gx",
|
|
154
154
|
"type": "official",
|
|
155
|
-
"content_sha256": "
|
|
155
|
+
"content_sha256": "4e0a69dc82f3a369efe7375b2a281ca5b61be75766145601db305de498fc178e",
|
|
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": "
|
|
162
|
+
"content_sha256": "039f32a65479f9d0d5eb51b6f1ccb2e4349abda9cdf32978be298e9e04f5aab4",
|
|
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": "
|
|
169
|
+
"content_sha256": "3fa2bea36b9ca60f8b4487ee70e20eaddfced1abdce9696b479e95aaac57d432",
|
|
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": "
|
|
176
|
+
"content_sha256": "b18811386fefc098cbb0a29434c8f6f068cc92209bd6b909ec906e7dc49efcbb",
|
|
177
177
|
"hash_history": [],
|
|
178
178
|
"deprecated_aliases": []
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
"canonical_name": "help",
|
|
182
182
|
"type": "official",
|
|
183
|
-
"content_sha256": "
|
|
183
|
+
"content_sha256": "599d8289904d4c3a015ac233d9bb7dc46a669267b47027126f162a140464d39f",
|
|
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": "
|
|
190
|
+
"content_sha256": "ef2b581127e498269045554d6544f86a320c85828998a8043d617a565986d56e",
|
|
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": "
|
|
197
|
+
"content_sha256": "15997785ec0284ade631752f247531cd9da26cb1a6c2031802d1d322bd73c516",
|
|
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": "
|
|
204
|
+
"content_sha256": "f91d41a64c4eb7346dbb523ffb5c052c980befe17bd2a8daf5857278fb70f8f7",
|
|
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": "
|
|
218
|
+
"content_sha256": "efcf7dfb4537baef4a5e9f18e297efeb5fb7dba6072ecc505e87f3003566865c",
|
|
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": "
|
|
225
|
+
"content_sha256": "3f6eabfa7b6a0fc9e144cbe0a85488ce2eb449c7b7f04e2f7a7300ac45eb9e34",
|
|
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": "
|
|
239
|
+
"content_sha256": "b0cb54ba495d43e4d6fb828a3f6a7a284d33dc3279904e29a4c09a9827f59052",
|
|
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": "
|
|
246
|
+
"content_sha256": "48a6cd2fbb60b3092d33c2d784e050965195105f83181f5b81476a98f7103fbc",
|
|
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": "
|
|
260
|
+
"content_sha256": "05884bb87bc0b174c2ef288c6a808f9226d67aba11610a85d7d5f15c5197c18e",
|
|
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": "
|
|
267
|
+
"content_sha256": "6c86b9c31ce6ee79dec1a3cdd6df4738f46887b2a10a2d94db8e658ea130deca",
|
|
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": "
|
|
283
|
+
"content_sha256": "ec7c3555ae4daa64d2e7ec6dda36eb004d2a89ebc3c6a099495f3e94b5d5a30a",
|
|
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": "
|
|
290
|
+
"content_sha256": "126215afc5e58add4d57694086407381a684a8d8dc8d4a9d5b83583bf885819d",
|
|
291
291
|
"hash_history": [],
|
|
292
292
|
"deprecated_aliases": []
|
|
293
293
|
},
|
|
294
294
|
{
|
|
295
295
|
"canonical_name": "plan",
|
|
296
296
|
"type": "official",
|
|
297
|
-
"content_sha256": "
|
|
297
|
+
"content_sha256": "ee95cd0170aa40a12e5979ffd4f364d461ca583d080424340e3fc8e2c314b6d4",
|
|
298
298
|
"hash_history": [],
|
|
299
299
|
"deprecated_aliases": []
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
"canonical_name": "ppt",
|
|
303
303
|
"type": "official",
|
|
304
|
-
"content_sha256": "
|
|
304
|
+
"content_sha256": "3b1d38def9c594f15cd4c416e2424bd727ad64f3fab9e399c24c3787501b7be7",
|
|
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": "
|
|
311
|
+
"content_sha256": "a06dddb2d16cf9aa9c3094ed4f128e58ee9c90c44c1d62ee764953288e30610a",
|
|
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": "
|
|
327
|
+
"content_sha256": "f144e9c1a7ebb6ff0914735e70925969884de1f4967becd855ef410f8a0836a3",
|
|
328
328
|
"hash_history": [],
|
|
329
329
|
"deprecated_aliases": []
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
"canonical_name": "reflection",
|
|
333
333
|
"type": "official",
|
|
334
|
-
"content_sha256": "
|
|
334
|
+
"content_sha256": "6c6a0f0616c89ba7345a336c80999011cbd120ce1b9280e5ae0fd0ebae41a478",
|
|
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": "
|
|
341
|
+
"content_sha256": "6c0571e84cc21a6263b4b68afea54f54c3831ef6e14fd6e083bc917e61f7f904",
|
|
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": "
|
|
355
|
+
"content_sha256": "18f5b4f559c2f46f2db8a03d875063879275cf3aca998eb257633ab5e4bb23c8",
|
|
356
356
|
"hash_history": [],
|
|
357
357
|
"deprecated_aliases": []
|
|
358
358
|
},
|
|
359
359
|
{
|
|
360
360
|
"canonical_name": "review",
|
|
361
361
|
"type": "official",
|
|
362
|
-
"content_sha256": "
|
|
362
|
+
"content_sha256": "4365c8b798ab5d06120350f0a3778db7c64496c7a8b3ed7a1face67701a37826",
|
|
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": "
|
|
383
|
+
"content_sha256": "7326107bb5ca9929fb504203487194417d279add0fa37a4e5060e12477cdab56",
|
|
384
384
|
"hash_history": [],
|
|
385
385
|
"deprecated_aliases": []
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
388
|
"canonical_name": "sks",
|
|
389
389
|
"type": "official",
|
|
390
|
-
"content_sha256": "
|
|
390
|
+
"content_sha256": "6d017fa22c25ad2c8aaf8403339c45f464763e7c0b609ca1ec16a0e157207884",
|
|
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": "
|
|
402
|
+
"content_sha256": "cbfdd8f3217bd41a28bcbc91060359270b0cf23f1ef7ccb085039e08dd03cf28",
|
|
403
403
|
"hash_history": [],
|
|
404
404
|
"deprecated_aliases": []
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
"canonical_name": "swarm",
|
|
408
408
|
"type": "official",
|
|
409
|
-
"content_sha256": "
|
|
409
|
+
"content_sha256": "fcd10b15ad546f3ce4e434acc7094ec951b397a5add4365caefdfce20a22024d",
|
|
410
410
|
"hash_history": [],
|
|
411
411
|
"deprecated_aliases": []
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
414
|
"canonical_name": "team",
|
|
415
415
|
"type": "official",
|
|
416
|
-
"content_sha256": "
|
|
416
|
+
"content_sha256": "a53d2a7a8a25ed2d0bce335edbdd6c212d74cafbae1ef176dd2ff366524bdcb2",
|
|
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": "
|
|
425
|
+
"content_sha256": "91c8a6e304491ddeabc8dba3be3dc4c9da9654af22240ddce317b679737c1ef0",
|
|
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": "
|
|
432
|
+
"content_sha256": "d4677fc544aeb08635f1da4684cca7f2fdfcf16ad88c9df28aa521e98726f208",
|
|
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": "
|
|
439
|
+
"content_sha256": "ef9f4489893f59e637f68ae454d9b97dedb4fa63602fea89e518c4c2259d097f",
|
|
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": "
|
|
446
|
+
"content_sha256": "9723da43b32f4381c670d9b60cd2ced3e5ca2d7865f723d024e1d5d478dee877",
|
|
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": "
|
|
453
|
+
"content_sha256": "f37280acbfec69ad5944d55dabecf03aa8cb76df0925705d5b9a67fbaf5e6237",
|
|
454
454
|
"hash_history": [],
|
|
455
455
|
"deprecated_aliases": []
|
|
456
456
|
},
|
|
457
457
|
{
|
|
458
458
|
"canonical_name": "wiki",
|
|
459
459
|
"type": "official",
|
|
460
|
-
"content_sha256": "
|
|
460
|
+
"content_sha256": "bd2f8567f00995c8c2775c08a4ddb76a348e3d557cb905392ec2eac6f30117dd",
|
|
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": "
|
|
470
|
+
"content_sha256": "7d3e39a3480bd513ac28ba13c65e72e98ea52f0cd0c4e187c0185dcdd7c63e2e",
|
|
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": "
|
|
477
|
+
"content_sha256": "2a3b041e142e5a9d1bddb35b443a1b57d811c428ec27904fd6047c4c31ad3bbb",
|
|
478
478
|
"hash_history": [],
|
|
479
479
|
"deprecated_aliases": []
|
|
480
480
|
},
|
|
481
481
|
{
|
|
482
482
|
"canonical_name": "work",
|
|
483
483
|
"type": "official",
|
|
484
|
-
"content_sha256": "
|
|
484
|
+
"content_sha256": "43f25e47e14394d4578499c4e7a3d5db07ea581f9af777c4a04876cfa9d64311",
|
|
485
485
|
"hash_history": [],
|
|
486
486
|
"deprecated_aliases": []
|
|
487
487
|
}
|
|
@@ -707,6 +707,14 @@ export function actionScriptSource(input) {
|
|
|
707
707
|
return `#!/bin/zsh
|
|
708
708
|
set -e
|
|
709
709
|
export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
|
|
710
|
+
# launchd starts this app with cwd=/. sks treats an unmarked cwd as the project
|
|
711
|
+
# root fallback, and / is neither writable nor a workspace, so give every
|
|
712
|
+
# menu-bar-spawned command a sane home-directory cwd instead.
|
|
713
|
+
cd "$HOME" 2>/dev/null || true
|
|
714
|
+
# Menu-bar actions operate on global state (~/.codex, keychain, launchd), never
|
|
715
|
+
# on a project, so the per-project update-migration gate must not fire here —
|
|
716
|
+
# it would otherwise treat $HOME as a project and run a migration doctor in it.
|
|
717
|
+
export SKS_UPDATE_MIGRATION_GATE_DISABLED=1
|
|
710
718
|
NODE_BIN=${shellQuote(input.nodeBin)}
|
|
711
719
|
SKS_ENTRY=${shellQuote(input.sksEntry)}
|
|
712
720
|
|
|
@@ -1377,7 +1385,11 @@ async function launchWithLaunchctl(input) {
|
|
|
1377
1385
|
...stdio
|
|
1378
1386
|
}).catch((err) => ({ code: 1, stdout: '', stderr: err?.message || String(err) }));
|
|
1379
1387
|
if (kickstart.code !== 0) {
|
|
1380
|
-
|
|
1388
|
+
// A kickstart timeout does not mean the relaunch failed — under heavy
|
|
1389
|
+
// system load (e.g. mid `npm install -g`) the app can take well past the
|
|
1390
|
+
// kickstart timeout to reach running state, so give the recheck a much
|
|
1391
|
+
// longer window before declaring the whole install blocked.
|
|
1392
|
+
const printedWork = waitForLaunchctlRunning(input.launchctl, service, 20);
|
|
1381
1393
|
const printed = input.quiet === true ? await printedWork : await withHeartbeat('launchctl SKS menu bar wait', printedWork, { warnAfterMs: 10_000 });
|
|
1382
1394
|
if (printed.running) {
|
|
1383
1395
|
return {
|
|
@@ -1425,9 +1437,9 @@ async function launchWithLaunchctl(input) {
|
|
|
1425
1437
|
error: String(bootstrap.stderr || bootstrap.stdout || '').trim() || 'launchctl_bootstrap_failed'
|
|
1426
1438
|
};
|
|
1427
1439
|
}
|
|
1428
|
-
async function waitForLaunchctlRunning(launchctl, service) {
|
|
1440
|
+
async function waitForLaunchctlRunning(launchctl, service, attempts = 6) {
|
|
1429
1441
|
let lastCode = null;
|
|
1430
|
-
for (let attempt = 0; attempt <
|
|
1442
|
+
for (let attempt = 0; attempt < attempts; attempt += 1) {
|
|
1431
1443
|
const printed = await runProcess(launchctl, ['print', service], {
|
|
1432
1444
|
timeoutMs: 1_000,
|
|
1433
1445
|
maxOutputBytes: 32 * 1024
|
package/dist/core/fsx.js
CHANGED
|
@@ -5,7 +5,7 @@ import os from 'node:os';
|
|
|
5
5
|
import crypto from 'node:crypto';
|
|
6
6
|
import { spawn } from 'node:child_process';
|
|
7
7
|
import { fileURLToPath } from 'node:url';
|
|
8
|
-
export const PACKAGE_VERSION = '5.5.
|
|
8
|
+
export const PACKAGE_VERSION = '5.5.1';
|
|
9
9
|
export const DEFAULT_PROCESS_TAIL_BYTES = 256 * 1024;
|
|
10
10
|
export const DEFAULT_PROCESS_TIMEOUT_MS = 30 * 60 * 1000;
|
|
11
11
|
export function nowIso() {
|
|
@@ -477,6 +477,13 @@ export async function ensureCurrentMigrationBeforeCommand(input) {
|
|
|
477
477
|
if (input.skipMigrationGate === true || commandSkipsMigrationGate(command)) {
|
|
478
478
|
return { ...empty, ok: true, status: 'skipped', receipt: null, doctor: null, failed_stage_id: null, blockers: [], warnings: [`skip_migration_gate_command:${command}`] };
|
|
479
479
|
}
|
|
480
|
+
// projectRoot() falls back to the raw cwd when no project marker is found.
|
|
481
|
+
// launchd-spawned callers (the SKS menu bar app) run with cwd=/ — there is
|
|
482
|
+
// no project to migrate there, and proceeding would mkdir /.sneakoscope and
|
|
483
|
+
// crash the whole command before it starts.
|
|
484
|
+
if (root === path.parse(root).root) {
|
|
485
|
+
return { ...empty, ok: true, status: 'skipped', receipt: null, doctor: null, failed_stage_id: null, blockers: [], warnings: ['no_project_workspace_at_filesystem_root'] };
|
|
486
|
+
}
|
|
480
487
|
const [epoch, receipt] = await Promise.all([
|
|
481
488
|
ensureInstallationEpoch('first-command-gate'),
|
|
482
489
|
readProjectUpdateMigrationReceipt(root)
|
|
@@ -738,7 +745,14 @@ function delay(ms) {
|
|
|
738
745
|
}
|
|
739
746
|
async function withUpdateMigrationLock(root, base, fn, options = {}) {
|
|
740
747
|
const lockPath = path.join(root, '.sneakoscope', 'update', 'migration.lock');
|
|
741
|
-
|
|
748
|
+
try {
|
|
749
|
+
await ensureDir(path.dirname(lockPath));
|
|
750
|
+
}
|
|
751
|
+
catch (err) {
|
|
752
|
+
// An unwritable root (read-only mount, cwd outside any workspace) must fail
|
|
753
|
+
// the gate with a reportable blocker, not crash the whole CLI dispatch.
|
|
754
|
+
return { ...base, ok: false, status: 'blocked', receipt: null, doctor: null, failed_stage_id: 'migration-lock', blockers: [`update_migration_lock_dir_unwritable:${err?.message || String(err)}`], warnings: [] };
|
|
755
|
+
}
|
|
742
756
|
const recheck = options.recheck ?? null;
|
|
743
757
|
const deadline = Date.now() + (options.maxWaitMs ?? MIGRATION_LOCK_WAIT_MS);
|
|
744
758
|
let reapedStale = false;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import os from 'node:os';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
+
import { pathToFileURL } from 'node:url';
|
|
3
4
|
import { PACKAGE_VERSION, packageRoot, readJson, runProcess, throttleLines, which } from './fsx.js';
|
|
4
5
|
import { createRequestedScopeContract } from './safety/requested-scope-contract.js';
|
|
5
6
|
import { guardedPackageInstall, guardContextForRoute } from './safety/mutation-guard.js';
|
|
@@ -351,7 +352,10 @@ export async function runSksUpdateNow(options = {}) {
|
|
|
351
352
|
stage('project_receipt', migrationCurrent, migrationCurrent ? 'current' : 'failed', { root: projectReceiptRoot });
|
|
352
353
|
if (migrationCurrent)
|
|
353
354
|
sksMenuBar = await installUpdateSksMenuBar({ root: projectReceiptRoot, env, stage, quiet: machineOutput });
|
|
354
|
-
await runUpdateGlobalSkillsReconcile(stage, {
|
|
355
|
+
await runUpdateGlobalSkillsReconcile(stage, {
|
|
356
|
+
quiet: machineOutput,
|
|
357
|
+
newPackageRoot: newBinary ? path.resolve(path.dirname(newBinary), '..', '..') : null
|
|
358
|
+
});
|
|
355
359
|
}
|
|
356
360
|
}
|
|
357
361
|
const verification = await runFinalUpdateVerification({ installOk, newBinary, installVersion, env, projectReceiptRoot });
|
|
@@ -392,8 +396,46 @@ export async function runSksUpdateNow(options = {}) {
|
|
|
392
396
|
});
|
|
393
397
|
}
|
|
394
398
|
async function runUpdateGlobalSkillsReconcile(stage, opts = {}) {
|
|
399
|
+
const targetDir = path.join(os.homedir(), '.agents', 'skills');
|
|
400
|
+
// reconcileSkills stamps ~/.agents/skills/.sks-generated.json with the
|
|
401
|
+
// PACKAGE_VERSION compiled into whichever module runs it. This function
|
|
402
|
+
// executes inside the OLD (driver) binary, so after a real version install
|
|
403
|
+
// an in-process reconcile would overwrite the manifest the new binary's
|
|
404
|
+
// migration doctor just wrote and make final self-verification report
|
|
405
|
+
// skills_manifest stale forever. Delegate to the freshly installed package.
|
|
406
|
+
if (opts.newPackageRoot) {
|
|
407
|
+
const moduleHref = pathToFileURL(path.join(opts.newPackageRoot, 'dist', 'core', 'init', 'skills.js')).href;
|
|
408
|
+
const script = [
|
|
409
|
+
`const m = await import(${JSON.stringify(moduleHref)});`,
|
|
410
|
+
`const r = await m.reconcileSkills({ targetDir: ${JSON.stringify(targetDir)}, scope: 'global', fix: true });`,
|
|
411
|
+
'console.log(JSON.stringify(r));',
|
|
412
|
+
'if (r && (r.ok === false || r.error)) process.exit(1);'
|
|
413
|
+
].join('\n');
|
|
414
|
+
const work = runProcess(process.execPath, ['--input-type=module', '-e', script], {
|
|
415
|
+
timeoutMs: 120_000,
|
|
416
|
+
maxOutputBytes: 1024 * 1024
|
|
417
|
+
}).catch((err) => ({ code: 1, stdout: '', stderr: err?.message || String(err) }));
|
|
418
|
+
const run = opts.quiet ? await work : await withHeartbeat('skills reconcile', work, { warnAfterMs: 30_000 });
|
|
419
|
+
let parsed = null;
|
|
420
|
+
for (const line of String(run.stdout || '').trim().split('\n').reverse()) {
|
|
421
|
+
try {
|
|
422
|
+
parsed = JSON.parse(line);
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
catch { /* not the JSON result line */ }
|
|
426
|
+
}
|
|
427
|
+
const ok = run.code === 0 && parsed?.ok !== false && !parsed?.error;
|
|
428
|
+
stage('global_skills_reconcile', ok, ok ? 'reconciled' : 'failed', {
|
|
429
|
+
via: 'new_package_binary',
|
|
430
|
+
installed: Array.isArray(parsed?.installed) ? parsed.installed.length : null,
|
|
431
|
+
updated: Array.isArray(parsed?.updated) ? parsed.updated.length : null,
|
|
432
|
+
removed: Array.isArray(parsed?.removed) ? parsed.removed.length : null,
|
|
433
|
+
error: ok ? null : parsed?.error || String(run.stderr || '').trim().slice(-400) || `exit_${run.code}`
|
|
434
|
+
});
|
|
435
|
+
return parsed || { schema: 'sks.skill-reconcile.v1', ok };
|
|
436
|
+
}
|
|
395
437
|
const work = reconcileSkills({
|
|
396
|
-
targetDir
|
|
438
|
+
targetDir,
|
|
397
439
|
scope: 'global',
|
|
398
440
|
fix: true
|
|
399
441
|
}).catch((err) => ({ schema: 'sks.skill-reconcile.v1', ok: false, error: err?.message || String(err) }));
|
package/dist/core/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '5.5.
|
|
1
|
+
export const PACKAGE_VERSION = '5.5.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sneakoscope",
|
|
3
3
|
"displayName": "ㅅㅋㅅ",
|
|
4
|
-
"version": "5.5.
|
|
4
|
+
"version": "5.5.1",
|
|
5
5
|
"description": "Sneakoscope Codex: fast proof-first Codex trust layer with image-based Voxel TriWiki.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
|