@immediately-run/preauth-core 0.1.3 → 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.
@@ -1,6 +1,6 @@
1
1
  export type CapabilityKind = 'read' | 'action';
2
2
  export type CapabilityTier = 'baseline' | 'elevated' | 'first-party-only';
3
- export type Capability = 'theme:read' | 'theme:set' | 'auth:status' | 'auth:identity' | 'route:read' | 'formFactor:read' | 'mounts:read' | 'spaces:app' | 'spaces:user' | 'spaces:admin' | 'settings:app' | 'settings:fork' | 'settings:all' | 'contribute:self' | 'contribute:any' | 'contribute:direct' | 'editor:read' | 'editor:open' | 'editor:write' | 'editor:document' | 'editor:requestEdit' | 'vcs:read' | 'vcs:reset' | 'dnd:source' | 'catalog:read' | 'commands:read' | 'commands:run' | 'ipc' | 'task:invoke' | 'net:fetch' | 'secrets:add' | 'secrets:list' | 'secrets:revoke' | 'agent:session' | 'diagnostics:read' | 'llm:chat';
3
+ export type Capability = 'theme:read' | 'theme:set' | 'auth:status' | 'auth:identity' | 'route:read' | 'formFactor:read' | 'mounts:read' | 'spaces:app' | 'spaces:user' | 'spaces:admin' | 'settings:app' | 'settings:fork' | 'settings:all' | 'contribute:self' | 'contribute:any' | 'contribute:direct' | 'editor:read' | 'editor:open' | 'editor:write' | 'editor:document' | 'editor:requestEdit' | 'vcs:read' | 'vcs:reset' | 'dnd:source' | 'catalog:read' | 'commands:read' | 'commands:run' | 'ipc' | 'task:invoke' | 'net:fetch' | 'secrets:add' | 'secrets:list' | 'secrets:revoke' | 'agent:session' | 'diagnostics:read' | 'llm:chat' | 'authoring:run';
4
4
  export interface CapabilityDef {
5
5
  kind: CapabilityKind;
6
6
  tier: CapabilityTier;
@@ -31,10 +31,11 @@ export interface CapabilityDef {
31
31
  maximallyExplicit?: boolean;
32
32
  }
33
33
  export declare const CAPABILITIES: Record<Capability, CapabilityDef>;
34
- /** The current registry/vocabulary version (§5.11). Bumped to 1.3.0 with the
35
- * provider-agnostic `llm:chat` capability (the `llm.chat@1` slot), mirroring
36
- * capabilities.json. (1.2.0 added the per-user settings-space capabilities.) */
37
- export declare const REGISTRY_VERSION = "1.3.0";
34
+ /** The current registry/vocabulary version (§5.11). Bumped to 1.4.0 with the
35
+ * `authoring:run` capability (the kernel authoring services — CLIENT_SERVICES §6,
36
+ * R3-107), mirroring capabilities.json. (1.3.0 added the provider-agnostic
37
+ * `llm:chat` slot; 1.2.0 added the per-user settings-space capabilities.) */
38
+ export declare const REGISTRY_VERSION = "1.4.0";
38
39
  /** Is `cap` a known host-core capability? (Closed vocabulary — §5.12.) */
39
40
  export declare function isKnownCapability(cap: string): cap is Capability;
40
41
  export declare function tierOf(cap: Capability): CapabilityTier;
@@ -186,11 +186,19 @@ exports.CAPABILITIES = {
186
186
  // Elevated + app-scoped: a fork/previewed app EARNS it via lazy/manifest consent
187
187
  // (the fork-needs-more-caps story), recorded as a per-(user,appKey) §8.15 grant.
188
188
  'llm:chat': { kind: 'action', tier: 'elevated', since: '1.3.0', appScoped: true },
189
+ // Authoring services (CLIENT_SERVICES_SPEC §6, R3-107): typecheck/lint/format
190
+ // source via a kernel-owned same-origin worker (the in-browser coding agent's
191
+ // quality tools, LLM_AND_AGENTS §3.3). Baseline action — the worker only
192
+ // transforms data the app already holds and returns diagnostics, runs under host
193
+ // authority with nothing to confine (§3a), and is bounded per call (timeout +
194
+ // input-size). Not app-scoped: it confers no authority over other apps/mounts.
195
+ 'authoring:run': { kind: 'action', tier: 'baseline', since: '1.4.0' },
189
196
  };
190
- /** The current registry/vocabulary version (§5.11). Bumped to 1.3.0 with the
191
- * provider-agnostic `llm:chat` capability (the `llm.chat@1` slot), mirroring
192
- * capabilities.json. (1.2.0 added the per-user settings-space capabilities.) */
193
- exports.REGISTRY_VERSION = '1.3.0';
197
+ /** The current registry/vocabulary version (§5.11). Bumped to 1.4.0 with the
198
+ * `authoring:run` capability (the kernel authoring services — CLIENT_SERVICES §6,
199
+ * R3-107), mirroring capabilities.json. (1.3.0 added the provider-agnostic
200
+ * `llm:chat` slot; 1.2.0 added the per-user settings-space capabilities.) */
201
+ exports.REGISTRY_VERSION = '1.4.0';
194
202
  /** Is `cap` a known host-core capability? (Closed vocabulary — §5.12.) */
195
203
  function isKnownCapability(cap) {
196
204
  return Object.prototype.hasOwnProperty.call(exports.CAPABILITIES, cap);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immediately-run/preauth-core",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "The shared §8.9 pre-auth target check + the single grant-mint path (mintConsentedGrants) + the capability vocabulary + the byte-faithful grant/space/net-fetch document layout. Consumed by site-main (browser Firestore) and the backend (admin Firestore) so there is ONE gate, ONE mint path, ONE wire layout.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {