sentinelayer-cli 0.40.0 → 0.41.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.
Files changed (38) hide show
  1. package/README.md +4 -4
  2. package/package.json +2 -3
  3. package/src/commands/session.js +611 -232
  4. package/src/engram/governance.js +67 -0
  5. package/src/engram/index.js +64 -0
  6. package/src/engram/namespace.js +89 -0
  7. package/src/engram/observations.js +34 -0
  8. package/src/engram/sla.js +104 -0
  9. package/src/engram/store.js +115 -0
  10. package/src/engram/tools.js +146 -0
  11. package/src/engram/trust.js +105 -0
  12. package/src/legacy-cli.js +4 -1
  13. package/src/mcp/registry.js +27 -10
  14. package/src/mcp/session-stdio-server.js +209 -18
  15. package/src/session/agent-registry.js +22 -63
  16. package/src/session/coordination-guidance.js +6 -6
  17. package/src/session/daemon.js +19 -124
  18. package/src/session/file-lease-integrations.js +1300 -0
  19. package/src/session/file-locks.js +967 -464
  20. package/src/session/listener.js +243 -20
  21. package/src/session/listeners.js +71 -80
  22. package/src/session/paths.js +2 -0
  23. package/src/session/recall/embedder.js +181 -0
  24. package/src/session/recall/entities.js +0 -0
  25. package/src/session/recall/index-build.js +38 -0
  26. package/src/session/recall/index-core.js +108 -0
  27. package/src/session/recall/index.js +131 -0
  28. package/src/session/recall/needle-eval.js +279 -0
  29. package/src/session/recall/observation-core.js +183 -0
  30. package/src/session/recall/observations.js +21 -0
  31. package/src/session/recall/provenance.js +153 -0
  32. package/src/session/recall/retrieve.js +374 -0
  33. package/src/session/recall/text.js +0 -0
  34. package/src/session/recall/token-stats.js +81 -0
  35. package/src/session/recap.js +29 -23
  36. package/src/session/remote-hydrate.js +5 -1
  37. package/src/session/sync.js +661 -11
  38. package/src/session/wake/pump.js +8 -3
package/README.md CHANGED
@@ -142,14 +142,14 @@ Then point your agents at it:
142
142
 
143
143
  ```bash
144
144
  sl session join <session-id> --agent <agent-name>
145
- sl session say <session-id> "status: starting on auth middleware" --agent <agent-name>
145
+ sl session action <session-id> working_on --target-sequence <n>
146
146
  ```
147
147
 
148
148
  Sentinelayer includes a deterministic session coordination surface for multi-agent coding loops:
149
149
 
150
150
  - session event stream and replay (`start`, `join`, `say`, `read`, `status`, `leave`, `list`, `kill`)
151
- - low-noise message actions (`react ack|like|dislike`, `action working_on|disregard`, `reply`/`comment`, `view`, `actions`)
152
- - agent lifecycle controls (join/heartbeat/leave/kill)
151
+ - low-noise message actions (`react ack|like|dislike`, `action working_on|disregard`, `reply`/`comment`, `actions`) plus one monotonic per-agent read cursor (`view`)
152
+ - agent lifecycle controls (join/ephemeral TTL presence/leave/kill); listener liveness never enters the durable transcript
153
153
  - recap and context briefing for late-joining agents
154
154
  - analytics + lineage artifacts at session closeout
155
155
 
@@ -694,7 +694,7 @@ Use `init-aidenid` to scaffold an Anthropic-compatible tool schema wrapper for A
694
694
  Use `init-aidenid-adapter` to scaffold a deterministic AIdenID provisioning API contract (tool binding -> HTTP path/method -> response field mapping) and cross-check it against the registry with `validate-aidenid-adapter`.
695
695
  Use `token mint` to request a short-lived hosted MCP bearer token from the Sentinelayer API. Text output hides the bearer value; `--json` is the explicit operator path that includes `accessToken`. The command is blocked from the generated CLI MCP bridge.
696
696
  Use `smoke` to verify the hosted MCP resource without printing the bearer. The canonical remote MCP paste URL is `https://api.sentinelayer.com/mcp`; the token audience/resource value is `https://mcp.sentinelayer.com` and is handled by the OAuth/MCP flow. `sl mcp smoke` works today through the CLI direct-mint path; third-party browser connectors such as Claude.ai still require the OAuth browser-flow and connector-registration work to complete before users can authenticate from that product.
697
- Use `init-session` plus `server run` for the local stdio Senti MCP server. It exposes session inbox, durable posts, actions/replies/reactions, file locks, and attention requests to local MCP clients. Hosted Claude-web/ChatGPT connectors need a separate HTTPS/OAuth service and are not shipped by the local stdio server. See [docs/mcp.md](docs/mcp.md).
697
+ Use `init-session` plus `server run` for the local stdio Senti MCP server. It exposes session inbox, durable posts, actions/replies/reactions, API-authoritative file leases, and attention requests to local MCP clients. File-lease lifecycle operations never write session events; install edit preflights with `sl session guard-install` and remove them with `sl session guard-uninstall` before any CLI rollback. Hosted Claude-web/ChatGPT connectors need a separate HTTPS/OAuth service and are not shipped by the local stdio server. See [docs/mcp.md](docs/mcp.md) and [docs/file-leases.md](docs/file-leases.md).
698
698
  Use `init-cli` to generate a bridge registry for every `sl` leaf command from Commander metadata. This exposes the full CLI surface as `sl.<command.path>` tool schemas, but execution still requires a bridge-capable MCP host with OAuth/session-seat policy and human approval enforcement. The hosted connector target contract is documented in [docs/mcp-hosted-connector.md](docs/mcp-hosted-connector.md).
699
699
 
700
700
  MCP operator verification:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sentinelayer-cli",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "description": "Scaffold Sentinelayer spec/prompt/guide artifacts with secure browser auth and token bootstrap.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -66,8 +66,7 @@
66
66
  "zod": "4.1.12"
67
67
  },
68
68
  "devDependencies": {
69
- "c8": "10.1.3",
70
- "license-checker-rseidelsohn": "4.4.2"
69
+ "c8": "11.0.0"
71
70
  },
72
71
  "overrides": {
73
72
  "lighthouse": {