@github/copilot-sdk-darwin-arm64 1.0.15-preview.0 → 1.0.15-preview.2
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/copilot-sdk/cliVersion.d.ts +1 -1
- package/copilot-sdk/client.d.ts +2 -0
- package/copilot-sdk/docs/extensions.md +1 -0
- package/copilot-sdk/docs/workflows.md +257 -0
- package/copilot-sdk/extension.d.ts +22 -8
- package/copilot-sdk/extension.js +1845 -230
- package/copilot-sdk/generated/rpc.d.ts +3141 -302
- package/copilot-sdk/generated/session-events.d.ts +762 -31
- package/copilot-sdk/index.d.ts +3 -1
- package/copilot-sdk/index.js +1839 -228
- package/copilot-sdk/schema.d.ts +4 -0
- package/copilot-sdk/session.d.ts +26 -3
- package/copilot-sdk/types.d.ts +37 -5
- package/copilot-sdk/workflow.d.ts +364 -0
- package/package.json +1 -1
- package/plugins/computer-use/Copilot Computer Use.app/Contents/CodeResources +0 -0
- package/plugins/computer-use/Copilot Computer Use.app/Contents/Info.plist +2 -2
- package/plugins/computer-use/Copilot Computer Use.app/Contents/MacOS/Copilot Computer Use +0 -0
- package/plugins/computer-use/Copilot Computer Use.app/Contents/Resources/Assets.car +0 -0
- package/plugins/computer-use/Copilot Computer Use.app/Contents/Resources/icon.icns +0 -0
- package/plugins/computer-use/Copilot Computer Use.app/Contents/_CodeSignature/CodeResources +4 -4
- package/plugins/computer-use/computer-use-mcp +0 -0
- package/plugins/computer-use/{.mcp.json → mcp.json} +2 -1
- package/plugins/computer-use/plugin.json +6 -0
- package/prebuilds/darwin-arm64/copilot-runtime +0 -0
- package/prebuilds/darwin-arm64/runtime.node +2 -2
- package/preloads/extension_bootstrap.mjs +3 -4
- package/ripgrep/bin/darwin-arm64/rg +0 -0
- package/schemas/api.schema.json +1117 -55
- package/schemas/session-events.schema.json +130 -1
- package/tgrep/bin/darwin-arm64/tgrep +0 -0
- package/plugins/computer-use/.plugin/plugin.json +0 -6
- package/sdk/index.js +0 -1465
|
@@ -11,9 +11,9 @@ import { resolve as resolvePath } from "node:path";
|
|
|
11
11
|
import { pathToFileURL } from "node:url";
|
|
12
12
|
|
|
13
13
|
// The previous child_process.fork host supplied an IPC channel, which caused
|
|
14
|
-
// Node to
|
|
15
|
-
// Rust's stdio-only spawn has no equivalent channel,
|
|
16
|
-
//
|
|
14
|
+
// Node to remain alive for the extension's lifetime and terminate automatically
|
|
15
|
+
// if its parent disappeared. Rust's stdio-only spawn has no equivalent channel,
|
|
16
|
+
// so this referenced watchdog preserves both parts of that lifecycle contract.
|
|
17
17
|
const parentPid = Number(process.env.COPILOT_EXTENSION_PARENT_PID);
|
|
18
18
|
if (!Number.isSafeInteger(parentPid) || parentPid <= 0 || process.ppid !== parentPid) {
|
|
19
19
|
process.exit(0);
|
|
@@ -28,7 +28,6 @@ const parentWatch = setInterval(() => {
|
|
|
28
28
|
process.exit(0);
|
|
29
29
|
}
|
|
30
30
|
}, 1000);
|
|
31
|
-
parentWatch.unref();
|
|
32
31
|
|
|
33
32
|
// Register the ESM SDK resolver hook before loading the extension
|
|
34
33
|
Module.register("./extension_sdk_resolver.mjs", import.meta.url);
|
|
Binary file
|