passport-bridge 0.44.0 → 0.45.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.
@@ -5,7 +5,7 @@
5
5
  * names. Summaries are templates filled with safe names only.
6
6
  *
7
7
  * Fails closed. These all become the manifest's Unclassified Action (kind
8
- * delete, blocked by default): a command, tool or route the manifest doesn't
8
+ * delete, so a Delete Block blocks it): a command, tool or route the manifest doesn't
9
9
  * name; a flag the vendor's spec doesn't list; a boolean the CLI framework
10
10
  * wouldn't accept; a value flag with no value; an argument no rule names; a
11
11
  * known operation whose conditions no rule matches; a SQL rule with no SQL; a
@@ -6,7 +6,7 @@
6
6
  * names. Summaries are templates filled with safe names only.
7
7
  *
8
8
  * Fails closed. These all become the manifest's Unclassified Action (kind
9
- * delete, blocked by default): a command, tool or route the manifest doesn't
9
+ * delete, so a Delete Block blocks it): a command, tool or route the manifest doesn't
10
10
  * name; a flag the vendor's spec doesn't list; a boolean the CLI framework
11
11
  * wouldn't accept; a value flag with no value; an argument no rule names; a
12
12
  * known operation whose conditions no rule matches; a SQL rule with no SQL; a
@@ -495,7 +495,7 @@ export const SUPABASE_API_RULES = [
495
495
  summary: "Read auth settings of project {ref}, including provider secrets"
496
496
  },
497
497
  // Round 3 review: only the provider fields are sign-in providers; every other auth setting (site URL,
498
- // SMTP, JWT expiry, rate limits...) is blocked by default.
498
+ // SMTP, JWT expiry, rate limits...) is kind Delete (a Delete Block blocks it).
499
499
  {
500
500
  match: "PATCH /v1/projects/{ref}/config/auth",
501
501
  when: { "*": { keys: PROVIDER_FIELDS } },
@@ -290,7 +290,7 @@ export const SUPABASE_CAPTURE = {
290
290
  drop_database: "supabase.unclassified",
291
291
  drop_schema: "supabase.unclassified",
292
292
  drop_table: "supabase.table.drop",
293
- // Round 3 review: a table emptied keeps its own words ("Empty a table"), blocked by default.
293
+ // Round 3 review: a table emptied keeps its own words ("Empty a table"), kind Delete.
294
294
  truncate: "supabase.unclassified",
295
295
  delete_all: "supabase.unclassified",
296
296
  rls_off: "supabase.unclassified",
@@ -3,7 +3,7 @@ import type { ManifestAction, NodeSpec } from "../manifest.generated.js";
3
3
  export declare const SUPABASE_ACTIONS: readonly ManifestAction[];
4
4
  export declare const SUPABASE_TYPES: readonly ResourceTypeDef[];
5
5
  export declare const SUPABASE_NODES: Readonly<Record<string, NodeSpec>>;
6
- /** A deploy that turns off the JWT check: the function answers anyone (blocked by default). */
6
+ /** A deploy that turns off the JWT check: the function answers anyone (kind Delete). */
7
7
  export declare const AFFECTS_FN_JWT_OFF: {
8
8
  readonly action: "supabase.unclassified";
9
9
  readonly on: "function";
@@ -62,7 +62,7 @@ export const SUPABASE_NODES = {
62
62
  storage: { key: "{ref}", name: "Storage", parent: underProject },
63
63
  bucket: { key: "{ref}/{bucket}", name: "{bucket}", parent: { type: "storage" } }
64
64
  };
65
- /** A deploy that turns off the JWT check: the function answers anyone (blocked by default). */
65
+ /** A deploy that turns off the JWT check: the function answers anyone (kind Delete). */
66
66
  export const AFFECTS_FN_JWT_OFF = {
67
67
  action: "supabase.unclassified",
68
68
  on: "function",
@@ -77,7 +77,7 @@ export type ActionDef = {
77
77
  exactTarget?: string;
78
78
  /** A lucide-react icon name matching the platform's own iconography ("Trash2"). */
79
79
  icon?: string;
80
- /** Can't be undone (`cli.local.*`): only action rules decide it (`resolveRule`), Observe refuses it. */
80
+ /** Can't be undone (`cli.local.*`): a label for the UI; rules decide it like any action (2026-11-16). */
81
81
  irreversible?: true;
82
82
  /** The platform sources that report it, and whether they name who did it (visibility levels). */
83
83
  seenBy?: ReadonlyArray<{
@@ -229,7 +229,7 @@ export type Resolution = {
229
229
  /**
230
230
  * The one resolution order, used by every enforcement point and every view: walk from the node up to its platform; at
231
231
  * each level an action rule beats a kind rule; the nearest level wins; then workspace action rule, workspace kind
232
- * rule, then the default (Allow). A kind Allow never decides an irreversible action; a kind Block does. Pure.
232
+ * rule, then the default (Allow). An irreversible action follows the same order ("truly allow all", 2026-11-16). Pure.
233
233
  */
234
234
  export declare function resolveRule(path: readonly string[], action: Pick<ActionDef, "key" | "kind" | "irreversible">, rules: readonly ControlRule[]): Resolution;
235
235
  /**
@@ -74,7 +74,7 @@ export const DEFAULT_KIND_DECISION = {
74
74
  /**
75
75
  * The one resolution order, used by every enforcement point and every view: walk from the node up to its platform; at
76
76
  * each level an action rule beats a kind rule; the nearest level wins; then workspace action rule, workspace kind
77
- * rule, then the default (Allow). A kind Allow never decides an irreversible action; a kind Block does. Pure.
77
+ * rule, then the default (Allow). An irreversible action follows the same order ("truly allow all", 2026-11-16). Pure.
78
78
  */
79
79
  export function resolveRule(path /* node id first, platform last */, action, rules) {
80
80
  const at = (target, key) => rules.find((rule) => ("workspace" in rule.target
@@ -83,19 +83,18 @@ export function resolveRule(path /* node id first, platform last */, action, rul
83
83
  ("action" in rule.key
84
84
  ? "action" in key && rule.key.action === key.action
85
85
  : "kind" in key && rule.key.kind === key.kind));
86
- const kindCounts = (rule) => (action.irreversible && rule?.decision !== "block" ? undefined : rule);
87
86
  for (const id of path) {
88
87
  const byAction = at({ nodeId: id }, { action: action.key });
89
88
  if (byAction)
90
89
  return { decision: byAction.decision, ruleId: byAction.id, at: id, by: "action" };
91
- const byKind = kindCounts(at({ nodeId: id }, { kind: action.kind }));
90
+ const byKind = at({ nodeId: id }, { kind: action.kind });
92
91
  if (byKind)
93
92
  return { decision: byKind.decision, ruleId: byKind.id, at: id, by: "kind" };
94
93
  }
95
94
  const wsAction = at({ workspace: true }, { action: action.key });
96
95
  if (wsAction)
97
96
  return { decision: wsAction.decision, ruleId: wsAction.id, at: "workspace", by: "action" };
98
- const wsKind = kindCounts(at({ workspace: true }, { kind: action.kind }));
97
+ const wsKind = at({ workspace: true }, { kind: action.kind });
99
98
  if (wsKind)
100
99
  return { decision: wsKind.decision, ruleId: wsKind.id, at: "workspace", by: "kind" };
101
100
  return { decision: DEFAULT_KIND_DECISION[action.kind], ruleId: null, at: "default", by: "kind" };
@@ -13,12 +13,12 @@ import type { ActionDef, BasicPlatform } from "./controlPlane.generated.js";
13
13
  * Kinds come only from what Passport already reads about a tool (`server/src/riskClass.ts`): a read is not
14
14
  * consequential, a destructive tool is Delete, a write named for making something (`create_customer`,
15
15
  * `issues.create`, `domains add`) is Create, any other write is Change. Rules work as everywhere else
16
- * (`resolveRule`): a tool rule, then a kind rule on the platform, then the workspace, then the shipped default.
16
+ * (`resolveRule`): a tool rule, then a kind rule on the platform, then the workspace, then the default (Allow).
17
17
  *
18
- * This computer (`cli:local`) is the one exception: commands that can't be undone on the computer an agent runs on
19
- * (deleting the home folder, the disk, system files or the project folder; recursive permission changes there), one
20
- * action per class (`LOCAL_IRREVERSIBLE_VERBS`), kind Delete, `irreversible`: only an Allow on that action unlocks
21
- * one, kind rules never do, Observe mode refuses it too, and a block offers Always allow.
18
+ * This computer (`cli:local`): commands that can't be undone on the computer an agent runs on (deleting the home
19
+ * folder, the disk, system files or the project folder; recursive permission changes there), one action per class
20
+ * (`LOCAL_IRREVERSIBLE_VERBS`), kind Delete, labelled `irreversible`. Since 2026-11-16 ("truly allow all") they follow
21
+ * the same rules as every action: allowed with no rule, blocked by a Delete Block or an action Block.
22
22
  */
23
23
  export declare const BASIC_KINDS: readonly ["delete", "change", "create", "read"];
24
24
  export type BasicKind = (typeof BASIC_KINDS)[number];
@@ -12,12 +12,12 @@
12
12
  * Kinds come only from what Passport already reads about a tool (`server/src/riskClass.ts`): a read is not
13
13
  * consequential, a destructive tool is Delete, a write named for making something (`create_customer`,
14
14
  * `issues.create`, `domains add`) is Create, any other write is Change. Rules work as everywhere else
15
- * (`resolveRule`): a tool rule, then a kind rule on the platform, then the workspace, then the shipped default.
15
+ * (`resolveRule`): a tool rule, then a kind rule on the platform, then the workspace, then the default (Allow).
16
16
  *
17
- * This computer (`cli:local`) is the one exception: commands that can't be undone on the computer an agent runs on
18
- * (deleting the home folder, the disk, system files or the project folder; recursive permission changes there), one
19
- * action per class (`LOCAL_IRREVERSIBLE_VERBS`), kind Delete, `irreversible`: only an Allow on that action unlocks
20
- * one, kind rules never do, Observe mode refuses it too, and a block offers Always allow.
17
+ * This computer (`cli:local`): commands that can't be undone on the computer an agent runs on (deleting the home
18
+ * folder, the disk, system files or the project folder; recursive permission changes there), one action per class
19
+ * (`LOCAL_IRREVERSIBLE_VERBS`), kind Delete, labelled `irreversible`. Since 2026-11-16 ("truly allow all") they follow
20
+ * the same rules as every action: allowed with no rule, blocked by a Delete Block or an action Block.
21
21
  */
22
22
  export const BASIC_KINDS = ["delete", "change", "create", "read"];
23
23
  /** App keys and CLI vendors are slugs: letters, digits, "-" and "_" (never "." or ":"). */
@@ -4,4 +4,4 @@
4
4
  * the version, then runs `npm run set-version -- <version>` in the plugin repo
5
5
  * and pushes (docs/RELEASING.md). `pluginPin.test.ts` fails when it drifts.
6
6
  */
7
- export declare const PLUGIN_PIN = "0.44.0";
7
+ export declare const PLUGIN_PIN = "0.45.0";
package/dist/pluginPin.js CHANGED
@@ -4,4 +4,4 @@
4
4
  * the version, then runs `npm run set-version -- <version>` in the plugin repo
5
5
  * and pushes (docs/RELEASING.md). `pluginPin.test.ts` fails when it drifts.
6
6
  */
7
- export const PLUGIN_PIN = "0.44.0";
7
+ export const PLUGIN_PIN = "0.45.0";
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.44.0";
1
+ export declare const VERSION = "0.45.0";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Keep in lockstep with bridge/package.json.
2
- export const VERSION = "0.44.0";
2
+ export const VERSION = "0.45.0";
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "passport-bridge",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "passport-bridge",
9
- "version": "0.44.0",
9
+ "version": "0.45.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@modelcontextprotocol/sdk": "1.32.1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "passport-bridge",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "description": "Passport CLI for governed terminal and CI agents, plus the local stdio-to-cloud MCP bridge.",
5
5
  "license": "MIT",
6
6
  "repository": {