@cognite/cli 1.9.0-alpha.2 → 1.9.0-alpha.3
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
CHANGED
|
@@ -12,6 +12,10 @@ npx @cognite/cli apps create
|
|
|
12
12
|
|
|
13
13
|
This prompts for your app name, org, project, and cluster, then generates a fully configured React + TypeScript project.
|
|
14
14
|
|
|
15
|
+
## Feature Flags
|
|
16
|
+
|
|
17
|
+
Set environment variable `COGNITE_ALPHA_ENABLE_SESSION_AUTH` to true in order to enable session authentication enabling auth login and logout commands which will let you skip browser login by securely persisting access tokens on your machine.
|
|
18
|
+
|
|
15
19
|
## Authentication
|
|
16
20
|
|
|
17
21
|
New apps created with `npx @cognite/cli apps create` depend on [`@cognite/app-sdk`](https://www.npmjs.com/package/@cognite/app-sdk) — **not `@cognite/cli`** — for auth and host integration. `@cognite/cli` is the CLI used to scaffold, develop, and deploy the app; the generated app itself talks to the Fusion app host via `@cognite/app-sdk`'s Comlink handshake. The template wires this up for you.
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
# These are placeholders — edit the inputs, references, and context to match what
|
|
24
24
|
# your agent actually does, then add more cases over time.
|
|
25
25
|
|
|
26
|
+
# To split cases across multiple files as your suite grows, add:
|
|
27
|
+
# include:
|
|
28
|
+
# - cases/maintenance.yaml
|
|
29
|
+
|
|
26
30
|
cases:
|
|
27
31
|
# Single-turn case scored for correctness.
|
|
28
32
|
- id: greeting
|
|
@@ -20,12 +20,12 @@ cognite agents publish
|
|
|
20
20
|
| Path | Purpose |
|
|
21
21
|
|------|---------|
|
|
22
22
|
| `agent.yaml` | Agent definition (externalId, tools, model, instructions) |
|
|
23
|
-
| `eval/
|
|
23
|
+
| `eval/eval.yaml` | Example eval cases — run with `cognite agents eval` |
|
|
24
24
|
| `README.md` | This file |
|
|
25
25
|
|
|
26
26
|
## Evaluating the agent
|
|
27
27
|
|
|
28
|
-
`eval/
|
|
28
|
+
`eval/eval.yaml` contains starter test cases (single-turn and multi-turn) that
|
|
29
29
|
grade the agent's responses with an LLM judge. After pushing the agent, run:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
@@ -46,8 +46,8 @@ to: '<%= useCurrentDir ? "" : ((directoryName || name) + "/") %>package.json'
|
|
|
46
46
|
"@types/react": "^18.3.1",
|
|
47
47
|
"@types/react-dom": "^18.3.1",
|
|
48
48
|
"@vitejs/plugin-react": ">=5.1.1 <6.0.0",
|
|
49
|
-
"@vitest/coverage-v8": "4.1.
|
|
50
|
-
"@vitest/ui": "4.1.
|
|
49
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
50
|
+
"@vitest/ui": "4.1.10",
|
|
51
51
|
"autoprefixer": "^10.4.22",
|
|
52
52
|
"eslint": "9.39.4",
|
|
53
53
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -61,6 +61,6 @@ to: '<%= useCurrentDir ? "" : ((directoryName || name) + "/") %>package.json'
|
|
|
61
61
|
"typescript": "^5.0.0",
|
|
62
62
|
"typescript-eslint": "^8.46.4",
|
|
63
63
|
"vite": ">=7.3.5 <8.0.0",
|
|
64
|
-
"vitest": "4.1.
|
|
64
|
+
"vitest": "4.1.10"
|
|
65
65
|
}
|
|
66
66
|
}
|