sneakoscope 7.0.0 → 7.0.2
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/README.md +1 -1
- package/crates/sks-core/Cargo.lock +1 -1
- package/crates/sks-core/Cargo.toml +1 -1
- package/dist/config/skills-manifest.json +52 -52
- package/dist/core/commands/naruto-command.js +23 -5
- package/dist/core/managed-assets/managed-assets-manifest.js +1 -1
- package/dist/core/mission.js +74 -4
- package/dist/core/subagents/naruto-proof-projection.js +2 -2
- package/dist/core/subagents/official-subagent-runner.js +8 -1
- package/dist/core/version.js +1 -1
- package/dist/native/sks-menubar/Sources/AlertFactory.swift +21 -2
- package/dist/native/sks-menubar/Sources/AppDelegate.swift +3 -0
- package/dist/native/sks-menubar/Sources/AppIdentity.swift +25 -0
- package/dist/native/sks-menubar/Sources/ProvidersViewController.swift +53 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Proof-first orchestration for Codex CLI, ChatGPT Desktop, AI coding agents, mult
|
|
|
18
18
|
Sneakoscope Codex (`sks`) is an open-source trust layer for Codex CLI and ChatGPT Desktop. It coordinates bounded AI coding agents, records machine-verifiable evidence, preserves project memory, and blocks release claims that are not supported by current tests or artifacts. Search visibility outcomes are measured separately; SKS does not promise rankings or traffic.
|
|
19
19
|
<!-- END SKS SEARCH VISIBILITY MARKETING -->
|
|
20
20
|
|
|
21
|
-
Current release: **SKS 7.0.
|
|
21
|
+
Current release: **SKS 7.0.2**, validated against the official stable **Codex CLI 0.144.5** release from July 16, 2026. It makes the Control Center Overview report build, install, cache, rebuild, and probe health from their real authorities; adds root-owned Naruto follow-up waves with recovered thread capacity; separates Terra Medium exploration, Sol High implementation, and Sol Max judgment; and replaces duplicated global guidance with one concise Core Engineering Directive. The `0.145.0-alpha` line is intentionally excluded from the stable release baseline. See [CHANGELOG.md](CHANGELOG.md).
|
|
22
22
|
|
|
23
23
|
## What 7.0.0 Ships
|
|
24
24
|
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "sks.skills-manifest.v1",
|
|
3
|
-
"package_version": "7.0.
|
|
3
|
+
"package_version": "7.0.2",
|
|
4
4
|
"skills": [
|
|
5
5
|
{
|
|
6
6
|
"canonical_name": "sks",
|
|
7
7
|
"type": "official",
|
|
8
|
-
"content_sha256": "
|
|
8
|
+
"content_sha256": "98bddfb0d88192d2ac453411ba80ebe747f36b9f7780c4718307039c23387ba1",
|
|
9
9
|
"hash_history": [],
|
|
10
10
|
"deprecated_aliases": []
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"canonical_name": "sks-answer",
|
|
14
14
|
"type": "official",
|
|
15
|
-
"content_sha256": "
|
|
15
|
+
"content_sha256": "811cfa8c64cc9c6ce8148bbc5abbcfa9a5c56eddae124367a055a38d4445c6a6",
|
|
16
16
|
"hash_history": [],
|
|
17
17
|
"deprecated_aliases": []
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"canonical_name": "sks-autoresearch",
|
|
21
21
|
"type": "official",
|
|
22
|
-
"content_sha256": "
|
|
22
|
+
"content_sha256": "ff5b7e6a264787866c845c7936ffeee92db5a38f7e4876d1699b63a870af54a6",
|
|
23
23
|
"hash_history": [],
|
|
24
24
|
"deprecated_aliases": []
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"canonical_name": "sks-autoresearch-loop",
|
|
28
28
|
"type": "official",
|
|
29
|
-
"content_sha256": "
|
|
29
|
+
"content_sha256": "304417d4b2efb261cccedec0b6c75288e90b15399fca3e82dd1b259a3d976626",
|
|
30
30
|
"hash_history": [],
|
|
31
31
|
"deprecated_aliases": []
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"canonical_name": "sks-commit",
|
|
35
35
|
"type": "official",
|
|
36
|
-
"content_sha256": "
|
|
36
|
+
"content_sha256": "4872cad49a790f4110ed027e4978591594d937b227739436caa8530e39596df3",
|
|
37
37
|
"hash_history": [],
|
|
38
38
|
"deprecated_aliases": []
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"canonical_name": "sks-commit-and-push",
|
|
42
42
|
"type": "official",
|
|
43
|
-
"content_sha256": "
|
|
43
|
+
"content_sha256": "2a71a592611188bbbc9df0ee8c0cf503bdb2475aedfa5528cd89025e22f38968",
|
|
44
44
|
"hash_history": [],
|
|
45
45
|
"deprecated_aliases": []
|
|
46
46
|
},
|
|
@@ -54,56 +54,56 @@
|
|
|
54
54
|
{
|
|
55
55
|
"canonical_name": "sks-computer-use-fast",
|
|
56
56
|
"type": "official",
|
|
57
|
-
"content_sha256": "
|
|
57
|
+
"content_sha256": "f4e100bc9488dd1e5e48861542223a25de61dc43722674fb2bb9d3138100955a",
|
|
58
58
|
"hash_history": [],
|
|
59
59
|
"deprecated_aliases": []
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"canonical_name": "sks-context7-docs",
|
|
63
63
|
"type": "official",
|
|
64
|
-
"content_sha256": "
|
|
64
|
+
"content_sha256": "3280b7aa0ab074aec56b44806538cc51c86039df3b4be32817eb7d6e45062c45",
|
|
65
65
|
"hash_history": [],
|
|
66
66
|
"deprecated_aliases": []
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"canonical_name": "sks-cu",
|
|
70
70
|
"type": "official",
|
|
71
|
-
"content_sha256": "
|
|
71
|
+
"content_sha256": "f6d08fb005415b51be7ea8cc7872af26c60640e959cf2863c4e53af559f143ba",
|
|
72
72
|
"hash_history": [],
|
|
73
73
|
"deprecated_aliases": []
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"canonical_name": "sks-db",
|
|
77
77
|
"type": "official",
|
|
78
|
-
"content_sha256": "
|
|
78
|
+
"content_sha256": "5925f3f1303371b2bb06bc734963726606c05cb6ede5d1ae28dde74f2f306f72",
|
|
79
79
|
"hash_history": [],
|
|
80
80
|
"deprecated_aliases": []
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"canonical_name": "sks-db-safety-guard",
|
|
84
84
|
"type": "official",
|
|
85
|
-
"content_sha256": "
|
|
85
|
+
"content_sha256": "2c68eaf0b031dd1bb216a64b46156eea01e757d4a8107efd7df3e9478a390466",
|
|
86
86
|
"hash_history": [],
|
|
87
87
|
"deprecated_aliases": []
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"canonical_name": "sks-design-artifact-expert",
|
|
91
91
|
"type": "official",
|
|
92
|
-
"content_sha256": "
|
|
92
|
+
"content_sha256": "afb2158c8300c8504a0de9594e259aad95c0ca948cebdb8a1a9f38a20754badb",
|
|
93
93
|
"hash_history": [],
|
|
94
94
|
"deprecated_aliases": []
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"canonical_name": "sks-design-system-builder",
|
|
98
98
|
"type": "official",
|
|
99
|
-
"content_sha256": "
|
|
99
|
+
"content_sha256": "1c9f1b0d39ff0833d3887312af9d2dfd81729ce1223bc776479c7928727a795a",
|
|
100
100
|
"hash_history": [],
|
|
101
101
|
"deprecated_aliases": []
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"canonical_name": "sks-design-ui-editor",
|
|
105
105
|
"type": "official",
|
|
106
|
-
"content_sha256": "
|
|
106
|
+
"content_sha256": "f91b296689b36d91d6e8804d3dd6ae75440da91815d79b488cc8de79cea51d87",
|
|
107
107
|
"hash_history": [],
|
|
108
108
|
"deprecated_aliases": []
|
|
109
109
|
},
|
|
@@ -117,98 +117,98 @@
|
|
|
117
117
|
{
|
|
118
118
|
"canonical_name": "sks-fast-mode",
|
|
119
119
|
"type": "official",
|
|
120
|
-
"content_sha256": "
|
|
120
|
+
"content_sha256": "4c6a5e4deff797db1709325b4d6cf3cc43cadb38f04a8d5a6ad5ec5d8877fc9f",
|
|
121
121
|
"hash_history": [],
|
|
122
122
|
"deprecated_aliases": []
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"canonical_name": "sks-fast-off",
|
|
126
126
|
"type": "official",
|
|
127
|
-
"content_sha256": "
|
|
127
|
+
"content_sha256": "8812030496c095adfdc60f90da602087871dbd2beec2301b050ad2db54273d65",
|
|
128
128
|
"hash_history": [],
|
|
129
129
|
"deprecated_aliases": []
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"canonical_name": "sks-fast-on",
|
|
133
133
|
"type": "official",
|
|
134
|
-
"content_sha256": "
|
|
134
|
+
"content_sha256": "92c0771e1febb9e95ab99254fdfabe2ee82e4822483c8940b20e6a084e88208c",
|
|
135
135
|
"hash_history": [],
|
|
136
136
|
"deprecated_aliases": []
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"canonical_name": "sks-from-chat-img",
|
|
140
140
|
"type": "official",
|
|
141
|
-
"content_sha256": "
|
|
141
|
+
"content_sha256": "13dc3d665bb351f127d2e952534ca25bcb86e897d3d04d9fd55464d629355dd9",
|
|
142
142
|
"hash_history": [],
|
|
143
143
|
"deprecated_aliases": []
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
"canonical_name": "sks-getdesign-reference",
|
|
147
147
|
"type": "official",
|
|
148
|
-
"content_sha256": "
|
|
148
|
+
"content_sha256": "a1e7d8527db28df16dfe68d207c0fd8c30a5c5a71bb8634cbcf25e41acfdae01",
|
|
149
149
|
"hash_history": [],
|
|
150
150
|
"deprecated_aliases": []
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"canonical_name": "sks-goal",
|
|
154
154
|
"type": "official",
|
|
155
|
-
"content_sha256": "
|
|
155
|
+
"content_sha256": "4c34c025db4c39ef4421944b6bfde6322f04fd99b95e59b7ef0b8c3cf863468d",
|
|
156
156
|
"hash_history": [],
|
|
157
157
|
"deprecated_aliases": []
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
"canonical_name": "sks-gx",
|
|
161
161
|
"type": "official",
|
|
162
|
-
"content_sha256": "
|
|
162
|
+
"content_sha256": "8a480f3268956b191e0c7612f8485db2fc4db517b114bb714703ebf66552d0ee",
|
|
163
163
|
"hash_history": [],
|
|
164
164
|
"deprecated_aliases": []
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"canonical_name": "sks-gx-visual-generate",
|
|
168
168
|
"type": "official",
|
|
169
|
-
"content_sha256": "
|
|
169
|
+
"content_sha256": "65f7f8977bb7b07b0ed57e8460497c01ae768779432c445b450691b88b8d942e",
|
|
170
170
|
"hash_history": [],
|
|
171
171
|
"deprecated_aliases": []
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
"canonical_name": "sks-gx-visual-read",
|
|
175
175
|
"type": "official",
|
|
176
|
-
"content_sha256": "
|
|
176
|
+
"content_sha256": "427cba6a2e7b161e0b8d2c4d4dc3c452c89576b3bdcddc57a64a291a51709a10",
|
|
177
177
|
"hash_history": [],
|
|
178
178
|
"deprecated_aliases": []
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
"canonical_name": "sks-gx-visual-validate",
|
|
182
182
|
"type": "official",
|
|
183
|
-
"content_sha256": "
|
|
183
|
+
"content_sha256": "2f29f5abfbf1d475791e51117b039e0a4e88dec69153fb9dbefc63ce432a6017",
|
|
184
184
|
"hash_history": [],
|
|
185
185
|
"deprecated_aliases": []
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
"canonical_name": "sks-help",
|
|
189
189
|
"type": "official",
|
|
190
|
-
"content_sha256": "
|
|
190
|
+
"content_sha256": "628fc7177a92068e0485b4d02f8d0ad79166f47b85474a37e1a9bb59601e92f3",
|
|
191
191
|
"hash_history": [],
|
|
192
192
|
"deprecated_aliases": []
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
"canonical_name": "sks-honest-mode",
|
|
196
196
|
"type": "official",
|
|
197
|
-
"content_sha256": "
|
|
197
|
+
"content_sha256": "f39c2033eee03cb385de7a2562a7d0a083e721e5df1d0abf669e1a3e6f217e43",
|
|
198
198
|
"hash_history": [],
|
|
199
199
|
"deprecated_aliases": []
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
"canonical_name": "sks-hproof-claim-ledger",
|
|
203
203
|
"type": "official",
|
|
204
|
-
"content_sha256": "
|
|
204
|
+
"content_sha256": "a6d3ee9a44602eb74b5e776e4400cf557cc9685fe8015848660a425c116d76a9",
|
|
205
205
|
"hash_history": [],
|
|
206
206
|
"deprecated_aliases": []
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
"canonical_name": "sks-hproof-evidence-bind",
|
|
210
210
|
"type": "official",
|
|
211
|
-
"content_sha256": "
|
|
211
|
+
"content_sha256": "5e27014759d482555b759ca0ad16f6abd882abea1a238b3d43dc66a16051e77b",
|
|
212
212
|
"hash_history": [],
|
|
213
213
|
"deprecated_aliases": []
|
|
214
214
|
},
|
|
@@ -222,14 +222,14 @@
|
|
|
222
222
|
{
|
|
223
223
|
"canonical_name": "sks-imagegen",
|
|
224
224
|
"type": "official",
|
|
225
|
-
"content_sha256": "
|
|
225
|
+
"content_sha256": "8e7c198fa63ddca5699720d0f2066fe53caa60e04e919cab14ffdd6e9c11d614",
|
|
226
226
|
"hash_history": [],
|
|
227
227
|
"deprecated_aliases": []
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
"canonical_name": "sks-imagegen-source-scout",
|
|
231
231
|
"type": "official",
|
|
232
|
-
"content_sha256": "
|
|
232
|
+
"content_sha256": "cb76639e56108071cc93192a8c2360a98f845b9f23f00442776b3f489e589099",
|
|
233
233
|
"hash_history": [],
|
|
234
234
|
"deprecated_aliases": []
|
|
235
235
|
},
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
{
|
|
251
251
|
"canonical_name": "sks-mad-sks",
|
|
252
252
|
"type": "official",
|
|
253
|
-
"content_sha256": "
|
|
253
|
+
"content_sha256": "317417437914c26075cec87715e2069b9b7690f78fca00e85dbcc793002f3576",
|
|
254
254
|
"hash_history": [],
|
|
255
255
|
"deprecated_aliases": []
|
|
256
256
|
},
|
|
@@ -264,35 +264,35 @@
|
|
|
264
264
|
{
|
|
265
265
|
"canonical_name": "sks-performance-evaluator",
|
|
266
266
|
"type": "official",
|
|
267
|
-
"content_sha256": "
|
|
267
|
+
"content_sha256": "f8df69efafd3b520c9e939f8b2ae8e016bf80ca0046e2450738c206f56d1640f",
|
|
268
268
|
"hash_history": [],
|
|
269
269
|
"deprecated_aliases": []
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
"canonical_name": "sks-pipeline-runner",
|
|
273
273
|
"type": "official",
|
|
274
|
-
"content_sha256": "
|
|
274
|
+
"content_sha256": "fbdb6641c7c7715c576977d95856da176eb3301623d1b3144c10bea92993fc2e",
|
|
275
275
|
"hash_history": [],
|
|
276
276
|
"deprecated_aliases": []
|
|
277
277
|
},
|
|
278
278
|
{
|
|
279
279
|
"canonical_name": "sks-plan",
|
|
280
280
|
"type": "official",
|
|
281
|
-
"content_sha256": "
|
|
281
|
+
"content_sha256": "7a7a93ab38859c30351a534fe846868566a50f3b347c868e315d2b92c66734b3",
|
|
282
282
|
"hash_history": [],
|
|
283
283
|
"deprecated_aliases": []
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
"canonical_name": "sks-ppt",
|
|
287
287
|
"type": "official",
|
|
288
|
-
"content_sha256": "
|
|
288
|
+
"content_sha256": "303fe7e5128bbd8ebb3a793347cc4a45c102f632c8d255dc203460b3a5e2c8a0",
|
|
289
289
|
"hash_history": [],
|
|
290
290
|
"deprecated_aliases": []
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
"canonical_name": "sks-prompt-pipeline",
|
|
294
294
|
"type": "official",
|
|
295
|
-
"content_sha256": "
|
|
295
|
+
"content_sha256": "4fb9942d05fbdc665e91944cb6dfc4f858d007aa46a4e0ea4b50a38fa3fe00f6",
|
|
296
296
|
"hash_history": [],
|
|
297
297
|
"deprecated_aliases": []
|
|
298
298
|
},
|
|
@@ -306,21 +306,21 @@
|
|
|
306
306
|
{
|
|
307
307
|
"canonical_name": "sks-reasoning-router",
|
|
308
308
|
"type": "official",
|
|
309
|
-
"content_sha256": "
|
|
309
|
+
"content_sha256": "ea6da9f66b0137952920fc6a258990c2e8e3d839afd165d67585977dc964eb1f",
|
|
310
310
|
"hash_history": [],
|
|
311
311
|
"deprecated_aliases": []
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
"canonical_name": "sks-reflection",
|
|
315
315
|
"type": "official",
|
|
316
|
-
"content_sha256": "
|
|
316
|
+
"content_sha256": "5a9f01fa2d417051ea9e3ced61f5462900194aa7cf083531cbb8c5a701c623d0",
|
|
317
317
|
"hash_history": [],
|
|
318
318
|
"deprecated_aliases": []
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
321
|
"canonical_name": "sks-release-review",
|
|
322
322
|
"type": "official",
|
|
323
|
-
"content_sha256": "
|
|
323
|
+
"content_sha256": "c7c5cb4322b7b8d71d063d073dbd1f889fb4a5fedc164c0fffae72e228a07f1b",
|
|
324
324
|
"hash_history": [],
|
|
325
325
|
"deprecated_aliases": []
|
|
326
326
|
},
|
|
@@ -334,14 +334,14 @@
|
|
|
334
334
|
{
|
|
335
335
|
"canonical_name": "sks-research-discovery",
|
|
336
336
|
"type": "official",
|
|
337
|
-
"content_sha256": "
|
|
337
|
+
"content_sha256": "a294cbb7c860155113ab1c54b761398d221c111c20e271eaec0c2c8691e43345",
|
|
338
338
|
"hash_history": [],
|
|
339
339
|
"deprecated_aliases": []
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
"canonical_name": "sks-review",
|
|
343
343
|
"type": "official",
|
|
344
|
-
"content_sha256": "
|
|
344
|
+
"content_sha256": "918234fd6585ca615402ca949f89af6e68c47c4380e9312fda57758b620f379d",
|
|
345
345
|
"hash_history": [],
|
|
346
346
|
"deprecated_aliases": []
|
|
347
347
|
},
|
|
@@ -362,70 +362,70 @@
|
|
|
362
362
|
{
|
|
363
363
|
"canonical_name": "sks-solution-scout",
|
|
364
364
|
"type": "official",
|
|
365
|
-
"content_sha256": "
|
|
365
|
+
"content_sha256": "b0869371f98f822ce4c8596f41123c9f8175c2e95536bc16a8ddd8f773d18f13",
|
|
366
366
|
"hash_history": [],
|
|
367
367
|
"deprecated_aliases": []
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
370
|
"canonical_name": "sks-super-search",
|
|
371
371
|
"type": "official",
|
|
372
|
-
"content_sha256": "
|
|
372
|
+
"content_sha256": "5d0972b518ff3a6b22c23f3bedb740f450b71847faca5269db2b093bd512b88b",
|
|
373
373
|
"hash_history": [],
|
|
374
374
|
"deprecated_aliases": []
|
|
375
375
|
},
|
|
376
376
|
{
|
|
377
377
|
"canonical_name": "sks-turbo-context-pack",
|
|
378
378
|
"type": "official",
|
|
379
|
-
"content_sha256": "
|
|
379
|
+
"content_sha256": "b6010099b458c87757db838bcb3182b3dc2baec97bfbb4a62582f1d1085d9fcb",
|
|
380
380
|
"hash_history": [],
|
|
381
381
|
"deprecated_aliases": []
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
"canonical_name": "sks-ui-ux-review",
|
|
385
385
|
"type": "official",
|
|
386
|
-
"content_sha256": "
|
|
386
|
+
"content_sha256": "366a5a10cbbcc4999e7acb4683c8ab3fa2fa45a0853ed6a386f2229ae7ec7d25",
|
|
387
387
|
"hash_history": [],
|
|
388
388
|
"deprecated_aliases": []
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
391
|
"canonical_name": "sks-ux-review",
|
|
392
392
|
"type": "official",
|
|
393
|
-
"content_sha256": "
|
|
393
|
+
"content_sha256": "50bc46c550b14188f8fae00b21e07c235ce895e378f7cf7e246a462443b742d2",
|
|
394
394
|
"hash_history": [],
|
|
395
395
|
"deprecated_aliases": []
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
398
|
"canonical_name": "sks-visual-review",
|
|
399
399
|
"type": "official",
|
|
400
|
-
"content_sha256": "
|
|
400
|
+
"content_sha256": "c6e2e4c7325d2c7d4eb8e8ba2b4f84a07e154ced438d318da98f8ed7a4dfe97d",
|
|
401
401
|
"hash_history": [],
|
|
402
402
|
"deprecated_aliases": []
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
405
|
"canonical_name": "sks-wiki",
|
|
406
406
|
"type": "official",
|
|
407
|
-
"content_sha256": "
|
|
407
|
+
"content_sha256": "6b7cc906ff3b4d8bf6dea06e59fb31fd63409bf716d7a396549b3f0a4c41de6f",
|
|
408
408
|
"hash_history": [],
|
|
409
409
|
"deprecated_aliases": []
|
|
410
410
|
},
|
|
411
411
|
{
|
|
412
412
|
"canonical_name": "sks-with-local-llm-off",
|
|
413
413
|
"type": "official",
|
|
414
|
-
"content_sha256": "
|
|
414
|
+
"content_sha256": "a52c424098f20de8c7248ea0225ed5cff7fe8106f6675bf9704f55e0c968df34",
|
|
415
415
|
"hash_history": [],
|
|
416
416
|
"deprecated_aliases": []
|
|
417
417
|
},
|
|
418
418
|
{
|
|
419
419
|
"canonical_name": "sks-with-local-llm-on",
|
|
420
420
|
"type": "official",
|
|
421
|
-
"content_sha256": "
|
|
421
|
+
"content_sha256": "9f8563e74670a92306a5604bb150cff0d40ea4fd9483cfb13213a6f557a7595b",
|
|
422
422
|
"hash_history": [],
|
|
423
423
|
"deprecated_aliases": []
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
"canonical_name": "sks-work",
|
|
427
427
|
"type": "official",
|
|
428
|
-
"content_sha256": "
|
|
428
|
+
"content_sha256": "409a3798a9629368b0d8bb7425a5603ff38b1d40c247e657194b812ee23e798b",
|
|
429
429
|
"hash_history": [],
|
|
430
430
|
"deprecated_aliases": []
|
|
431
431
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { ui as cliUi } from '../../cli/cli-theme.js';
|
|
3
|
-
import { createMission, findLatestMission, getOrCreateSessionMission, loadStateForSession, loadMission, sessionStateKey, setCurrent, updateCurrentIfMissionAndRun } from '../mission.js';
|
|
3
|
+
import { createMission, findLatestMission, getOrCreateExplicitNarutoMission, getOrCreateSessionMission, loadStateForSession, loadMission, sessionStateKey, setCurrent, updateCurrentIfMissionAndRun } from '../mission.js';
|
|
4
4
|
import { closeWorkOrderLedgerForRouteResult, createAndWriteWorkOrderLedgerForPrompt } from '../work-order-ledger.js';
|
|
5
5
|
import { appendJsonl, exists, nowIso, readJson, sksRoot, writeJsonAtomic } from '../fsx.js';
|
|
6
6
|
import { SUBAGENT_EVENT_LOG_FILENAME, SUBAGENT_PARENT_SUMMARY_FILENAME, bindTrustworthySubagentParentSummaryToRun, persistOrReuseTrustworthySubagentParentSummary, readSubagentEvents, writeSubagentEvidence } from '../subagents/subagent-evidence.js';
|
|
@@ -54,6 +54,8 @@ async function narutoRun(parsed) {
|
|
|
54
54
|
const mission = await resolveRunMission(root, parsed, sessionKey);
|
|
55
55
|
if (!mission)
|
|
56
56
|
return missingRunMission(parsed);
|
|
57
|
+
if (!mission.ok)
|
|
58
|
+
return blockedRunMission(parsed, mission.blockers);
|
|
57
59
|
const admission = await withNarutoMissionRunAdmission({
|
|
58
60
|
missionId: mission.id,
|
|
59
61
|
missionDir: mission.dir,
|
|
@@ -70,6 +72,8 @@ async function narutoRunTransaction(parsed, root, appSession, sessionKey, resolv
|
|
|
70
72
|
const mission = resolvedMission || await resolveRunMission(root, parsed, sessionKey);
|
|
71
73
|
if (!mission)
|
|
72
74
|
return missingRunMission(parsed);
|
|
75
|
+
if (!mission.ok)
|
|
76
|
+
return blockedRunMission(parsed, mission.blockers);
|
|
73
77
|
const { id, dir } = mission;
|
|
74
78
|
if (appSession && sessionKey) {
|
|
75
79
|
const pending = await readPendingAppNarutoRun(root, { id, dir }, sessionKey, parsed.prompt);
|
|
@@ -442,8 +446,14 @@ function narutoHelp(parsed) {
|
|
|
442
446
|
}
|
|
443
447
|
async function resolveRunMission(root, parsed, sessionKey = null) {
|
|
444
448
|
if (parsed.missionId && parsed.missionId !== 'latest') {
|
|
445
|
-
const
|
|
446
|
-
|
|
449
|
+
const resolved = await getOrCreateExplicitNarutoMission(root, {
|
|
450
|
+
requestedId: parsed.missionId,
|
|
451
|
+
prompt: parsed.prompt,
|
|
452
|
+
sessionKey
|
|
453
|
+
});
|
|
454
|
+
if (!resolved.ok)
|
|
455
|
+
return { ok: false, blockers: resolved.blockers };
|
|
456
|
+
return { ok: true, id: resolved.id, dir: resolved.dir };
|
|
447
457
|
}
|
|
448
458
|
if (sessionKey) {
|
|
449
459
|
const resolved = await getOrCreateSessionMission(root, {
|
|
@@ -459,10 +469,10 @@ async function resolveRunMission(root, parsed, sessionKey = null) {
|
|
|
459
469
|
: null;
|
|
460
470
|
}
|
|
461
471
|
});
|
|
462
|
-
return { id: resolved.id, dir: resolved.dir };
|
|
472
|
+
return { ok: true, id: String(resolved.id), dir: String(resolved.dir) };
|
|
463
473
|
}
|
|
464
474
|
const created = await createMission(root, { mode: 'naruto', prompt: parsed.prompt, sessionKey });
|
|
465
|
-
return { id: created.id, dir: created.dir };
|
|
475
|
+
return { ok: true, id: String(created.id), dir: String(created.dir) };
|
|
466
476
|
}
|
|
467
477
|
async function resolveReadMission(parsed) {
|
|
468
478
|
const root = await sksRoot();
|
|
@@ -696,6 +706,14 @@ function missingRunMission(parsed) {
|
|
|
696
706
|
blockers: [`naruto_mission_not_found:${parsed.missionId}`]
|
|
697
707
|
}, () => console.error(`Naruto mission not found: ${parsed.missionId}`), true);
|
|
698
708
|
}
|
|
709
|
+
function blockedRunMission(parsed, blockers) {
|
|
710
|
+
return emit(parsed, {
|
|
711
|
+
schema: NARUTO_RESULT_SCHEMA,
|
|
712
|
+
ok: false,
|
|
713
|
+
status: 'blocked',
|
|
714
|
+
blockers
|
|
715
|
+
}, () => console.error(`Naruto mission blocked: ${blockers.join(', ')}`), true);
|
|
716
|
+
}
|
|
699
717
|
function emit(parsed, result, human, failed = false) {
|
|
700
718
|
if (failed)
|
|
701
719
|
process.exitCode = 1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sha256 } from '../fsx.js';
|
|
2
2
|
import { subagentModelProfile } from '../subagents/model-policy.js';
|
|
3
3
|
export const MANAGED_ASSET_SCHEMA_VERSION = 1;
|
|
4
|
-
export const MANAGED_ASSET_VERSION = '7.0.
|
|
4
|
+
export const MANAGED_ASSET_VERSION = '7.0.2';
|
|
5
5
|
export const MANAGED_ASSET_MARKER = 'SKS-MANAGED-ASSET';
|
|
6
6
|
export const MANAGED_OFFICIAL_SUBAGENT_MARKER = 'SKS-MANAGED-OFFICIAL-SUBAGENT';
|
|
7
7
|
/** Internal cleanup tombstones for SKS-owned role files retired from the installed catalog. */
|
package/dist/core/mission.js
CHANGED
|
@@ -21,11 +21,81 @@ export function sessionStateKey(sessionKey = 'default') {
|
|
|
21
21
|
export function stateFileForSession(root, sessionKey) {
|
|
22
22
|
return path.join(stateSessionsDir(root), `${sessionStateKey(sessionKey)}.json`);
|
|
23
23
|
}
|
|
24
|
-
export
|
|
25
|
-
|
|
24
|
+
export function validateExternallyReservedMissionId(rawId) {
|
|
25
|
+
const id = String(rawId ?? '');
|
|
26
|
+
if (!id.startsWith('M-'))
|
|
27
|
+
return { ok: false, reason: 'missing_m_prefix' };
|
|
28
|
+
if (id.length < 3 || id.length > 160)
|
|
29
|
+
return { ok: false, reason: 'length' };
|
|
30
|
+
if (id.trim() !== id)
|
|
31
|
+
return { ok: false, reason: 'normalization' };
|
|
32
|
+
if (id.includes('/') || id.includes('\\') || id.includes('\0') || /\s/.test(id) || id.includes('..')) {
|
|
33
|
+
return { ok: false, reason: 'path' };
|
|
34
|
+
}
|
|
35
|
+
if (!/^[A-Za-z0-9._-]+$/.test(id))
|
|
36
|
+
return { ok: false, reason: 'charset' };
|
|
37
|
+
return { ok: true, id };
|
|
38
|
+
}
|
|
39
|
+
export async function createMission(root, { mode, prompt, sessionKey, requestedId }) {
|
|
40
|
+
return withStateLock(root, () => createMissionUnlocked(root, { mode, prompt, sessionKey, requestedId }));
|
|
41
|
+
}
|
|
42
|
+
export async function getOrCreateExplicitNarutoMission(root, input) {
|
|
43
|
+
const validated = validateExternallyReservedMissionId(input.requestedId);
|
|
44
|
+
if (!validated.ok) {
|
|
45
|
+
return { ok: false, blockers: [`naruto_mission_id_invalid:${validated.reason}`] };
|
|
46
|
+
}
|
|
47
|
+
const normalizedPrompt = String(input.prompt || '').trim();
|
|
48
|
+
return withStateLock(root, async () => {
|
|
49
|
+
let loaded = await loadMission(root, validated.id).catch(() => null);
|
|
50
|
+
if (!loaded) {
|
|
51
|
+
try {
|
|
52
|
+
const created = await createMissionUnlocked(root, {
|
|
53
|
+
mode: 'naruto',
|
|
54
|
+
prompt: normalizedPrompt,
|
|
55
|
+
sessionKey: input.sessionKey,
|
|
56
|
+
requestedId: validated.id
|
|
57
|
+
});
|
|
58
|
+
return { ok: true, id: String(created.id), dir: String(created.dir) };
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
if (error?.code !== 'mission_already_exists')
|
|
62
|
+
throw error;
|
|
63
|
+
loaded = await loadMission(root, validated.id).catch(() => null);
|
|
64
|
+
if (!loaded) {
|
|
65
|
+
return { ok: false, blockers: [`naruto_mission_not_found:${validated.id}`] };
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (String(loaded.mission?.mode || '') !== 'naruto') {
|
|
70
|
+
return { ok: false, blockers: ['naruto_mission_identity_conflict:mission_mode'] };
|
|
71
|
+
}
|
|
72
|
+
if (String(loaded.mission?.prompt || '').trim() !== normalizedPrompt) {
|
|
73
|
+
return { ok: false, blockers: ['naruto_mission_identity_conflict:mission_prompt'] };
|
|
74
|
+
}
|
|
75
|
+
return { ok: true, id: String(loaded.id), dir: String(loaded.dir) };
|
|
76
|
+
});
|
|
26
77
|
}
|
|
27
|
-
async function createMissionUnlocked(root, { mode, prompt, sessionKey }) {
|
|
28
|
-
|
|
78
|
+
async function createMissionUnlocked(root, { mode, prompt, sessionKey, requestedId }) {
|
|
79
|
+
let id;
|
|
80
|
+
if (requestedId != null && String(requestedId).length > 0) {
|
|
81
|
+
const validated = validateExternallyReservedMissionId(requestedId);
|
|
82
|
+
if (!validated.ok) {
|
|
83
|
+
const err = new Error(`invalid_mission_id:${validated.reason}`);
|
|
84
|
+
err.code = 'invalid_mission_id';
|
|
85
|
+
err.reason = validated.reason;
|
|
86
|
+
throw err;
|
|
87
|
+
}
|
|
88
|
+
id = validated.id;
|
|
89
|
+
if (await exists(path.join(missionDir(root, id), 'mission.json'))) {
|
|
90
|
+
const err = new Error('mission_already_exists');
|
|
91
|
+
err.code = 'mission_already_exists';
|
|
92
|
+
err.id = id;
|
|
93
|
+
throw err;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
id = missionId();
|
|
98
|
+
}
|
|
29
99
|
const dir = missionDir(root, id);
|
|
30
100
|
await ensureDir(dir);
|
|
31
101
|
await ensureDir(path.join(dir, 'bus'));
|
|
@@ -162,12 +162,12 @@ export function projectNarutoProofSnapshot(input) {
|
|
|
162
162
|
mission_id: missionId,
|
|
163
163
|
workflow: 'official_codex_subagent',
|
|
164
164
|
workflow_run_id: workflowRunId,
|
|
165
|
+
blockers: uniqueBlockers,
|
|
165
166
|
evidence: persistedEvidence,
|
|
166
167
|
summary,
|
|
167
168
|
gate,
|
|
168
169
|
result,
|
|
169
|
-
proof_fingerprint: proofFingerprint
|
|
170
|
-
...(uniqueBlockers.length > 0 ? { blockers: uniqueBlockers } : {})
|
|
170
|
+
proof_fingerprint: proofFingerprint
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
173
|
export function validateNarutoProofStatus(value) {
|
|
@@ -39,7 +39,14 @@ const OFFICIAL_SUBAGENT_CHILD_ENV_ALLOWLIST = Object.freeze([
|
|
|
39
39
|
'CODEX_CI',
|
|
40
40
|
'CODEX_MANAGED_BY_NPM',
|
|
41
41
|
'CODEX_INTERNAL_ORIGINATOR',
|
|
42
|
-
'CODEX_SANDBOX_NETWORK_DISABLED'
|
|
42
|
+
'CODEX_SANDBOX_NETWORK_DISABLED',
|
|
43
|
+
'SKS_AGENT_MODE',
|
|
44
|
+
'ACAS_AGENT_SLUG',
|
|
45
|
+
'ACAS_AGENT_WORKSPACE',
|
|
46
|
+
'ALFREDO_AGENT_SOULS_FILE',
|
|
47
|
+
'ACAS_CHROME_PATH',
|
|
48
|
+
'ACAS_HTML_TO_PDF_ENGINE',
|
|
49
|
+
'ACAS_HTML_TO_PDF_ALLOW_CHROME_CLI_FALLBACK'
|
|
43
50
|
]);
|
|
44
51
|
const SECRET_ENV_KEY_RE = /(?:api[_-]?key|token|secret|password|credential|authorization|cookie)/i;
|
|
45
52
|
const SECRET_BEARING_ENV_KEYS = new Set([
|
package/dist/core/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '7.0.
|
|
1
|
+
export const PACKAGE_VERSION = '7.0.2';
|
|
@@ -26,20 +26,39 @@ enum AlertFactory {
|
|
|
26
26
|
alert.beginSheetModal(for: window) { completion($0 == .alertFirstButtonReturn) }
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
static func textSheet(
|
|
29
|
+
static func textSheet(
|
|
30
|
+
window: NSWindow,
|
|
31
|
+
title: String,
|
|
32
|
+
message: String,
|
|
33
|
+
secure: Bool = false,
|
|
34
|
+
placeholder: String? = nil,
|
|
35
|
+
completion: @escaping (String?) -> Void
|
|
36
|
+
) {
|
|
30
37
|
let alert = NSAlert()
|
|
31
38
|
alert.messageText = title
|
|
32
39
|
alert.informativeText = message
|
|
33
40
|
alert.addButton(withTitle: "Apply")
|
|
34
41
|
alert.addButton(withTitle: "Cancel")
|
|
35
|
-
let field: NSTextField = secure
|
|
42
|
+
let field: NSTextField = secure
|
|
43
|
+
? NSSecureTextField(frame: NSRect(x: 0, y: 0, width: 420, height: 24))
|
|
44
|
+
: NSTextField(frame: NSRect(x: 0, y: 0, width: 420, height: 24))
|
|
45
|
+
field.isEditable = true
|
|
46
|
+
field.isSelectable = true
|
|
47
|
+
field.placeholderString = placeholder
|
|
36
48
|
field.setAccessibilityLabel(title)
|
|
49
|
+
if let placeholder, !placeholder.isEmpty {
|
|
50
|
+
field.setAccessibilityPlaceholderValue(placeholder)
|
|
51
|
+
}
|
|
37
52
|
alert.accessoryView = field
|
|
53
|
+
alert.window.initialFirstResponder = field
|
|
38
54
|
AppIdentity.applyIcon(to: alert)
|
|
39
55
|
alert.beginSheetModal(for: window) { response in
|
|
40
56
|
let value = field.stringValue.trimmingCharacters(in: .whitespacesAndNewlines)
|
|
41
57
|
completion(response == .alertFirstButtonReturn && !value.isEmpty ? value : nil)
|
|
42
58
|
}
|
|
59
|
+
DispatchQueue.main.async {
|
|
60
|
+
alert.window.makeFirstResponder(field)
|
|
61
|
+
}
|
|
43
62
|
}
|
|
44
63
|
|
|
45
64
|
static func choiceSheet(window: NSWindow, title: String, message: String, choices: [(String, String)], completion: @escaping (String?) -> Void) {
|
|
@@ -10,6 +10,9 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
|
|
|
10
10
|
func applicationDidFinishLaunching(_ notification: Notification) {
|
|
11
11
|
NSApp.setActivationPolicy(.accessory)
|
|
12
12
|
AppIdentity.configure()
|
|
13
|
+
// Accessory/menubar apps have no system Edit menu by default, so Cmd+C/V
|
|
14
|
+
// never reaches NSTextField/NSTextView responders without an explicit menu.
|
|
15
|
+
AppIdentity.installStandardEditMenu()
|
|
13
16
|
processClient = ProcessClient(actionScript: AppRuntime.actionScript, logPath: AppRuntime.lastActionLogPath, projectRoot: AppRuntime.projectRoot)
|
|
14
17
|
operations = OperationCoordinator(directory: AppRuntime.operationDirectory)
|
|
15
18
|
notifications = NotificationCoordinator()
|
|
@@ -8,6 +8,31 @@ enum AppIdentity {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/// Install a minimal main menu so Cut/Copy/Paste/Select All key equivalents
|
|
12
|
+
/// work in Control Center sheets and editable fields under `.accessory` policy.
|
|
13
|
+
static func installStandardEditMenu() {
|
|
14
|
+
let mainMenu = NSMenu()
|
|
15
|
+
let appItem = NSMenuItem()
|
|
16
|
+
mainMenu.addItem(appItem)
|
|
17
|
+
let appMenu = NSMenu()
|
|
18
|
+
appItem.submenu = appMenu
|
|
19
|
+
appMenu.addItem(withTitle: "Quit SKS Center", action: #selector(NSApplication.terminate(_:)), keyEquivalent: "q")
|
|
20
|
+
|
|
21
|
+
let editItem = NSMenuItem()
|
|
22
|
+
mainMenu.addItem(editItem)
|
|
23
|
+
let editMenu = NSMenu(title: "Edit")
|
|
24
|
+
editItem.submenu = editMenu
|
|
25
|
+
editMenu.addItem(withTitle: "Undo", action: Selector(("undo:")), keyEquivalent: "z")
|
|
26
|
+
editMenu.addItem(withTitle: "Redo", action: Selector(("redo:")), keyEquivalent: "Z")
|
|
27
|
+
editMenu.addItem(.separator())
|
|
28
|
+
editMenu.addItem(withTitle: "Cut", action: #selector(NSText.cut(_:)), keyEquivalent: "x")
|
|
29
|
+
editMenu.addItem(withTitle: "Copy", action: #selector(NSText.copy(_:)), keyEquivalent: "c")
|
|
30
|
+
editMenu.addItem(withTitle: "Paste", action: #selector(NSText.paste(_:)), keyEquivalent: "v")
|
|
31
|
+
editMenu.addItem(withTitle: "Delete", action: #selector(NSText.delete(_:)), keyEquivalent: "")
|
|
32
|
+
editMenu.addItem(withTitle: "Select All", action: #selector(NSText.selectAll(_:)), keyEquivalent: "a")
|
|
33
|
+
NSApp.mainMenu = mainMenu
|
|
34
|
+
}
|
|
35
|
+
|
|
11
36
|
static func applyIcon(to alert: NSAlert) {
|
|
12
37
|
alert.icon = NSApplication.shared.applicationIconImage
|
|
13
38
|
}
|
|
@@ -18,18 +18,19 @@ final class ProvidersViewController: NSViewController, ControlCenterPage {
|
|
|
18
18
|
override func loadView() {
|
|
19
19
|
let setDomain = NativeView.button("Set Domain and Key…", target: self, action: #selector(setDomainAndKey))
|
|
20
20
|
let replace = NativeView.button("Replace Key…", target: self, action: #selector(replaceKey))
|
|
21
|
+
let testConnection = NativeView.button("Test Connection", target: self, action: #selector(testConnection))
|
|
21
22
|
let useOAuth = NativeView.button("Use ChatGPT OAuth", target: self, action: #selector(useOAuth))
|
|
22
23
|
let useLb = NativeView.button("Use codex-lb", target: self, action: #selector(useCodexLb))
|
|
23
24
|
let fastOn = NativeView.button("Fast Mode On", target: self, action: #selector(fastOn))
|
|
24
25
|
let fastOff = NativeView.button("Fast Mode Off", target: self, action: #selector(fastOff))
|
|
25
|
-
actionButtons = [setDomain, replace, useOAuth, useLb, fastOn, fastOff]
|
|
26
|
-
let credentials = NSStackView(views: [setDomain, replace])
|
|
26
|
+
actionButtons = [setDomain, replace, testConnection, useOAuth, useLb, fastOn, fastOff]
|
|
27
|
+
let credentials = NSStackView(views: [setDomain, replace, testConnection])
|
|
27
28
|
credentials.orientation = .horizontal; credentials.spacing = 8
|
|
28
29
|
let buttons = NSStackView(views: [useOAuth, useLb, fastOn, fastOff])
|
|
29
30
|
buttons.orientation = .horizontal; buttons.spacing = 8
|
|
30
31
|
view = NativeView.stack([
|
|
31
32
|
NativeView.title("Providers"),
|
|
32
|
-
NativeView.detail("Set Domain and Key only stores credentials. Use codex-lb activates them with a shared OpenAI routing guard so sk-clb keys never hit api.openai.com.
|
|
33
|
+
NativeView.detail("Set Domain and Key only stores credentials. Domain may be a hostname or full https URL — SKS adds https:// and /backend-api/codex when needed. Use codex-lb activates them with a shared OpenAI routing guard so sk-clb keys never hit api.openai.com. Keys are typed/pasted in clear text here, then sent through stdin and kept out of logs."),
|
|
33
34
|
credentials, providerStatus, fastStatus, buttons
|
|
34
35
|
])
|
|
35
36
|
refresh()
|
|
@@ -104,7 +105,7 @@ final class ProvidersViewController: NSViewController, ControlCenterPage {
|
|
|
104
105
|
return "Codex LB: active (auth=\(authMode), routing guarded)."
|
|
105
106
|
}
|
|
106
107
|
if selected && !ok {
|
|
107
|
-
return "Codex LB: selected but not ready. Click Use codex-lb or
|
|
108
|
+
return "Codex LB: selected but not ready. Click Use codex-lb or Test Connection."
|
|
108
109
|
}
|
|
109
110
|
if keyInShared {
|
|
110
111
|
return "Codex LB: credentials in shared auth but provider not selected. Click Use ChatGPT OAuth or Use codex-lb."
|
|
@@ -133,7 +134,13 @@ final class ProvidersViewController: NSViewController, ControlCenterPage {
|
|
|
133
134
|
|
|
134
135
|
@objc private func setDomainAndKey() {
|
|
135
136
|
guard let window = view.window else { return }
|
|
136
|
-
AlertFactory.textSheet(
|
|
137
|
+
AlertFactory.textSheet(
|
|
138
|
+
window: window,
|
|
139
|
+
title: "Codex LB Domain",
|
|
140
|
+
message: "Enter a hostname or full base URL. https:// is optional — SKS adds https:// and /backend-api/codex when missing.\nExamples: lb.example.com or https://lb.example.com",
|
|
141
|
+
secure: false,
|
|
142
|
+
placeholder: "https://lb.example.com"
|
|
143
|
+
) { [weak self] host in
|
|
137
144
|
guard let self = self, let host = host else { return }
|
|
138
145
|
self.promptForKey(window: window, args: ["codex-lb", "setup", "--host", host, "--api-key-stdin", "--yes", "--no-default-provider", "--preserve-auth", "--no-keychain", "--no-restart-app", "--json"], kind: "codex-lb-setup", title: "Save Codex LB credentials")
|
|
139
146
|
}
|
|
@@ -145,7 +152,13 @@ final class ProvidersViewController: NSViewController, ControlCenterPage {
|
|
|
145
152
|
}
|
|
146
153
|
|
|
147
154
|
private func promptForKey(window: NSWindow, args: [String], kind: String, title: String) {
|
|
148
|
-
AlertFactory.textSheet(
|
|
155
|
+
AlertFactory.textSheet(
|
|
156
|
+
window: window,
|
|
157
|
+
title: "Codex LB API Key",
|
|
158
|
+
message: "Paste your Codex LB API key (usually starts with sk-clb-). It is shown here so you can verify the paste, then sent through stdin and never logged.",
|
|
159
|
+
secure: false,
|
|
160
|
+
placeholder: "sk-clb-…"
|
|
161
|
+
) { [weak self] key in
|
|
149
162
|
guard let self = self, let key = key else { return }
|
|
150
163
|
guard !self.busy else {
|
|
151
164
|
self.providerStatus.stringValue = "Another provider action is already running."
|
|
@@ -176,6 +189,40 @@ final class ProvidersViewController: NSViewController, ControlCenterPage {
|
|
|
176
189
|
}
|
|
177
190
|
}
|
|
178
191
|
|
|
192
|
+
@objc private func testConnection() {
|
|
193
|
+
guard !busy else {
|
|
194
|
+
providerStatus.stringValue = "Another provider action is already running."
|
|
195
|
+
return
|
|
196
|
+
}
|
|
197
|
+
guard let snapshot = operations.begin(kind: "codex-lb-health", mutationGroup: nil, summary: "Test Codex LB connection") else {
|
|
198
|
+
providerStatus.stringValue = "Another guarded mutation is already running. Wait or open Diagnostics."
|
|
199
|
+
return
|
|
200
|
+
}
|
|
201
|
+
setBusy(true)
|
|
202
|
+
providerStatus.stringValue = "Testing Codex LB connection…"
|
|
203
|
+
_ = operations.update(snapshot, state: .running, stage: "running", progress: nil, summary: "Test Codex LB connection")
|
|
204
|
+
processClient.run(["codex-lb", "health", "--json"], timeout: NativeView.mutationTimeout) { [weak self] result in
|
|
205
|
+
guard let self = self else { return }
|
|
206
|
+
self.setBusy(false)
|
|
207
|
+
let json = self.json(result.output)
|
|
208
|
+
let ok = result.code == 0 && (json?["ok"] as? Bool == true)
|
|
209
|
+
let status = json?["status"] as? String ?? (result.code == 0 ? "ok" : "failed")
|
|
210
|
+
_ = self.operations.update(
|
|
211
|
+
snapshot,
|
|
212
|
+
state: ok ? .succeeded : .failed,
|
|
213
|
+
stage: "complete",
|
|
214
|
+
progress: 1,
|
|
215
|
+
summary: ok ? "Codex LB connection ok" : "Codex LB connection failed"
|
|
216
|
+
)
|
|
217
|
+
if ok {
|
|
218
|
+
self.providerStatus.stringValue = "Connection test passed (\(status))."
|
|
219
|
+
} else {
|
|
220
|
+
self.providerStatus.stringValue = "Connection test failed (\(status)) · \(NativeView.redactPreview(result.output))"
|
|
221
|
+
}
|
|
222
|
+
self.refresh()
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
179
226
|
@objc private func useOAuth() { run(["codex-lb", "use-oauth", "--restart-app", "--json"], title: "Use ChatGPT OAuth", kind: "codex-lb-use-oauth", group: "codex-config") }
|
|
180
227
|
@objc private func useCodexLb() { run(["codex-lb", "use-codex-lb", "--restart-app", "--json"], title: "Use codex-lb", kind: "codex-lb-use-lb", group: "codex-config") }
|
|
181
228
|
@objc private func fastOn() { run(["fast-mode", "on", "--json"], title: "Fast Mode On", kind: "fast-mode-on", group: "codex-config", timeout: NativeView.statusTimeout) { [weak self] in self?.refreshFastStatus() } }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sneakoscope",
|
|
3
3
|
"displayName": "ㅅㅋㅅ",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.2",
|
|
5
5
|
"description": "Proof-first Codex CLI and ChatGPT Desktop orchestration for AI coding agents, release verification, and macOS menu bar control.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
|