@sema-agent/sdk 0.0.119 → 0.0.120
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/openapi.yaml +10 -7
- package/package.json +1 -1
package/openapi.yaml
CHANGED
|
@@ -2569,13 +2569,16 @@ components:
|
|
|
2569
2569
|
the user wants only files reverted. Target = a user-message SessionTreeEntry.id.
|
|
2570
2570
|
permissionMode:
|
|
2571
2571
|
type: string
|
|
2572
|
-
enum: [default, plan, acceptEdits, bypassPermissions]
|
|
2572
|
+
enum: [default, plan, acceptEdits, bypassPermissions, auto]
|
|
2573
2573
|
description: >
|
|
2574
|
-
CC permission-mode INTENT. The frontend (TUI shell /
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2574
|
+
CC permission-mode INTENT (the five CC modes verbatim, post-[816]/[820]/[822]). The frontend (TUI shell /
|
|
2575
|
+
web portal) carries the RAW mode; the SERVICE interprets it TIGHTEN-ONLY vs the deployment baseline:
|
|
2576
|
+
`plan` ⇒ mount present_plan (core enablePlanMode) + read-only hands (CC EnterPlanMode research);
|
|
2577
|
+
`default` adds the manual ask gate; `auto` = same ask gate with core's auto-mode classifier screening
|
|
2578
|
+
asks upstream (entitlement-gated in core); `acceptEdits`/`bypassPermissions` are honored as
|
|
2579
|
+
"add less/no mode-derived gating" — they can never subtract from the deployment/operator policy
|
|
2580
|
+
(deny-wins). An unknown string coerces to `default` (the most-asking mode). Carrying the intent
|
|
2581
|
+
(not pre-interpreted core fields) = one interpretation across frontends + service-owned governance.
|
|
2579
2582
|
attachmentIds:
|
|
2580
2583
|
type: array
|
|
2581
2584
|
maxItems: 16
|
|
@@ -3186,7 +3189,7 @@ components:
|
|
|
3186
3189
|
sessionDelete: { type: boolean, description: "Session delete verb." }
|
|
3187
3190
|
sessionInit: { type: boolean, description: "Session pre-initialization verb." }
|
|
3188
3191
|
sessionPolicy: { type: boolean, description: "E6 per-session operator-tightened tool rules are durable." }
|
|
3189
|
-
usage: { type: boolean, description: "
|
|
3192
|
+
usage: { type: boolean, description: "QUOTA face wired (server costQuota dep — cost/token budget enforcement + per-principal accounting). NOT an analytics-availability probe ([1871] B15): per-turn analytics (turn_end.usage, model_usage frames) are engine-side and unconditional, and GET /v1/usage always answers 200 (with `enabled: false` when the quota face is off). Gate quota UI on this key; never gate analytics on it." }
|
|
3190
3193
|
policy: { type: boolean, description: "`GET /v1/policy` (autonomy/permission READ side)." }
|
|
3191
3194
|
permissionModeWrite: { type: boolean, description: "Runtime permission-mode WRITE. Advertised false by design — autonomy is CONFIG, not steer; the READ side is `policy`." }
|
|
3192
3195
|
modelSelection: { type: boolean, description: "`model` accepted per request." }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.120",
|
|
4
4
|
"description": "Typed, zero-runtime-dependency SDK for the Sema agent fleet usage plane. The shared substrate for all doors (CC/Codex MCP façade + web). Server-side only — tokens never enter the browser.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "BUSL-1.1",
|