anyray-connect 0.11.299 → 0.11.310
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/dist/index.js +366 -361
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -288,11 +288,25 @@ Adapters live in `src/tools/` and are registered in `src/tools/index.ts`
|
|
|
288
288
|
an adapter implementing `ToolAdapter` (`detect` / `apply` / `revert`) and add one
|
|
289
289
|
line to the registry. Nothing in the CLI orchestrator changes.
|
|
290
290
|
|
|
291
|
+
Configuration passes share an in-memory policy snapshot from
|
|
292
|
+
`src/util/policySnapshot.ts`. Pass `ApplyOptions.policySnapshot` to policy readers
|
|
293
|
+
inside an adapter; standalone adapter applications start a fresh scope when needed. Enrollment,
|
|
294
|
+
repair, renewal, and policy reconciliation pass the snapshot through their existing
|
|
295
|
+
calls so lane selection, tool settings, and team content use the same response.
|
|
296
|
+
Scheduled maintenance shares it through enrollment healing, new-tool adoption, and
|
|
297
|
+
the revision sweep as well.
|
|
298
|
+
The snapshot caches successes and failures only for that pass. The first reader
|
|
299
|
+
sets the request timeout, which covers headers and body. A later pass reads again.
|
|
300
|
+
Gateway, credential, and model are separate cache keys; model-specific
|
|
301
|
+
context lookups never replace the base policy. Each reader still validates its own
|
|
302
|
+
fields and keeps its existing fallback. Never persist the snapshot in a profile or
|
|
303
|
+
queued command.
|
|
304
|
+
|
|
291
305
|
## Develop
|
|
292
306
|
|
|
293
|
-
Claude Code's experimental `hookPolicies.greenCollapse`
|
|
294
|
-
|
|
295
|
-
|
|
307
|
+
Claude Code's experimental `hookPolicies.greenCollapse` is a default-off preference in the
|
|
308
|
+
existing Connect profile. It emits recoverable source trims only when the local MCP retrieval
|
|
309
|
+
lane is available. Configuration and the
|
|
296
310
|
metadata counters exposed by `doctor --json` / `status --json` are documented in the
|
|
297
311
|
[Connect reference](../docs/docs/tools/connect-reference.md#claude-code-source-trims).
|
|
298
312
|
The [paired benchmark protocol](./HOOK-POLICY-BENCH.md) gates any default change.
|