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.
Files changed (74) hide show
  1. package/README.md +44 -4
  2. package/cli-build-info.json +7 -7
  3. package/index.js +1810 -354
  4. package/onboarding/index.json +81 -18
  5. package/onboarding/prompts/authenticate/start.md +56 -190
  6. package/onboarding/prompts/conversion/plan.md +3 -3
  7. package/onboarding/prompts/credentials/finalize-plan.md +25 -98
  8. package/onboarding/prompts/credentials/plan.md +20 -20
  9. package/onboarding/prompts/credentials/settle-credentials.md +153 -0
  10. package/onboarding/prompts/credentials/write-plan.md +93 -0
  11. package/onboarding/prompts/fallback/best-effort.md +12 -9
  12. package/onboarding/prompts/feature/a2ui/implement.md +35 -6
  13. package/onboarding/prompts/feature/a2ui/proof.md +30 -6
  14. package/onboarding/prompts/feature/a2ui/start.md +29 -6
  15. package/onboarding/prompts/feature/chat-suggestions/implement.md +36 -6
  16. package/onboarding/prompts/feature/chat-suggestions/proof.md +30 -5
  17. package/onboarding/prompts/feature/chat-suggestions/start.md +29 -6
  18. package/onboarding/prompts/feature/complete.md +11 -0
  19. package/onboarding/prompts/feature/learning/implement.md +102 -11
  20. package/onboarding/prompts/feature/learning/proof.md +53 -9
  21. package/onboarding/prompts/feature/learning/start.md +35 -8
  22. package/onboarding/prompts/feature/open-generative-ui/implement.md +37 -6
  23. package/onboarding/prompts/feature/open-generative-ui/proof.md +30 -5
  24. package/onboarding/prompts/feature/open-generative-ui/start.md +29 -6
  25. package/onboarding/prompts/feature/realtime-sync/implement.md +36 -7
  26. package/onboarding/prompts/feature/realtime-sync/proof.md +29 -5
  27. package/onboarding/prompts/feature/realtime-sync/start.md +28 -5
  28. package/onboarding/prompts/feature/rich-threads/implement.md +37 -8
  29. package/onboarding/prompts/feature/rich-threads/proof.md +31 -5
  30. package/onboarding/prompts/feature/rich-threads/start.md +28 -5
  31. package/onboarding/prompts/feature/stop.md +10 -7
  32. package/onboarding/prompts/feature/voice/implement.md +35 -6
  33. package/onboarding/prompts/feature/voice/proof.md +30 -5
  34. package/onboarding/prompts/feature/voice/start.md +29 -6
  35. package/onboarding/prompts/framework/ag2.md +2 -2
  36. package/onboarding/prompts/framework/agno.md +2 -2
  37. package/onboarding/prompts/framework/built-in.md +2 -2
  38. package/onboarding/prompts/framework/claude-sdk-python.md +2 -2
  39. package/onboarding/prompts/framework/claude-sdk-typescript.md +2 -2
  40. package/onboarding/prompts/framework/crewai-flows.md +2 -2
  41. package/onboarding/prompts/framework/deep-agents.md +2 -2
  42. package/onboarding/prompts/framework/google-adk.md +2 -2
  43. package/onboarding/prompts/framework/langgraph-fastapi.md +2 -2
  44. package/onboarding/prompts/framework/langgraph-python.md +2 -2
  45. package/onboarding/prompts/framework/langgraph-typescript.md +2 -2
  46. package/onboarding/prompts/framework/llamaindex.md +2 -2
  47. package/onboarding/prompts/framework/mastra.md +2 -2
  48. package/onboarding/prompts/framework/ms-agent-dotnet.md +2 -2
  49. package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +2 -2
  50. package/onboarding/prompts/framework/ms-agent-python.md +2 -2
  51. package/onboarding/prompts/framework/pydantic-ai.md +2 -2
  52. package/onboarding/prompts/framework/strands-python.md +2 -2
  53. package/onboarding/prompts/framework/strands-typescript.md +2 -2
  54. package/onboarding/prompts/frontend/angular.md +3 -3
  55. package/onboarding/prompts/frontend/nextjs.md +3 -3
  56. package/onboarding/prompts/frontend/plan.md +6 -6
  57. package/onboarding/prompts/frontend/react-native.md +2 -2
  58. package/onboarding/prompts/frontend/react-spa.md +2 -2
  59. package/onboarding/prompts/frontend/vue.md +2 -2
  60. package/onboarding/prompts/implementation/build-and-validate.md +122 -12
  61. package/onboarding/prompts/proof/complete.md +23 -10
  62. package/onboarding/prompts/proof/oss-baseline.md +17 -7
  63. package/onboarding/prompts/proof/round-trip.md +33 -13
  64. package/onboarding/prompts/research/gather.md +121 -0
  65. package/onboarding/prompts/research/route.md +81 -0
  66. package/onboarding/prompts/starter/clone.md +18 -9
  67. package/onboarding/prompts/stopped/run-failed.md +44 -0
  68. package/onboarding/prompts/subagent/create-plan.md +32 -1
  69. package/onboarding/prompts/subagent/implement-and-validate.md +9 -1
  70. package/onboarding/prompts/subagent/prove-oss-baseline.md +1 -1
  71. package/onboarding/prompts/subagent/prove-round-trip.md +59 -12
  72. package/onboarding/prompts/unsupported/no-validated-path.md +10 -7
  73. package/package.json +1 -1
  74. 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.9.50 onboard read fallback/best-effort`.
33
+ `npx --yes copilotkit@4.10.0 onboard read fallback/best-effort`.
34
34
 
35
- Send one short report. Run the feedback command without another developer question. 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.9.50 onboard feedback
39
+ npx --yes copilotkit@4.10.0 onboard friction --phase stop --category <slug>
40
40
  ```
41
41
 
42
- Write the feedback message to the command's standard input, in at most four lines.
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. Report friction only from a run that
47
- finished, never from here. If the CLI says that telemetry is disabled or unavailable,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copilotkit",
3
- "version": "4.9.50",
3
+ "version": "4.10.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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 ? "380ad1220a7bc78104baedc469c4d086c8910494" : "main";
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).length > 0;
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 exists and is not empty`),
15315
+ new Error(`${projectDir} already holds a project`),
15280
15316
  TELEMETRY_ERROR_CODES.PREREQUISITE_MISSING
15281
15317
  );
15282
15318
  }