@jigging/jig 0.1.0-alpha.15 → 0.1.0-alpha.16
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 +27 -6
- package/libexec/agent/claude-agent-acp.js +34 -34
- package/libexec/installed-cli.js +3858 -1279
- package/libexec/linux-rootless-supervisor.js +12 -2
- package/libexec/preparation/bun-native-preparation-worker.js +958 -120
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,21 @@ npm installs Jig's exact Bun runtime dependency alongside the package.
|
|
|
16
16
|
|
|
17
17
|
## Get started
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Create an editable first Flow:
|
|
20
|
+
|
|
21
|
+
```console
|
|
22
|
+
jig init hello-jig
|
|
23
|
+
cd hello-jig
|
|
24
|
+
jig review --allow-resolution-network
|
|
25
|
+
jig run flow:flows/hello --input '{"name":"Ada"}'
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Initialization installs nothing and approves nothing. Review prepares the SDK
|
|
29
|
+
privately and asks for approval. The resolution flag allows dependency-selected
|
|
30
|
+
network requests before approval; declining cannot undo those requests. Runs
|
|
31
|
+
gain no network access. No separate Bun install is needed.
|
|
32
|
+
|
|
33
|
+
Read the [first Flow guide](https://jig.md/guide/#your-first-flow), or try
|
|
20
34
|
[an issue becoming a tested patch](https://jig.md/guide/tested-patch): selected
|
|
21
35
|
local source becomes a reviewable patch with executed checks, while the original
|
|
22
36
|
repository stays unchanged.
|
|
@@ -24,14 +38,21 @@ repository stays unchanged.
|
|
|
24
38
|
Jig has three project commands:
|
|
25
39
|
|
|
26
40
|
```text
|
|
27
|
-
jig init --bare <directory>
|
|
28
|
-
jig review [project] [--allow-resolution-network] [--yes]
|
|
41
|
+
jig init [--bare] <directory>
|
|
42
|
+
jig review [project] [--allow-resolution-network] [--yes] [--details]
|
|
29
43
|
jig run <flow:path|binding:id> [options]
|
|
30
44
|
```
|
|
31
45
|
|
|
32
|
-
`review`
|
|
33
|
-
|
|
34
|
-
|
|
46
|
+
`review` shows changed policy; `--details` includes complete current and proposed
|
|
47
|
+
policy. `--yes` approves without a prompt but does not grant resolution network
|
|
48
|
+
permission. `--bare` creates only an empty project skeleton.
|
|
49
|
+
|
|
50
|
+
`run` executes the approved revision and returns JSON after settling owned work
|
|
51
|
+
(NDJSON with `--receive`). Terminal-only elapsed status, cancellation updates,
|
|
52
|
+
and diagnostics use stderr, never protocol stdout. An application outcome such
|
|
53
|
+
as `blocked` is not task success even when execution completed correctly.
|
|
54
|
+
Use `jig <command> --help` for focused help and `jig --version` for the installed
|
|
55
|
+
version.
|
|
35
56
|
|
|
36
57
|
## Guides
|
|
37
58
|
|
|
@@ -27,7 +27,7 @@ var __export = (target, all) => {
|
|
|
27
27
|
};
|
|
28
28
|
var __require = import.meta.require;
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.257+
|
|
30
|
+
// ../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.257+567f2a370e9d4086/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs
|
|
31
31
|
import { createRequire as $ne } from "module";
|
|
32
32
|
import * as xr from "fs/promises";
|
|
33
33
|
import * as Dn from "path";
|
|
@@ -62165,7 +62165,7 @@ var legacyClientNotificationMethods = new Set([
|
|
|
62165
62165
|
CLIENT_METHODS.elicitation_complete
|
|
62166
62166
|
]);
|
|
62167
62167
|
|
|
62168
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
62168
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/goal-extension.js
|
|
62169
62169
|
var GOAL_EXTENSION_VERSION = 1;
|
|
62170
62170
|
var GOAL_CONTROL_METHOD = "_session/goal";
|
|
62171
62171
|
var GOAL_ACTIONS = ["set", "clear"];
|
|
@@ -62214,7 +62214,7 @@ function toGoalSnapshot(message) {
|
|
|
62214
62214
|
};
|
|
62215
62215
|
}
|
|
62216
62216
|
|
|
62217
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
62217
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-titles.js
|
|
62218
62218
|
var MAX_TITLE_LENGTH = 256;
|
|
62219
62219
|
var MAX_TITLE_CONTEXT_LENGTH = 1000;
|
|
62220
62220
|
var MIN_TITLE_CONTEXT_LENGTH = 10;
|
|
@@ -62341,7 +62341,7 @@ ${promptText}
|
|
|
62341
62341
|
}
|
|
62342
62342
|
}
|
|
62343
62343
|
|
|
62344
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
62344
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/air-extension.js
|
|
62345
62345
|
var AIR_NATIVE_SUBAGENT_SESSIONS_CAPABILITY = "nativeSubagentSessions";
|
|
62346
62346
|
var AIR_ASYNC_TASKS_CAPABILITY = "asyncTasks";
|
|
62347
62347
|
var AIR_SESSION_FAILURE_CAPABILITY = "sessionFailure";
|
|
@@ -62382,7 +62382,7 @@ function asRecord(value) {
|
|
|
62382
62382
|
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
62383
62383
|
}
|
|
62384
62384
|
|
|
62385
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
62385
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/acp-subagents.js
|
|
62386
62386
|
function clientSupportsSubagents(capabilities) {
|
|
62387
62387
|
const subagents = capabilities?.subagents;
|
|
62388
62388
|
if (typeof subagents === "object" && subagents !== null && !Array.isArray(subagents)) {
|
|
@@ -62394,7 +62394,7 @@ function asSdkSessionNotification(notification) {
|
|
|
62394
62394
|
return notification;
|
|
62395
62395
|
}
|
|
62396
62396
|
|
|
62397
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
62397
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/native-subagents.js
|
|
62398
62398
|
var MAX_PENDING_PARENTS = 64;
|
|
62399
62399
|
var MAX_PENDING_UPDATES = 256;
|
|
62400
62400
|
var MAX_PENDING_UPDATES_PER_PARENT = 32;
|
|
@@ -62789,7 +62789,7 @@ function nonBlankString(value) {
|
|
|
62789
62789
|
return typeof value === "string" && value.trim().length > 0 ? value.trim() : undefined;
|
|
62790
62790
|
}
|
|
62791
62791
|
|
|
62792
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
62792
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/async-tasks.js
|
|
62793
62793
|
function clientSupportsAsyncTasks(capabilities) {
|
|
62794
62794
|
return clientSupportsAirCapability(capabilities, AIR_ASYNC_TASKS_CAPABILITY);
|
|
62795
62795
|
}
|
|
@@ -63337,7 +63337,7 @@ function isRecord2(value) {
|
|
|
63337
63337
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
63338
63338
|
}
|
|
63339
63339
|
|
|
63340
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
63340
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/acp-agent.js
|
|
63341
63341
|
import { execFile } from "child_process";
|
|
63342
63342
|
import { randomUUID as randomUUID4 } from "crypto";
|
|
63343
63343
|
import { existsSync as existsSync3 } from "fs";
|
|
@@ -63345,7 +63345,7 @@ import * as fs4 from "fs/promises";
|
|
|
63345
63345
|
import * as os3 from "os";
|
|
63346
63346
|
import * as path6 from "path";
|
|
63347
63347
|
import { promisify } from "util";
|
|
63348
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
63348
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/package.json
|
|
63349
63349
|
var package_default = {
|
|
63350
63350
|
name: "@agentclientprotocol/claude-agent-acp",
|
|
63351
63351
|
publishConfig: {
|
|
@@ -63434,7 +63434,7 @@ var package_default = {
|
|
|
63434
63434
|
}
|
|
63435
63435
|
};
|
|
63436
63436
|
|
|
63437
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
63437
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/elicitation.js
|
|
63438
63438
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
63439
63439
|
function mcpElicitationToCreateRequest(request, sessionId) {
|
|
63440
63440
|
if (request.mode === "url") {
|
|
@@ -63616,7 +63616,7 @@ function refusalFallbackResultFromResponse(response) {
|
|
|
63616
63616
|
return choice === RETRY_FALLBACK_RESULT ? RETRY_FALLBACK_RESULT : KEEP_REFUSAL_RESULT;
|
|
63617
63617
|
}
|
|
63618
63618
|
|
|
63619
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
63619
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/fork-session.js
|
|
63620
63620
|
function forkPointMessageId(meta3) {
|
|
63621
63621
|
const fork = meta3?.jetbrains?.air?.fork;
|
|
63622
63622
|
if (fork?.version !== 1)
|
|
@@ -63648,7 +63648,7 @@ async function forkSession(params, dependencies) {
|
|
|
63648
63648
|
return { sessionId: forked.sessionId };
|
|
63649
63649
|
}
|
|
63650
63650
|
|
|
63651
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
63651
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/modes.js
|
|
63652
63652
|
var IS_ROOT = (process.geteuid?.() ?? process.getuid?.()) === 0;
|
|
63653
63653
|
var ALLOW_BYPASS = !IS_ROOT || !!process.env.IS_SANDBOX;
|
|
63654
63654
|
var PERMISSION_MODE_ALIASES = {
|
|
@@ -63686,7 +63686,7 @@ function resolvePermissionMode(defaultMode, logger = console) {
|
|
|
63686
63686
|
return mapped;
|
|
63687
63687
|
}
|
|
63688
63688
|
|
|
63689
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
63689
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/normalization.js
|
|
63690
63690
|
var MAX_UPDATES = 100;
|
|
63691
63691
|
var MAX_RULES_PER_UPDATE = 100;
|
|
63692
63692
|
var MAX_DIRECTORIES_PER_UPDATE = 100;
|
|
@@ -63763,11 +63763,11 @@ function normalizeDurablePermissionChangeSet(suggestions, forcedAsk = false) {
|
|
|
63763
63763
|
}
|
|
63764
63764
|
}
|
|
63765
63765
|
|
|
63766
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
63766
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/filesystem.js
|
|
63767
63767
|
import os2 from "os";
|
|
63768
63768
|
import path from "path";
|
|
63769
63769
|
|
|
63770
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
63770
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/shared.js
|
|
63771
63771
|
var PERMISSION_OPTION_ID = {
|
|
63772
63772
|
allowOnce: "allow-once",
|
|
63773
63773
|
allowWithUpdates: "allow-with-updates",
|
|
@@ -63818,7 +63818,7 @@ function withGeneratedUpdate(name, rejectName = "No") {
|
|
|
63818
63818
|
return [allowOnce(), allowWithUpdates(name), reject(rejectName)];
|
|
63819
63819
|
}
|
|
63820
63820
|
|
|
63821
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
63821
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/filesystem.js
|
|
63822
63822
|
function isFileSessionChangeSet(changeSet, operation) {
|
|
63823
63823
|
return !!changeSet && changeSet.updates.every((update) => {
|
|
63824
63824
|
if (update.destination !== "session")
|
|
@@ -63915,7 +63915,7 @@ function buildNotebookEditPermissionOptions(context) {
|
|
|
63915
63915
|
return buildFilePermissionOptions(context, inputPath(context, "notebook_path"), "write");
|
|
63916
63916
|
}
|
|
63917
63917
|
|
|
63918
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
63918
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/shell.js
|
|
63919
63919
|
import path2 from "path";
|
|
63920
63920
|
function permissionRulePrefix(value) {
|
|
63921
63921
|
return value.endsWith(":*") ? value.slice(0, -2) : value;
|
|
@@ -63997,7 +63997,7 @@ function buildPowerShellPermissionOptions(context) {
|
|
|
63997
63997
|
return buildShellPermissionOptions(context, "PowerShell");
|
|
63998
63998
|
}
|
|
63999
63999
|
|
|
64000
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
64000
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/tools.js
|
|
64001
64001
|
function buildWebFetchPermissionOptions(context) {
|
|
64002
64002
|
const url2 = plainString(context.input.url);
|
|
64003
64003
|
if (url2 && context.allowPersistentOptions !== false) {
|
|
@@ -64114,7 +64114,7 @@ function buildComputerUseMcpPermissionOptions(context) {
|
|
|
64114
64114
|
return withOptionalUpdate(changeSet, changeSet ? `Yes, and don't ask again for ${toolLabel}` : undefined);
|
|
64115
64115
|
}
|
|
64116
64116
|
|
|
64117
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
64117
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options.js
|
|
64118
64118
|
function buildClaudePermissionOptions(context) {
|
|
64119
64119
|
return buildUnsortedClaudePermissionOptions(context).sort((left, right) => permissionOptionOrder(left) - permissionOptionOrder(right));
|
|
64120
64120
|
}
|
|
@@ -64172,7 +64172,7 @@ function permissionOptionOrder(option) {
|
|
|
64172
64172
|
}
|
|
64173
64173
|
}
|
|
64174
64174
|
|
|
64175
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
64175
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/tools.js
|
|
64176
64176
|
import path3 from "path";
|
|
64177
64177
|
function toDisplayPath(filePath, cwd) {
|
|
64178
64178
|
if (!cwd)
|
|
@@ -65123,7 +65123,7 @@ var createTaskHook = (options) => async (input) => {
|
|
|
65123
65123
|
return { continue: true };
|
|
65124
65124
|
};
|
|
65125
65125
|
|
|
65126
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
65126
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/presentation.js
|
|
65127
65127
|
function humanText(value, maxLength, singleLine = false) {
|
|
65128
65128
|
if (typeof value !== "string")
|
|
65129
65129
|
return;
|
|
@@ -65191,7 +65191,7 @@ ${JSON.stringify(value.input, null, 2)}
|
|
|
65191
65191
|
};
|
|
65192
65192
|
}
|
|
65193
65193
|
|
|
65194
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
65194
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/effects.js
|
|
65195
65195
|
function parseClaudePermissionSelection(response, toolName) {
|
|
65196
65196
|
if (response.outcome?.outcome !== "selected")
|
|
65197
65197
|
throw new Error("Tool use aborted");
|
|
@@ -65349,7 +65349,7 @@ function applyClaudePermissionSelection(selection, context) {
|
|
|
65349
65349
|
}
|
|
65350
65350
|
}
|
|
65351
65351
|
|
|
65352
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
65352
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/response.js
|
|
65353
65353
|
function decodeClaudePermissionResponse(response, toolName, input, toolUseID, offeredOptions, durableChangeSet) {
|
|
65354
65354
|
const selection = parseClaudePermissionSelection(response, toolName);
|
|
65355
65355
|
const offeredOption = offeredOptions.find((option) => option.optionId === selection.optionId);
|
|
@@ -65368,7 +65368,7 @@ function decodeClaudePermissionResponse(response, toolName, input, toolUseID, of
|
|
|
65368
65368
|
};
|
|
65369
65369
|
}
|
|
65370
65370
|
|
|
65371
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
65371
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/settings.js
|
|
65372
65372
|
import * as fs2 from "fs";
|
|
65373
65373
|
import * as path4 from "path";
|
|
65374
65374
|
function getManagedSettingsPath() {
|
|
@@ -65500,7 +65500,7 @@ class SettingsManager {
|
|
|
65500
65500
|
}
|
|
65501
65501
|
}
|
|
65502
65502
|
|
|
65503
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
65503
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-failure-extension.js
|
|
65504
65504
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
65505
65505
|
function airSessionFailureCapabilityMeta(...additionalCapabilities) {
|
|
65506
65506
|
return airCapabilityMeta(AIR_SESSION_FAILURE_CAPABILITY, ...additionalCapabilities);
|
|
@@ -65795,7 +65795,7 @@ function providerFailureCategory(errorKind, isUsageLimit = false) {
|
|
|
65795
65795
|
}
|
|
65796
65796
|
}
|
|
65797
65797
|
|
|
65798
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
65798
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/file-change-audit.js
|
|
65799
65799
|
import * as fs3 from "fs";
|
|
65800
65800
|
import * as path5 from "path";
|
|
65801
65801
|
var AGENT_FILE_CHANGE_REPORT_CAPABILITY = "agentFileChangeReport";
|
|
@@ -66086,7 +66086,7 @@ function hasControlCharacter(value) {
|
|
|
66086
66086
|
return false;
|
|
66087
66087
|
}
|
|
66088
66088
|
|
|
66089
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
66089
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/utils.js
|
|
66090
66090
|
import { WritableStream as WritableStream2, ReadableStream as ReadableStream2 } from "stream/web";
|
|
66091
66091
|
|
|
66092
66092
|
class Pushable {
|
|
@@ -66161,12 +66161,12 @@ function unreachable(value, logger = console) {
|
|
|
66161
66161
|
logger.error(`Unexpected case: ${valueAsString}`);
|
|
66162
66162
|
}
|
|
66163
66163
|
|
|
66164
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
66164
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-config-ids.js
|
|
66165
66165
|
var DEFAULT_MODEL_ID = "default";
|
|
66166
66166
|
var DEFAULT_AGENT_ID = "default";
|
|
66167
66167
|
var EFFORT_CONFIG_ID = "effort";
|
|
66168
66168
|
|
|
66169
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
66169
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/clear-context-coordinator.js
|
|
66170
66170
|
function restartParams(session) {
|
|
66171
66171
|
const originalParams = session.creationParams ?? { cwd: session.cwd, mcpServers: [] };
|
|
66172
66172
|
const currentEffort = session.configOptions.find((option) => option.id === EFFORT_CONFIG_ID)?.currentValue;
|
|
@@ -66236,7 +66236,7 @@ async function continuePlanInFreshContext(sessionId, oldSession, reset, host, si
|
|
|
66236
66236
|
host.ensureConsumer(freshSession, sessionId);
|
|
66237
66237
|
}
|
|
66238
66238
|
|
|
66239
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
66239
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-result-meta.js
|
|
66240
66240
|
function parseToolResultMeta(raw) {
|
|
66241
66241
|
if (!Array.isArray(raw))
|
|
66242
66242
|
return;
|
|
@@ -66255,7 +66255,7 @@ function parseToolResultMeta(raw) {
|
|
|
66255
66255
|
return byToolUseId;
|
|
66256
66256
|
}
|
|
66257
66257
|
|
|
66258
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
66258
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/exit-plan.js
|
|
66259
66259
|
function acceptedPlanToolResult(notification, toolUseId) {
|
|
66260
66260
|
const update = notification.update;
|
|
66261
66261
|
if (!toolUseId || update.sessionUpdate !== "tool_call_update" || update.toolCallId !== toolUseId) {
|
|
@@ -66385,7 +66385,7 @@ ${plan}` }]
|
|
|
66385
66385
|
}
|
|
66386
66386
|
}
|
|
66387
66387
|
}
|
|
66388
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
66388
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-mode.js
|
|
66389
66389
|
var MODE_CONFIG_ID = "mode";
|
|
66390
66390
|
var AUTO_MODE_FALLBACK = "acceptEdits";
|
|
66391
66391
|
var AUTO_MODE_FALLBACK_NOTICE = "**Auto mode unavailable:** the selected model does not support Auto mode; using Accept edits instead.";
|
|
@@ -66596,7 +66596,7 @@ class SessionModeManager {
|
|
|
66596
66596
|
}
|
|
66597
66597
|
}
|
|
66598
66598
|
|
|
66599
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
66599
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/acp-agent.js
|
|
66600
66600
|
var CLAUDE_CONFIG_DIR = process.env.CLAUDE_CONFIG_DIR ?? path6.join(os3.homedir(), ".claude");
|
|
66601
66601
|
var execFileAsync = promisify(execFile);
|
|
66602
66602
|
var MAX_INLINE_FAILURE_TITLE_LENGTH = 256;
|
|
@@ -71288,7 +71288,7 @@ function getMatchingModelUsage(modelUsage, currentModel) {
|
|
|
71288
71288
|
}
|
|
71289
71289
|
}
|
|
71290
71290
|
|
|
71291
|
-
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+
|
|
71291
|
+
// ../../node_modules/.bun/@agentclientprotocol+claude-agent-acp@0.73.0+9d07fcd1d5f69726/node_modules/@agentclientprotocol/claude-agent-acp/dist/index.js
|
|
71292
71292
|
import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync2 } from "fs";
|
|
71293
71293
|
import { join as join7 } from "path";
|
|
71294
71294
|
if (process.argv.includes("--cli")) {
|