opencode-acp 1.18.2-pr.466.206 → 1.18.2-pr.471.205

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.
@@ -8,24 +8,4 @@ export interface HostPermissionSnapshot {
8
8
  export declare const compressDisabledByOpencode: (...permissionConfigs: PermissionConfig[]) => boolean;
9
9
  export declare const resolveEffectiveCompressPermission: (basePermission: PermissionAction, hostPermissions: HostPermissionSnapshot, agentName?: string) => PermissionAction;
10
10
  export declare const hasExplicitToolPermission: (permissionConfig: PermissionConfig, tool: string) => boolean;
11
- /**
12
- * True when the user has made any decision that resolves `tool` in this map:
13
- * an exact key in any value form (scalar or nested pattern object — including
14
- * a degenerate empty object, which produces no rules but still counts as key
15
- * presence), or a wildcard key (`"*"`, `"acp*"`) matching via the same rule
16
- * machinery the host resolution models ([#465]).
17
- */
18
- export declare const anyRuleResolves: (permissionConfig: PermissionConfig, tool: string) => boolean;
19
- /**
20
- * Merge ACP's tool permissions into the host map. An explicit user `compress`
21
- * rule means the user owns the map (returned unchanged). Otherwise write
22
- * `compress` + default `acp_status: "allow"` — but never override a user
23
- * decision on `acp_status`, whether an exact key ([#457]: it used to be
24
- * silently rewritten to `"allow"`, inverting the decision; the host reads its
25
- * own permissions from this same map) or a wildcard like `"*"` / `"acp*"`
26
- * ([#465]: appended after the user's rules it would win last-match and erase
27
- * their decision). The default write is strictly additive over [#457]: it only
28
- * stops where a user rule already resolves the tool.
29
- */
30
- export declare const applyAcpToolPermissions: (permissionConfig: PermissionConfig, compressPermission: PermissionAction) => Record<string, PermissionValue>;
31
11
  //# sourceMappingURL=host-permissions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"host-permissions.d.ts","sourceRoot":"","sources":["../../lib/host-permissions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAA;AAEvD,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,MA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A6DD,eAAO,MAAM,0BAA0B,GAAI,GAAG,mBAAmB,gBAAgB,EAAE,KAAG,OAMrF,CAAA;AAED,eAAO,MAAM,kCAAkC,GAC3C,gBAAgB,gBAAgB,EAChC,iBAAiB,sBAAsB,EACvC,YAAY,MAAM,KACnB,gBAWF,CAAA;AAED,eAAO,MAAM,yBAAyB,GAClC,kBAAkB,gBAAgB,EAClC,MAAM,MAAM,KACb,OAEF,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "opencode-acp",
4
- "version": "1.18.2-pr.466.206",
4
+ "version": "1.18.2-pr.471.205",
5
5
  "type": "module",
6
6
  "description": "Active Context Pruning — model-driven context management for OpenCode (hardened fork of DCP with 35 bug fixes)",
7
7
  "main": "./dist/index.js",