@clue-ai/cli 0.0.5 → 0.0.7
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 +18 -7
- package/bin/clue-cli.mjs +898 -762
- package/commands/claude-code/clue-init.md +9 -2
- package/commands/codex/clue-init.md +9 -2
- package/package.json +1 -1
- package/src/ai-provider.mjs +147 -0
- package/src/command-spec.mjs +9 -7
- package/src/contracts.mjs +51 -16
- package/src/init-tool.mjs +158 -125
- package/src/lifecycle-init.mjs +180 -205
- package/src/public-schema.cjs +48 -1
- package/src/semantic-agent-runner.mjs +157 -0
- package/src/semantic-ai-config.mjs +17 -0
- package/src/semantic-ci.mjs +525 -204
- package/src/setup-check.mjs +399 -372
- package/src/setup-prepare.mjs +361 -147
- package/src/setup-tool.mjs +379 -229
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ The Clue product repository keeps SDKs, shared schemas, and API contracts. Tool
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
/clue-init
|
|
11
|
-
clue-ai setup
|
|
11
|
+
clue-ai setup --clue-api-key <key> --clue-api-base-url <url> --project-key <key> --environment dev
|
|
12
12
|
clue-ai setup-detect --repo .
|
|
13
13
|
clue-ai semantic-inventory --framework fastapi --backend-root-path backend --repo . --output .clue/semantic-routes.json
|
|
14
14
|
clue-ai semantic-workflow --framework fastapi --backend-root-path backend --repo .
|
|
@@ -16,7 +16,7 @@ clue-ai lifecycle-apply --plan clue-lifecycle-plan.json --repo .
|
|
|
16
16
|
clue-ai setup-check --framework fastapi --backend-root-path backend --repo . --target codex --require-sdk-lifecycle
|
|
17
17
|
clue-ai setup-watch --project-key <key> --environment dev --clue-api-base-url <clue-api-base-url> --watch-targets frontend:web[init,identify,set-account,event-sent]=<frontend-url>,backend:api[init,identify,set-account,logout,event-sent]=<backend-url>
|
|
18
18
|
clue-ai init --request clue-init-request.json --repo .
|
|
19
|
-
clue-ai semantic-
|
|
19
|
+
clue-ai semantic-gen --request clue-semantic-request.json --repo .
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
`/clue-init` is the standard user-facing command for Codex and Claude Code
|
|
@@ -25,7 +25,7 @@ tool request/report contract as `clue-ai init`.
|
|
|
25
25
|
|
|
26
26
|
`clue-ai semantic-workflow` mechanically writes the GitHub Actions workflow that
|
|
27
27
|
generates `.clue/semantic-request.runtime.json` only inside CI and then runs
|
|
28
|
-
`clue-ai semantic-
|
|
28
|
+
`clue-ai semantic-gen`. Do not commit runtime semantic request files to client
|
|
29
29
|
repositories.
|
|
30
30
|
|
|
31
31
|
`clue-ai setup` installs the target AI-tool skills and, when backend routes are
|
|
@@ -59,15 +59,26 @@ service key and the lifecycle checks expected for that service, for example
|
|
|
59
59
|
Do not assume localhost ports; use the actual URLs printed by the repository's
|
|
60
60
|
dev scripts or configured in its local env.
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
`clue-ai setup` reads Clue values from the setup screen flags, detects local
|
|
63
|
+
services, writes `.clue/setup-manifest.json`, and prints service-specific env
|
|
64
|
+
blocks. Do not hand-write `CLUE_SERVICE_KEY`; use the value printed for each
|
|
65
|
+
detected service.
|
|
66
|
+
|
|
67
|
+
## Required Environment
|
|
63
68
|
|
|
64
69
|
- `CLUE_API_KEY`
|
|
65
|
-
- `
|
|
70
|
+
- `CLUE_AI_PROVIDER_API_KEY`
|
|
71
|
+
- `CLUE_AI_PROVIDER`
|
|
72
|
+
- `CLUE_AI_MODEL`
|
|
73
|
+
|
|
74
|
+
`clue-ai semantic-gen` runs semantic AI inside the customer repository CI with
|
|
75
|
+
the customer-configured AI provider key. Clue receives only the final
|
|
76
|
+
privacy-safe semantic snapshot.
|
|
66
77
|
|
|
67
78
|
## Boundaries
|
|
68
79
|
|
|
69
80
|
- The tool may read allowed source paths in the client repository.
|
|
70
81
|
- The tool must not read `.env`, secrets, logs, dumps, build output, or vendor directories.
|
|
71
|
-
-
|
|
72
|
-
- Raw source code, raw SQL, bind values, function names, class names, file paths, and import graphs are not sent to Clue
|
|
82
|
+
- Semantic generation calls the configured AI provider from customer CI.
|
|
83
|
+
- Raw source code, raw SQL, bind values, function names, class names, file paths, and import graphs are not sent to Clue.
|
|
73
84
|
- `clue-layer.yaml` and `clue-semantic.yaml` are not committed to client repositories.
|