@ericsanchezok/synergy-util 3.0.10 → 3.0.11

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.
@@ -1,7 +1,6 @@
1
1
  export type PluginSource = "local" | "official" | "npm" | "git" | "url" | "builtin";
2
2
  export type RuntimeMode = "inProcess" | "process";
3
3
  export type TrustTier = "declarative" | "trusted-import";
4
- export type PolicyRisk = "low" | "medium" | "high";
5
4
  export interface RuntimeLimits {
6
5
  startupTimeoutMs: number;
7
6
  toolInvocationTimeoutMs: number;
@@ -54,7 +53,6 @@ interface FlatManifest {
54
53
  export interface PluginPolicyDecision {
55
54
  source: PluginSource;
56
55
  capabilities: string[];
57
- risk: PolicyRisk;
58
56
  trust: PluginTrustDecision;
59
57
  runtimeMode: RuntimeMode;
60
58
  }
@@ -64,7 +62,6 @@ export declare function resolvePluginPolicyDecision(input: {
64
62
  userTrusted?: boolean;
65
63
  verifiedIntegrity?: boolean;
66
64
  devMode?: boolean;
67
- risk?: PolicyRisk;
68
65
  }): PluginPolicyDecision;
69
66
  export declare function trustReason(decision: PluginTrustDecision): string;
70
67
  export declare function trustSummary(decision: PluginTrustDecision): string;
@@ -46,16 +46,9 @@ export function defaultPluginTrustDecision(input) {
46
46
  }
47
47
  export function resolvePluginPolicyDecision(input) {
48
48
  const capabilities = input.manifest.capabilities?.map((item) => item.id) ?? [];
49
- const risk = input.risk ??
50
- (capabilities.some((item) => ["workspace.write", "secrets", "task.delegate", "blueprint.delegate", "lightloop.delegate"].includes(item))
51
- ? "high"
52
- : capabilities.length
53
- ? "medium"
54
- : "low");
55
49
  return {
56
50
  source: input.source,
57
51
  capabilities,
58
- risk,
59
52
  trust: defaultPluginTrustDecision(input),
60
53
  runtimeMode: resolveRuntimeMode({ source: input.source }),
61
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ericsanchezok/synergy-util",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "exports": {