@supercorks/krnl 0.1.2 → 0.1.5
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 +52 -5
- package/dist/kernel-companion.mjs +1093 -369
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Kernel CLI
|
|
2
2
|
|
|
3
|
-
Connect [Kernel](https://app.krnl.work) to Codex on your Mac. Choose **
|
|
4
|
-
|
|
5
|
-
shows execution status and a direct link.
|
|
3
|
+
Connect [Kernel](https://app.krnl.work) to Codex on your Mac. Choose **Link to Codex** → **New task**
|
|
4
|
+
on a Kernel task, then choose Draft or Work and a destination. Work also lets you set model and
|
|
5
|
+
reasoning. Conversations and approvals stay in Codex; Kernel shows execution status and a direct link.
|
|
6
6
|
|
|
7
7
|
## Install and connect
|
|
8
8
|
|
|
@@ -27,7 +27,7 @@ tasks afterward. The companion detects completed review automatically.
|
|
|
27
27
|
|
|
28
28
|
Open **Settings → Integrations → Codex** in Kernel to map an organization or project to a saved
|
|
29
29
|
Codex project. Your Mac and saved projects appear automatically. Each connection card contains its organization and
|
|
30
|
-
project mappings. Choose **Add mapping** or **Edit** to set the destination, model, and
|
|
30
|
+
project mappings. Choose **Add mapping** or **Edit** to set the destination, model, reasoning, and an optional task name prefix.
|
|
31
31
|
New mappings default to **GPT-6 Astra · xhigh**; choices come from that Mac’s current Codex model
|
|
32
32
|
catalog. Launches stay disabled until setup is ready; one unavailable project does not disable
|
|
33
33
|
healthy projects. **Delete connection** revokes its authorization and removes its mappings, while
|
|
@@ -58,6 +58,10 @@ krnl connect codex
|
|
|
58
58
|
|
|
59
59
|
Version **0.1.1 or later** is required to launch with mapping model and reasoning settings.
|
|
60
60
|
Version **0.1.2 or later** also supports linking an existing Codex task.
|
|
61
|
+
Version **0.1.5 or later** adds durable delivery recovery, cancellation support, and task-status freshness when the Kernel server supports it.
|
|
62
|
+
Version **0.1.3 or later** supports mapping task name prefixes. For example, a prefix of `👩⚕️`
|
|
63
|
+
creates `👩⚕️ MELLA-284: Investigate an issue`. A blank prefix keeps the normal name. Project
|
|
64
|
+
mapping settings take precedence over organization settings, and changes apply only to new tasks.
|
|
61
65
|
Kernel explains when an older companion needs this update; existing task monitoring continues.
|
|
62
66
|
|
|
63
67
|
Repeated connection reuses the machine identity. Review changed hook commands in `/hooks` if Node
|
|
@@ -86,7 +90,7 @@ handoff history when the existing connection is still authorized.
|
|
|
86
90
|
|
|
87
91
|
## Link an existing task
|
|
88
92
|
|
|
89
|
-
On a Kernel task, choose **Link
|
|
93
|
+
On a Kernel task, choose **Link to Codex**, then the **Existing task** tab. Search by the current Codex task title
|
|
90
94
|
(at least three characters) or paste a `codex://threads/<task-id>` link, select the match,
|
|
91
95
|
and choose **Link task**. Choose a Mac if more than one is connected. Only tasks in
|
|
92
96
|
compatible, locally authorized saved projects appear. Archived tasks are labeled.
|
|
@@ -127,6 +131,49 @@ will reconcile creation before retrying an acknowledgement and will not repeat a
|
|
|
127
131
|
|
|
128
132
|
Homebrew, a native setup app, and a one-command `npx` setup flow are not included in this release.
|
|
129
133
|
|
|
134
|
+
## Draft and Work (0.1.4+)
|
|
135
|
+
|
|
136
|
+
Draft opens Codex with the saved task prepared in its composer. Choose Plan in Codex if you want,
|
|
137
|
+
then send. Keep the Kernel link in the prompt: its reference lets the local status hook associate
|
|
138
|
+
the new thread automatically. Kernel shows the pending draft until submission, then a direct
|
|
139
|
+
thread link and Running/Done status. If you remove the reference, link the thread through Kernel's
|
|
140
|
+
Existing task tab using its deep link or a title search.
|
|
141
|
+
|
|
142
|
+
Draft uses the saved project folder and desktop model/reasoning settings. Work applies the mapping's
|
|
143
|
+
settings and starts the first turn through app-server; the task is visible in desktop but cannot
|
|
144
|
+
accept desktop replies until that turn finishes or is released for input. Legacy Plan receipts
|
|
145
|
+
remain supported. Upgrading preserves existing tasks, worktrees, receipts, and hook paths.
|
|
146
|
+
|
|
147
|
+
Interrupted draft dispatch is not repeated automatically. If Kernel cannot confirm opening, check
|
|
148
|
+
Codex before opening another draft. Hooks inspect only the submitted prompt to match a pending
|
|
149
|
+
reference; they do not retain or upload the edited prompt or read transcripts.
|
|
150
|
+
|
|
151
|
+
## Network recovery (0.1.5+)
|
|
152
|
+
|
|
153
|
+
Heartbeats, project discovery, local observations, task launches, and delivery run independently.
|
|
154
|
+
Temporary network failures and server throttling retry automatically with bounded backoff and
|
|
155
|
+
`Retry-After` support. Local receipt acknowledgments and retry progress survive a restart. A lost
|
|
156
|
+
creation or turn acknowledgment is reconciled without executing the task again. Expired launch
|
|
157
|
+
offers are never executed after reconnecting.
|
|
158
|
+
|
|
159
|
+
`krnl status` also shows the last successful delivery, pending and blocked counts, oldest pending
|
|
160
|
+
age, and recovery instructions. Permanently rejected items and damaged journals remain on disk
|
|
161
|
+
for diagnosis. This command reads local diagnostics and works without network access.
|
|
162
|
+
Healthy tasks continue independently. Do not delete receipts or blocked records to retry
|
|
163
|
+
an uncertain launch. Remote revocation stops dispatch; run `krnl login` and `krnl connect codex`
|
|
164
|
+
to authorize again. A connection replaced by another process requires `krnl connect codex`.
|
|
165
|
+
|
|
166
|
+
Kernel expires machine connectivity after 30 seconds. With a compatible server it also expires
|
|
167
|
+
each task observation after at most 90 seconds; a heartbeat alone does not make an old task
|
|
168
|
+
status current. Uncertain or expired observations show Disconnected until trustworthy evidence
|
|
169
|
+
returns. Supported Codex metadata cannot reconstruct every missed desktop event, especially a
|
|
170
|
+
turn already running or waiting for input. Open the task in Codex when its state cannot be verified.
|
|
171
|
+
|
|
172
|
+
Kernel's launch form offers Cancel during extended waits. Cancellation is effective before the
|
|
173
|
+
companion claims the launch; afterward, continue in Codex. Search has a separate Cancel action,
|
|
174
|
+
a 30-second total deadline, and never applies late results after cancellation. Browser timeouts
|
|
175
|
+
preserve input and cached content so the same request can be reconciled safely.
|
|
176
|
+
|
|
130
177
|
## Bundled third-party software
|
|
131
178
|
|
|
132
179
|
This executable includes Zod under the following license:
|