@sentrial/sdk 0.5.0 → 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.
- package/README.md +26 -0
- package/dist/cli.cjs +6185 -101
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +6247 -158
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +27 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -19
- package/dist/index.d.ts +27 -19
- package/dist/index.js +27 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,6 +79,32 @@ sentrial evaluate <experiment-id> --min-score 80
|
|
|
79
79
|
> `SENTRIAL_API_KEY`, or `sentrial login`) carries that scope, or the CI gate
|
|
80
80
|
> will fail with a 403.
|
|
81
81
|
|
|
82
|
+
### Guided setup and delivery checks
|
|
83
|
+
|
|
84
|
+
Setup and Doctor require `@sentrial/sdk` 0.6.0 or later. Start in your agent project:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npx -p @sentrial/sdk@0.6.0 sentrial setup --dry-run --json
|
|
88
|
+
npx -p @sentrial/sdk@0.6.0 sentrial setup
|
|
89
|
+
# Coding agents / CI: set SENTRIAL_API_KEY privately first.
|
|
90
|
+
npx -p @sentrial/sdk@0.6.0 sentrial setup --yes --non-interactive --json
|
|
91
|
+
npx -p @sentrial/sdk@0.6.0 sentrial doctor --workspace <organization-uuid> --json
|
|
92
|
+
npx -p @sentrial/sdk@0.6.0 sentrial doctor --session <session-uuid> --json
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Setup verifies workspace read access, inspects installed dependencies and creates an integration
|
|
96
|
+
example while preserving existing files. A prompted key is hidden and is not saved. It does not
|
|
97
|
+
execute the example or call a model. Keep the key in your agent runtime, adapt the example to your
|
|
98
|
+
agent, run it, then use Doctor to inspect its session ID. Python-only projects can use
|
|
99
|
+
`python -m sentrial.cli setup` from Python SDK 0.8.0 without Node.
|
|
100
|
+
|
|
101
|
+
Doctor's `ready_for_instrumentation` result verifies read access, not delivery. `trace_verified`
|
|
102
|
+
means this completed trace's source-numbered events were read back without reported gaps or
|
|
103
|
+
inspection warnings. It does not establish business success, application-wide coverage or signal
|
|
104
|
+
accuracy. Session listing needs `sessions:read`; delivery readback also needs `events:read` and
|
|
105
|
+
an API deployment supporting `/api/v1/sessions/<id>/health`. Both reads share one bounded
|
|
106
|
+
`--timeout-ms` deadline (100–30000 ms). Redirects are refused; reports omit trace content and keys.
|
|
107
|
+
|
|
82
108
|
## Quick Start (30 seconds)
|
|
83
109
|
|
|
84
110
|
### Option 1: Auto-Wrap LLM Clients (Recommended)
|