@get-bb/plugin-sdk 0.6.60 → 0.6.68
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 +477 -169
- package/bundled-types/bb-plugin-sdk-host.d.ts +196 -214
- package/bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts +60 -35
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +17 -7
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +5 -11
- package/bundled-types/bb-plugin-sdk-internal-rpc-query-host.d.ts +192 -0
- package/bundled-types/bb-plugin-sdk-internal-rpc-tags.d.ts +23 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +8 -2
- package/bundled-types/bb-plugin-sdk-testing.d.ts +29 -5
- package/bundled-types/bb-plugin-sdk.d.ts +622 -195
- package/dist/app.js +98 -0
- package/dist/host.js +12 -0
- package/dist/index.js +81 -0
- package/dist/internal/composer-handle.js +13 -14
- package/dist/internal/host-policy.js +33 -1
- package/dist/internal/plugin-app-collector.js +104 -85
- package/dist/internal/rpc-query-host.js +1574 -0
- package/dist/internal/rpc-tags.js +18 -0
- package/dist/provider-bridge-acp-next.js +2636 -2653
- package/dist/provider-bridge-acp.js +2636 -2653
- package/dist/provider-bridge-testing.js +1210 -1238
- package/dist/provider-bridge.js +1279 -1306
- package/dist/replay-provider-child.mjs +6 -2
- package/dist/testing/app.js +1826 -163
- package/dist/testing/index.js +302 -104
- package/package.json +16 -2
|
@@ -445,8 +445,12 @@ function main() {
|
|
|
445
445
|
return;
|
|
446
446
|
}
|
|
447
447
|
const segments = buildSegments(entries, dialect);
|
|
448
|
-
const
|
|
449
|
-
|
|
448
|
+
const diagnosticFork =
|
|
449
|
+
args.dialect === "claude-cli" &&
|
|
450
|
+
process.argv.includes("--fork-session") &&
|
|
451
|
+
process.argv.includes("--no-session-persistence");
|
|
452
|
+
const segmentIndex = diagnosticFork ? null : claimSegmentIndex(args.state);
|
|
453
|
+
let script = segmentIndex === null ? [] : (segments[segmentIndex] ?? []);
|
|
450
454
|
const log = (text) => process.stderr.write(`[replay-child #${segmentIndex}] ${text}\n`);
|
|
451
455
|
if (script.length === 0) {
|
|
452
456
|
log(`no recorded segment ${segmentIndex} (recording has ${segments.length}); answering generically`);
|