@north-light/sdk 0.3.472 → 0.3.473
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/client.d.ts +3 -0
- package/dist/client.js +1 -0
- package/dist/skill/northlight/SKILL.md +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/dist/client.d.ts
CHANGED
|
@@ -68,7 +68,9 @@ export type OwnerOnly = 'nodes' | 'bash' | 'canvas' | 'crons' | 'structuredReque
|
|
|
68
68
|
/** What an app reaches on a person's runtime (the app listener): `Crouter` without the owner-daemon namespaces, `files.download`
|
|
69
69
|
* only, and `profiles.list` only. `Crouter` is assignable to it, so a function that takes `AppClient` takes either. */
|
|
70
70
|
export type AppClient = Omit<Crouter, OwnerOnly | 'files' | 'profiles'> & {
|
|
71
|
+
/** Download a file the person's runtime holds (`files.download`); the other `files` calls are owner-daemon only. */
|
|
71
72
|
readonly files: Pick<Files, 'download'>;
|
|
73
|
+
/** The profiles the app may start runs with (`profiles.list`); `ensure` and `retrieve` are owner-daemon only. */
|
|
72
74
|
readonly profiles: Pick<Crouter['profiles'], 'list'>;
|
|
73
75
|
};
|
|
74
76
|
/**
|
|
@@ -112,6 +114,7 @@ export declare class Crouter {
|
|
|
112
114
|
};
|
|
113
115
|
/** Read, write, and list absolute host paths. */
|
|
114
116
|
readonly files: Files;
|
|
117
|
+
/** Start a run on the person's runtime, read its status, outcome and trace, parse a typed result, message it, and stream or watch it. */
|
|
115
118
|
readonly runs: Runs;
|
|
116
119
|
/** Uploads to runtime storage, for files a run prompt or message names (app listener only). */
|
|
117
120
|
readonly uploads: Uploads;
|
package/dist/client.js
CHANGED
|
@@ -53,6 +53,7 @@ export class Crouter {
|
|
|
53
53
|
auth;
|
|
54
54
|
/** Read, write, and list absolute host paths. */
|
|
55
55
|
files;
|
|
56
|
+
/** Start a run on the person's runtime, read its status, outcome and trace, parse a typed result, message it, and stream or watch it. */
|
|
56
57
|
runs;
|
|
57
58
|
/** Uploads to runtime storage, for files a run prompt or message names (app listener only). */
|
|
58
59
|
uploads;
|
|
@@ -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.
|
|
5
|
+
sdk-version: "0.3.473"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Building a Northlight app
|
|
@@ -11,7 +11,7 @@ An app on Northlight signs people in with their Northlight account, then starts
|
|
|
11
11
|
|
|
12
12
|
## First: check this skill matches the SDK
|
|
13
13
|
|
|
14
|
-
This skill is for SDK version `0.3.
|
|
14
|
+
This skill is for SDK version `0.3.473`. 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. That command needs no account and no crtr. A project that has no SDK yet starts with `npx @north-light/sdk@latest init <dir>`.
|
|
15
15
|
|
|
16
16
|
## Where things run
|
|
17
17
|
|
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.
|
|
2
|
+
export declare const SDK_VERSION = "0.3.473";
|
|
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.
|
|
3
|
+
export const SDK_VERSION = '0.3.473';
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.473",
|
|
4
4
|
"crouterContract": "1.7",
|
|
5
5
|
"description": "Typed Node and browser client for running crouter agents through the crtrd /v1 API.",
|
|
6
6
|
"type": "module",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"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); }\""
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@north-light/api": "0.3.
|
|
45
|
-
"@north-light/identity": "0.3.
|
|
44
|
+
"@north-light/api": "0.3.473",
|
|
45
|
+
"@north-light/identity": "0.3.473",
|
|
46
46
|
"jose": "^6.2.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|