@get-bb/plugin-sdk 0.6.54 → 0.6.60
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/bundled-types/bb-plugin-sdk-app.d.ts +97 -4
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +3 -1
- package/bundled-types/bb-plugin-sdk-host.d.ts +11 -2
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +3 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +71 -11
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +26 -7
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +21 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +33 -1
- package/bundled-types/bb-plugin-sdk-testing.d.ts +3 -1
- package/bundled-types/bb-plugin-sdk.d.ts +105 -7
- package/dist/host.js +150 -5
- package/dist/internal/plugin-app-collector.js +2 -2
- package/dist/provider-bridge-acp-next.js +461 -112
- package/dist/provider-bridge-acp.js +6838 -621
- package/dist/provider-bridge-testing.js +74 -32
- package/dist/provider-bridge-worker-entry.mjs +136 -5
- package/dist/provider-bridge.js +194 -8
- package/dist/testing/app.js +2 -2
- package/dist/testing/index.js +1 -0
- package/package.json +3 -4
|
@@ -1745,6 +1745,7 @@ var systemMessageKindValues = [
|
|
|
1745
1745
|
"child-interrupted",
|
|
1746
1746
|
"child-outcome-batch",
|
|
1747
1747
|
"tool-result-delivered",
|
|
1748
|
+
"environment-directory-updated",
|
|
1748
1749
|
"unlabeled"
|
|
1749
1750
|
];
|
|
1750
1751
|
var systemMessageKindSchema = z12.enum(systemMessageKindValues);
|
|
@@ -1778,6 +1779,10 @@ var systemMessageSubjectSchema = z12.discriminatedUnion("kind", [
|
|
|
1778
1779
|
kind: z12.literal("tool-call"),
|
|
1779
1780
|
toolName: z12.string(),
|
|
1780
1781
|
suppress: z12.boolean()
|
|
1782
|
+
}),
|
|
1783
|
+
z12.object({
|
|
1784
|
+
kind: z12.literal("directory"),
|
|
1785
|
+
path: z12.string()
|
|
1781
1786
|
})
|
|
1782
1787
|
]);
|
|
1783
1788
|
|
|
@@ -2021,6 +2026,7 @@ var threadEventScopeDefinitionByType = {
|
|
|
2021
2026
|
},
|
|
2022
2027
|
"turn/plan/updated": { policy: "turn" },
|
|
2023
2028
|
"turn/diff/updated": { policy: "turn" },
|
|
2029
|
+
"turn/mainRun/updated": { policy: "turn" },
|
|
2024
2030
|
"provider/error": {
|
|
2025
2031
|
policy: "thread-or-turn",
|
|
2026
2032
|
rationale: "Provider diagnostics use thread scope for provider setup/session failures; in-turn failures use turn scope."
|
|
@@ -2440,6 +2446,7 @@ var threadEventItemSchema = z16.discriminatedUnion("type", [
|
|
|
2440
2446
|
changes: z16.array(threadEventFileChangeSchema),
|
|
2441
2447
|
status: threadEventItemStatusSchema,
|
|
2442
2448
|
approvalStatus: threadEventItemApprovalStatusSchema,
|
|
2449
|
+
error: z16.string().optional(),
|
|
2443
2450
|
...itemPresentationField,
|
|
2444
2451
|
parentToolCallId: z16.string().optional()
|
|
2445
2452
|
}),
|
|
@@ -2640,6 +2647,12 @@ var unscopedProviderEventSchema = z16.discriminatedUnion("type", [
|
|
|
2640
2647
|
plan: z16.array(threadEventPlanStepSchema),
|
|
2641
2648
|
explanation: z16.string().optional()
|
|
2642
2649
|
}),
|
|
2650
|
+
z16.object({
|
|
2651
|
+
type: z16.literal("turn/mainRun/updated"),
|
|
2652
|
+
threadId: z16.string(),
|
|
2653
|
+
providerThreadId: z16.string(),
|
|
2654
|
+
state: z16.enum(["idle", "running"])
|
|
2655
|
+
}),
|
|
2643
2656
|
z16.object({
|
|
2644
2657
|
type: z16.literal("turn/diff/updated"),
|
|
2645
2658
|
threadId: z16.string(),
|
|
@@ -3038,7 +3051,7 @@ function reasoningEffortsForLevels(levels) {
|
|
|
3038
3051
|
);
|
|
3039
3052
|
}
|
|
3040
3053
|
|
|
3041
|
-
// ../provider-bridge-acp
|
|
3054
|
+
// ../provider-bridge-acp/src/launch-spec.ts
|
|
3042
3055
|
import { z as z20 } from "zod";
|
|
3043
3056
|
var acpNativeSkillRootsSchema = z20.object({
|
|
3044
3057
|
user: z20.array(providerNativeRootInputSchema).default([]),
|
|
@@ -3099,7 +3112,8 @@ var bridgeCapabilitiesSchema = z21.object({
|
|
|
3099
3112
|
PROVIDER_BRIDGE_PROTOCOL_VERSION
|
|
3100
3113
|
]),
|
|
3101
3114
|
steerMode: bridgeSteerModeSchema.default("queue"),
|
|
3102
|
-
skills: z21.object({ configure: z21.boolean().default(false) }).default({ configure: false })
|
|
3115
|
+
skills: z21.object({ configure: z21.boolean().default(false) }).default({ configure: false }),
|
|
3116
|
+
commands: z21.object({ list: z21.boolean().default(false) }).default({ list: false })
|
|
3103
3117
|
}).passthrough();
|
|
3104
3118
|
var initializeParamsSchema = z21.object({
|
|
3105
3119
|
protocolVersion: z21.number().int().positive(),
|
|
@@ -3276,7 +3290,11 @@ var sessionConstructionFields = {
|
|
|
3276
3290
|
disallowedTools: z24.array(z24.string().min(1)).optional(),
|
|
3277
3291
|
instructionMode: instructionModeSchema
|
|
3278
3292
|
};
|
|
3279
|
-
var modelListParamsSchema = z24.object({
|
|
3293
|
+
var modelListParamsSchema = z24.object({
|
|
3294
|
+
cwd: z24.string().min(1).optional(),
|
|
3295
|
+
envVars: z24.record(z24.string(), z24.string()).optional()
|
|
3296
|
+
}).passthrough();
|
|
3297
|
+
var commandListParamsSchema = z24.object({ cwd: z24.string().min(1) }).passthrough();
|
|
3280
3298
|
var threadStartParamsSchema = z24.object({
|
|
3281
3299
|
...sessionConstructionFields,
|
|
3282
3300
|
input: z24.array(promptInputSchema).optional()
|
|
@@ -3587,6 +3605,10 @@ var threadDeltaSchema = z28.discriminatedUnion("kind", [
|
|
|
3587
3605
|
providerTurnId: providerTurnIdSchema.optional(),
|
|
3588
3606
|
parentRef: deltaKeyPartSchema.optional()
|
|
3589
3607
|
}),
|
|
3608
|
+
z28.object({
|
|
3609
|
+
kind: z28.literal("turn.mainRun"),
|
|
3610
|
+
state: z28.enum(["idle", "running"])
|
|
3611
|
+
}),
|
|
3590
3612
|
z28.object({
|
|
3591
3613
|
kind: z28.literal("turn.boundary"),
|
|
3592
3614
|
status: threadEventTurnStatusSchema,
|
|
@@ -11405,8 +11427,157 @@ var {
|
|
|
11405
11427
|
getCancelSignal: getCancelSignal2
|
|
11406
11428
|
} = getIpcExport();
|
|
11407
11429
|
|
|
11430
|
+
// ../process-utils/src/vcs-process-scheduler.ts
|
|
11431
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
11432
|
+
import { availableParallelism } from "node:os";
|
|
11433
|
+
var ranks = { interactive: 0, status: 1, background: 2 };
|
|
11434
|
+
function localProcessCapacities(parallelism) {
|
|
11435
|
+
const total = Math.min(6, Math.max(4, parallelism - 2));
|
|
11436
|
+
return [total, total - 1, total - 2];
|
|
11437
|
+
}
|
|
11438
|
+
var capacities = {
|
|
11439
|
+
local: localProcessCapacities(availableParallelism()),
|
|
11440
|
+
network: [4, 3, 2]
|
|
11441
|
+
};
|
|
11442
|
+
var githubCapacity = 2;
|
|
11443
|
+
var agingMs = 15e3;
|
|
11444
|
+
var networkGitSubcommands = /* @__PURE__ */ new Set([
|
|
11445
|
+
"fetch",
|
|
11446
|
+
"pull",
|
|
11447
|
+
"push",
|
|
11448
|
+
"clone",
|
|
11449
|
+
"ls-remote"
|
|
11450
|
+
]);
|
|
11451
|
+
var gitGlobalOptionsWithValue = /* @__PURE__ */ new Set([
|
|
11452
|
+
"-C",
|
|
11453
|
+
"-c",
|
|
11454
|
+
"--git-dir",
|
|
11455
|
+
"--work-tree",
|
|
11456
|
+
"--namespace",
|
|
11457
|
+
"--config-env"
|
|
11458
|
+
]);
|
|
11459
|
+
function isNetworkGitCommand(args) {
|
|
11460
|
+
let index = 0;
|
|
11461
|
+
while (index < args.length && args[index].startsWith("-")) {
|
|
11462
|
+
index += gitGlobalOptionsWithValue.has(args[index]) ? 2 : 1;
|
|
11463
|
+
}
|
|
11464
|
+
const subcommand = args[index];
|
|
11465
|
+
if (subcommand === void 0) return false;
|
|
11466
|
+
if (networkGitSubcommands.has(subcommand)) return true;
|
|
11467
|
+
const action = args.slice(index + 1).find((arg) => !arg.startsWith("-"));
|
|
11468
|
+
return (subcommand === "submodule" || subcommand === "remote") && action === "update";
|
|
11469
|
+
}
|
|
11470
|
+
var VcsProcessScheduler = class {
|
|
11471
|
+
priority = new AsyncLocalStorage();
|
|
11472
|
+
admitted = new AsyncLocalStorage();
|
|
11473
|
+
active = { local: 0, network: 0 };
|
|
11474
|
+
githubActive = 0;
|
|
11475
|
+
queue = [];
|
|
11476
|
+
timer;
|
|
11477
|
+
acquire(command, args, options) {
|
|
11478
|
+
const pool = command === "gh" || isNetworkGitCommand(args) ? "network" : "local";
|
|
11479
|
+
const slots = options.slots ?? 1;
|
|
11480
|
+
if (!Number.isInteger(slots) || slots < 1 || slots > capacities[pool][ranks.background]) {
|
|
11481
|
+
return Promise.reject(new Error("Invalid VCS process slot count"));
|
|
11482
|
+
}
|
|
11483
|
+
if (options.signal?.aborted) {
|
|
11484
|
+
return Promise.reject(this.abortError(options.signal));
|
|
11485
|
+
}
|
|
11486
|
+
return new Promise((grant, reject) => {
|
|
11487
|
+
const waiter = {
|
|
11488
|
+
command,
|
|
11489
|
+
pool,
|
|
11490
|
+
priority: options.priority ?? this.priority.getStore() ?? "status",
|
|
11491
|
+
slots,
|
|
11492
|
+
queuedAt: performance.now(),
|
|
11493
|
+
signal: options.signal,
|
|
11494
|
+
grant,
|
|
11495
|
+
onAbort: () => {
|
|
11496
|
+
const index = this.queue.indexOf(waiter);
|
|
11497
|
+
if (index === -1) return;
|
|
11498
|
+
this.queue.splice(index, 1);
|
|
11499
|
+
reject(this.abortError(options.signal));
|
|
11500
|
+
this.drain();
|
|
11501
|
+
}
|
|
11502
|
+
};
|
|
11503
|
+
this.queue.push(waiter);
|
|
11504
|
+
options.signal?.addEventListener("abort", waiter.onAbort, { once: true });
|
|
11505
|
+
this.drain();
|
|
11506
|
+
});
|
|
11507
|
+
}
|
|
11508
|
+
abortError(signal) {
|
|
11509
|
+
return Object.assign(
|
|
11510
|
+
new Error("The operation was aborted", { cause: signal?.reason }),
|
|
11511
|
+
{
|
|
11512
|
+
name: "AbortError",
|
|
11513
|
+
code: "ABORT_ERR"
|
|
11514
|
+
}
|
|
11515
|
+
);
|
|
11516
|
+
}
|
|
11517
|
+
rank(waiter) {
|
|
11518
|
+
return Math.max(
|
|
11519
|
+
0,
|
|
11520
|
+
ranks[waiter.priority] - Math.floor((performance.now() - waiter.queuedAt) / agingMs)
|
|
11521
|
+
);
|
|
11522
|
+
}
|
|
11523
|
+
drain() {
|
|
11524
|
+
clearTimeout(this.timer);
|
|
11525
|
+
this.queue.sort(
|
|
11526
|
+
(a2, b) => this.rank(a2) - this.rank(b) || a2.queuedAt - b.queuedAt
|
|
11527
|
+
);
|
|
11528
|
+
const blocked = /* @__PURE__ */ new Set();
|
|
11529
|
+
for (let index = 0; index < this.queue.length; ) {
|
|
11530
|
+
const waiter = this.queue[index];
|
|
11531
|
+
if (blocked.has(waiter.pool) || waiter.command === "gh" && this.githubActive + waiter.slots > githubCapacity) {
|
|
11532
|
+
index += 1;
|
|
11533
|
+
continue;
|
|
11534
|
+
}
|
|
11535
|
+
if (this.active[waiter.pool] + waiter.slots > capacities[waiter.pool][this.rank(waiter)]) {
|
|
11536
|
+
blocked.add(waiter.pool);
|
|
11537
|
+
index += 1;
|
|
11538
|
+
continue;
|
|
11539
|
+
}
|
|
11540
|
+
this.queue.splice(index, 1);
|
|
11541
|
+
waiter.signal?.removeEventListener("abort", waiter.onAbort);
|
|
11542
|
+
this.active[waiter.pool] += waiter.slots;
|
|
11543
|
+
if (waiter.command === "gh") this.githubActive += waiter.slots;
|
|
11544
|
+
let released = false;
|
|
11545
|
+
waiter.grant(() => {
|
|
11546
|
+
if (released) return;
|
|
11547
|
+
released = true;
|
|
11548
|
+
this.active[waiter.pool] -= waiter.slots;
|
|
11549
|
+
if (waiter.command === "gh") this.githubActive -= waiter.slots;
|
|
11550
|
+
this.drain();
|
|
11551
|
+
});
|
|
11552
|
+
}
|
|
11553
|
+
if (this.queue.length > 0) {
|
|
11554
|
+
const delay = Math.min(
|
|
11555
|
+
...this.queue.map(
|
|
11556
|
+
(waiter) => agingMs - (performance.now() - waiter.queuedAt) % agingMs
|
|
11557
|
+
)
|
|
11558
|
+
);
|
|
11559
|
+
this.timer = setTimeout(() => this.drain(), delay);
|
|
11560
|
+
}
|
|
11561
|
+
}
|
|
11562
|
+
};
|
|
11563
|
+
var registry = globalThis;
|
|
11564
|
+
var scheduler3 = registry.__bbVcsProcessScheduler ??= new VcsProcessScheduler();
|
|
11565
|
+
async function runVcsProcess(command, args, operation, options = {}) {
|
|
11566
|
+
if (scheduler3.admitted.getStore()) {
|
|
11567
|
+
options.signal?.throwIfAborted();
|
|
11568
|
+
return operation();
|
|
11569
|
+
}
|
|
11570
|
+
const release = await scheduler3.acquire(command, args, options);
|
|
11571
|
+
try {
|
|
11572
|
+
options.signal?.throwIfAborted();
|
|
11573
|
+
return await scheduler3.admitted.run(true, operation);
|
|
11574
|
+
} finally {
|
|
11575
|
+
release();
|
|
11576
|
+
}
|
|
11577
|
+
}
|
|
11578
|
+
|
|
11408
11579
|
// ../process-utils/src/exec-portable-file.ts
|
|
11409
|
-
import { extname as extname2 } from "node:path";
|
|
11580
|
+
import { basename, extname as extname2 } from "node:path";
|
|
11410
11581
|
|
|
11411
11582
|
// ../../node_modules/.pnpm/which-command@0.1.0/node_modules/which-command/index.js
|
|
11412
11583
|
import fs from "node:fs";
|
|
@@ -11493,6 +11664,21 @@ function whichCommandSync(command, options = {}) {
|
|
|
11493
11664
|
|
|
11494
11665
|
// ../process-utils/src/exec-portable-file.ts
|
|
11495
11666
|
async function execPortableFile(command, args, options) {
|
|
11667
|
+
const executable = basename(command).toLowerCase().replace(/\.(exe|cmd|bat)$/u, "");
|
|
11668
|
+
if (executable === "git" || executable === "gh") {
|
|
11669
|
+
return runVcsProcess(
|
|
11670
|
+
executable,
|
|
11671
|
+
args,
|
|
11672
|
+
() => execPortableFileUnbounded(command, args, options),
|
|
11673
|
+
{
|
|
11674
|
+
priority: options.priority,
|
|
11675
|
+
signal: options.signal
|
|
11676
|
+
}
|
|
11677
|
+
);
|
|
11678
|
+
}
|
|
11679
|
+
return execPortableFileUnbounded(command, args, options);
|
|
11680
|
+
}
|
|
11681
|
+
async function execPortableFileUnbounded(command, args, options) {
|
|
11496
11682
|
if (options.signal?.aborted) throw options.signal.reason;
|
|
11497
11683
|
if (process.platform === "win32") {
|
|
11498
11684
|
const envKeys = Object.keys(options.env).sort();
|
|
@@ -11606,11 +11792,6 @@ import { execFile as execFile2 } from "node:child_process";
|
|
|
11606
11792
|
import { promisify as promisify3 } from "node:util";
|
|
11607
11793
|
var execFileAsync = promisify3(execFile2);
|
|
11608
11794
|
|
|
11609
|
-
// ../process-utils/src/performance-diagnostics.ts
|
|
11610
|
-
import { Session } from "node:inspector/promises";
|
|
11611
|
-
var PROFILE_RETENTION_MS = 12 * 60 * 60 * 1e3;
|
|
11612
|
-
var MAX_PROFILE_BYTES = 12 * 1024 * 1024;
|
|
11613
|
-
|
|
11614
11795
|
// ../provider-bridge-protocol/src/bridge-kit/provider-maintenance-kit.ts
|
|
11615
11796
|
var import_compare = __toESM(require_compare(), 1);
|
|
11616
11797
|
var import_valid = __toESM(require_valid(), 1);
|
|
@@ -11660,20 +11841,6 @@ function versionFrom(value) {
|
|
|
11660
11841
|
const candidate = value?.match(/\bv?(\d+\.\d+\.\d+[0-9A-Za-z.+-]*)/u)?.[1];
|
|
11661
11842
|
return candidate !== void 0 && (0, import_valid.default)(candidate) !== null ? candidate : null;
|
|
11662
11843
|
}
|
|
11663
|
-
async function readCliVersion(command) {
|
|
11664
|
-
try {
|
|
11665
|
-
const { stdout, stderr } = await execPortableFile(command, ["--version"], {
|
|
11666
|
-
cwd: process.cwd(),
|
|
11667
|
-
env: process.env,
|
|
11668
|
-
maxBuffer: 1024 * 1024,
|
|
11669
|
-
timeout: CLI_PROBE_TIMEOUT_MS
|
|
11670
|
-
});
|
|
11671
|
-
return versionFrom(`${stdout}
|
|
11672
|
-
${stderr}`);
|
|
11673
|
-
} catch {
|
|
11674
|
-
return null;
|
|
11675
|
-
}
|
|
11676
|
-
}
|
|
11677
11844
|
function downloadedInstallerCommand(url2, options = {}) {
|
|
11678
11845
|
if ((options.platform ?? process.platform) === "win32" && options.powershellUrl !== void 0) {
|
|
11679
11846
|
const powershellScript = `irm ${options.powershellUrl} | iex`;
|
|
@@ -11726,19 +11893,19 @@ function createProviderVisibilityMetadata(args) {
|
|
|
11726
11893
|
import { z as z35 } from "zod";
|
|
11727
11894
|
var ignoredJsonRpcResultSchema = z35.unknown();
|
|
11728
11895
|
|
|
11729
|
-
// ../provider-bridge-acp
|
|
11896
|
+
// ../provider-bridge-acp/src/bridge/bridge.ts
|
|
11730
11897
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
11731
|
-
import { promises as fs4, readFileSync as readFileSync3 } from "node:fs";
|
|
11898
|
+
import { promises as fs4, readFileSync as readFileSync3, statSync as statSync2 } from "node:fs";
|
|
11732
11899
|
import { createServer } from "node:net";
|
|
11733
|
-
import { dirname as dirname2, isAbsolute as isAbsolute2, basename as
|
|
11900
|
+
import { dirname as dirname2, isAbsolute as isAbsolute2, basename as basename4, relative as relative2, resolve as resolve4 } from "node:path";
|
|
11734
11901
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
11735
11902
|
import { isDeepStrictEqual } from "node:util";
|
|
11736
11903
|
import { z as z48 } from "zod";
|
|
11737
11904
|
|
|
11738
|
-
// ../provider-bridge-acp
|
|
11905
|
+
// ../provider-bridge-acp/src/bridge-protocol.ts
|
|
11739
11906
|
import { z as z37 } from "zod";
|
|
11740
11907
|
|
|
11741
|
-
// ../provider-bridge-acp
|
|
11908
|
+
// ../provider-bridge-acp/src/wire.ts
|
|
11742
11909
|
import { z as z36 } from "zod";
|
|
11743
11910
|
var acpTextContentBlockSchema = z36.object({
|
|
11744
11911
|
type: z36.literal("text"),
|
|
@@ -12034,7 +12201,7 @@ var acpWriteTextFileParamsSchema = z36.object({
|
|
|
12034
12201
|
content: z36.string()
|
|
12035
12202
|
}).passthrough();
|
|
12036
12203
|
|
|
12037
|
-
// ../provider-bridge-acp
|
|
12204
|
+
// ../provider-bridge-acp/src/bridge-protocol.ts
|
|
12038
12205
|
var ACP_DEFAULT_MODEL_ID = "acp-default";
|
|
12039
12206
|
var acpModelListParamsSchema = modelListParamsSchema.extend({
|
|
12040
12207
|
providerOptions: z37.record(z37.string(), z37.unknown()).optional()
|
|
@@ -12102,6 +12269,7 @@ var acpBridgeCommandMethodValues = acpBridgeCommandSchema.options.map(
|
|
|
12102
12269
|
);
|
|
12103
12270
|
var ACP_TURN_STARTED_METHOD = "acp/turn/started";
|
|
12104
12271
|
var ACP_TURN_COMPLETED_METHOD = "acp/turn/completed";
|
|
12272
|
+
var ACP_PROMPT_INTERRUPTED_METHOD = "acp/prompt/interrupted";
|
|
12105
12273
|
var ACP_COMPACTION_STARTED_METHOD = "acp/compaction/started";
|
|
12106
12274
|
var ACP_COMPACTION_COMPLETED_METHOD = "acp/compaction/completed";
|
|
12107
12275
|
var ACP_UPDATE_METHOD = "acp/update";
|
|
@@ -12151,11 +12319,11 @@ var acpWarningNotificationParamsSchema = z37.object({
|
|
|
12151
12319
|
details: z37.string().optional()
|
|
12152
12320
|
}).passthrough();
|
|
12153
12321
|
|
|
12154
|
-
// ../provider-bridge-acp
|
|
12155
|
-
import { basename } from "node:path";
|
|
12322
|
+
// ../provider-bridge-acp/src/dialect.ts
|
|
12323
|
+
import { basename as basename2 } from "node:path";
|
|
12156
12324
|
import { z as z42 } from "zod";
|
|
12157
12325
|
|
|
12158
|
-
// ../provider-bridge-acp
|
|
12326
|
+
// ../provider-bridge-acp/src/bridge/provider-maintenance.ts
|
|
12159
12327
|
import { execFile as execFile4 } from "node:child_process";
|
|
12160
12328
|
import { existsSync } from "node:fs";
|
|
12161
12329
|
import fs3 from "node:fs/promises";
|
|
@@ -12165,7 +12333,7 @@ import { DatabaseSync as DatabaseSync2 } from "node:sqlite";
|
|
|
12165
12333
|
import { promisify as promisify5 } from "node:util";
|
|
12166
12334
|
import { z as z39 } from "zod";
|
|
12167
12335
|
|
|
12168
|
-
// ../provider-bridge-acp
|
|
12336
|
+
// ../provider-bridge-acp/src/bridge/opencode-usage.ts
|
|
12169
12337
|
import fs2 from "node:fs/promises";
|
|
12170
12338
|
import os from "node:os";
|
|
12171
12339
|
import path9 from "node:path";
|
|
@@ -12399,7 +12567,7 @@ async function readOpenCodeGoUsage(env) {
|
|
|
12399
12567
|
}
|
|
12400
12568
|
}
|
|
12401
12569
|
|
|
12402
|
-
// ../provider-bridge-acp
|
|
12570
|
+
// ../provider-bridge-acp/src/bridge/provider-maintenance.ts
|
|
12403
12571
|
var execFileAsync3 = promisify5(execFile4);
|
|
12404
12572
|
var USAGE_FETCH_TIMEOUT_MS = 15e3;
|
|
12405
12573
|
var CURSOR_DASHBOARD_URL = "https://api2.cursor.sh/aiserver.v1.DashboardService";
|
|
@@ -12510,6 +12678,23 @@ function healthResult(args) {
|
|
|
12510
12678
|
}
|
|
12511
12679
|
};
|
|
12512
12680
|
}
|
|
12681
|
+
async function readAcpCliVersion(command) {
|
|
12682
|
+
try {
|
|
12683
|
+
const { stdout, stderr } = await execPortableFile(command, ["--version"], {
|
|
12684
|
+
cwd: process.cwd(),
|
|
12685
|
+
env: process.env,
|
|
12686
|
+
maxBuffer: 1024 * 1024,
|
|
12687
|
+
timeout: 5e3
|
|
12688
|
+
});
|
|
12689
|
+
const output = `${stdout}
|
|
12690
|
+
${stderr}`;
|
|
12691
|
+
return versionFrom(output) ?? output.match(
|
|
12692
|
+
/(?:^|\s)(\d{4}\.(?:0[1-9]|1[0-2])\.(?:0[1-9]|[12]\d|3[01])-[0-9a-f]+)(?=\s|$)/u
|
|
12693
|
+
)?.[1] ?? null;
|
|
12694
|
+
} catch {
|
|
12695
|
+
return null;
|
|
12696
|
+
}
|
|
12697
|
+
}
|
|
12513
12698
|
async function getAcpProviderHealth(args) {
|
|
12514
12699
|
const maintenance = args.maintenance;
|
|
12515
12700
|
if (args.command === null) {
|
|
@@ -12522,7 +12707,7 @@ async function getAcpProviderHealth(args) {
|
|
|
12522
12707
|
if (await resolveExecutablePath(args.command) === null) {
|
|
12523
12708
|
return healthResult({ maintenance, status: "not_installed" });
|
|
12524
12709
|
}
|
|
12525
|
-
const version = await
|
|
12710
|
+
const version = await readAcpCliVersion(args.command);
|
|
12526
12711
|
if (maintenance === void 0) {
|
|
12527
12712
|
return healthResult({
|
|
12528
12713
|
maintenance,
|
|
@@ -12551,7 +12736,7 @@ async function getAcpProviderInstallationStatus(args) {
|
|
|
12551
12736
|
const executableName = args.command ?? "";
|
|
12552
12737
|
const resolvedExecutable = args.command === null ? null : await resolveExecutablePath(args.command);
|
|
12553
12738
|
const installed = resolvedExecutable !== null;
|
|
12554
|
-
const currentVersion = installed && args.command !== null ? await
|
|
12739
|
+
const currentVersion = installed && args.command !== null ? await readAcpCliVersion(args.command) : null;
|
|
12555
12740
|
const installAction = args.maintenance !== void 0 && !installed ? {
|
|
12556
12741
|
kind: "install",
|
|
12557
12742
|
label: "Install",
|
|
@@ -12722,7 +12907,7 @@ async function readCursorUsage() {
|
|
|
12722
12907
|
}
|
|
12723
12908
|
}
|
|
12724
12909
|
|
|
12725
|
-
// ../provider-bridge-acp
|
|
12910
|
+
// ../provider-bridge-acp/src/presentation.ts
|
|
12726
12911
|
function stripCodeTicks(text) {
|
|
12727
12912
|
const trimmed = text.trim();
|
|
12728
12913
|
return trimmed.length >= 2 && trimmed.startsWith("`") && trimmed.endsWith("`") ? trimmed.slice(1, -1) : trimmed;
|
|
@@ -12818,10 +13003,10 @@ function toolKindPresentation(args) {
|
|
|
12818
13003
|
);
|
|
12819
13004
|
}
|
|
12820
13005
|
|
|
12821
|
-
// ../provider-bridge-acp
|
|
13006
|
+
// ../provider-bridge-acp/src/tool-classification.ts
|
|
12822
13007
|
import { z as z41 } from "zod";
|
|
12823
13008
|
|
|
12824
|
-
// ../provider-bridge-acp
|
|
13009
|
+
// ../provider-bridge-acp/src/tool-call-operation.ts
|
|
12825
13010
|
import path11 from "node:path";
|
|
12826
13011
|
import { z as z40 } from "zod";
|
|
12827
13012
|
var acpRawInputCommandSchema = z40.object({ command: z40.string() }).passthrough();
|
|
@@ -12915,7 +13100,7 @@ function resolveAcpFileChangeWriteScope(paths) {
|
|
|
12915
13100
|
return candidate;
|
|
12916
13101
|
}
|
|
12917
13102
|
|
|
12918
|
-
// ../provider-bridge-acp
|
|
13103
|
+
// ../provider-bridge-acp/src/tool-classification.ts
|
|
12919
13104
|
var BB_TOOL_SERVER = "bb";
|
|
12920
13105
|
function isInjectedToolCandidate(event) {
|
|
12921
13106
|
if (event.kind !== void 0 && event.kind !== "other") {
|
|
@@ -13127,25 +13312,35 @@ function fileChangeVerb(changes, fallback) {
|
|
|
13127
13312
|
}
|
|
13128
13313
|
return "update";
|
|
13129
13314
|
}
|
|
13315
|
+
var DEV_NULL_OLD_TEXT = /^-{2,3} \/dev\/null$/u;
|
|
13316
|
+
var NEW_FILE_HEADER = /^\+{2,3} b\/[^\n]*(?:\n|$)/u;
|
|
13130
13317
|
function buildAcpFileChanges(event, operation, options) {
|
|
13131
13318
|
const changes = [];
|
|
13132
13319
|
for (const entry of event.content ?? []) {
|
|
13133
13320
|
if (entry.type !== "diff") {
|
|
13134
13321
|
continue;
|
|
13135
13322
|
}
|
|
13136
|
-
const
|
|
13323
|
+
const createsFile = entry.oldText === null || entry.oldText === void 0 || DEV_NULL_OLD_TEXT.test(entry.oldText);
|
|
13137
13324
|
changes.push({
|
|
13138
13325
|
path: resolveAcpToolCallPath(entry.path, options),
|
|
13139
|
-
kind:
|
|
13140
|
-
...
|
|
13141
|
-
newText: entry.newText
|
|
13326
|
+
kind: createsFile ? "add" : "update",
|
|
13327
|
+
...createsFile ? {} : { oldText: entry.oldText ?? void 0 },
|
|
13328
|
+
newText: createsFile ? entry.newText.replace(NEW_FILE_HEADER, "") : entry.newText
|
|
13142
13329
|
});
|
|
13143
13330
|
}
|
|
13144
13331
|
if (changes.length > 0) {
|
|
13145
13332
|
return changes;
|
|
13146
13333
|
}
|
|
13147
13334
|
const [path13] = operation.paths;
|
|
13148
|
-
|
|
13335
|
+
if (path13 === void 0) {
|
|
13336
|
+
return [];
|
|
13337
|
+
}
|
|
13338
|
+
return [
|
|
13339
|
+
{
|
|
13340
|
+
path: path13,
|
|
13341
|
+
kind: operation.changeKind === "update" && options?.existedBefore?.get(path13) === false ? "add" : operation.changeKind
|
|
13342
|
+
}
|
|
13343
|
+
];
|
|
13149
13344
|
}
|
|
13150
13345
|
function fileChangeItem(changes, fallbackVerb) {
|
|
13151
13346
|
return {
|
|
@@ -13285,7 +13480,7 @@ function classifyAcpToolCall2(event, injected, options) {
|
|
|
13285
13480
|
}
|
|
13286
13481
|
}
|
|
13287
13482
|
|
|
13288
|
-
// ../provider-bridge-acp
|
|
13483
|
+
// ../provider-bridge-acp/src/dialect.ts
|
|
13289
13484
|
var GENERIC_ACP_DIALECT = { id: "acp" };
|
|
13290
13485
|
var grokToolMetaSchema = z42.object({
|
|
13291
13486
|
"x.ai/tool": z42.object({
|
|
@@ -13586,11 +13781,11 @@ function resolveAcpDialect(launch) {
|
|
|
13586
13781
|
if (launch.dialectId !== void 0) {
|
|
13587
13782
|
return DIALECTS_BY_ID.get(launch.dialectId) ?? GENERIC_ACP_DIALECT;
|
|
13588
13783
|
}
|
|
13589
|
-
const byCommand = DIALECT_IDS_BY_COMMAND[
|
|
13784
|
+
const byCommand = DIALECT_IDS_BY_COMMAND[basename2(launch.command)];
|
|
13590
13785
|
return byCommand === void 0 ? GENERIC_ACP_DIALECT : DIALECTS_BY_ID.get(byCommand) ?? GENERIC_ACP_DIALECT;
|
|
13591
13786
|
}
|
|
13592
13787
|
|
|
13593
|
-
// ../provider-bridge-acp
|
|
13788
|
+
// ../provider-bridge-acp/src/session/decode.ts
|
|
13594
13789
|
var ACP_LEGACY_MODE_CONFIG_ID = "_bb/legacy-mode";
|
|
13595
13790
|
var ACP_LEGACY_MODEL_CONFIG_ID = "_bb/legacy-model";
|
|
13596
13791
|
function isJsonObject(value) {
|
|
@@ -13923,7 +14118,7 @@ function decodeWorkError(value) {
|
|
|
13923
14118
|
return "data" in value ? { code, message, data: value["data"] } : { code, message };
|
|
13924
14119
|
}
|
|
13925
14120
|
|
|
13926
|
-
// ../provider-bridge-acp
|
|
14121
|
+
// ../provider-bridge-acp/src/visibility.ts
|
|
13927
14122
|
var NORMALIZED_ACP_METHODS = /* @__PURE__ */ new Set([
|
|
13928
14123
|
"thread/identity",
|
|
13929
14124
|
"error",
|
|
@@ -13988,7 +14183,7 @@ var acpVisibilityMetadata = createProviderVisibilityMetadata({
|
|
|
13988
14183
|
describeParsedRawEvent: describeParsedAcpRawEvent
|
|
13989
14184
|
});
|
|
13990
14185
|
|
|
13991
|
-
// ../provider-bridge-acp
|
|
14186
|
+
// ../provider-bridge-acp/src/delta-translation.ts
|
|
13992
14187
|
var ASSISTANT_STREAM_KEY = "assistant";
|
|
13993
14188
|
var THOUGHT_STREAM_KEY = "thought";
|
|
13994
14189
|
var ACP_PLAN_STEP_STATUS_BY_ENTRY_STATUS = {
|
|
@@ -14037,6 +14232,34 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
14037
14232
|
const dialect = options.dialect ?? GENERIC_ACP_DIALECT;
|
|
14038
14233
|
const pathOptions = { cwd: options.cwd };
|
|
14039
14234
|
const mergedToolCalls = /* @__PURE__ */ new Map();
|
|
14235
|
+
const fileExistence = /* @__PURE__ */ new Map();
|
|
14236
|
+
const filesAddedThisTurn = /* @__PURE__ */ new Set();
|
|
14237
|
+
function noteEditedPaths(key, event) {
|
|
14238
|
+
const fileCreatedThisTurn = options.fileCreatedThisTurn;
|
|
14239
|
+
if (fileCreatedThisTurn === void 0 || event.kind !== "edit") {
|
|
14240
|
+
return;
|
|
14241
|
+
}
|
|
14242
|
+
const seen = fileExistence.get(key) ?? /* @__PURE__ */ new Map();
|
|
14243
|
+
for (const location of event.locations ?? []) {
|
|
14244
|
+
const resolved = resolveAcpToolCallPath(location.path, pathOptions);
|
|
14245
|
+
if (seen.has(resolved)) {
|
|
14246
|
+
continue;
|
|
14247
|
+
}
|
|
14248
|
+
const created = fileCreatedThisTurn(resolved);
|
|
14249
|
+
if (created === void 0) {
|
|
14250
|
+
seen.set(resolved, void 0);
|
|
14251
|
+
continue;
|
|
14252
|
+
}
|
|
14253
|
+
const added = created && !filesAddedThisTurn.has(resolved);
|
|
14254
|
+
if (added) {
|
|
14255
|
+
filesAddedThisTurn.add(resolved);
|
|
14256
|
+
}
|
|
14257
|
+
seen.set(resolved, !added);
|
|
14258
|
+
}
|
|
14259
|
+
if (seen.size > 0) {
|
|
14260
|
+
fileExistence.set(key, seen);
|
|
14261
|
+
}
|
|
14262
|
+
}
|
|
14040
14263
|
let lastUsageCost;
|
|
14041
14264
|
let lastAgentTitle;
|
|
14042
14265
|
let injectedToolsByName = /* @__PURE__ */ new Map();
|
|
@@ -14121,7 +14344,10 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
14121
14344
|
return dialectShape;
|
|
14122
14345
|
}
|
|
14123
14346
|
}
|
|
14124
|
-
return classifyAcpToolCall2(event, injected,
|
|
14347
|
+
return classifyAcpToolCall2(event, injected, {
|
|
14348
|
+
...pathOptions,
|
|
14349
|
+
existedBefore: fileExistence.get(callKey(context, event.toolCallId))
|
|
14350
|
+
});
|
|
14125
14351
|
}
|
|
14126
14352
|
function withClientFileWrites(event, writes) {
|
|
14127
14353
|
if (writes.length === 0) {
|
|
@@ -14292,6 +14518,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
14292
14518
|
args.permissionTitle
|
|
14293
14519
|
);
|
|
14294
14520
|
injectedToolBindings.delete(callKey(args.context, args.event.toolCallId));
|
|
14521
|
+
fileExistence.delete(callKey(args.context, args.event.toolCallId));
|
|
14295
14522
|
const closeFields = classified.item.type === "command" ? commandCloseFields(args.event, args.status) : genericCloseFields(args.event);
|
|
14296
14523
|
return {
|
|
14297
14524
|
kind: "item.close",
|
|
@@ -14389,6 +14616,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
14389
14616
|
if (bound !== void 0) {
|
|
14390
14617
|
injectedToolBindings.set(announcedKey, bound);
|
|
14391
14618
|
}
|
|
14619
|
+
noteEditedPaths(announcedKey, event);
|
|
14392
14620
|
if (isTerminalAcpStatus(event.status)) {
|
|
14393
14621
|
return [
|
|
14394
14622
|
...flush,
|
|
@@ -14430,6 +14658,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
14430
14658
|
mergeAcpToolCallEvents(open?.event, event),
|
|
14431
14659
|
open?.clientFileWrites ?? []
|
|
14432
14660
|
);
|
|
14661
|
+
noteEditedPaths(key, merged);
|
|
14433
14662
|
if (isTerminalAcpStatus(merged.status)) {
|
|
14434
14663
|
mergedToolCalls.delete(key);
|
|
14435
14664
|
return [
|
|
@@ -14606,8 +14835,18 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
14606
14835
|
return [];
|
|
14607
14836
|
}
|
|
14608
14837
|
clearThreadCalls(context);
|
|
14838
|
+
filesAddedThisTurn.clear();
|
|
14609
14839
|
return [{ kind: "turn.open" }];
|
|
14610
14840
|
}
|
|
14841
|
+
case ACP_PROMPT_INTERRUPTED_METHOD: {
|
|
14842
|
+
const params = acpTurnStartedNotificationParamsSchema.safeParse(
|
|
14843
|
+
envelope.data.params
|
|
14844
|
+
);
|
|
14845
|
+
if (!params.success) {
|
|
14846
|
+
return [];
|
|
14847
|
+
}
|
|
14848
|
+
return drainOpenToolCalls(context, "interrupted");
|
|
14849
|
+
}
|
|
14611
14850
|
case ACP_TURN_COMPLETED_METHOD: {
|
|
14612
14851
|
const params = acpTurnCompletedNotificationParamsSchema.safeParse(
|
|
14613
14852
|
envelope.data.params
|
|
@@ -14815,7 +15054,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
14815
15054
|
};
|
|
14816
15055
|
}
|
|
14817
15056
|
|
|
14818
|
-
// ../provider-bridge-acp
|
|
15057
|
+
// ../provider-bridge-acp/src/auth-guidance.ts
|
|
14819
15058
|
var SHELL_SAFE_WORD = /^[A-Za-z0-9_@%+=:,./-]+$/u;
|
|
14820
15059
|
var WINDOWS_SAFE_WORD = /^[A-Za-z0-9_@%+=:,./\\-]+$/u;
|
|
14821
15060
|
var MAX_LISTED_METHODS = 4;
|
|
@@ -14874,7 +15113,7 @@ function describeAcpSignIn(args) {
|
|
|
14874
15113
|
return `The agent offers these ways to sign in: ${listed}${more}. Sign in with the agent's own command on the machine that hosts the thread, then try again.`;
|
|
14875
15114
|
}
|
|
14876
15115
|
|
|
14877
|
-
// ../provider-bridge-acp
|
|
15116
|
+
// ../provider-bridge-acp/src/elicitation.ts
|
|
14878
15117
|
var CONFIRM_QUESTION_ID = "confirm";
|
|
14879
15118
|
var CONFIRM_ACCEPT_VALUE = "accept";
|
|
14880
15119
|
var CONFIRM_DECLINE_VALUE = "decline";
|
|
@@ -15118,7 +15357,7 @@ function planAcpElicitation(params) {
|
|
|
15118
15357
|
};
|
|
15119
15358
|
}
|
|
15120
15359
|
|
|
15121
|
-
// ../provider-bridge-acp
|
|
15360
|
+
// ../provider-bridge-acp/src/interactions.ts
|
|
15122
15361
|
function classifyAcpPermission(toolCall, options) {
|
|
15123
15362
|
const own = classifyAcpToolCall(toolCall, options);
|
|
15124
15363
|
if (own.kind !== "generic" || !toolCall.startedToolCall) {
|
|
@@ -15235,10 +15474,10 @@ function resolveAcpPermissionDecision(args) {
|
|
|
15235
15474
|
return { decision: args.resolution.decision };
|
|
15236
15475
|
}
|
|
15237
15476
|
|
|
15238
|
-
// ../provider-bridge-acp
|
|
15477
|
+
// ../provider-bridge-acp/src/session-params.ts
|
|
15239
15478
|
import path12 from "node:path";
|
|
15240
15479
|
|
|
15241
|
-
// ../provider-bridge-acp
|
|
15480
|
+
// ../provider-bridge-acp/src/bridge/model-catalog.ts
|
|
15242
15481
|
var ACP_NATIVE_REASONING_EFFORTS = [
|
|
15243
15482
|
{
|
|
15244
15483
|
reasoningEffort: "medium",
|
|
@@ -15572,7 +15811,7 @@ function splitPrimaryModels(catalogModels, primaryModels) {
|
|
|
15572
15811
|
};
|
|
15573
15812
|
}
|
|
15574
15813
|
|
|
15575
|
-
// ../provider-bridge-acp
|
|
15814
|
+
// ../provider-bridge-acp/src/cursor-model-selection.ts
|
|
15576
15815
|
var CURSOR_LEGACY_FAMILY_SELECTIONS = {
|
|
15577
15816
|
"claude-4-sonnet": { modelId: "claude-sonnet-4" },
|
|
15578
15817
|
"claude-4.5-opus": { modelId: "claude-opus-4-5" },
|
|
@@ -15675,7 +15914,7 @@ function buildCursorParameterizedModelCatalog(models) {
|
|
|
15675
15914
|
return [...normalized.values()].map((entry) => entry.model);
|
|
15676
15915
|
}
|
|
15677
15916
|
|
|
15678
|
-
// ../provider-bridge-acp
|
|
15917
|
+
// ../provider-bridge-acp/src/session-params.ts
|
|
15679
15918
|
function sanitizeAcpSkillDescription(description) {
|
|
15680
15919
|
const sanitized = description.replace(/[\r\n]+/gu, " ").replace(/\s+/gu, " ").replace(/[<>]/gu, "").trim();
|
|
15681
15920
|
return sanitized.length > 0 ? sanitized : "(description unavailable)";
|
|
@@ -19512,10 +19751,10 @@ var legacyClientNotificationMethods = /* @__PURE__ */ new Set([
|
|
|
19512
19751
|
CLIENT_METHODS.elicitation_complete
|
|
19513
19752
|
]);
|
|
19514
19753
|
|
|
19515
|
-
// ../provider-bridge-acp
|
|
19754
|
+
// ../provider-bridge-acp/src/bridge/agent-connection.ts
|
|
19516
19755
|
import { createInterface as createInterface2 } from "node:readline";
|
|
19517
19756
|
|
|
19518
|
-
// ../provider-bridge-acp
|
|
19757
|
+
// ../provider-bridge-acp/src/client/message-stream.ts
|
|
19519
19758
|
import { createInterface } from "node:readline";
|
|
19520
19759
|
var SESSION_UPDATE_METHOD = "session/update";
|
|
19521
19760
|
function readId(message) {
|
|
@@ -19612,7 +19851,7 @@ function createAcpMessageStream(options) {
|
|
|
19612
19851
|
return { readable: readable2, writable: writable2 };
|
|
19613
19852
|
}
|
|
19614
19853
|
|
|
19615
|
-
// ../provider-bridge-acp
|
|
19854
|
+
// ../provider-bridge-acp/src/client/acp-client.ts
|
|
19616
19855
|
var AcpRequestTimeoutError = class extends Error {
|
|
19617
19856
|
method;
|
|
19618
19857
|
timeoutMs;
|
|
@@ -19716,7 +19955,7 @@ function connectAcpClient(options) {
|
|
|
19716
19955
|
};
|
|
19717
19956
|
}
|
|
19718
19957
|
|
|
19719
|
-
// ../provider-bridge-acp
|
|
19958
|
+
// ../provider-bridge-acp/src/client/capabilities.ts
|
|
19720
19959
|
var ACP_CLIENT_PROTOCOL_VERSION = 1;
|
|
19721
19960
|
var AcpUnsupportedProtocolVersionError = class extends Error {
|
|
19722
19961
|
agentProtocolVersion;
|
|
@@ -19828,7 +20067,7 @@ function readAcpAgentCapabilities(initializeResult) {
|
|
|
19828
20067
|
};
|
|
19829
20068
|
}
|
|
19830
20069
|
|
|
19831
|
-
// ../provider-bridge-acp
|
|
20070
|
+
// ../provider-bridge-acp/src/bridge/agent-connection.ts
|
|
19832
20071
|
import { z as z46 } from "zod";
|
|
19833
20072
|
var STDERR_TAIL_MAX_CHUNKS = 40;
|
|
19834
20073
|
var ACP_CORE_CLIENT_REQUEST_METHODS = [
|
|
@@ -20112,7 +20351,7 @@ async function requestAcpInitialize(connection, {
|
|
|
20112
20351
|
return readAcpAgentCapabilities(result);
|
|
20113
20352
|
}
|
|
20114
20353
|
|
|
20115
|
-
// ../provider-bridge-acp
|
|
20354
|
+
// ../provider-bridge-acp/src/session/session-model.ts
|
|
20116
20355
|
var DEFAULT_PLAN_ID = "default";
|
|
20117
20356
|
var TERMINAL_TOOL_CALL_STATUSES = /* @__PURE__ */ new Set([
|
|
20118
20357
|
"completed",
|
|
@@ -20697,7 +20936,7 @@ function createAcpSessionModel(options) {
|
|
|
20697
20936
|
};
|
|
20698
20937
|
}
|
|
20699
20938
|
|
|
20700
|
-
// ../provider-bridge-acp
|
|
20939
|
+
// ../provider-bridge-acp/src/session/thread-state.ts
|
|
20701
20940
|
var MAX_COMMANDS = 500;
|
|
20702
20941
|
var MAX_OPTIONS = 64;
|
|
20703
20942
|
var MAX_OPTION_VALUES = 1e3;
|
|
@@ -20756,14 +20995,14 @@ function toThreadSessionOptionsState(options) {
|
|
|
20756
20995
|
return { options: sessionOptions.slice(0, MAX_OPTIONS) };
|
|
20757
20996
|
}
|
|
20758
20997
|
|
|
20759
|
-
// ../provider-bridge-acp
|
|
20998
|
+
// ../provider-bridge-acp/src/bridge/cursor-mcp-approval.ts
|
|
20760
20999
|
import { execFile as execFile5 } from "node:child_process";
|
|
20761
21000
|
import { createHash, randomBytes } from "node:crypto";
|
|
20762
21001
|
import { mkdir, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
20763
21002
|
import { homedir } from "node:os";
|
|
20764
|
-
import { basename as
|
|
21003
|
+
import { basename as basename3, dirname, join as join2, resolve as resolve3 } from "node:path";
|
|
20765
21004
|
|
|
20766
|
-
// ../provider-bridge-acp
|
|
21005
|
+
// ../provider-bridge-acp/src/bridge/tool-proxy-mcp.ts
|
|
20767
21006
|
import { createConnection } from "node:net";
|
|
20768
21007
|
import { createInterface as createInterface3 } from "node:readline";
|
|
20769
21008
|
import { z as z47 } from "zod";
|
|
@@ -21062,7 +21301,7 @@ function runAcpDynamicToolMcpServer() {
|
|
|
21062
21301
|
});
|
|
21063
21302
|
}
|
|
21064
21303
|
|
|
21065
|
-
// ../provider-bridge-acp
|
|
21304
|
+
// ../provider-bridge-acp/src/bridge/cursor-mcp-approval.ts
|
|
21066
21305
|
var CURSOR_MCP_APPROVAL_FILE = "mcp-approvals.json";
|
|
21067
21306
|
var CURSOR_APPROVAL_LOCK_STALE_MS = 3e4;
|
|
21068
21307
|
var CURSOR_APPROVAL_LOCK_TIMEOUT_MS = 5e3;
|
|
@@ -21070,7 +21309,7 @@ function errorCode(error) {
|
|
|
21070
21309
|
return error instanceof Error && "code" in error ? error.code : void 0;
|
|
21071
21310
|
}
|
|
21072
21311
|
function cursorAgentCommand(command) {
|
|
21073
|
-
return
|
|
21312
|
+
return basename3(command).toLowerCase().replace(/\.(?:bat|cmd|exe)$/u, "") === "cursor-agent";
|
|
21074
21313
|
}
|
|
21075
21314
|
function cursorProjectSlug(projectRoot) {
|
|
21076
21315
|
return projectRoot.replace(/[^a-zA-Z0-9]/gu, "-").replace(/-+/gu, "-").replace(/^-+|-+$/gu, "");
|
|
@@ -21225,13 +21464,30 @@ async function revokeCursorSessionMcpServer(approval) {
|
|
|
21225
21464
|
);
|
|
21226
21465
|
}
|
|
21227
21466
|
|
|
21228
|
-
// ../provider-bridge-acp
|
|
21467
|
+
// ../provider-bridge-acp/src/bridge/bridge.ts
|
|
21229
21468
|
var sessionsByBbThreadId = /* @__PURE__ */ new Map();
|
|
21469
|
+
var agentConnections = /* @__PURE__ */ new Set();
|
|
21470
|
+
var shuttingDown = false;
|
|
21471
|
+
function createBridgeAgentConnection(options) {
|
|
21472
|
+
if (shuttingDown) {
|
|
21473
|
+
throw new Error("ACP bridge is shutting down");
|
|
21474
|
+
}
|
|
21475
|
+
const connection = createAcpAgentConnection({
|
|
21476
|
+
...options,
|
|
21477
|
+
onExit: (info) => {
|
|
21478
|
+
agentConnections.delete(connection);
|
|
21479
|
+
options.onExit(info);
|
|
21480
|
+
}
|
|
21481
|
+
});
|
|
21482
|
+
agentConnections.add(connection);
|
|
21483
|
+
return connection;
|
|
21484
|
+
}
|
|
21230
21485
|
var bbThreadIdByProviderThreadId = /* @__PURE__ */ new Map();
|
|
21231
21486
|
var pendingRuntimeRequests = /* @__PURE__ */ new Map();
|
|
21232
21487
|
var runtimeRequestIdCounter = 0;
|
|
21233
21488
|
var dynamicToolBridgePromise = null;
|
|
21234
21489
|
var THREAD_STOP_CANCEL_TIMEOUT_MS = 4e3;
|
|
21490
|
+
var SHUTDOWN_CANCEL_TIMEOUT_MS = 1500;
|
|
21235
21491
|
var AGENT_TURN_QUIET_MS = 5e3;
|
|
21236
21492
|
var SESSION_BUSY_QUIET_MS = 2e3;
|
|
21237
21493
|
var SESSION_BUSY_MAX_WAITS = 300;
|
|
@@ -21758,7 +22014,7 @@ async function loadDeclaredSessionOptions(agent, parameterizedModelPicker, diale
|
|
|
21758
22014
|
...withoutBridgeRuntimeEnv(process.env),
|
|
21759
22015
|
...agent.envVars ?? {}
|
|
21760
22016
|
};
|
|
21761
|
-
const connection =
|
|
22017
|
+
const connection = createBridgeAgentConnection({
|
|
21762
22018
|
command: agent.command,
|
|
21763
22019
|
args: agent.args,
|
|
21764
22020
|
cwd: agent.cwd ?? process.cwd(),
|
|
@@ -21853,7 +22109,7 @@ async function loadSessionDiscoveredModels(agent, reasoningProbePriorityModelIds
|
|
|
21853
22109
|
...withoutBridgeRuntimeEnv(process.env),
|
|
21854
22110
|
...agent.envVars ?? {}
|
|
21855
22111
|
};
|
|
21856
|
-
const connection =
|
|
22112
|
+
const connection = createBridgeAgentConnection({
|
|
21857
22113
|
command: agent.command,
|
|
21858
22114
|
args: agent.args,
|
|
21859
22115
|
cwd: agent.cwd ?? process.cwd(),
|
|
@@ -22285,23 +22541,39 @@ async function selectAcpNativeServiceTier(args) {
|
|
|
22285
22541
|
});
|
|
22286
22542
|
recordAcpConfigValue(args.session, configState, fastOption.id, value);
|
|
22287
22543
|
}
|
|
22288
|
-
function
|
|
22289
|
-
const
|
|
22290
|
-
|
|
22291
|
-
|
|
22292
|
-
|
|
22293
|
-
const firstCharacter = item.text.search(/\S/u);
|
|
22294
|
-
const leading = item.mentions.find(
|
|
22295
|
-
(mention) => mention.start === firstCharacter && mention.resource.kind === "command" && mention.resource.source === "skill" && mention.resource.trigger === "/"
|
|
22544
|
+
function textWithBbSkillCommandsSpelledOut(session, item) {
|
|
22545
|
+
const bbSkillNames = new Set(
|
|
22546
|
+
(configuredSkillRoots ?? []).flatMap(
|
|
22547
|
+
(root) => root.skills.map((skill) => skill.name)
|
|
22548
|
+
)
|
|
22296
22549
|
);
|
|
22297
|
-
if (
|
|
22550
|
+
if (bbSkillNames.size === 0) {
|
|
22298
22551
|
return item.text;
|
|
22299
22552
|
}
|
|
22300
|
-
const
|
|
22301
|
-
|
|
22302
|
-
|
|
22553
|
+
const advertised = new Set(
|
|
22554
|
+
session.model.snapshot().commands.map((command) => command.name)
|
|
22555
|
+
);
|
|
22556
|
+
const mentions = item.mentions.flatMap(
|
|
22557
|
+
(mention) => mention.resource.kind === "command" && mention.resource.source === "skill" && mention.resource.trigger === "/" && bbSkillNames.has(mention.resource.name) && !advertised.has(mention.resource.name) && item.text.slice(mention.start, mention.end) === `/${mention.resource.name}` ? [
|
|
22558
|
+
{
|
|
22559
|
+
start: mention.start,
|
|
22560
|
+
end: mention.end,
|
|
22561
|
+
name: mention.resource.name
|
|
22562
|
+
}
|
|
22563
|
+
] : []
|
|
22564
|
+
).sort((a2, b) => b.start - a2.start);
|
|
22565
|
+
const firstCharacter = item.text.search(/\S/u);
|
|
22566
|
+
let text = item.text;
|
|
22567
|
+
let nextStart = text.length;
|
|
22568
|
+
for (const mention of mentions) {
|
|
22569
|
+
if (mention.end > nextStart) {
|
|
22570
|
+
continue;
|
|
22571
|
+
}
|
|
22572
|
+
const leadsText = mention.start === firstCharacter && text.slice(mention.end).trim().length > 0;
|
|
22573
|
+
text = `${text.slice(0, mention.start)}Use the bb skill "${mention.name}"${leadsText ? ":" : ""}${text.slice(mention.end)}`;
|
|
22574
|
+
nextStart = mention.start;
|
|
22303
22575
|
}
|
|
22304
|
-
return
|
|
22576
|
+
return text;
|
|
22305
22577
|
}
|
|
22306
22578
|
function buildPromptContentBlocks(session, input) {
|
|
22307
22579
|
const blocks = [];
|
|
@@ -22315,12 +22587,12 @@ ${instructions}
|
|
|
22315
22587
|
</system_instructions>`
|
|
22316
22588
|
});
|
|
22317
22589
|
}
|
|
22318
|
-
for (const
|
|
22590
|
+
for (const item of input) {
|
|
22319
22591
|
switch (item.type) {
|
|
22320
22592
|
case "text":
|
|
22321
22593
|
blocks.push({
|
|
22322
22594
|
type: "text",
|
|
22323
|
-
text:
|
|
22595
|
+
text: textWithBbSkillCommandsSpelledOut(session, item)
|
|
22324
22596
|
});
|
|
22325
22597
|
break;
|
|
22326
22598
|
case "image":
|
|
@@ -22353,7 +22625,7 @@ ${instructions}
|
|
|
22353
22625
|
blocks.push({
|
|
22354
22626
|
type: "resource_link",
|
|
22355
22627
|
uri: `file://${item.path}`,
|
|
22356
|
-
name: item.name ??
|
|
22628
|
+
name: item.name ?? basename4(item.path)
|
|
22357
22629
|
});
|
|
22358
22630
|
break;
|
|
22359
22631
|
}
|
|
@@ -22620,6 +22892,33 @@ function getSessionByProviderThreadId(providerThreadId) {
|
|
|
22620
22892
|
const bbThreadId = bbThreadIdByProviderThreadId.get(providerThreadId);
|
|
22621
22893
|
return bbThreadId ? sessionsByBbThreadId.get(bbThreadId) : void 0;
|
|
22622
22894
|
}
|
|
22895
|
+
function fileCreatedSince(path13, sinceMs) {
|
|
22896
|
+
if (sinceMs === void 0) {
|
|
22897
|
+
return void 0;
|
|
22898
|
+
}
|
|
22899
|
+
try {
|
|
22900
|
+
const { birthtimeMs } = statSync2(path13);
|
|
22901
|
+
return birthtimeMs > 0 ? birthtimeMs >= sinceMs : void 0;
|
|
22902
|
+
} catch {
|
|
22903
|
+
return void 0;
|
|
22904
|
+
}
|
|
22905
|
+
}
|
|
22906
|
+
function dialectLaunchEnv(dialectId, permissionMode) {
|
|
22907
|
+
if (dialectId !== "opencode") {
|
|
22908
|
+
return {};
|
|
22909
|
+
}
|
|
22910
|
+
const outsideEdits = permissionMode === "full" ? "allow" : "ask";
|
|
22911
|
+
return {
|
|
22912
|
+
OPENCODE_CLIENT: "acp",
|
|
22913
|
+
OPENCODE_ENABLE_QUESTION_TOOL: "false",
|
|
22914
|
+
OPENCODE_PERMISSION: JSON.stringify({
|
|
22915
|
+
edit: "allow",
|
|
22916
|
+
bash: outsideEdits,
|
|
22917
|
+
webfetch: outsideEdits,
|
|
22918
|
+
external_directory: outsideEdits
|
|
22919
|
+
})
|
|
22920
|
+
};
|
|
22921
|
+
}
|
|
22623
22922
|
async function startAgentSession(request) {
|
|
22624
22923
|
const params = request.params;
|
|
22625
22924
|
const bbThreadId = params.threadId;
|
|
@@ -22633,7 +22932,8 @@ async function startAgentSession(request) {
|
|
|
22633
22932
|
});
|
|
22634
22933
|
const translator = createAcpDeltaTranslator({
|
|
22635
22934
|
cwd: params.cwd,
|
|
22636
|
-
dialect
|
|
22935
|
+
dialect,
|
|
22936
|
+
fileCreatedThisTurn: (path13) => fileCreatedSince(path13, session.turnStartedAtMs)
|
|
22637
22937
|
});
|
|
22638
22938
|
translator.configureInjectedTools(
|
|
22639
22939
|
(params.dynamicTools ?? []).map((tool) => ({
|
|
@@ -22662,9 +22962,9 @@ async function startAgentSession(request) {
|
|
|
22662
22962
|
const childEnv = {
|
|
22663
22963
|
...withoutBridgeRuntimeEnv(process.env),
|
|
22664
22964
|
...params.envVars,
|
|
22665
|
-
...dialect.id
|
|
22965
|
+
...dialectLaunchEnv(dialect.id, params.permissionMode)
|
|
22666
22966
|
};
|
|
22667
|
-
const connection =
|
|
22967
|
+
const connection = createBridgeAgentConnection({
|
|
22668
22968
|
command: params.agent.command,
|
|
22669
22969
|
args: launch.args,
|
|
22670
22970
|
cwd: params.cwd,
|
|
@@ -22720,6 +23020,7 @@ async function startAgentSession(request) {
|
|
|
22720
23020
|
queuedInputs: [],
|
|
22721
23021
|
promptRequestPending: false,
|
|
22722
23022
|
cancelRequested: false,
|
|
23023
|
+
turnStartedAtMs: void 0,
|
|
22723
23024
|
restartAfterCancelError: false,
|
|
22724
23025
|
loading: false,
|
|
22725
23026
|
loadingSessionId: void 0,
|
|
@@ -22928,7 +23229,7 @@ async function startAgentSession(request) {
|
|
|
22928
23229
|
});
|
|
22929
23230
|
}
|
|
22930
23231
|
}
|
|
22931
|
-
async function stopSession(session) {
|
|
23232
|
+
async function stopSession(session, cancelTimeoutMs = THREAD_STOP_CANCEL_TIMEOUT_MS) {
|
|
22932
23233
|
if (session.stopping) {
|
|
22933
23234
|
return;
|
|
22934
23235
|
}
|
|
@@ -22946,7 +23247,7 @@ async function stopSession(session) {
|
|
|
22946
23247
|
await Promise.race([
|
|
22947
23248
|
session.turnSettled,
|
|
22948
23249
|
new Promise(
|
|
22949
|
-
(resolveTimeout) => setTimeout(resolveTimeout,
|
|
23250
|
+
(resolveTimeout) => setTimeout(resolveTimeout, cancelTimeoutMs)
|
|
22950
23251
|
)
|
|
22951
23252
|
]);
|
|
22952
23253
|
}
|
|
@@ -23228,6 +23529,7 @@ function finishTurn(session, stopReason) {
|
|
|
23228
23529
|
if (session.activePromptKind !== "turn") {
|
|
23229
23530
|
return;
|
|
23230
23531
|
}
|
|
23532
|
+
session.turnStartedAtMs = void 0;
|
|
23231
23533
|
for (const controller of session.pendingToolCalls) controller.abort();
|
|
23232
23534
|
setActivePromptKind(session, null);
|
|
23233
23535
|
dropQueuedTurnInputs(session, "ACP turn ended before the steer was sent");
|
|
@@ -23306,6 +23608,7 @@ function runTurn(session, firstInput, turnAlreadyOpen = false) {
|
|
|
23306
23608
|
const prompt = buildPromptContentBlocks(session, pending.input);
|
|
23307
23609
|
let inputAccepted = false;
|
|
23308
23610
|
let busyRetries = 0;
|
|
23611
|
+
session.turnStartedAtMs ??= Date.now();
|
|
23309
23612
|
for (; ; ) {
|
|
23310
23613
|
session.promptRequestPending = true;
|
|
23311
23614
|
const promptResult = session.connection.request({
|
|
@@ -23366,6 +23669,11 @@ function runTurn(session, firstInput, turnAlreadyOpen = false) {
|
|
|
23366
23669
|
if (!session.stopping) {
|
|
23367
23670
|
const next = session.queuedInputs.shift();
|
|
23368
23671
|
if (next) {
|
|
23672
|
+
if (stopReason === "cancelled") {
|
|
23673
|
+
emitForSession(session, ACP_PROMPT_INTERRUPTED_METHOD, {
|
|
23674
|
+
threadId: session.bbThreadId
|
|
23675
|
+
});
|
|
23676
|
+
}
|
|
23369
23677
|
pending = next;
|
|
23370
23678
|
continue;
|
|
23371
23679
|
}
|
|
@@ -23409,6 +23717,15 @@ function reconcileExecutionSettings(session, options) {
|
|
|
23409
23717
|
permissionMode: options.permissionMode,
|
|
23410
23718
|
workspaceWriteRoots
|
|
23411
23719
|
};
|
|
23720
|
+
const launchModelChanged = !isDeepStrictEqual(
|
|
23721
|
+
launchModelSelection(session.construction),
|
|
23722
|
+
launchModelSelection(construction)
|
|
23723
|
+
);
|
|
23724
|
+
if (launchModelChanged && !session.supportsLoadSession) {
|
|
23725
|
+
throw new Error(
|
|
23726
|
+
"This ACP agent cannot restore its session. Start a new thread to change the launch-time model or reasoning level."
|
|
23727
|
+
);
|
|
23728
|
+
}
|
|
23412
23729
|
const launchArgsChanged = !isDeepStrictEqual(
|
|
23413
23730
|
permissionCliArgsForMode(
|
|
23414
23731
|
session.construction.permissionCli,
|
|
@@ -23419,9 +23736,9 @@ function reconcileExecutionSettings(session, options) {
|
|
|
23419
23736
|
construction.permissionMode
|
|
23420
23737
|
)
|
|
23421
23738
|
) || !isDeepStrictEqual(
|
|
23422
|
-
|
|
23423
|
-
|
|
23424
|
-
);
|
|
23739
|
+
dialectLaunchEnv(session.dialect.id, session.construction.permissionMode),
|
|
23740
|
+
dialectLaunchEnv(session.dialect.id, construction.permissionMode)
|
|
23741
|
+
) || launchModelChanged;
|
|
23425
23742
|
const restart = session.connection.exited || session.restartAfterCancelError || launchArgsChanged || !isDeepStrictEqual(envVars ?? {}, session.construction.envVars ?? {});
|
|
23426
23743
|
cancelPendingPermissions(session);
|
|
23427
23744
|
session.policy = {
|
|
@@ -23781,7 +24098,8 @@ async function handleRequest2(request) {
|
|
|
23781
24098
|
approvalEnforcedBy: "runtime",
|
|
23782
24099
|
grammarVersions: [THREAD_DELTA_GRAMMAR_V3, THREAD_DELTA_GRAMMAR_V3],
|
|
23783
24100
|
steerMode: "queue",
|
|
23784
|
-
skills: { configure: true }
|
|
24101
|
+
skills: { configure: true },
|
|
24102
|
+
commands: { list: false }
|
|
23785
24103
|
}
|
|
23786
24104
|
};
|
|
23787
24105
|
sendResult(request.id, result);
|
|
@@ -24037,11 +24355,29 @@ function handleParsedMessage(parsed) {
|
|
|
24037
24355
|
}
|
|
24038
24356
|
var handleLine = createBridgeLineHandler({ handleParsedMessage });
|
|
24039
24357
|
async function stopAllSessions() {
|
|
24040
|
-
|
|
24041
|
-
|
|
24042
|
-
|
|
24358
|
+
const sessions = Array.from(sessionsByBbThreadId.values());
|
|
24359
|
+
const sessionConnections = new Set(
|
|
24360
|
+
sessions.map((session) => session.connection)
|
|
24361
|
+
);
|
|
24362
|
+
const results = await Promise.allSettled([
|
|
24363
|
+
...sessions.map(
|
|
24364
|
+
(session) => stopSession(session, SHUTDOWN_CANCEL_TIMEOUT_MS)
|
|
24365
|
+
),
|
|
24366
|
+
...Array.from(agentConnections).filter((connection) => !sessionConnections.has(connection)).map((connection) => connection.kill())
|
|
24367
|
+
]);
|
|
24368
|
+
results.push(
|
|
24369
|
+
...await Promise.allSettled(
|
|
24370
|
+
Array.from(agentConnections, (connection) => connection.kill())
|
|
24043
24371
|
)
|
|
24044
24372
|
);
|
|
24373
|
+
for (const result of results) {
|
|
24374
|
+
if (result.status === "rejected") {
|
|
24375
|
+
process.stderr.write(
|
|
24376
|
+
`acp bridge: shutdown cleanup failed: ${String(result.reason)}
|
|
24377
|
+
`
|
|
24378
|
+
);
|
|
24379
|
+
}
|
|
24380
|
+
}
|
|
24045
24381
|
const dynamicToolBridge = dynamicToolBridgePromise ? await dynamicToolBridgePromise.catch(() => null) : null;
|
|
24046
24382
|
await new Promise((resolveClose) => {
|
|
24047
24383
|
if (!dynamicToolBridge) {
|
|
@@ -24051,19 +24387,25 @@ async function stopAllSessions() {
|
|
|
24051
24387
|
dynamicToolBridge.server.close(() => resolveClose());
|
|
24052
24388
|
});
|
|
24053
24389
|
}
|
|
24390
|
+
function shutdownBridge() {
|
|
24391
|
+
if (shuttingDown) return;
|
|
24392
|
+
shuttingDown = true;
|
|
24393
|
+
void stopAllSessions().catch((error) => {
|
|
24394
|
+
process.stderr.write(`acp bridge: shutdown failed: ${String(error)}
|
|
24395
|
+
`);
|
|
24396
|
+
}).finally(() => process.exit(0));
|
|
24397
|
+
}
|
|
24054
24398
|
if (process.argv.includes("--mcp-stdio")) {
|
|
24055
24399
|
runAcpDynamicToolMcpServer();
|
|
24056
24400
|
}
|
|
24057
24401
|
var experimental_providerBridge = experimental_defineProviderBridge({
|
|
24058
24402
|
handleLine,
|
|
24059
|
-
onClose:
|
|
24060
|
-
|
|
24061
|
-
|
|
24062
|
-
});
|
|
24063
|
-
}
|
|
24403
|
+
onClose: shutdownBridge,
|
|
24404
|
+
onSigterm: shutdownBridge,
|
|
24405
|
+
onSigint: shutdownBridge
|
|
24064
24406
|
});
|
|
24065
24407
|
|
|
24066
|
-
// ../provider-bridge-acp
|
|
24408
|
+
// ../provider-bridge-acp/src/probe.ts
|
|
24067
24409
|
import { z as z49 } from "zod";
|
|
24068
24410
|
var PROBE_TIMEOUT_MS = 1e4;
|
|
24069
24411
|
function describe(error) {
|
|
@@ -24126,10 +24468,17 @@ var acpAgentProbeSchema = z49.union([
|
|
|
24126
24468
|
z49.object({ reachable: z49.literal(true), fork: z49.boolean() }),
|
|
24127
24469
|
z49.object({ reachable: z49.literal(false), reason: z49.string() })
|
|
24128
24470
|
]);
|
|
24471
|
+
|
|
24472
|
+
// src/provider-bridge-acp-next.ts
|
|
24473
|
+
var experimental_acpAgentProbeSchema = acpAgentProbeSchema;
|
|
24474
|
+
var experimental_acpLaunchSpecSchema = acpLaunchSpecSchema;
|
|
24475
|
+
var experimental_acpProviderBridge = experimental_providerBridge;
|
|
24476
|
+
var experimental_probeAcpAgent = probeAcpAgent;
|
|
24477
|
+
var experimental_registerAcpDialect = registerAcpDialect;
|
|
24129
24478
|
export {
|
|
24130
|
-
|
|
24131
|
-
|
|
24132
|
-
|
|
24133
|
-
|
|
24134
|
-
|
|
24479
|
+
experimental_acpAgentProbeSchema,
|
|
24480
|
+
experimental_acpLaunchSpecSchema,
|
|
24481
|
+
experimental_acpProviderBridge,
|
|
24482
|
+
experimental_probeAcpAgent,
|
|
24483
|
+
experimental_registerAcpDialect
|
|
24135
24484
|
};
|