@clue-ai/cli 0.0.5 → 0.0.6
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 +17 -3
- package/bin/clue-cli.mjs +805 -762
- package/commands/claude-code/clue-init.md +7 -1
- package/commands/codex/clue-init.md +7 -1
- package/package.json +1 -1
- package/src/ai-provider.mjs +146 -0
- package/src/command-spec.mjs +7 -7
- package/src/contracts.mjs +49 -15
- package/src/init-tool.mjs +158 -124
- package/src/lifecycle-init.mjs +180 -205
- package/src/public-schema.cjs +1 -1
- package/src/semantic-ci.mjs +122 -163
- package/src/setup-check.mjs +373 -372
- package/src/setup-prepare.mjs +266 -147
- package/src/setup-tool.mjs +231 -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 .
|
|
@@ -59,10 +59,24 @@ 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`
|
|
71
|
+
- `CLUE_AI_PROVIDER_API_KEY`
|
|
72
|
+
- `CLUE_AI_MODEL`
|
|
73
|
+
|
|
74
|
+
`CLUE_AI_PROVIDER` selects the AI provider used by semantic snapshot generation and
|
|
75
|
+
lifecycle implementation planning. Use `openai` for OpenAI-compatible Chat
|
|
76
|
+
Completions providers and `anthropic` for Claude Messages API. `CLUE_AI_PROVIDER_API_KEY`
|
|
77
|
+
must match the selected provider. `CLUE_AI_MODEL` is the selected provider's model
|
|
78
|
+
name. Keep it in environment configuration so provider/model upgrades do not
|
|
79
|
+
require CLI code changes.
|
|
66
80
|
|
|
67
81
|
## Boundaries
|
|
68
82
|
|