@supercorks/krnl 0.1.7 → 0.1.13
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 +50 -5
- package/dist/kernel-companion.mjs +890 -849
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ Status and explanatory text share one row, for example **Done · Stopped in Code
|
|
|
68
68
|
Version **0.1.3 or later** supports mapping task name prefixes. For example, a prefix of `👩⚕️`
|
|
69
69
|
creates `👩⚕️ MELLA-284: Investigate an issue`. A blank prefix keeps the normal name. Project
|
|
70
70
|
mapping settings take precedence over organization settings, and changes apply only to new tasks.
|
|
71
|
-
Kernel
|
|
71
|
+
Kernel and this companion use the current protocol together.
|
|
72
72
|
|
|
73
73
|
Repeated connection reuses the machine identity. Review changed hook commands in `/hooks` if Node
|
|
74
74
|
moved. After updating Node, run `krnl connect codex` to refresh the service’s executable path.
|
|
@@ -81,10 +81,22 @@ projects with one accessible local folder. Git mappings default to a new worktre
|
|
|
81
81
|
needed. Non-Git projects use their saved folder. Missing folders, multi-root projects, and disabled
|
|
82
82
|
project hooks are explained beside that project in Kernel.
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
New Work checkouts live in Codex's configured worktree directory (normally
|
|
85
|
+
`~/.codex/worktrees/<full-task-id>/<repository-name>`), so Desktop can group them under
|
|
86
|
+
the selected saved project. Each task still has its own branch and checkout. Existing
|
|
87
|
+
checkouts and their saved paths are preserved when the companion updates.
|
|
88
|
+
|
|
89
|
+
Tested Codex capabilities: desktop **26.908.40834** with bundled CLI **0.154.0-alpha.6.2**. The companion prefers
|
|
85
90
|
`/Applications/ChatGPT.app/Contents/Resources/codex`, falling back to `codex` on PATH. The app-server
|
|
86
91
|
capabilities are experimental, so other Codex versions require verification.
|
|
87
92
|
|
|
93
|
+
In Kernel, **Stop** beside **Open in Codex** interrupts the companion-owned first Work turn
|
|
94
|
+
and releases the same saved task to desktop. Kernel shows **Stopping…** until release is
|
|
95
|
+
confirmed, then **Stopped. Continue in Codex.** It stays open and does not send a new message,
|
|
96
|
+
mark the Kernel task complete, or discard completed work. If confirmation takes longer than
|
|
97
|
+
fifteen seconds, **Retry Stop** retains the same durable request. Desktop continuations, Drafts,
|
|
98
|
+
and linked tasks have no Stop control in Kernel.
|
|
99
|
+
|
|
88
100
|
The companion releases its first-turn app-server after completion or a request for input. Continue
|
|
89
101
|
in desktop after that release; an interrupted structured question may be asked again. Kernel
|
|
90
102
|
observes Running/Done across later desktop turns through hooks. It does not answer questions or
|
|
@@ -147,8 +159,25 @@ Existing task tab using its deep link or a title search.
|
|
|
147
159
|
|
|
148
160
|
Draft uses the saved project folder and desktop model/reasoning settings. Work applies the mapping's
|
|
149
161
|
settings and starts the first turn through app-server; the task is visible in desktop but cannot
|
|
150
|
-
accept desktop replies until that turn finishes or is released for input.
|
|
151
|
-
|
|
162
|
+
accept desktop replies until that turn finishes or is released for input. Choose Plan inside Codex
|
|
163
|
+
after opening a Draft; Kernel dispatches only Draft and Work.
|
|
164
|
+
|
|
165
|
+
Both modes use the same concise instructions: gather context from the task before
|
|
166
|
+
starting, and ask the user when something is unclear. Task details appear in a fenced YAML block,
|
|
167
|
+
with null or empty fields omitted and meaningful `false` and `0` values preserved. Draft keeps
|
|
168
|
+
its task title first and its automatic-linking reference in the YAML `href` field.
|
|
169
|
+
The prompt also asks for approval for any proposed Kernel task updates when the work is done.
|
|
170
|
+
|
|
171
|
+
CLI 0.1.12 requires the prompt rendered and frozen by Kernel at submission. It forwards that text
|
|
172
|
+
unchanged and has no local prompt template. Future wording and YAML changes need only a web
|
|
173
|
+
deployment. Work also requires resolved model/reasoning settings; neither is supplied by a legacy
|
|
174
|
+
fallback. Heartbeats and status reports use the current format without feature negotiation.
|
|
175
|
+
|
|
176
|
+
Deploy Kernel and update this companion together. Setup uses `krnl login` and `krnl connect codex`
|
|
177
|
+
with all-saved-project consent; manual pairing and per-project allowlist commands are removed.
|
|
178
|
+
For this one-time cutover, convert settled old launch receipts to current watch records while the
|
|
179
|
+
service is stopped and its local lock is held. Preserve a private backup and all task IDs, status
|
|
180
|
+
sequences and delivery state. Do not interrupt an active first turn to perform the cutover.
|
|
152
181
|
|
|
153
182
|
Interrupted draft dispatch is not repeated automatically. If Kernel cannot confirm opening, check
|
|
154
183
|
Codex before opening another draft. Hooks inspect only the submitted prompt to match a pending
|
|
@@ -169,7 +198,7 @@ Healthy tasks continue independently. Do not delete receipts or blocked records
|
|
|
169
198
|
an uncertain launch. Remote revocation stops dispatch; run `krnl login` and `krnl connect codex`
|
|
170
199
|
to authorize again. A connection replaced by another process requires `krnl connect codex`.
|
|
171
200
|
|
|
172
|
-
Kernel expires machine connectivity after 30 seconds.
|
|
201
|
+
Kernel expires machine connectivity after 30 seconds. It also expires
|
|
173
202
|
each task observation after at most 90 seconds; a heartbeat alone does not make an old task
|
|
174
203
|
status current. Uncertain or expired observations show Disconnected until trustworthy evidence
|
|
175
204
|
returns. Supported Codex metadata cannot reconstruct every missed desktop event, especially a
|
|
@@ -180,6 +209,22 @@ companion claims the launch; afterward, continue in Codex. Search has a separate
|
|
|
180
209
|
a 30-second total deadline, and never applies late results after cancellation. Browser timeouts
|
|
181
210
|
preserve input and cached content so the same request can be reconciled safely.
|
|
182
211
|
|
|
212
|
+
## Shared threads (0.1.8+)
|
|
213
|
+
|
|
214
|
+
One Codex thread can be linked to several Kernel tasks through each task's Existing task tab.
|
|
215
|
+
Every linked task receives activity and waiting status; linking or completing a Codex turn does
|
|
216
|
+
not change the Kernel tasks' lifecycle. Linking the same thread to the same task again is safe.
|
|
217
|
+
Install the current CLI and run `krnl connect codex` with the current Kernel server.
|
|
218
|
+
Hooks update every association and retain an event until all receipt writes succeed, including
|
|
219
|
+
across restarts.
|
|
220
|
+
|
|
221
|
+
CLI 0.1.13 adds first-turn ownership reports and durable stop delivery. Deploy the matching
|
|
222
|
+
Kernel migration and web contract before updating this package. Startup enriches historical
|
|
223
|
+
receipts with unknown ownership; it never assumes that a Desktop turn belongs to the companion.
|
|
224
|
+
An accepted stop survives network failures. After restart, release is confirmed only when the
|
|
225
|
+
saved owner's exit or process-identity replacement can be proved; inaccessible process metadata
|
|
226
|
+
remains unknown. Wait for active first turns to finish before restarting the service to upgrade.
|
|
227
|
+
|
|
183
228
|
## Bundled third-party software
|
|
184
229
|
|
|
185
230
|
This executable includes Zod under the following license:
|