jg-agent-hq 10.0.0 → 10.2.0
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/CHANGELOG.md +9 -0
- package/README.md +10 -0
- package/api/README.md +23 -21
- package/dist/actions/actions.js +3 -1
- package/dist/contracts/actions/types.d.ts +20 -0
- package/dist/contracts/actions/types.js +1 -0
- package/dist/contracts/browser/types.d.ts +20 -0
- package/dist/contracts/types.d.ts +20 -0
- package/dist/providers/claude/control/stream.js +13 -8
- package/dist/providers/codex/adapter.d.ts +3 -1
- package/dist/providers/codex/adapter.js +4 -2
- package/dist/providers/codex/codex.d.ts +1 -1
- package/dist/providers/codex/codex.js +2 -2
- package/dist/providers/codex/rpc.d.ts +4 -1
- package/dist/providers/codex/rpc.js +9 -2
- package/dist/runtime/runtime.js +4 -1
- package/dist/runtime/types.d.ts +1 -0
- package/dist/runtime/types.js +2 -0
- package/dist/store/control/types.d.ts +10 -0
- package/dist/store/types.d.ts +60 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 10.2.0
|
|
4
|
+
|
|
5
|
+
- `thread-adopt` accepts optional `settings`, as `thread-resume` does, and applies them to the resume it runs, so a host can adopt a session in a chosen permission mode. Codex refuses them for a thread another client still holds, as it does on resume.
|
|
6
|
+
- Leave the text Claude adds to a turn itself, such as a loaded skill's, out of live items. Claude streams it as a user message marked `isSynthetic`, so a host showed it as the operator's message while the turn ran, although history, which skips the transcript's matching `isMeta` records, never lists it.
|
|
7
|
+
|
|
8
|
+
## 10.1.0
|
|
9
|
+
|
|
10
|
+
- Add `codexDaemonLauncher` to `createAgentHq`: a command and its arguments that run `codex app-server daemon start`, such as `systemd-run --user --scope`. On Linux, Codex's shared daemon stays in the cgroup of whatever started it, so a host running as a systemd service that started it took it down, with the work of every terminal session on it, whenever the service stopped. Without the option, the start runs directly as before.
|
|
11
|
+
|
|
3
12
|
## 10.0.0
|
|
4
13
|
|
|
5
14
|
- List Claude threads from an index in last-activity order, replacing the unused index in creation order, so a page no longer sorts every transcript of the workspace, and a continuation seeks into that index instead of scanning the pages before it. Active-session reads find an observed Claude session's transcript through an index on its native ID instead of scanning every indexed transcript.
|
package/README.md
CHANGED
|
@@ -25,6 +25,16 @@ Use pnpm 12.4.0. Run `pnpm install`, then `pnpm check:package` to build, exercis
|
|
|
25
25
|
|
|
26
26
|
Work on `development`; reviewed changes reach `main` through a pull request. After both Node checks pass on `main`, `check.yml` publishes the exact consumer-tested tarball through npm's configured trusted publisher, then deploys the website. No local npm login or token is needed. An identical published version is skipped; changed contents require a new version.
|
|
27
27
|
|
|
28
|
+
[testing-commands:start]: #
|
|
29
|
+
|
|
30
|
+
## Testing
|
|
31
|
+
|
|
32
|
+
`pnpm test`, `pnpm check:package`, and `pnpm check` run essential coverage. Their `:full` counterparts retain complete package or package/website checks. Granular and focused commands remain complete by default. Full runs locally only on explicit request; see the [testing policy](https://github.com/jesusgraterol/jg-agent-hq/blob/main/docs/testing.md) for classification and affected-consumer checks.
|
|
33
|
+
|
|
34
|
+
Testing maintenance can reuse an existing version when only these six aggregate scripts and this marked testing-command block differ. All runtime files, dependencies, exports, installation scripts, other documentation, and file permissions remain protected by the release check. This narrow exception to the general version rule above skips publication; it does not change the installed package.
|
|
35
|
+
|
|
36
|
+
[testing-commands:end]: #
|
|
37
|
+
|
|
28
38
|
## Lock ownership
|
|
29
39
|
|
|
30
40
|
Callers supply a trusted state root. Locks live in its private `.runtime/hq.lock`. A holder records its process ID, nonce, safe operation label and creation time. Live holders are awaited. Dead, incomplete or unverifiable owners require inspection and are never automatically reclaimed, because child processes may remain alive.
|
package/api/README.md
CHANGED
|
@@ -192,7 +192,7 @@ Native qualification on 2026-10-23 used Codex 0.163.0 and Claude Code 2.1.309. B
|
|
|
192
192
|
|
|
193
193
|
`configuration` accepts `provider`, authorized `workspaceRoot`, optional managed `threadId`, `limit` and `cursor`. Session selection must match both provider and workspace. The result includes `nativeId`, `workingDirectory`, known `effective` settings, bounded `instructionSources` with `isComplete`, and one page of native `choices` (`agent` or `profile`). Null means unknown or unavailable, never a fabricated default. A null `choices` value means the optional native inventory is unavailable; an empty array means a known empty inventory. Effective settings remain readable when Claude omits its optional agent catalog. Native inventory is bounded to 4096 entries; choice continuation binds the query and inventory revision. Instruction source paths are metadata only; HQ does not load those files through this operation. Claude uses an owned session's settings or a disposable workspace-scoped read process with no user prompt. At most four workspace read processes run concurrently; cancellation and runtime shutdown confirm their exit, including reads still initializing. Unconfirmed cleanup retains runtime ownership. Whole configuration documents, source layers and credentials are not returned.
|
|
194
194
|
|
|
195
|
-
`thread-create` and `thread-resume
|
|
195
|
+
`thread-create`, `thread-resume` and `thread-adopt`, for the resume it runs, accept optional `settings`: `model`, `effort`, `outputSchema`, `permissionMode`, `systemInstructions`, `developerInstructions`, plus Codex `sandbox` or Claude `nativeAgent`. The workspace is the native working directory. Codex system/developer instructions map to native base/developer overrides. Claude system instructions use `--system-prompt`, and developer instructions use `--append-system-prompt`. Omitted fields keep native defaults. These are explicit native settings, separate from native tool approvals. The action envelope byte limit still applies.
|
|
196
196
|
|
|
197
197
|
Startup settings require an idle restart, using close followed by explicit resume; they cannot be attached to active input. Codex may retain a loaded idle thread after unsubscribe and ignores resume overrides there. HQ rejects startup overrides on such a thread; restart the HQ runtime's native connection before applying them. It never acknowledges an ignored model change. Claude opens a new native process for explicit resume, preserving the exact native session ID. Native profile selection and Codex native agent selection are not exposed as startup overrides; discovery does not imply a supported setting change.
|
|
198
198
|
|
|
@@ -236,26 +236,26 @@ File timestamps and records do not prove that a native process is idle or a turn
|
|
|
236
236
|
|
|
237
237
|
Send `{ kind: 'action', action: { id, runtimeEpoch, command } }`. Generate one UUID per user intent, take the epoch from `status`, and retain the complete envelope until its receipt can be read. The validated envelope is limited to 32,768 UTF-8 bytes. It is recorded before native writes. Reusing the UUID with the identical envelope returns the saved receipt without dispatch; a changed envelope conflicts. This check also works for an original request read after restart. A new UUID with an expired epoch cannot execute.
|
|
238
238
|
|
|
239
|
-
| Action | Fields and behavior
|
|
240
|
-
| ------------------ |
|
|
241
|
-
| `thread-fork` | Source `threadId`, child `name`. Requires an idle owned source or an inactive managed source. Creates a distinct native session and retains `forkedFromThreadId` and exact native lineage.
|
|
242
|
-
| `thread-archive` | Idle owned `threadId`. Confirms native background cleanup, archives natively and releases control.
|
|
243
|
-
| `thread-unarchive` | Inactive archived `threadId`. Unarchives the exact native session and leaves it inactive.
|
|
244
|
-
| `thread-compact` | Idle owned `threadId`. Records native admission separately from its correlated turn completion. Clears the live presentation and requires a fresh history read.
|
|
245
|
-
| `thread-revert` | Idle owned `threadId`, exact `beforeTurnId`. Removes that native turn and later history; files and historical HQ receipts remain unchanged. Clears the live presentation and requires a fresh history read.
|
|
246
|
-
| `thread-create` | `provider` (a registered provider ID), `workspaceRoot`, `name`. Creates an empty native thread and sets its readable name before reporting acknowledgement.
|
|
247
|
-
| `thread-adopt` | The same fields plus `nativeId`, `operatorConfirmation`. Explicitly records an external thread as managed. Codex accepts it unloaded or idle, between turns of a terminal that still holds it, and resumes it
|
|
248
|
-
| `thread-resume` | `threadId`, `operatorConfirmation`. Resumes an inactive managed thread; HQ does not fetch its complete conversation bodies.
|
|
249
|
-
| `thread-recover` | `threadId`, `operatorConfirmation`, `recovery`. The recovery is `{ kind: 'resume' }` for a known native identity, `{ kind: 'attach', nativeId }` for an inspected identity after uncertain creation, or `{ kind: 'create' }` to explicitly create a fresh empty thread when no native identity was recorded. The latter can leave an empty orphan from the uncertain creation; it never repeats a message.
|
|
250
|
-
| `thread-rename` | `threadId`, `name`. Changes the name only after the matching native acknowledgement.
|
|
251
|
-
| `thread-close` | `threadId`. Requires an idle thread and pauses its queue. Codex cleans and verifies its native terminal list before unsubscribe. Claude closes the owned CLI and proves process-group exit before releasing control.
|
|
252
|
-
| `message` | `threadId`, `input`. Starts a turn only while idle.
|
|
253
|
-
| `steer` | `threadId`, `expectedTurnId`, `text`. Codex uses native `turn/steer`. Claude rejects this operation; it never substitutes interruption. A finished or changed turn cannot become a new turn.
|
|
254
|
-
| `queue` | `threadId`, `expectedTurnId`, `input`. Saves an explicit next-turn message or skill invocation, never a permission or question answer.
|
|
255
|
-
| `queue-send` | `queuedActionId`. Explicitly authorizes a still-undelivered queue entry, including a queue paused by restart or interruption.
|
|
256
|
-
| `queue-cancel` | `queuedActionId`. Cancels only an undelivered queue entry and clears its saved body.
|
|
257
|
-
| `interrupt` | `threadId`, `expectedTurnId`. A native request acknowledgement leaves the thread stopping until native completion evidence arrives.
|
|
258
|
-
| `native-reply` | `threadId`, `expectedTurnId`, `approvalId`, `response`. Answers one exact current native request; cannot consume queue text.
|
|
239
|
+
| Action | Fields and behavior |
|
|
240
|
+
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
241
|
+
| `thread-fork` | Source `threadId`, child `name`. Requires an idle owned source or an inactive managed source. Creates a distinct native session and retains `forkedFromThreadId` and exact native lineage. |
|
|
242
|
+
| `thread-archive` | Idle owned `threadId`. Confirms native background cleanup, archives natively and releases control. |
|
|
243
|
+
| `thread-unarchive` | Inactive archived `threadId`. Unarchives the exact native session and leaves it inactive. |
|
|
244
|
+
| `thread-compact` | Idle owned `threadId`. Records native admission separately from its correlated turn completion. Clears the live presentation and requires a fresh history read. |
|
|
245
|
+
| `thread-revert` | Idle owned `threadId`, exact `beforeTurnId`. Removes that native turn and later history; files and historical HQ receipts remain unchanged. Clears the live presentation and requires a fresh history read. |
|
|
246
|
+
| `thread-create` | `provider` (a registered provider ID), `workspaceRoot`, `name`. Creates an empty native thread and sets its readable name before reporting acknowledgement. |
|
|
247
|
+
| `thread-adopt` | The same fields plus `nativeId`, `operatorConfirmation`. Explicitly records an external thread as managed. Codex accepts it unloaded or idle, between turns of a terminal that still holds it, and resumes it with optional `settings`, which it refuses while another client holds the thread; Claude requires qualified workspace history and the native idle/session-identity checks, and refuses while a terminal runs it. |
|
|
248
|
+
| `thread-resume` | `threadId`, `operatorConfirmation`. Resumes an inactive managed thread; HQ does not fetch its complete conversation bodies. |
|
|
249
|
+
| `thread-recover` | `threadId`, `operatorConfirmation`, `recovery`. The recovery is `{ kind: 'resume' }` for a known native identity, `{ kind: 'attach', nativeId }` for an inspected identity after uncertain creation, or `{ kind: 'create' }` to explicitly create a fresh empty thread when no native identity was recorded. The latter can leave an empty orphan from the uncertain creation; it never repeats a message. |
|
|
250
|
+
| `thread-rename` | `threadId`, `name`. Changes the name only after the matching native acknowledgement. |
|
|
251
|
+
| `thread-close` | `threadId`. Requires an idle thread and pauses its queue. Codex cleans and verifies its native terminal list before unsubscribe. Claude closes the owned CLI and proves process-group exit before releasing control. |
|
|
252
|
+
| `message` | `threadId`, `input`. Starts a turn only while idle. |
|
|
253
|
+
| `steer` | `threadId`, `expectedTurnId`, `text`. Codex uses native `turn/steer`. Claude rejects this operation; it never substitutes interruption. A finished or changed turn cannot become a new turn. |
|
|
254
|
+
| `queue` | `threadId`, `expectedTurnId`, `input`. Saves an explicit next-turn message or skill invocation, never a permission or question answer. |
|
|
255
|
+
| `queue-send` | `queuedActionId`. Explicitly authorizes a still-undelivered queue entry, including a queue paused by restart or interruption. |
|
|
256
|
+
| `queue-cancel` | `queuedActionId`. Cancels only an undelivered queue entry and clears its saved body. |
|
|
257
|
+
| `interrupt` | `threadId`, `expectedTurnId`. A native request acknowledgement leaves the thread stopping until native completion evidence arrives. |
|
|
258
|
+
| `native-reply` | `threadId`, `expectedTurnId`, `approvalId`, `response`. Answers one exact current native request; cannot consume queue text. |
|
|
259
259
|
|
|
260
260
|
Message and queue input is a closed union: `{ kind: 'text', text }` or `{ kind: 'skill', skillId, arguments }`. Text is nonempty and at most 65,536 characters; skill arguments may be empty and cap at 16,384 characters. The envelope's UTF-8 limit still applies. A selected skill is resolved through the target thread's current native catalog before admission. Unavailable, missing or disabled selections cannot dispatch. Normal text needs no catalog read. Steering retains its `text` field and exact active-turn target.
|
|
261
261
|
|
|
@@ -306,6 +306,8 @@ Both native inventory interfaces are unpaged. HQ accepts at most 4,096 native ro
|
|
|
306
306
|
|
|
307
307
|
Trusted runtime construction also accepts `codexExtraSkillRoots?: string[]` and `claudeAdditionalDirectories?: string[]`. Paths must resolve to existing absolute directories. Codex receives them as capability roots of each thread HQ starts, so other sessions on the shared daemon, including terminal sessions, never see them. Forks inherit them. A session Codex later reloads from disk loses native discovery of those skills, while explicit invocation through the HQ catalog still works, because it names the skill file. Claude receives native `--add-dir` arguments, which also grant native file access to those directories. These inputs belong to the operator and cannot be changed through IPC commands. The installed `serve` command exposes repeated `--codex-extra-skill-root` and `--claude-additional-directory` flags. No global skill installation or coding-instruction change is performed.
|
|
308
308
|
|
|
309
|
+
`codexDaemonLauncher?: string[]`, also trusted, names a command and its arguments that run `codex app-server daemon start`, such as `['systemd-run', '--user', '--scope', '--quiet', '--collect']`. HQ runs the start through it, while the proxy still runs directly. Codex's daemon detaches into its own session, but on Linux it stays in the cgroup of whatever started it, so a host that runs as a systemd service and starts the daemon itself would take the daemon, and the work of every terminal session on it, down whenever the service stops. A new scope gives the daemon a lifetime of its own. The installed `serve` command doesn't expose it.
|
|
310
|
+
|
|
309
311
|
## Control reads and reconnect
|
|
310
312
|
|
|
311
313
|
| Command | Fields | Result |
|
package/dist/actions/actions.js
CHANGED
|
@@ -346,7 +346,9 @@ export const createActions = (registry, store, roots, epoch, actionKey, skills,
|
|
|
346
346
|
if (!nativeId)
|
|
347
347
|
conflict();
|
|
348
348
|
own(thread.provider, nativeId);
|
|
349
|
-
const resumed = await verifyThread(thread, await control.resumeThread(requestId, nativeId, thread.workspaceRoot, thread.name, command.kind === 'thread-resume'
|
|
349
|
+
const resumed = await verifyThread(thread, await control.resumeThread(requestId, nativeId, thread.workspaceRoot, thread.name, command.kind === 'thread-resume' || command.kind === 'thread-adopt'
|
|
350
|
+
? (command.settings ?? {})
|
|
351
|
+
: {}));
|
|
350
352
|
await apply({
|
|
351
353
|
kind: 'resumed',
|
|
352
354
|
actionId: receipt.id,
|
|
@@ -82,6 +82,16 @@ export declare const ActionCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
82
82
|
nativeId: z.ZodString;
|
|
83
83
|
name: z.ZodString;
|
|
84
84
|
operatorConfirmation: z.ZodString;
|
|
85
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
model: z.ZodOptional<z.ZodString>;
|
|
87
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
88
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
89
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
90
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
91
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
92
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
93
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strict>>;
|
|
85
95
|
}, z.core.$strict>, z.ZodObject<{
|
|
86
96
|
kind: z.ZodLiteral<"thread-resume">;
|
|
87
97
|
threadId: z.ZodUUID;
|
|
@@ -323,6 +333,16 @@ export declare const ActionEnvelopeSchema: z.ZodObject<{
|
|
|
323
333
|
nativeId: z.ZodString;
|
|
324
334
|
name: z.ZodString;
|
|
325
335
|
operatorConfirmation: z.ZodString;
|
|
336
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
337
|
+
model: z.ZodOptional<z.ZodString>;
|
|
338
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
339
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
340
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
341
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
342
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
343
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
344
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
345
|
+
}, z.core.$strict>>;
|
|
326
346
|
}, z.core.$strict>, z.ZodObject<{
|
|
327
347
|
kind: z.ZodLiteral<"thread-resume">;
|
|
328
348
|
threadId: z.ZodUUID;
|
|
@@ -36,6 +36,7 @@ export const ActionCommandSchema = z.discriminatedUnion('kind', [
|
|
|
36
36
|
nativeId: NativeIdSchema,
|
|
37
37
|
name: NameSchema,
|
|
38
38
|
operatorConfirmation: z.string().min(1).max(1024),
|
|
39
|
+
settings: SessionSettingsSchema.optional(),
|
|
39
40
|
}),
|
|
40
41
|
z.strictObject({
|
|
41
42
|
kind: z.literal('thread-resume'),
|
|
@@ -61,6 +61,16 @@ export declare const BrowserCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
61
61
|
nativeId: z.ZodString;
|
|
62
62
|
name: z.ZodString;
|
|
63
63
|
operatorConfirmation: z.ZodString;
|
|
64
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
model: z.ZodOptional<z.ZodString>;
|
|
66
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
67
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
68
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
69
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
70
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
71
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
72
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strict>>;
|
|
64
74
|
}, z.core.$strict>, z.ZodObject<{
|
|
65
75
|
kind: z.ZodLiteral<"thread-resume">;
|
|
66
76
|
threadId: z.ZodUUID;
|
|
@@ -308,6 +318,16 @@ export declare const BrowserActionSchema: z.ZodObject<{
|
|
|
308
318
|
nativeId: z.ZodString;
|
|
309
319
|
name: z.ZodString;
|
|
310
320
|
operatorConfirmation: z.ZodString;
|
|
321
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
322
|
+
model: z.ZodOptional<z.ZodString>;
|
|
323
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
324
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
325
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
326
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
327
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
328
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
329
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, z.core.$strict>>;
|
|
311
331
|
}, z.core.$strict>, z.ZodObject<{
|
|
312
332
|
kind: z.ZodLiteral<"thread-resume">;
|
|
313
333
|
threadId: z.ZodUUID;
|
|
@@ -184,6 +184,16 @@ export declare const HqRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
184
184
|
nativeId: z.ZodString;
|
|
185
185
|
name: z.ZodString;
|
|
186
186
|
operatorConfirmation: z.ZodString;
|
|
187
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
model: z.ZodOptional<z.ZodString>;
|
|
189
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
190
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
191
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
192
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
193
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
194
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
195
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, z.core.$strict>>;
|
|
187
197
|
}, z.core.$strict>, z.ZodObject<{
|
|
188
198
|
kind: z.ZodLiteral<"thread-resume">;
|
|
189
199
|
threadId: z.ZodUUID;
|
|
@@ -3352,6 +3362,16 @@ export declare const IpcRequestSchema: z.ZodObject<{
|
|
|
3352
3362
|
nativeId: z.ZodString;
|
|
3353
3363
|
name: z.ZodString;
|
|
3354
3364
|
operatorConfirmation: z.ZodString;
|
|
3365
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
3366
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3367
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
3368
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
3369
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
3370
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
3371
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
3372
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
3373
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
3374
|
+
}, z.core.$strict>>;
|
|
3355
3375
|
}, z.core.$strict>, z.ZodObject<{
|
|
3356
3376
|
kind: z.ZodLiteral<"thread-resume">;
|
|
3357
3377
|
threadId: z.ZodUUID;
|
|
@@ -9,6 +9,8 @@ const MessageSchema = z.object({
|
|
|
9
9
|
uuid: z.string().min(1).max(4096),
|
|
10
10
|
message: z.object({ role: z.string(), content: z.unknown() }),
|
|
11
11
|
tool_use_result: z.unknown().optional(),
|
|
12
|
+
// text Claude adds to a turn itself, such as a loaded skill's, which its transcript marks isMeta
|
|
13
|
+
isSynthetic: z.boolean().optional(),
|
|
12
14
|
});
|
|
13
15
|
const ResultSchema = z.object({
|
|
14
16
|
subtype: z.string(),
|
|
@@ -103,14 +105,17 @@ export const receiveClaudeMessage = (session, raw, events) => {
|
|
|
103
105
|
input.interruptRequested &&
|
|
104
106
|
isClaudeInterruptionMarker(message.message.content))
|
|
105
107
|
return;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
108
|
+
// like history, which skips the transcript's isMeta records, live items leave synthetic text out
|
|
109
|
+
const item = message.isSynthetic
|
|
110
|
+
? null
|
|
111
|
+
: toClaudeItem(RecordSchema.parse({
|
|
112
|
+
type: frame.type,
|
|
113
|
+
uuid: message.uuid,
|
|
114
|
+
message: message.message,
|
|
115
|
+
toolUseResult: message.tool_use_result,
|
|
116
|
+
// a live item is timed when its frame arrives
|
|
117
|
+
timestamp: new Date().toISOString(),
|
|
118
|
+
}), input.id);
|
|
114
119
|
// final wrappers may share an API message ID while containing different content blocks
|
|
115
120
|
const content = z
|
|
116
121
|
.object({ message: z.object({ id: z.string().optional(), content: z.unknown() }) })
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type IAgentProviderFactory } from '../index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Describes current Codex controls and lazily owns a connection to the shared app-server daemon.
|
|
4
|
+
* @param extraSkillRoots The capability roots of each thread HQ starts.
|
|
5
|
+
* @param daemonLauncher The command and arguments run before `codex app-server daemon start`.
|
|
4
6
|
* @returns A built-in factory that preserves native settings, authentication and permission policy.
|
|
5
7
|
*/
|
|
6
|
-
export declare const createCodexProviderFactory: (extraSkillRoots: string[]) => IAgentProviderFactory;
|
|
8
|
+
export declare const createCodexProviderFactory: (extraSkillRoots: string[], daemonLauncher: string[]) => IAgentProviderFactory;
|
|
@@ -12,12 +12,14 @@ import { MAX_LOADED_THREAD_PAGES } from './constants.js';
|
|
|
12
12
|
import { createCodexEvents, toProviderThread } from './events.js';
|
|
13
13
|
/**
|
|
14
14
|
* Describes current Codex controls and lazily owns a connection to the shared app-server daemon.
|
|
15
|
+
* @param extraSkillRoots The capability roots of each thread HQ starts.
|
|
16
|
+
* @param daemonLauncher The command and arguments run before `codex app-server daemon start`.
|
|
15
17
|
* @returns A built-in factory that preserves native settings, authentication and permission policy.
|
|
16
18
|
*/
|
|
17
|
-
export const createCodexProviderFactory = (extraSkillRoots) => ({
|
|
19
|
+
export const createCodexProviderFactory = (extraSkillRoots, daemonLauncher) => ({
|
|
18
20
|
id: 'codex',
|
|
19
21
|
async create(context) {
|
|
20
|
-
const native = await createCodexProvider(extraSkillRoots);
|
|
22
|
+
const native = await createCodexProvider(extraSkillRoots, daemonLauncher);
|
|
21
23
|
// whether each session is observed, read once: Codex saves it and it's inside an allowed workspace
|
|
22
24
|
const allowedSessions = new Map();
|
|
23
25
|
let observations = Promise.resolve();
|
|
@@ -6,4 +6,4 @@ import { type ICodexProvider } from './types.js';
|
|
|
6
6
|
* - JG_AGENT_HQ_CODEX_FAILED: The Codex integration failed
|
|
7
7
|
* - JG_AGENT_HQ_TRANSPORT_FAILED: The HQ transport failed
|
|
8
8
|
*/
|
|
9
|
-
export declare const createCodexProvider: (extraSkillRoots?: string[]) => Promise<ICodexProvider>;
|
|
9
|
+
export declare const createCodexProvider: (extraSkillRoots?: string[], daemonLauncher?: string[]) => Promise<ICodexProvider>;
|
|
@@ -22,7 +22,7 @@ import { toCodexConfiguration, toCodexSessionSettings, readCodexConfigurationObs
|
|
|
22
22
|
* - JG_AGENT_HQ_CODEX_FAILED: The Codex integration failed
|
|
23
23
|
* - JG_AGENT_HQ_TRANSPORT_FAILED: The HQ transport failed
|
|
24
24
|
*/
|
|
25
|
-
export const createCodexProvider = async (extraSkillRoots = []) => {
|
|
25
|
+
export const createCodexProvider = async (extraSkillRoots = [], daemonLauncher = []) => {
|
|
26
26
|
let latest = {
|
|
27
27
|
provider: 'codex',
|
|
28
28
|
state: 'unavailable',
|
|
@@ -95,7 +95,7 @@ export const createCodexProvider = async (extraSkillRoots = []) => {
|
|
|
95
95
|
return latest;
|
|
96
96
|
})());
|
|
97
97
|
};
|
|
98
|
-
rpc = await createCodexRpc({
|
|
98
|
+
rpc = await createCodexRpc(daemonLauncher, {
|
|
99
99
|
request: (id, method, params) => {
|
|
100
100
|
if (events)
|
|
101
101
|
events.request(id, method, params);
|
|
@@ -3,12 +3,15 @@
|
|
|
3
3
|
* daemon when no terminal session has, with bounded pending requests. The daemon's control socket
|
|
4
4
|
* speaks WebSocket, which the proxy forwards as raw bytes. When the daemon restarts, the lost
|
|
5
5
|
* connection's requests fail and the next request reconnects; nothing is sent again.
|
|
6
|
+
* @param daemonLauncher The command and arguments run before `codex app-server daemon start`, so a
|
|
7
|
+
* host can start the shared daemon outside its own service; empty runs the start directly.
|
|
8
|
+
* @param handlers The callbacks for native messages and connection changes.
|
|
6
9
|
* @returns An initialized transport with exact action IDs and late-response callbacks.
|
|
7
10
|
* @throws
|
|
8
11
|
* - JG_AGENT_HQ_CODEX_FAILED: The Codex integration failed
|
|
9
12
|
* - JG_AGENT_HQ_TRANSPORT_FAILED: The HQ transport failed
|
|
10
13
|
*/
|
|
11
|
-
export declare const createCodexRpc: (handlers: {
|
|
14
|
+
export declare const createCodexRpc: (daemonLauncher: string[], handlers: {
|
|
12
15
|
notify(method: string, params: unknown): void;
|
|
13
16
|
request(id: string | number, method: string, params: unknown): void;
|
|
14
17
|
lateResponse(id: string, result: unknown, error: unknown): void;
|
|
@@ -18,12 +18,19 @@ const EnvelopeSchema = z.object({
|
|
|
18
18
|
* daemon when no terminal session has, with bounded pending requests. The daemon's control socket
|
|
19
19
|
* speaks WebSocket, which the proxy forwards as raw bytes. When the daemon restarts, the lost
|
|
20
20
|
* connection's requests fail and the next request reconnects; nothing is sent again.
|
|
21
|
+
* @param daemonLauncher The command and arguments run before `codex app-server daemon start`, so a
|
|
22
|
+
* host can start the shared daemon outside its own service; empty runs the start directly.
|
|
23
|
+
* @param handlers The callbacks for native messages and connection changes.
|
|
21
24
|
* @returns An initialized transport with exact action IDs and late-response callbacks.
|
|
22
25
|
* @throws
|
|
23
26
|
* - JG_AGENT_HQ_CODEX_FAILED: The Codex integration failed
|
|
24
27
|
* - JG_AGENT_HQ_TRANSPORT_FAILED: The HQ transport failed
|
|
25
28
|
*/
|
|
26
|
-
export const createCodexRpc = async (handlers) => {
|
|
29
|
+
export const createCodexRpc = async (daemonLauncher, handlers) => {
|
|
30
|
+
const [launcherCommand, ...launcherArguments] = daemonLauncher;
|
|
31
|
+
const daemonStart = launcherCommand
|
|
32
|
+
? [launcherCommand, [...launcherArguments, 'codex', 'app-server', 'daemon', 'start']]
|
|
33
|
+
: ['codex', ['app-server', 'daemon', 'start']];
|
|
27
34
|
const manifest = z
|
|
28
35
|
.object({ version: z.string() })
|
|
29
36
|
.parse(JSON.parse(await readFile(new URL('../../../package.json', import.meta.url), 'utf8')));
|
|
@@ -138,7 +145,7 @@ export const createCodexRpc = async (handlers) => {
|
|
|
138
145
|
*/
|
|
139
146
|
const open = async () => {
|
|
140
147
|
try {
|
|
141
|
-
await run(
|
|
148
|
+
await run(...daemonStart, { timeout: 30_000, maxBuffer: 65_536 });
|
|
142
149
|
}
|
|
143
150
|
catch (cause) {
|
|
144
151
|
throw new Exception(`The Codex integration failed: ${extractMessage(cause)}`, {
|
package/dist/runtime/runtime.js
CHANGED
|
@@ -64,7 +64,10 @@ export const createAgentHq = async (options) => {
|
|
|
64
64
|
actionKey = await prepareActionKey(stateRoot, databasePath);
|
|
65
65
|
store = await createStore(databasePath, ownership.owner.nonce, actionKey);
|
|
66
66
|
registry = createProviderRegistry([
|
|
67
|
-
{
|
|
67
|
+
{
|
|
68
|
+
factory: createCodexProviderFactory(codexExtraSkillRoots, parsed.data.codexDaemonLauncher ?? []),
|
|
69
|
+
isBuiltIn: true,
|
|
70
|
+
},
|
|
68
71
|
{
|
|
69
72
|
factory: createClaudeProviderFactory(store, claudeAdditionalDirectories),
|
|
70
73
|
isBuiltIn: true,
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const AgentHqOptionsSchema: z.ZodObject<{
|
|
|
9
9
|
stateRoot: z.ZodString;
|
|
10
10
|
allowedRoots: z.ZodArray<z.ZodString>;
|
|
11
11
|
codexExtraSkillRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
codexDaemonLauncher: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
13
|
claudeAdditionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
14
|
}, z.core.$strict>;
|
|
14
15
|
export type IAgentHqOptions = z.infer<typeof AgentHqOptionsSchema>;
|
package/dist/runtime/types.js
CHANGED
|
@@ -13,5 +13,7 @@ export const AgentHqOptionsSchema = z.strictObject({
|
|
|
13
13
|
stateRoot: z.string().min(1).refine(isAbsolute),
|
|
14
14
|
allowedRoots: z.array(z.string().min(1).refine(isAbsolute)).min(1).max(128),
|
|
15
15
|
codexExtraSkillRoots: z.array(z.string().min(1).refine(isAbsolute)).max(128).optional(),
|
|
16
|
+
// a command and its arguments run before `codex app-server daemon start`, such as a new scope
|
|
17
|
+
codexDaemonLauncher: z.array(z.string().min(1)).min(1).max(16).optional(),
|
|
16
18
|
claudeAdditionalDirectories: z.array(z.string().min(1).refine(isAbsolute)).max(128).optional(),
|
|
17
19
|
});
|
|
@@ -432,6 +432,16 @@ export declare const AdmissionSchema: z.ZodObject<{
|
|
|
432
432
|
nativeId: z.ZodString;
|
|
433
433
|
name: z.ZodString;
|
|
434
434
|
operatorConfirmation: z.ZodString;
|
|
435
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
436
|
+
model: z.ZodOptional<z.ZodString>;
|
|
437
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
438
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
439
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
440
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
441
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
442
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
443
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
444
|
+
}, z.core.$strict>>;
|
|
435
445
|
}, z.core.$strict>, z.ZodObject<{
|
|
436
446
|
kind: z.ZodLiteral<"thread-resume">;
|
|
437
447
|
threadId: z.ZodUUID;
|
package/dist/store/types.d.ts
CHANGED
|
@@ -93,6 +93,16 @@ export declare const StoreCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
93
93
|
nativeId: z.ZodString;
|
|
94
94
|
name: z.ZodString;
|
|
95
95
|
operatorConfirmation: z.ZodString;
|
|
96
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
model: z.ZodOptional<z.ZodString>;
|
|
98
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
99
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
100
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
101
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
102
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
103
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
104
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$strict>>;
|
|
96
106
|
}, z.core.$strict>, z.ZodObject<{
|
|
97
107
|
kind: z.ZodLiteral<"thread-resume">;
|
|
98
108
|
threadId: z.ZodUUID;
|
|
@@ -472,6 +482,16 @@ export declare const StoreCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
472
482
|
nativeId: z.ZodString;
|
|
473
483
|
name: z.ZodString;
|
|
474
484
|
operatorConfirmation: z.ZodString;
|
|
485
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
486
|
+
model: z.ZodOptional<z.ZodString>;
|
|
487
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
488
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
489
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
490
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
491
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
492
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
493
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, z.core.$strict>>;
|
|
475
495
|
}, z.core.$strict>, z.ZodObject<{
|
|
476
496
|
kind: z.ZodLiteral<"thread-resume">;
|
|
477
497
|
threadId: z.ZodUUID;
|
|
@@ -904,6 +924,16 @@ export declare const StoreCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
904
924
|
nativeId: z.ZodString;
|
|
905
925
|
name: z.ZodString;
|
|
906
926
|
operatorConfirmation: z.ZodString;
|
|
927
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
928
|
+
model: z.ZodOptional<z.ZodString>;
|
|
929
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
930
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
931
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
932
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
933
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
934
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
935
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
936
|
+
}, z.core.$strict>>;
|
|
907
937
|
}, z.core.$strict>, z.ZodObject<{
|
|
908
938
|
kind: z.ZodLiteral<"thread-resume">;
|
|
909
939
|
threadId: z.ZodUUID;
|
|
@@ -1417,6 +1447,16 @@ export declare const StoreRequestSchema: z.ZodObject<{
|
|
|
1417
1447
|
nativeId: z.ZodString;
|
|
1418
1448
|
name: z.ZodString;
|
|
1419
1449
|
operatorConfirmation: z.ZodString;
|
|
1450
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1451
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
1453
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
1454
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
1455
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
1456
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
1457
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
1458
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
1459
|
+
}, z.core.$strict>>;
|
|
1420
1460
|
}, z.core.$strict>, z.ZodObject<{
|
|
1421
1461
|
kind: z.ZodLiteral<"thread-resume">;
|
|
1422
1462
|
threadId: z.ZodUUID;
|
|
@@ -1796,6 +1836,16 @@ export declare const StoreRequestSchema: z.ZodObject<{
|
|
|
1796
1836
|
nativeId: z.ZodString;
|
|
1797
1837
|
name: z.ZodString;
|
|
1798
1838
|
operatorConfirmation: z.ZodString;
|
|
1839
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1840
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1841
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
1842
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
1843
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
1844
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
1845
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
1846
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
1847
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
1848
|
+
}, z.core.$strict>>;
|
|
1799
1849
|
}, z.core.$strict>, z.ZodObject<{
|
|
1800
1850
|
kind: z.ZodLiteral<"thread-resume">;
|
|
1801
1851
|
threadId: z.ZodUUID;
|
|
@@ -2228,6 +2278,16 @@ export declare const StoreRequestSchema: z.ZodObject<{
|
|
|
2228
2278
|
nativeId: z.ZodString;
|
|
2229
2279
|
name: z.ZodString;
|
|
2230
2280
|
operatorConfirmation: z.ZodString;
|
|
2281
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
2282
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2283
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
2284
|
+
outputSchema: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, unknown>>;
|
|
2285
|
+
nativeAgent: z.ZodOptional<z.ZodString>;
|
|
2286
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
2287
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
2288
|
+
systemInstructions: z.ZodOptional<z.ZodString>;
|
|
2289
|
+
developerInstructions: z.ZodOptional<z.ZodString>;
|
|
2290
|
+
}, z.core.$strict>>;
|
|
2231
2291
|
}, z.core.$strict>, z.ZodObject<{
|
|
2232
2292
|
kind: z.ZodLiteral<"thread-resume">;
|
|
2233
2293
|
threadId: z.ZodUUID;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jg-agent-hq",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "Native Claude Code and Codex session control, history, usage and recoverable local storage for Node.js apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,14 +37,17 @@
|
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "node scripts/package/clean.ts && tsc -p tsconfig.build.json && node scripts/package/assets.ts",
|
|
40
|
-
"test": "pnpm build && pnpm test:unit && pnpm test:integration",
|
|
40
|
+
"test": "pnpm build && pnpm test:unit --tagsFilter=!full && pnpm test:integration --tagsFilter=!full",
|
|
41
|
+
"test:full": "pnpm build && pnpm test:unit && pnpm test:integration",
|
|
41
42
|
"test:unit": "vitest run --config vitest/test-unit.config.ts",
|
|
42
43
|
"test:integration": "vitest run --config vitest/test-integration.config.ts",
|
|
43
44
|
"typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.contracts.json",
|
|
44
45
|
"format": "prettier --write .",
|
|
45
46
|
"format:check": "prettier --check .",
|
|
46
47
|
"check:package": "pnpm test && pnpm typecheck && pnpm format:check",
|
|
47
|
-
"check": "pnpm
|
|
48
|
+
"check:package:full": "pnpm test:full && pnpm typecheck && pnpm format:check",
|
|
49
|
+
"check": "pnpm check:package && pnpm --dir website check",
|
|
50
|
+
"check:full": "pnpm check:package:full && pnpm --dir website check:full"
|
|
48
51
|
},
|
|
49
52
|
"dependencies": {
|
|
50
53
|
"jg-crypto": "0.3.0",
|