caik-cli 0.1.1 → 0.6.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 (55) hide show
  1. package/README.md +8 -7
  2. package/dist/api-6OX4ICXN.js +9 -0
  3. package/dist/auto-improve-skills-2COKTU5C.js +8 -0
  4. package/dist/autoresearch-Y7WW6L4O.js +24 -0
  5. package/dist/chunk-2YHUDOJL.js +54 -0
  6. package/dist/chunk-3TXNZINH.js +775 -0
  7. package/dist/chunk-5MHNQAV4.js +317 -0
  8. package/dist/chunk-7AIZTHHZ.js +152 -0
  9. package/dist/chunk-D4IM3YRX.js +166 -0
  10. package/dist/chunk-DJJHS7KK.js +62 -0
  11. package/dist/chunk-DKZBQRR3.js +91 -0
  12. package/dist/chunk-FLSHJZLC.js +613 -0
  13. package/dist/chunk-H2ZKCXMJ.js +202 -0
  14. package/dist/chunk-ILMOSMD3.js +83 -0
  15. package/dist/chunk-KYTHKH6V.js +79 -0
  16. package/dist/chunk-LTKHLRM4.js +272 -0
  17. package/dist/chunk-T32AEP3O.js +146 -0
  18. package/dist/chunk-T73Z5UMA.js +14437 -0
  19. package/dist/chunk-TFKT7V7H.js +1545 -0
  20. package/dist/chunk-US4CYDNS.js +524 -0
  21. package/dist/chunk-ZLRN7Q7C.js +27 -0
  22. package/dist/claude-code-6DF4YARB.js +8 -0
  23. package/dist/config-CS7734SA.js +24 -0
  24. package/dist/correction-classifier-TLPKRNLI.js +93 -0
  25. package/dist/cursor-Z4XXDCAM.js +8 -0
  26. package/dist/daemon/autoresearch-2MAEM2YI.js +272 -0
  27. package/dist/daemon/chunk-545XA5CB.js +77 -0
  28. package/dist/daemon/chunk-HEYFAUHL.js +90 -0
  29. package/dist/daemon/chunk-MLKGABMK.js +9 -0
  30. package/dist/daemon/chunk-NJICGNCK.js +150 -0
  31. package/dist/daemon/chunk-OD5NUFH2.js +181 -0
  32. package/dist/daemon/chunk-SM2FSXIP.js +60 -0
  33. package/dist/daemon/chunk-UMDJFPN6.js +163 -0
  34. package/dist/daemon/config-F7HE3JRY.js +23 -0
  35. package/dist/daemon/db-QEXVVTAL.js +15 -0
  36. package/dist/daemon/eval-generator-OR2FAYLB.js +316 -0
  37. package/dist/daemon/improver-TGEK6MPE.js +186 -0
  38. package/dist/daemon/llm-FUJ2TBYT.js +11 -0
  39. package/dist/daemon/nudge-detector-NFRHWZY6.js +140 -0
  40. package/dist/daemon/platform-7N3LQDIB.js +16381 -0
  41. package/dist/daemon/registry-FI4GTO3H.js +20 -0
  42. package/dist/daemon/server.js +356 -0
  43. package/dist/daemon/trace-store-T7XFGQSX.js +19 -0
  44. package/dist/daemon-UXYMG46V.js +85 -0
  45. package/dist/db-TLNRIXLK.js +18 -0
  46. package/dist/eval-generator-GGMRPO3K.js +21 -0
  47. package/dist/eval-runner-EF4K6T5Y.js +15 -0
  48. package/dist/index.js +8033 -568
  49. package/dist/llm-3UUZX6PX.js +12 -0
  50. package/dist/platform-52NREMBS.js +33 -0
  51. package/dist/repo-installer-K6ADOW3E.js +25 -0
  52. package/dist/setup-P744STZE.js +16 -0
  53. package/dist/test-loop-Y7QQE55P.js +127 -0
  54. package/dist/trace-store-FVLMNNDK.js +20 -0
  55. package/package.json +9 -3
package/README.md CHANGED
@@ -2,18 +2,18 @@
2
2
 
3
3
  Search, install, and publish AI artifacts from your terminal.
4
4
 
5
- [CAIK](https://caik.dev) is the open registry for AI artifacts — skills, MCP servers, knowledge bases, connectors, and compositions that make AI agents more capable.
5
+ [CAIK](https://www.caik.dev) is the open registry for AI artifacts — skills, MCP servers, knowledge bases, connectors, and compositions that make AI agents more capable.
6
6
 
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npm install -g @caik.dev/cli
10
+ npm install -g caik-cli
11
11
  ```
12
12
 
13
13
  Or run directly with npx:
14
14
 
15
15
  ```bash
16
- npx @caik.dev/cli search "auth"
16
+ npx caik-cli search "auth"
17
17
  ```
18
18
 
19
19
  ## Quick Start
@@ -56,7 +56,7 @@ caik status
56
56
  ## Global Options
57
57
 
58
58
  ```
59
- --api-url <url> API base URL (default: https://caik.dev)
59
+ --api-url <url> API base URL (default: https://www.caik.dev)
60
60
  --api-key <key> API key for authentication
61
61
  --verbose Show detailed output including API calls
62
62
  --json Output raw JSON (for scripting)
@@ -82,11 +82,12 @@ Priority: CLI flags > environment variables > config file > defaults.
82
82
 
83
83
  ```bash
84
84
  # Environment variables
85
- export CAIK_API_URL=https://caik.dev
85
+ export CAIK_API_URL=https://www.caik.dev
86
86
  export CAIK_API_KEY=caik_sk_...
87
87
  ```
88
88
 
89
89
  ## Links
90
90
 
91
- - [Website](https://caik.dev)
92
- - [GitHub](https://github.com/open-lattice-ai/caik)
91
+ - [Website](https://www.caik.dev)
92
+ - [GitHub](https://github.com/caikdev/caik)
93
+ - [Plugins](https://github.com/caikdev/plugins) — Claude Code, Cursor, OpenClaw
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ CaikApiClient
4
+ } from "./chunk-ILMOSMD3.js";
5
+ import "./chunk-2YHUDOJL.js";
6
+ import "./chunk-ZLRN7Q7C.js";
7
+ export {
8
+ CaikApiClient
9
+ };
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ getAutoImproveSkills
4
+ } from "./chunk-T32AEP3O.js";
5
+ import "./chunk-ZLRN7Q7C.js";
6
+ export {
7
+ getAutoImproveSkills
8
+ };
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ applyImprovement,
4
+ autoResearchLoop,
5
+ checkWatchdog,
6
+ generateMutations,
7
+ proposeImprovement,
8
+ selectStrategies,
9
+ shouldAutoApply
10
+ } from "./chunk-LTKHLRM4.js";
11
+ import "./chunk-D4IM3YRX.js";
12
+ import "./chunk-DJJHS7KK.js";
13
+ import "./chunk-DKZBQRR3.js";
14
+ import "./chunk-KYTHKH6V.js";
15
+ import "./chunk-ZLRN7Q7C.js";
16
+ export {
17
+ applyImprovement,
18
+ autoResearchLoop,
19
+ checkWatchdog,
20
+ generateMutations,
21
+ proposeImprovement,
22
+ selectStrategies,
23
+ shouldAutoApply
24
+ };
@@ -0,0 +1,54 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/errors.ts
4
+ var CaikError = class extends Error {
5
+ constructor(message, suggestion, exitCode = 1) {
6
+ super(message);
7
+ this.suggestion = suggestion;
8
+ this.exitCode = exitCode;
9
+ this.name = "CaikError";
10
+ }
11
+ };
12
+ function mapHttpError(status, body) {
13
+ const message = typeof body === "object" && body !== null && "message" in body ? String(body.message) : `Request failed with status ${status}`;
14
+ switch (status) {
15
+ case 401:
16
+ return new CaikError(message, "Run 'caik init --auth' to sign in.");
17
+ case 403:
18
+ return new CaikError(message, "You don't have permission for this action.");
19
+ case 404:
20
+ return new CaikError(message, "Run 'caik search <query>' to find artifacts.");
21
+ case 400:
22
+ return new CaikError(message, "Check your input and try again.");
23
+ case 429:
24
+ return new CaikError("Rate limited. Please wait and try again.");
25
+ case 500:
26
+ case 502:
27
+ case 503:
28
+ return new CaikError("Server error. The API may be temporarily unavailable.", "Try again in a few moments, or check 'caik status'.");
29
+ default:
30
+ return new CaikError(message);
31
+ }
32
+ }
33
+ function mapNetworkError(err) {
34
+ const msg = err instanceof Error ? err.message : String(err);
35
+ if (msg.includes("ECONNREFUSED") || msg.includes("fetch failed")) {
36
+ return new CaikError(
37
+ "Could not connect to the CAIK API.",
38
+ "Check your --api-url or CAIK_API_URL environment variable. Is the server running?"
39
+ );
40
+ }
41
+ if (msg.includes("ETIMEDOUT") || msg.includes("timeout")) {
42
+ return new CaikError(
43
+ "Request timed out.",
44
+ "The API may be slow or unreachable. Try again or check 'caik status'."
45
+ );
46
+ }
47
+ return new CaikError(`Network error: ${msg}`);
48
+ }
49
+
50
+ export {
51
+ CaikError,
52
+ mapHttpError,
53
+ mapNetworkError
54
+ };