@north-light/sdk 0.3.668 → 0.3.670

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.
@@ -2,7 +2,7 @@
2
2
  name: northlight
3
3
  description: "Use when building, debugging or shipping an app that signs people in with Northlight, starts runs on their Northlight runtime, or calls Northlight providers (sms, search, integrations, context, device) with @north-light/sdk."
4
4
  metadata:
5
- sdk-version: "0.3.668"
5
+ sdk-version: "0.3.670"
6
6
  ---
7
7
 
8
8
  # Building a Northlight app
@@ -27,7 +27,7 @@ Never text a person first: Comms refuses a send to anyone who has not texted you
27
27
 
28
28
  ## First: check this skill matches the SDK
29
29
 
30
- This skill is for SDK version `0.3.668`. If the project has `node_modules/@north-light/sdk/package.json`, compare its `version` with that number. If they differ, run `npx @north-light/sdk skill` in the project, then read the rewritten `.agents/skills/northlight/SKILL.md` (or `.claude/skills/northlight/SKILL.md`) instead of this copy. It needs no account. A project that has no SDK yet starts with `npx @north-light/sdk@latest init <dir>`.
30
+ This skill is for SDK version `0.3.670`. If the project has `node_modules/@north-light/sdk/package.json`, compare its `version` with that number. If they differ, run `npx @north-light/sdk skill` in the project, then read the rewritten `.agents/skills/northlight/SKILL.md` (or `.claude/skills/northlight/SKILL.md`) instead of this copy. It needs no account. A project that has no SDK yet starts with `npx @north-light/sdk@latest init <dir>`.
31
31
 
32
32
  ## Where things run
33
33
 
@@ -1,5 +1,5 @@
1
1
  import { type Definition } from './schema-parser.js';
2
- export declare const BUILTIN_SOURCE = "\ndefinition user {}\ndefinition app {}\ndefinition crtr/group {\n relation member: user | crtr/group#member\n}\ndefinition crtr/object {\n relation parent: crtr/object\n relation acts_for: user\n relation reader: user | user:* | crtr/group#member\n relation editor: user | crtr/group#member\n relation messenger: user | crtr/group#member\n relation user_of: user | crtr/group#member\n permission read = reader + editor + messenger + user_of + acts_for + parent->read\n permission edit = editor + acts_for + parent->edit\n permission message = messenger + acts_for + parent->message\n permission use = user_of + acts_for + parent->use\n permission share = acts_for + parent->share\n}\n";
2
+ export declare const BUILTIN_SOURCE = "\ndefinition user {}\ndefinition app {}\ndefinition crtr/group {\n relation member: user | crtr/group#member\n relation admin: user\n}\ndefinition crtr/object {\n relation parent: crtr/object\n relation acts_for: user\n relation reader: user | user:* | crtr/group#member\n relation editor: user | crtr/group#member\n relation messenger: user | crtr/group#member\n relation user_of: user | crtr/group#member\n relation sharer: crtr/group#admin\n permission read = reader + editor + messenger + user_of + acts_for + parent->read\n permission edit = editor + acts_for + parent->edit\n permission message = messenger + acts_for + parent->message\n permission use = user_of + acts_for + parent->use\n permission share = acts_for + sharer + parent->share\n}\n";
3
3
  export declare const OBJECT_TYPE = "crtr/object";
4
4
  export type Definitions = ReadonlyMap<string, Definition>;
5
5
  export interface FactSubject {
@@ -8,6 +8,7 @@ definition user {}
8
8
  definition app {}
9
9
  definition crtr/group {
10
10
  relation member: user | crtr/group#member
11
+ relation admin: user
11
12
  }
12
13
  definition crtr/object {
13
14
  relation parent: crtr/object
@@ -16,11 +17,12 @@ definition crtr/object {
16
17
  relation editor: user | crtr/group#member
17
18
  relation messenger: user | crtr/group#member
18
19
  relation user_of: user | crtr/group#member
20
+ relation sharer: crtr/group#admin
19
21
  permission read = reader + editor + messenger + user_of + acts_for + parent->read
20
22
  permission edit = editor + acts_for + parent->edit
21
23
  permission message = messenger + acts_for + parent->message
22
24
  permission use = user_of + acts_for + parent->use
23
- permission share = acts_for + parent->share
25
+ permission share = acts_for + sharer + parent->share
24
26
  }
25
27
  `;
26
28
  const BUILTIN_DEFINITIONS = parseSchema(BUILTIN_SOURCE);
package/dist/version.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** This SDK's release version. Informational only: compatibility is the contract level, not this number. */
2
- export declare const SDK_VERSION = "0.3.668";
2
+ export declare const SDK_VERSION = "0.3.670";
3
3
  /** The release sent in `Crouter-Minimum-Runtime-Version` on every request. It is frozen, so a runtime from before the
4
4
  * contract level existed (which only knows this header) refuses this SDK, while every later runtime accepts it. */
5
5
  export declare const LEGACY_FLOOR = "0.3.423";
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // SDK_VERSION is written by scripts/release-version.mjs on every release; do not edit by hand.
2
2
  /** This SDK's release version. Informational only: compatibility is the contract level, not this number. */
3
- export const SDK_VERSION = '0.3.668';
3
+ export const SDK_VERSION = '0.3.670';
4
4
  // LEGACY_FLOOR is written once by `scripts/contract.mjs release`, at the first release that carries the contract level
5
5
  // (the `0.0.0` placeholder is replaced there and never again); do not edit by hand.
6
6
  /** The release sent in `Crouter-Minimum-Runtime-Version` on every request. It is frozen, so a runtime from before the
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@north-light/sdk",
3
- "version": "0.3.668",
4
- "crouterContract": "1.57",
3
+ "version": "0.3.670",
4
+ "crouterContract": "1.58",
5
5
  "description": "Typed Node and browser client for running crouter agents through the crtrd /v1 API.",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -44,9 +44,9 @@
44
44
  "prepublishOnly": "node -e \"if (process.env.npm_config_tag !== 'next') { console.error('@north-light/sdk publishes only with --tag next; scripts/promote-sdk.mjs is the only mover of latest.'); process.exit(1); }\""
45
45
  },
46
46
  "dependencies": {
47
- "@north-light/api": "0.3.668",
48
- "@north-light/identity": "0.3.668",
49
- "@north-light/plugin": "0.3.668",
47
+ "@north-light/api": "0.3.670",
48
+ "@north-light/identity": "0.3.670",
49
+ "@north-light/plugin": "0.3.670",
50
50
  "jose": "^6.2.1"
51
51
  },
52
52
  "peerDependencies": {