copilotkit 4.9.50 → 4.10.0
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/README.md +44 -4
- package/cli-build-info.json +7 -7
- package/index.js +1810 -354
- package/onboarding/index.json +81 -18
- package/onboarding/prompts/authenticate/start.md +56 -190
- package/onboarding/prompts/conversion/plan.md +3 -3
- package/onboarding/prompts/credentials/finalize-plan.md +25 -98
- package/onboarding/prompts/credentials/plan.md +20 -20
- package/onboarding/prompts/credentials/settle-credentials.md +153 -0
- package/onboarding/prompts/credentials/write-plan.md +93 -0
- package/onboarding/prompts/fallback/best-effort.md +12 -9
- package/onboarding/prompts/feature/a2ui/implement.md +35 -6
- package/onboarding/prompts/feature/a2ui/proof.md +30 -6
- package/onboarding/prompts/feature/a2ui/start.md +29 -6
- package/onboarding/prompts/feature/chat-suggestions/implement.md +36 -6
- package/onboarding/prompts/feature/chat-suggestions/proof.md +30 -5
- package/onboarding/prompts/feature/chat-suggestions/start.md +29 -6
- package/onboarding/prompts/feature/complete.md +11 -0
- package/onboarding/prompts/feature/learning/implement.md +102 -11
- package/onboarding/prompts/feature/learning/proof.md +53 -9
- package/onboarding/prompts/feature/learning/start.md +35 -8
- package/onboarding/prompts/feature/open-generative-ui/implement.md +37 -6
- package/onboarding/prompts/feature/open-generative-ui/proof.md +30 -5
- package/onboarding/prompts/feature/open-generative-ui/start.md +29 -6
- package/onboarding/prompts/feature/realtime-sync/implement.md +36 -7
- package/onboarding/prompts/feature/realtime-sync/proof.md +29 -5
- package/onboarding/prompts/feature/realtime-sync/start.md +28 -5
- package/onboarding/prompts/feature/rich-threads/implement.md +37 -8
- package/onboarding/prompts/feature/rich-threads/proof.md +31 -5
- package/onboarding/prompts/feature/rich-threads/start.md +28 -5
- package/onboarding/prompts/feature/stop.md +10 -7
- package/onboarding/prompts/feature/voice/implement.md +35 -6
- package/onboarding/prompts/feature/voice/proof.md +30 -5
- package/onboarding/prompts/feature/voice/start.md +29 -6
- package/onboarding/prompts/framework/ag2.md +2 -2
- package/onboarding/prompts/framework/agno.md +2 -2
- package/onboarding/prompts/framework/built-in.md +2 -2
- package/onboarding/prompts/framework/claude-sdk-python.md +2 -2
- package/onboarding/prompts/framework/claude-sdk-typescript.md +2 -2
- package/onboarding/prompts/framework/crewai-flows.md +2 -2
- package/onboarding/prompts/framework/deep-agents.md +2 -2
- package/onboarding/prompts/framework/google-adk.md +2 -2
- package/onboarding/prompts/framework/langgraph-fastapi.md +2 -2
- package/onboarding/prompts/framework/langgraph-python.md +2 -2
- package/onboarding/prompts/framework/langgraph-typescript.md +2 -2
- package/onboarding/prompts/framework/llamaindex.md +2 -2
- package/onboarding/prompts/framework/mastra.md +2 -2
- package/onboarding/prompts/framework/ms-agent-dotnet.md +2 -2
- package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +2 -2
- package/onboarding/prompts/framework/ms-agent-python.md +2 -2
- package/onboarding/prompts/framework/pydantic-ai.md +2 -2
- package/onboarding/prompts/framework/strands-python.md +2 -2
- package/onboarding/prompts/framework/strands-typescript.md +2 -2
- package/onboarding/prompts/frontend/angular.md +3 -3
- package/onboarding/prompts/frontend/nextjs.md +3 -3
- package/onboarding/prompts/frontend/plan.md +6 -6
- package/onboarding/prompts/frontend/react-native.md +2 -2
- package/onboarding/prompts/frontend/react-spa.md +2 -2
- package/onboarding/prompts/frontend/vue.md +2 -2
- package/onboarding/prompts/implementation/build-and-validate.md +122 -12
- package/onboarding/prompts/proof/complete.md +23 -10
- package/onboarding/prompts/proof/oss-baseline.md +17 -7
- package/onboarding/prompts/proof/round-trip.md +33 -13
- package/onboarding/prompts/research/gather.md +121 -0
- package/onboarding/prompts/research/route.md +81 -0
- package/onboarding/prompts/starter/clone.md +18 -9
- package/onboarding/prompts/stopped/run-failed.md +44 -0
- package/onboarding/prompts/subagent/create-plan.md +32 -1
- package/onboarding/prompts/subagent/implement-and-validate.md +9 -1
- package/onboarding/prompts/subagent/prove-oss-baseline.md +1 -1
- package/onboarding/prompts/subagent/prove-round-trip.md +59 -12
- package/onboarding/prompts/unsupported/no-validated-path.md +10 -7
- package/package.json +1 -1
- package/release/release-tool.js +39 -3
|
@@ -30,19 +30,22 @@ Before you show the best-effort plan, require this complete packet:
|
|
|
30
30
|
- Give the ordered proof rules.
|
|
31
31
|
|
|
32
32
|
After the developer approves the best-effort plan, run
|
|
33
|
-
`npx --yes copilotkit@4.
|
|
33
|
+
`npx --yes copilotkit@4.10.0 onboard read fallback/best-effort`.
|
|
34
34
|
|
|
35
|
-
Send one short report. Run the
|
|
35
|
+
Send one short report. Run the friction command without another developer question. The
|
|
36
36
|
CLI telemetry gate decides whether the report is sent.
|
|
37
37
|
|
|
38
38
|
```text
|
|
39
|
-
npx --yes copilotkit@4.
|
|
39
|
+
npx --yes copilotkit@4.10.0 onboard friction --phase stop --category <slug>
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
Write
|
|
42
|
+
Write one or two sentences to standard input: the step you stopped at and what stopped it.
|
|
43
|
+
Pick the category that fits from docs-missing, docs-wrong, docs-sequential, cli-gap,
|
|
44
|
+
sdk-gap, environment, port-collision, credential, validation-loop, and other. Leave
|
|
45
|
+
--cost-seconds off. A run that stopped cannot separate one papercut's cost from the cost
|
|
46
|
+
of the whole run, so the estimate is optional on a stop report and only there.
|
|
43
47
|
Send no secrets, source code, logs, or command output. The command refuses a report
|
|
44
48
|
that carries any of those, prints the reason, and exits zero. A refused report is not
|
|
45
49
|
a failed step. Reword it and send it again, or stop without a report. The command
|
|
46
|
-
prints what it sent. This is the channel for a stop.
|
|
47
|
-
|
|
48
|
-
state that the report was not sent and stop without another question.
|
|
50
|
+
prints what it sent. This is the channel for a stop. If the CLI says the report was not sent,
|
|
51
|
+
state what it said and stop without another question.
|
package/package.json
CHANGED
package/release/release-tool.js
CHANGED
|
@@ -14698,7 +14698,7 @@ import * as path4 from "node:path";
|
|
|
14698
14698
|
|
|
14699
14699
|
// apps/cli/src/config.ts
|
|
14700
14700
|
function getTemplateRef() {
|
|
14701
|
-
return true ? "
|
|
14701
|
+
return true ? "ce490419d046abe697438b070a99ad5d674365cc" : "main";
|
|
14702
14702
|
}
|
|
14703
14703
|
|
|
14704
14704
|
// apps/cli/src/services/agentcore-config.ts
|
|
@@ -15270,13 +15270,49 @@ import * as fs3 from "node:fs";
|
|
|
15270
15270
|
import * as path3 from "node:path";
|
|
15271
15271
|
import * as os from "node:os";
|
|
15272
15272
|
import { execFileSync } from "node:child_process";
|
|
15273
|
+
var PROJECT_DIRECTORY_NAMES = /* @__PURE__ */ new Set([
|
|
15274
|
+
"agent",
|
|
15275
|
+
"api",
|
|
15276
|
+
"app",
|
|
15277
|
+
"components",
|
|
15278
|
+
"lib",
|
|
15279
|
+
"packages",
|
|
15280
|
+
"pages",
|
|
15281
|
+
"server",
|
|
15282
|
+
"src",
|
|
15283
|
+
"web"
|
|
15284
|
+
]);
|
|
15285
|
+
var PROJECT_MANIFEST_NAMES = /* @__PURE__ */ new Set([
|
|
15286
|
+
"Cargo.toml",
|
|
15287
|
+
"Gemfile",
|
|
15288
|
+
"build.gradle",
|
|
15289
|
+
"composer.json",
|
|
15290
|
+
"go.mod",
|
|
15291
|
+
"package.json",
|
|
15292
|
+
"pom.xml",
|
|
15293
|
+
"pyproject.toml",
|
|
15294
|
+
"requirements.txt"
|
|
15295
|
+
]);
|
|
15296
|
+
var ENV_TEMPLATE_SUFFIXES = [".example", ".sample", ".template"];
|
|
15297
|
+
function isCredentialEnvFile(entry) {
|
|
15298
|
+
if (!entry.startsWith(".env"))
|
|
15299
|
+
return false;
|
|
15300
|
+
if (ENV_TEMPLATE_SUFFIXES.some((suffix) => entry.endsWith(suffix)))
|
|
15301
|
+
return false;
|
|
15302
|
+
return entry === ".env" || entry.startsWith(".env.");
|
|
15303
|
+
}
|
|
15304
|
+
function entryHoldsProject(entry) {
|
|
15305
|
+
if (isCredentialEnvFile(entry))
|
|
15306
|
+
return true;
|
|
15307
|
+
return PROJECT_DIRECTORY_NAMES.has(entry) || PROJECT_MANIFEST_NAMES.has(entry);
|
|
15308
|
+
}
|
|
15273
15309
|
function isProjectDirOccupied(projectDir) {
|
|
15274
|
-
return fs3.existsSync(projectDir) && fs3.readdirSync(projectDir).
|
|
15310
|
+
return fs3.existsSync(projectDir) && fs3.readdirSync(projectDir).some(entryHoldsProject);
|
|
15275
15311
|
}
|
|
15276
15312
|
function assertProjectDirAvailable(projectDir) {
|
|
15277
15313
|
if (isProjectDirOccupied(projectDir)) {
|
|
15278
15314
|
throw tagError(
|
|
15279
|
-
new Error(`${projectDir} already
|
|
15315
|
+
new Error(`${projectDir} already holds a project`),
|
|
15280
15316
|
TELEMETRY_ERROR_CODES.PREREQUISITE_MISSING
|
|
15281
15317
|
);
|
|
15282
15318
|
}
|