mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-21 00:05:49 +02:00
Add saved-token Copilot setup and normal runtime admission
Reviewed partition of the current-master Copilot integration. Complete v30 live qualification is retained; current v31 recovery compatibility, CI and review are tracked explicitly. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
50368e9c50
commit
fcbb80554e
65 files changed
+57392
-175
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { access } from "node:fs/promises";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const installer = new URL("../dist/install-copilot-assets.mjs", import.meta.url);
|
||||
try {
|
||||
await access(fileURLToPath(installer));
|
||||
} catch (error) {
|
||||
if (error.code !== "ENOENT") throw error;
|
||||
// Dependencies install before compilation in a source workspace. Published
|
||||
// server packages omit src and cannot take this bootstrap exception.
|
||||
await access(fileURLToPath(new URL("../src/services/copilot-connection-probe.ts", import.meta.url)));
|
||||
await access(fileURLToPath(new URL("../../pnpm-workspace.yaml", import.meta.url)));
|
||||
process.stdout.write("Copilot runtime assets: source-workspace-pending-build\n");
|
||||
process.exit(0);
|
||||
}
|
||||
const { installCopilotAssets } = await import(installer.href);
|
||||
const result = await installCopilotAssets();
|
||||
process.stdout.write(`Copilot runtime assets: ${result.status} (${result.target})\n`);
|
||||
Reference in new issue
Block a user