@ateam-ai-mobile/plugin-runtime 0.1.2 → 0.1.4

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/dist/index.d.mts CHANGED
@@ -18,6 +18,9 @@ interface PluginContext {
18
18
  user?: {
19
19
  id: string;
20
20
  name: string;
21
+ tenantRole?: string | null;
22
+ serviceRole?: string | null;
23
+ platformRoles?: string[];
21
24
  roles: string[];
22
25
  };
23
26
  }
package/dist/index.d.ts CHANGED
@@ -18,6 +18,9 @@ interface PluginContext {
18
18
  user?: {
19
19
  id: string;
20
20
  name: string;
21
+ tenantRole?: string | null;
22
+ serviceRole?: string | null;
23
+ platformRoles?: string[];
21
24
  roles: string[];
22
25
  };
23
26
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ateam-ai-mobile/plugin-runtime",
3
- "version": "0.1.2",
4
- "description": "ADAS plugin runtime for React Native hosts \u2014 plugin SDK, bundle pipeline with integrity verification, host bridge, surfaces. No Expo dependencies.",
3
+ "version": "0.1.4",
4
+ "description": "ADAS plugin runtime for React Native hosts — plugin SDK, bundle pipeline with integrity verification, host bridge, surfaces. No Expo dependencies.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "build": "tsup"
10
10
  },
11
11
  "dependencies": {
12
- "@ateam-ai-mobile/core": "0.1.2",
12
+ "@ateam-ai-mobile/core": "^0.1.4",
13
13
  "zustand": "^5.0.0"
14
14
  },
15
15
  "peerDependencies": {
@@ -28,4 +28,4 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  }
31
- }
31
+ }
package/src/sdk/types.ts CHANGED
@@ -11,7 +11,8 @@ export interface PluginContext {
11
11
  tenant: string;
12
12
  pluginId: string;
13
13
  connectorId?: string;
14
- user?: { id: string; name: string; roles: string[] };
14
+ // Phase 4: explicit role axes; `roles` is legacy (empty for post-Phase-4 tokens).
15
+ user?: { id: string; name: string; tenantRole?: string | null; serviceRole?: string | null; platformRoles?: string[]; roles: string[] };
15
16
  }
16
17
 
17
18
  // ── Bridge (shared across web and native) ───────────────────