@north-light/sdk 0.3.803 → 0.3.804

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.
@@ -34,6 +34,8 @@ export interface MemoryListItem {
34
34
  created_at: string;
35
35
  /** The time of the current revision. */
36
36
  updated_at: string;
37
+ /** `app:<id>` of the app whose node wrote revision 1; `null` when the person wrote it. */
38
+ grantee: string | null;
37
39
  }
38
40
  /** A page of `memory.list`, ordered by name. */
39
41
  export interface MemoryListPage {
@@ -49,8 +51,6 @@ export interface MemoryDocument extends MemoryListItem {
49
51
  size: number;
50
52
  /** `true` when `size` is over 1 MiB and `body` is its prefix. */
51
53
  truncated: boolean;
52
- /** `app:<id>` of the app whose node wrote revision 1; `null` when the person wrote it. */
53
- grantee: string | null;
54
54
  }
55
55
  /**
56
56
  * Reads the documents the person owns. The daemon filters each one by the caller's
@@ -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.803"
5
+ sdk-version: "0.3.804"
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.803`. 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.804`. 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
 
@@ -826,7 +826,7 @@ export class FakeCloud {
826
826
  let end = Math.min(full.length, MEMORY_BODY_MAX_BYTES);
827
827
  while (end < full.length && end > 0 && (full[end] & 0xc0) === 0x80)
828
828
  end--;
829
- return { status: 200, body: { ...memoryItem(doc), body: full.subarray(0, end).toString('utf8'), size: full.length, truncated: end < full.length, grantee: null } };
829
+ return { status: 200, body: { ...memoryItem(doc), body: full.subarray(0, end).toString('utf8'), size: full.length, truncated: end < full.length } };
830
830
  }
831
831
  case 'provider.tools': return this.providerTools(user, id);
832
832
  case 'provider.call': return this.providerCall(user, body, signal);
@@ -1155,7 +1155,7 @@ export class FakeCloud {
1155
1155
  function memoryItem(doc) {
1156
1156
  const cut = doc.name.lastIndexOf('/');
1157
1157
  return {
1158
- name: doc.name, folder: cut < 0 ? '' : doc.name.slice(0, cut), kind: doc.kind, preview: doc.preview, summary: doc.summary,
1158
+ name: doc.name, folder: cut < 0 ? '' : doc.name.slice(0, cut), kind: doc.kind, grantee: null, preview: doc.preview, summary: doc.summary,
1159
1159
  privacy: doc.privacy, revision: doc.revision, created_at: doc.created_at, updated_at: doc.updated_at,
1160
1160
  };
1161
1161
  }
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.803";
2
+ export declare const SDK_VERSION = "0.3.804";
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.803';
3
+ export const SDK_VERSION = '0.3.804';
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.803",
4
- "crouterContract": "1.93",
3
+ "version": "0.3.804",
4
+ "crouterContract": "1.94",
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.803",
48
- "@north-light/identity": "0.3.803",
49
- "@north-light/plugin": "0.3.803",
47
+ "@north-light/api": "0.3.804",
48
+ "@north-light/identity": "0.3.804",
49
+ "@north-light/plugin": "0.3.804",
50
50
  "jose": "^6.2.1"
51
51
  },
52
52
  "peerDependencies": {