@copilotkit/web-inspector 1.73.2-canary.1790085728 → 1.73.3
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/dist/index.cjs +113 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +113 -38
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +130 -58
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/onboarding-prompt.cjs +11 -17
- package/dist/lib/onboarding-prompt.cjs.map +1 -1
- package/dist/lib/onboarding-prompt.mjs +11 -17
- package/dist/lib/onboarding-prompt.mjs.map +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/package.json +4 -4
|
@@ -13,12 +13,11 @@
|
|
|
13
13
|
* The CLI resolves `onboard start` against a prompt graph, so the two surfaces
|
|
14
14
|
* must not drift — if the CLI's entry point changes, both change together.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* (Intelligence OSS-1157).
|
|
16
|
+
* One sentence, and deliberately nothing else. It used to carry the `npx`
|
|
17
|
+
* command itself, which put a command line and a telemetry id in the one piece
|
|
18
|
+
* of text a human reads, decides on and pastes. The command now lives in the
|
|
19
|
+
* document the URL serves, with the run id already written into it
|
|
20
|
+
* (PE-216/PE-217).
|
|
22
21
|
*
|
|
23
22
|
* This one stays generic, and so do the docs and Intelligence web-app copies
|
|
24
23
|
* of it (OSS-1150). Those three are entry points for a developer with no
|
|
@@ -29,9 +28,8 @@
|
|
|
29
28
|
* `FEATURE_ONBOARDING_PROMPT_TEMPLATE` below.
|
|
30
29
|
*/
|
|
31
30
|
const RUN_ID_PLACEHOLDER = "<run-id>";
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
npx --yes copilotkit@latest onboard start --run ${RUN_ID_PLACEHOLDER}`;
|
|
31
|
+
const ONBOARDING_PROMPT_ORIGIN = "https://copilotkit.ai";
|
|
32
|
+
const ONBOARDING_PROMPT_TEMPLATE = `Read ${ONBOARDING_PROMPT_ORIGIN}/onboarding-prompts/${RUN_ID_PLACEHOLDER} and help me get set up.`;
|
|
35
33
|
/** Length and alphabet are the CLI's, so a run id copied here resolves there. */
|
|
36
34
|
const RUN_ID_LENGTH = 12;
|
|
37
35
|
/**
|
|
@@ -92,15 +90,11 @@ const INTENT_PLACEHOLDER = "<intent>";
|
|
|
92
90
|
* here would duplicate all of that and then drift from it the next time the
|
|
93
91
|
* underlying API changes.
|
|
94
92
|
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
93
|
+
* The session-check permission the developer granted by copying this, and the
|
|
94
|
+
* credentials warning beside it, moved with the command into the document the
|
|
95
|
+
* URL serves. They are not dropped.
|
|
98
96
|
*/
|
|
99
|
-
const FEATURE_ONBOARDING_PROMPT_TEMPLATE = `
|
|
100
|
-
|
|
101
|
-
npx --yes copilotkit@latest onboard start --run ${RUN_ID_PLACEHOLDER} --intent ${INTENT_PLACEHOLDER}
|
|
102
|
-
|
|
103
|
-
If it requires a CopilotKit CLI session check, you have permission to run it. Never reveal credentials.`;
|
|
97
|
+
const FEATURE_ONBOARDING_PROMPT_TEMPLATE = `Read ${ONBOARDING_PROMPT_ORIGIN}/onboarding-prompts/${RUN_ID_PLACEHOLDER}?intent=${INTENT_PLACEHOLDER} and help me set this up.`;
|
|
104
98
|
/** Bind one run id and one tile's feature outcome into the copied prompt. */
|
|
105
99
|
function createFeatureOnboardingPrompt(serviceId, runId) {
|
|
106
100
|
return FEATURE_ONBOARDING_PROMPT_TEMPLATE.replace(RUN_ID_PLACEHOLDER, runId).replace(INTENT_PLACEHOLDER, FEATURE_ONBOARDING_INTENT[serviceId]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding-prompt.cjs","names":[],"sources":["../../src/lib/onboarding-prompt.ts"],"sourcesContent":["import type { HomeServiceId } from \"./home-briefing.js\";\n\n/**\n * The Intelligence install prompt the Inspector hands to a coding agent.\n *\n * Every other Intelligence call to action in the Inspector opens a page in a\n * new tab, which is where developers drop out: they leave the editor, meet a\n * signup form, and never come back. This prompt lets the install happen where\n * they already are.\n *\n * The wording is kept byte-identical to `INTELLIGENCE_ONBOARDING_PROMPT` in the\n * Intelligence app (`apps/app-frontend/react-shell/src/home/intelligence-home.tsx`).\n * The CLI resolves `onboard start` against a prompt graph, so the two surfaces\n * must not drift — if the CLI's entry point changes, both change together.\n *\n *
|
|
1
|
+
{"version":3,"file":"onboarding-prompt.cjs","names":[],"sources":["../../src/lib/onboarding-prompt.ts"],"sourcesContent":["import type { HomeServiceId } from \"./home-briefing.js\";\n\n/**\n * The Intelligence install prompt the Inspector hands to a coding agent.\n *\n * Every other Intelligence call to action in the Inspector opens a page in a\n * new tab, which is where developers drop out: they leave the editor, meet a\n * signup form, and never come back. This prompt lets the install happen where\n * they already are.\n *\n * The wording is kept byte-identical to `INTELLIGENCE_ONBOARDING_PROMPT` in the\n * Intelligence app (`apps/app-frontend/react-shell/src/home/intelligence-home.tsx`).\n * The CLI resolves `onboard start` against a prompt graph, so the two surfaces\n * must not drift — if the CLI's entry point changes, both change together.\n *\n * One sentence, and deliberately nothing else. It used to carry the `npx`\n * command itself, which put a command line and a telemetry id in the one piece\n * of text a human reads, decides on and pastes. The command now lives in the\n * document the URL serves, with the run id already written into it\n * (PE-216/PE-217).\n *\n * This one stays generic, and so do the docs and Intelligence web-app copies\n * of it (OSS-1150). Those three are entry points for a developer with no\n * CopilotKit app yet, and every `--intent` route requires an existing app: it\n * inspects for one first and reads `feature/stop` when it is missing. The\n * feature buttons on Home are the surface that knows which feature the\n * developer is looking at, so they are the surface that names an intent — see\n * `FEATURE_ONBOARDING_PROMPT_TEMPLATE` below.\n */\nconst RUN_ID_PLACEHOLDER = \"<run-id>\";\n\nexport const ONBOARDING_PROMPT_ORIGIN = \"https://copilotkit.ai\";\n\nexport const ONBOARDING_PROMPT_TEMPLATE = `Read ${ONBOARDING_PROMPT_ORIGIN}/onboarding-prompts/${RUN_ID_PLACEHOLDER} and help me get set up.`;\n\n/** Length and alphabet are the CLI's, so a run id copied here resolves there. */\nconst RUN_ID_LENGTH = 12;\n\n/**\n * Mint the identifier that joins this copy to the CLI run it starts.\n *\n * The Intelligence app derives it from `crypto.randomUUID()`. The Inspector\n * runs inside whatever page embeds it, so neither `randomUUID` nor a secure\n * context is guaranteed; the two fallbacks keep the id present rather than\n * letting the button fail. Collision risk is irrelevant — this correlates\n * telemetry, it does not authorise anything.\n */\nexport function createOnboardingRunId(): string {\n const webCrypto = globalThis.crypto;\n\n if (typeof webCrypto?.randomUUID === \"function\") {\n return webCrypto.randomUUID().replaceAll(\"-\", \"\").slice(0, RUN_ID_LENGTH);\n }\n\n if (typeof webCrypto?.getRandomValues === \"function\") {\n const bytes = webCrypto.getRandomValues(new Uint8Array(RUN_ID_LENGTH / 2));\n return Array.from(bytes, (byte) => byte.toString(16).padStart(2, \"0\")).join(\n \"\",\n );\n }\n\n let id = \"\";\n while (id.length < RUN_ID_LENGTH) {\n id += Math.floor(Math.random() * 16).toString(16);\n }\n return id.slice(0, RUN_ID_LENGTH);\n}\n\n/** Bind one run id into the prompt text that gets copied. */\nexport function createOnboardingPrompt(runId: string): string {\n return ONBOARDING_PROMPT_TEMPLATE.replace(RUN_ID_PLACEHOLDER, runId);\n}\n\n/**\n * The closed set of feature outcomes the CLI prompt graph can start at.\n *\n * Kept equal to `ONBOARDING_INTENT_ROOTS` in Intelligence's\n * `apps/cli/onboarding-intents.cjs`, which is the build-time source of truth.\n * The two repositories cannot import each other, so the agreement is held by\n * this list plus the CLI's own `onboarding-intents.spec.ts`. Drift is loud\n * rather than silent: `onboard start` refuses an unknown `--intent` before it\n * persists a run, so a stale slug fails on the first command instead of\n * quietly onboarding the wrong feature.\n */\nexport const ONBOARDING_INTENTS = [\n \"add-a2ui\",\n \"add-chat-suggestions\",\n \"add-learning\",\n \"add-open-generative-ui\",\n \"add-realtime-sync\",\n \"add-rich-threads\",\n \"add-voice\",\n] as const;\n\nexport type OnboardingIntent = (typeof ONBOARDING_INTENTS)[number];\n\n/**\n * Which feature outcome each Home tile asks the CLI for.\n *\n * The two vocabularies stay separate on purpose. A `HomeServiceId` names a\n * tile and the pane behind it, so `websocket` and `audio` are the right words\n * for it; an intent names the work to be done, so `add-realtime-sync` and\n * `add-voice` are the right words for that. One table maps between them, and\n * `Record<HomeServiceId, OnboardingIntent>` makes a new tile or a renamed\n * slug a type error rather than a missing button.\n *\n * `memory` maps to `add-learning` because the tile is the Learning tile: it is\n * enabled by a *configured Learning container* (see `learningOn` in\n * `index.ts`), which is exactly what `feature/learning` sets up. The tile id\n * and the `memories` menu key are older names for that same pane.\n */\nexport const FEATURE_ONBOARDING_INTENT: Record<\n HomeServiceId,\n OnboardingIntent\n> = {\n threads: \"add-rich-threads\",\n memory: \"add-learning\",\n a2ui: \"add-a2ui\",\n \"open-gen-ui\": \"add-open-generative-ui\",\n suggestions: \"add-chat-suggestions\",\n audio: \"add-voice\",\n websocket: \"add-realtime-sync\",\n};\n\nconst INTENT_PLACEHOLDER = \"<intent>\";\n\n/**\n * The prompt a Home feature button copies.\n *\n * It carries no feature-specific instruction, and it must not gain any. The\n * `--intent` route owns the plan, the guide links, the per-phase check-ins,\n * the refusal when a prerequisite is missing, and the proof step; prose copied\n * here would duplicate all of that and then drift from it the next time the\n * underlying API changes.\n *\n * The session-check permission the developer granted by copying this, and the\n * credentials warning beside it, moved with the command into the document the\n * URL serves. They are not dropped.\n */\nexport const FEATURE_ONBOARDING_PROMPT_TEMPLATE = `Read ${ONBOARDING_PROMPT_ORIGIN}/onboarding-prompts/${RUN_ID_PLACEHOLDER}?intent=${INTENT_PLACEHOLDER} and help me set this up.`;\n\n/** Bind one run id and one tile's feature outcome into the copied prompt. */\nexport function createFeatureOnboardingPrompt(\n serviceId: HomeServiceId,\n runId: string,\n): string {\n return FEATURE_ONBOARDING_PROMPT_TEMPLATE.replace(\n RUN_ID_PLACEHOLDER,\n runId,\n ).replace(INTENT_PLACEHOLDER, FEATURE_ONBOARDING_INTENT[serviceId]);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAM,qBAAqB;AAE3B,MAAa,2BAA2B;AAExC,MAAa,6BAA6B,QAAQ,yBAAyB,sBAAsB,mBAAmB;;AAGpH,MAAM,gBAAgB;;;;;;;;;;AAWtB,SAAgB,wBAAgC;CAC9C,MAAM,YAAY,WAAW;AAE7B,KAAI,OAAO,WAAW,eAAe,WACnC,QAAO,UAAU,YAAY,CAAC,WAAW,KAAK,GAAG,CAAC,MAAM,GAAG,cAAc;AAG3E,KAAI,OAAO,WAAW,oBAAoB,YAAY;EACpD,MAAM,QAAQ,UAAU,gBAAgB,IAAI,WAAW,gBAAgB,EAAE,CAAC;AAC1E,SAAO,MAAM,KAAK,QAAQ,SAAS,KAAK,SAAS,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC,KACrE,GACD;;CAGH,IAAI,KAAK;AACT,QAAO,GAAG,SAAS,cACjB,OAAM,KAAK,MAAM,KAAK,QAAQ,GAAG,GAAG,CAAC,SAAS,GAAG;AAEnD,QAAO,GAAG,MAAM,GAAG,cAAc;;;AAInC,SAAgB,uBAAuB,OAAuB;AAC5D,QAAO,2BAA2B,QAAQ,oBAAoB,MAAM;;;;;;;;;;;;;;;;;AAyCtE,MAAa,4BAGT;CACF,SAAS;CACT,QAAQ;CACR,MAAM;CACN,eAAe;CACf,aAAa;CACb,OAAO;CACP,WAAW;CACZ;AAED,MAAM,qBAAqB;;;;;;;;;;;;;;AAe3B,MAAa,qCAAqC,QAAQ,yBAAyB,sBAAsB,mBAAmB,UAAU,mBAAmB;;AAGzJ,SAAgB,8BACd,WACA,OACQ;AACR,QAAO,mCAAmC,QACxC,oBACA,MACD,CAAC,QAAQ,oBAAoB,0BAA0B,WAAW"}
|
|
@@ -12,12 +12,11 @@
|
|
|
12
12
|
* The CLI resolves `onboard start` against a prompt graph, so the two surfaces
|
|
13
13
|
* must not drift — if the CLI's entry point changes, both change together.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* (Intelligence OSS-1157).
|
|
15
|
+
* One sentence, and deliberately nothing else. It used to carry the `npx`
|
|
16
|
+
* command itself, which put a command line and a telemetry id in the one piece
|
|
17
|
+
* of text a human reads, decides on and pastes. The command now lives in the
|
|
18
|
+
* document the URL serves, with the run id already written into it
|
|
19
|
+
* (PE-216/PE-217).
|
|
21
20
|
*
|
|
22
21
|
* This one stays generic, and so do the docs and Intelligence web-app copies
|
|
23
22
|
* of it (OSS-1150). Those three are entry points for a developer with no
|
|
@@ -28,9 +27,8 @@
|
|
|
28
27
|
* `FEATURE_ONBOARDING_PROMPT_TEMPLATE` below.
|
|
29
28
|
*/
|
|
30
29
|
const RUN_ID_PLACEHOLDER = "<run-id>";
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
npx --yes copilotkit@latest onboard start --run ${RUN_ID_PLACEHOLDER}`;
|
|
30
|
+
const ONBOARDING_PROMPT_ORIGIN = "https://copilotkit.ai";
|
|
31
|
+
const ONBOARDING_PROMPT_TEMPLATE = `Read ${ONBOARDING_PROMPT_ORIGIN}/onboarding-prompts/${RUN_ID_PLACEHOLDER} and help me get set up.`;
|
|
34
32
|
/** Length and alphabet are the CLI's, so a run id copied here resolves there. */
|
|
35
33
|
const RUN_ID_LENGTH = 12;
|
|
36
34
|
/**
|
|
@@ -91,15 +89,11 @@ const INTENT_PLACEHOLDER = "<intent>";
|
|
|
91
89
|
* here would duplicate all of that and then drift from it the next time the
|
|
92
90
|
* underlying API changes.
|
|
93
91
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
92
|
+
* The session-check permission the developer granted by copying this, and the
|
|
93
|
+
* credentials warning beside it, moved with the command into the document the
|
|
94
|
+
* URL serves. They are not dropped.
|
|
97
95
|
*/
|
|
98
|
-
const FEATURE_ONBOARDING_PROMPT_TEMPLATE = `
|
|
99
|
-
|
|
100
|
-
npx --yes copilotkit@latest onboard start --run ${RUN_ID_PLACEHOLDER} --intent ${INTENT_PLACEHOLDER}
|
|
101
|
-
|
|
102
|
-
If it requires a CopilotKit CLI session check, you have permission to run it. Never reveal credentials.`;
|
|
96
|
+
const FEATURE_ONBOARDING_PROMPT_TEMPLATE = `Read ${ONBOARDING_PROMPT_ORIGIN}/onboarding-prompts/${RUN_ID_PLACEHOLDER}?intent=${INTENT_PLACEHOLDER} and help me set this up.`;
|
|
103
97
|
/** Bind one run id and one tile's feature outcome into the copied prompt. */
|
|
104
98
|
function createFeatureOnboardingPrompt(serviceId, runId) {
|
|
105
99
|
return FEATURE_ONBOARDING_PROMPT_TEMPLATE.replace(RUN_ID_PLACEHOLDER, runId).replace(INTENT_PLACEHOLDER, FEATURE_ONBOARDING_INTENT[serviceId]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding-prompt.mjs","names":[],"sources":["../../src/lib/onboarding-prompt.ts"],"sourcesContent":["import type { HomeServiceId } from \"./home-briefing.js\";\n\n/**\n * The Intelligence install prompt the Inspector hands to a coding agent.\n *\n * Every other Intelligence call to action in the Inspector opens a page in a\n * new tab, which is where developers drop out: they leave the editor, meet a\n * signup form, and never come back. This prompt lets the install happen where\n * they already are.\n *\n * The wording is kept byte-identical to `INTELLIGENCE_ONBOARDING_PROMPT` in the\n * Intelligence app (`apps/app-frontend/react-shell/src/home/intelligence-home.tsx`).\n * The CLI resolves `onboard start` against a prompt graph, so the two surfaces\n * must not drift — if the CLI's entry point changes, both change together.\n *\n *
|
|
1
|
+
{"version":3,"file":"onboarding-prompt.mjs","names":[],"sources":["../../src/lib/onboarding-prompt.ts"],"sourcesContent":["import type { HomeServiceId } from \"./home-briefing.js\";\n\n/**\n * The Intelligence install prompt the Inspector hands to a coding agent.\n *\n * Every other Intelligence call to action in the Inspector opens a page in a\n * new tab, which is where developers drop out: they leave the editor, meet a\n * signup form, and never come back. This prompt lets the install happen where\n * they already are.\n *\n * The wording is kept byte-identical to `INTELLIGENCE_ONBOARDING_PROMPT` in the\n * Intelligence app (`apps/app-frontend/react-shell/src/home/intelligence-home.tsx`).\n * The CLI resolves `onboard start` against a prompt graph, so the two surfaces\n * must not drift — if the CLI's entry point changes, both change together.\n *\n * One sentence, and deliberately nothing else. It used to carry the `npx`\n * command itself, which put a command line and a telemetry id in the one piece\n * of text a human reads, decides on and pastes. The command now lives in the\n * document the URL serves, with the run id already written into it\n * (PE-216/PE-217).\n *\n * This one stays generic, and so do the docs and Intelligence web-app copies\n * of it (OSS-1150). Those three are entry points for a developer with no\n * CopilotKit app yet, and every `--intent` route requires an existing app: it\n * inspects for one first and reads `feature/stop` when it is missing. The\n * feature buttons on Home are the surface that knows which feature the\n * developer is looking at, so they are the surface that names an intent — see\n * `FEATURE_ONBOARDING_PROMPT_TEMPLATE` below.\n */\nconst RUN_ID_PLACEHOLDER = \"<run-id>\";\n\nexport const ONBOARDING_PROMPT_ORIGIN = \"https://copilotkit.ai\";\n\nexport const ONBOARDING_PROMPT_TEMPLATE = `Read ${ONBOARDING_PROMPT_ORIGIN}/onboarding-prompts/${RUN_ID_PLACEHOLDER} and help me get set up.`;\n\n/** Length and alphabet are the CLI's, so a run id copied here resolves there. */\nconst RUN_ID_LENGTH = 12;\n\n/**\n * Mint the identifier that joins this copy to the CLI run it starts.\n *\n * The Intelligence app derives it from `crypto.randomUUID()`. The Inspector\n * runs inside whatever page embeds it, so neither `randomUUID` nor a secure\n * context is guaranteed; the two fallbacks keep the id present rather than\n * letting the button fail. Collision risk is irrelevant — this correlates\n * telemetry, it does not authorise anything.\n */\nexport function createOnboardingRunId(): string {\n const webCrypto = globalThis.crypto;\n\n if (typeof webCrypto?.randomUUID === \"function\") {\n return webCrypto.randomUUID().replaceAll(\"-\", \"\").slice(0, RUN_ID_LENGTH);\n }\n\n if (typeof webCrypto?.getRandomValues === \"function\") {\n const bytes = webCrypto.getRandomValues(new Uint8Array(RUN_ID_LENGTH / 2));\n return Array.from(bytes, (byte) => byte.toString(16).padStart(2, \"0\")).join(\n \"\",\n );\n }\n\n let id = \"\";\n while (id.length < RUN_ID_LENGTH) {\n id += Math.floor(Math.random() * 16).toString(16);\n }\n return id.slice(0, RUN_ID_LENGTH);\n}\n\n/** Bind one run id into the prompt text that gets copied. */\nexport function createOnboardingPrompt(runId: string): string {\n return ONBOARDING_PROMPT_TEMPLATE.replace(RUN_ID_PLACEHOLDER, runId);\n}\n\n/**\n * The closed set of feature outcomes the CLI prompt graph can start at.\n *\n * Kept equal to `ONBOARDING_INTENT_ROOTS` in Intelligence's\n * `apps/cli/onboarding-intents.cjs`, which is the build-time source of truth.\n * The two repositories cannot import each other, so the agreement is held by\n * this list plus the CLI's own `onboarding-intents.spec.ts`. Drift is loud\n * rather than silent: `onboard start` refuses an unknown `--intent` before it\n * persists a run, so a stale slug fails on the first command instead of\n * quietly onboarding the wrong feature.\n */\nexport const ONBOARDING_INTENTS = [\n \"add-a2ui\",\n \"add-chat-suggestions\",\n \"add-learning\",\n \"add-open-generative-ui\",\n \"add-realtime-sync\",\n \"add-rich-threads\",\n \"add-voice\",\n] as const;\n\nexport type OnboardingIntent = (typeof ONBOARDING_INTENTS)[number];\n\n/**\n * Which feature outcome each Home tile asks the CLI for.\n *\n * The two vocabularies stay separate on purpose. A `HomeServiceId` names a\n * tile and the pane behind it, so `websocket` and `audio` are the right words\n * for it; an intent names the work to be done, so `add-realtime-sync` and\n * `add-voice` are the right words for that. One table maps between them, and\n * `Record<HomeServiceId, OnboardingIntent>` makes a new tile or a renamed\n * slug a type error rather than a missing button.\n *\n * `memory` maps to `add-learning` because the tile is the Learning tile: it is\n * enabled by a *configured Learning container* (see `learningOn` in\n * `index.ts`), which is exactly what `feature/learning` sets up. The tile id\n * and the `memories` menu key are older names for that same pane.\n */\nexport const FEATURE_ONBOARDING_INTENT: Record<\n HomeServiceId,\n OnboardingIntent\n> = {\n threads: \"add-rich-threads\",\n memory: \"add-learning\",\n a2ui: \"add-a2ui\",\n \"open-gen-ui\": \"add-open-generative-ui\",\n suggestions: \"add-chat-suggestions\",\n audio: \"add-voice\",\n websocket: \"add-realtime-sync\",\n};\n\nconst INTENT_PLACEHOLDER = \"<intent>\";\n\n/**\n * The prompt a Home feature button copies.\n *\n * It carries no feature-specific instruction, and it must not gain any. The\n * `--intent` route owns the plan, the guide links, the per-phase check-ins,\n * the refusal when a prerequisite is missing, and the proof step; prose copied\n * here would duplicate all of that and then drift from it the next time the\n * underlying API changes.\n *\n * The session-check permission the developer granted by copying this, and the\n * credentials warning beside it, moved with the command into the document the\n * URL serves. They are not dropped.\n */\nexport const FEATURE_ONBOARDING_PROMPT_TEMPLATE = `Read ${ONBOARDING_PROMPT_ORIGIN}/onboarding-prompts/${RUN_ID_PLACEHOLDER}?intent=${INTENT_PLACEHOLDER} and help me set this up.`;\n\n/** Bind one run id and one tile's feature outcome into the copied prompt. */\nexport function createFeatureOnboardingPrompt(\n serviceId: HomeServiceId,\n runId: string,\n): string {\n return FEATURE_ONBOARDING_PROMPT_TEMPLATE.replace(\n RUN_ID_PLACEHOLDER,\n runId,\n ).replace(INTENT_PLACEHOLDER, FEATURE_ONBOARDING_INTENT[serviceId]);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAM,qBAAqB;AAE3B,MAAa,2BAA2B;AAExC,MAAa,6BAA6B,QAAQ,yBAAyB,sBAAsB,mBAAmB;;AAGpH,MAAM,gBAAgB;;;;;;;;;;AAWtB,SAAgB,wBAAgC;CAC9C,MAAM,YAAY,WAAW;AAE7B,KAAI,OAAO,WAAW,eAAe,WACnC,QAAO,UAAU,YAAY,CAAC,WAAW,KAAK,GAAG,CAAC,MAAM,GAAG,cAAc;AAG3E,KAAI,OAAO,WAAW,oBAAoB,YAAY;EACpD,MAAM,QAAQ,UAAU,gBAAgB,IAAI,WAAW,gBAAgB,EAAE,CAAC;AAC1E,SAAO,MAAM,KAAK,QAAQ,SAAS,KAAK,SAAS,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC,KACrE,GACD;;CAGH,IAAI,KAAK;AACT,QAAO,GAAG,SAAS,cACjB,OAAM,KAAK,MAAM,KAAK,QAAQ,GAAG,GAAG,CAAC,SAAS,GAAG;AAEnD,QAAO,GAAG,MAAM,GAAG,cAAc;;;AAInC,SAAgB,uBAAuB,OAAuB;AAC5D,QAAO,2BAA2B,QAAQ,oBAAoB,MAAM;;;;;;;;;;;;;;;;;AAyCtE,MAAa,4BAGT;CACF,SAAS;CACT,QAAQ;CACR,MAAM;CACN,eAAe;CACf,aAAa;CACb,OAAO;CACP,WAAW;CACZ;AAED,MAAM,qBAAqB;;;;;;;;;;;;;;AAe3B,MAAa,qCAAqC,QAAQ,yBAAyB,sBAAsB,mBAAmB,UAAU,mBAAmB;;AAGzJ,SAAgB,8BACd,WACA,OACQ;AACR,QAAO,mCAAmC,QACxC,oBACA,MACD,CAAC,QAAQ,oBAAoB,0BAA0B,WAAW"}
|
package/dist/package.cjs
CHANGED
package/dist/package.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/web-inspector",
|
|
3
|
-
"version": "1.73.
|
|
3
|
+
"version": "1.73.3",
|
|
4
4
|
"description": "Lit-based web component for the CopilotKit web inspector",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@ag-ui/client": "0.0.59",
|
|
31
|
-
"@copilotkit/core": "1.73.2-canary.1790085728",
|
|
32
|
-
"@copilotkit/shared": "1.73.2-canary.1790085728",
|
|
33
31
|
"lit": "^3.2.0",
|
|
34
32
|
"lucide": "^0.525.0",
|
|
35
|
-
"marked": "^12.0.2"
|
|
33
|
+
"marked": "^12.0.2",
|
|
34
|
+
"@copilotkit/core": "1.73.3",
|
|
35
|
+
"@copilotkit/shared": "1.73.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@playwright/test": "^1.59.1",
|