@north-light/sdk 0.3.886 → 0.3.888
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 +5 -0
- package/dist/client.js +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/resources/audit.d.ts +28 -0
- package/dist/resources/audit.js +11 -0
- package/dist/resources/conversations.d.ts +37 -0
- package/dist/resources/conversations.js +14 -0
- package/dist/resources/docs.d.ts +9 -1
- package/dist/resources/docs.js +16 -0
- package/dist/resources/reviews.d.ts +15 -2
- package/dist/resources/reviews.js +30 -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 +5 -5
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CheckDTO } from '@north-light/api';
|
|
2
|
+
import { Audit } from './resources/audit.js';
|
|
2
3
|
import { Canvas } from './resources/canvas.js';
|
|
3
4
|
import { Crons } from './resources/crons.js';
|
|
4
5
|
import { Docs } from './resources/docs.js';
|
|
@@ -17,6 +18,7 @@ import { Providers } from './resources/providers.js';
|
|
|
17
18
|
import { Runs } from './resources/runs.js';
|
|
18
19
|
import { Shares } from './resources/shares.js';
|
|
19
20
|
import { Memory } from './resources/memory.js';
|
|
21
|
+
import { Conversations } from './resources/conversations.js';
|
|
20
22
|
import { Uploads } from './resources/uploads.js';
|
|
21
23
|
import type { RequestOptions } from './types.js';
|
|
22
24
|
import type { AppMachine, AppProfile } from './resources/runs.js';
|
|
@@ -97,9 +99,12 @@ export declare class Crouter {
|
|
|
97
99
|
readonly questions: Questions;
|
|
98
100
|
/** Reviews of documents agents in runs asked the person to review (app listener only). */
|
|
99
101
|
readonly reviews: Reviews;
|
|
102
|
+
/** The authorizations the runtime recorded for this app. */
|
|
103
|
+
readonly audit: Audit;
|
|
100
104
|
/** Read the documents the person owns (`store: 'user'`): an app sees their `public` documents, `private` ones too while the grant holds
|
|
101
105
|
* `crtr:memory:read_private:user` (read-only), and `crtr:memory:manage:user` covers both. */
|
|
102
106
|
readonly memory: Memory;
|
|
107
|
+
readonly conversations: Conversations;
|
|
103
108
|
/** Write, read and edit documents the calling app owns (`docs.write`, `docs.edit`, `docs.get`): for example one app-owned `preference` with a `boot` rule that carries the app's agent instructions. */
|
|
104
109
|
readonly docs: Docs;
|
|
105
110
|
/** Schedule, list, pause, resume, run and delete the cron jobs the calling app's grant owns (`crtr:schedule` to change one). */
|
package/dist/client.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIError, CrtrClient, CONTRACT_HEADER, CONTRACT_LEVEL, MINIMUM_RUNTIME_VERSION_HEADER, REQUIRED_CONTRACT_HEADER, RUNTIME_VERSION_HEADER, contractSatisfies, routes, } from '@north-light/api';
|
|
2
2
|
import { CrouterError, mapError } from './errors.js';
|
|
3
|
+
import { Audit } from './resources/audit.js';
|
|
3
4
|
import { Canvas } from './resources/canvas.js';
|
|
4
5
|
import { Crons } from './resources/crons.js';
|
|
5
6
|
import { Docs } from './resources/docs.js';
|
|
@@ -18,6 +19,7 @@ import { Providers } from './resources/providers.js';
|
|
|
18
19
|
import { CAUSED_BY_HEADER, Runs } from './resources/runs.js';
|
|
19
20
|
import { Shares } from './resources/shares.js';
|
|
20
21
|
import { Memory } from './resources/memory.js';
|
|
22
|
+
import { Conversations } from './resources/conversations.js';
|
|
21
23
|
import { Uploads } from './resources/uploads.js';
|
|
22
24
|
import { deadline, heldReadOptions, withinDeadline } from './resources/request.js';
|
|
23
25
|
import { LEGACY_FLOOR, SDK_VERSION } from './version.js';
|
|
@@ -53,9 +55,12 @@ export class Crouter {
|
|
|
53
55
|
questions;
|
|
54
56
|
/** Reviews of documents agents in runs asked the person to review (app listener only). */
|
|
55
57
|
reviews;
|
|
58
|
+
/** The authorizations the runtime recorded for this app. */
|
|
59
|
+
audit;
|
|
56
60
|
/** Read the documents the person owns (`store: 'user'`): an app sees their `public` documents, `private` ones too while the grant holds
|
|
57
61
|
* `crtr:memory:read_private:user` (read-only), and `crtr:memory:manage:user` covers both. */
|
|
58
62
|
memory;
|
|
63
|
+
conversations;
|
|
59
64
|
/** Write, read and edit documents the calling app owns (`docs.write`, `docs.edit`, `docs.get`): for example one app-owned `preference` with a `boot` rule that carries the app's agent instructions. */
|
|
60
65
|
docs;
|
|
61
66
|
/** Schedule, list, pause, resume, run and delete the cron jobs the calling app's grant owns (`crtr:schedule` to change one). */
|
|
@@ -176,7 +181,9 @@ export class Crouter {
|
|
|
176
181
|
this.shares = new Shares(request);
|
|
177
182
|
this.questions = new Questions(request);
|
|
178
183
|
this.reviews = new Reviews(request);
|
|
184
|
+
this.audit = new Audit(request);
|
|
179
185
|
this.memory = new Memory(request);
|
|
186
|
+
this.conversations = new Conversations(request);
|
|
180
187
|
this.docs = new Docs(request);
|
|
181
188
|
this.crons = new Crons(request);
|
|
182
189
|
this.schemas = new Schemas(request);
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,9 @@ export type { Charges, ChargeListParams } from './resources/charges.js';
|
|
|
18
18
|
export type { Environments } from './resources/environments.js';
|
|
19
19
|
export type { SpendLimits } from './resources/spend-limits.js';
|
|
20
20
|
export type { MemoryDocument, MemoryGetParams, MemoryListItem, MemoryListPage, MemoryListParams } from './resources/memory.js';
|
|
21
|
+
export type { ConversationSearchField, ConversationSearchHit, ConversationSearchPage, ConversationSearchParams } from './resources/conversations.js';
|
|
21
22
|
export type { Question, QuestionAnswered, QuestionCanceled, QuestionFields, QuestionHistory, QuestionHistoryItem, QuestionKind, QuestionResponses, QuestionSettledBy, QuestionSlot, QuestionStatus } from './resources/questions.js';
|
|
23
|
+
export type { AuditListParams, AuditPage, AuditRow } from './resources/audit.js';
|
|
22
24
|
export type { ReviewListQuery, SubmitReviewRequest } from './resources/reviews.js';
|
|
23
25
|
export type { ProviderToolEntry } from './resources/providers.js';
|
|
24
26
|
export { OAuth2Client, ConnectedCrouter, MemoryConnectionStore, profileFromClaims } from './oauth/index.js';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { RequestOptions } from '../types.js';
|
|
2
|
+
import { type Request } from './request.js';
|
|
3
|
+
/** `audit.list` filters. `after` is the previous page's `next`; `since` and `until` are ISO times. */
|
|
4
|
+
export interface AuditListParams {
|
|
5
|
+
after?: string | number;
|
|
6
|
+
/** 1–1000; the server defaults to 100. */
|
|
7
|
+
limit?: number;
|
|
8
|
+
operation?: string;
|
|
9
|
+
outcome?: string;
|
|
10
|
+
run_id?: string;
|
|
11
|
+
since?: string;
|
|
12
|
+
until?: string;
|
|
13
|
+
}
|
|
14
|
+
/** One authorization record. Columns follow the runtime's audit table; `initiator_chain` is null when the call named no person. */
|
|
15
|
+
export type AuditRow = Record<string, unknown> & {
|
|
16
|
+
initiator_chain: unknown;
|
|
17
|
+
};
|
|
18
|
+
/** A page of audit rows, newest first. `next` is the `after` for the following page, or null on the last. */
|
|
19
|
+
export interface AuditPage {
|
|
20
|
+
rows: AuditRow[];
|
|
21
|
+
next: string | null;
|
|
22
|
+
}
|
|
23
|
+
/** The authorizations the runtime recorded for the calling app (app listener). An app reads only its own rows. */
|
|
24
|
+
export declare class Audit {
|
|
25
|
+
private readonly request;
|
|
26
|
+
constructor(request: Request);
|
|
27
|
+
list(params?: AuditListParams, options?: RequestOptions): Promise<AuditPage>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { withQuery } from './request.js';
|
|
2
|
+
/** The authorizations the runtime recorded for the calling app (app listener). An app reads only its own rows. */
|
|
3
|
+
export class Audit {
|
|
4
|
+
request;
|
|
5
|
+
constructor(request) {
|
|
6
|
+
this.request = request;
|
|
7
|
+
}
|
|
8
|
+
list(params = {}, options) {
|
|
9
|
+
return this.request('GET', withQuery('/v1/audit', params), undefined, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { RequestOptions } from '../types.js';
|
|
2
|
+
import type { Request } from './request.js';
|
|
3
|
+
/** `conversations.search` input. */
|
|
4
|
+
export interface ConversationSearchParams {
|
|
5
|
+
/** Words to find. Every word must appear; the last also matches as a prefix, so a type-ahead can send what is typed so far. */
|
|
6
|
+
query: string;
|
|
7
|
+
/** Only text written at or after this time (unix ms). */
|
|
8
|
+
sinceMs?: number;
|
|
9
|
+
/** Only text written before this time (unix ms). */
|
|
10
|
+
untilMs?: number;
|
|
11
|
+
/** 1 to 100; default 20. */
|
|
12
|
+
limit?: number;
|
|
13
|
+
/** The previous page's `nextCursor`, unchanged. */
|
|
14
|
+
cursor?: string;
|
|
15
|
+
}
|
|
16
|
+
export type ConversationSearchField = 'title' | 'description' | 'recap' | 'park_summary' | 'user' | 'assistant';
|
|
17
|
+
/** One conversation with the best text that matched in it. */
|
|
18
|
+
export interface ConversationSearchHit {
|
|
19
|
+
runId: string;
|
|
20
|
+
title: string | null;
|
|
21
|
+
/** Which text matched. */
|
|
22
|
+
matched: ConversationSearchField;
|
|
23
|
+
/** The text around the match, each matched word in `<b>…</b>`. The text itself is not escaped: escape it before inserting as HTML, keeping only those tags. */
|
|
24
|
+
snippet: string;
|
|
25
|
+
/** When the matched text was written (unix ms). */
|
|
26
|
+
timestamp: number;
|
|
27
|
+
}
|
|
28
|
+
export interface ConversationSearchPage {
|
|
29
|
+
hits: ConversationSearchHit[];
|
|
30
|
+
nextCursor?: string;
|
|
31
|
+
}
|
|
32
|
+
/** Search the person's resident conversations (app listener). Matches the title, description, latest recap and park summary, and the person's and the assistant's messages; never tool calls, tool results or thinking. */
|
|
33
|
+
export declare class Conversations {
|
|
34
|
+
private readonly request;
|
|
35
|
+
constructor(request: Request);
|
|
36
|
+
search(params: ConversationSearchParams, options?: RequestOptions): Promise<ConversationSearchPage>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Search the person's resident conversations (app listener). Matches the title, description, latest recap and park summary, and the person's and the assistant's messages; never tool calls, tool results or thinking. */
|
|
2
|
+
export class Conversations {
|
|
3
|
+
request;
|
|
4
|
+
constructor(request) {
|
|
5
|
+
this.request = request;
|
|
6
|
+
}
|
|
7
|
+
async search(params, options) {
|
|
8
|
+
const body = { query: params.query, ...(params.sinceMs === undefined ? {} : { since_ms: params.sinceMs }), ...(params.untilMs === undefined ? {} : { until_ms: params.untilMs }),
|
|
9
|
+
...(params.limit === undefined ? {} : { limit: params.limit }), ...(params.cursor === undefined ? {} : { cursor: params.cursor }) };
|
|
10
|
+
const page = await this.request('POST', '/v1/conversations/search', body, options);
|
|
11
|
+
return { hits: page.hits.map((hit) => ({ runId: hit.run_id, title: hit.title, matched: hit.matched, snippet: hit.snippet, timestamp: hit.timestamp })),
|
|
12
|
+
...(page.next_cursor === undefined ? {} : { nextCursor: page.next_cursor }) };
|
|
13
|
+
}
|
|
14
|
+
}
|
package/dist/resources/docs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DeliveryRuleDTO, type DocDeletedDTO, type DocEditedDTO, type DocEditRequest, type DocKindName, type DocWriteRequest, type DocWrittenDTO, type ObjectDTO, type ObjectListDTO, type ObjectListRequest, type ObjectSearchDTO, type ObjectSearchRequest } from '@north-light/api';
|
|
1
|
+
import { type DeliveryRuleDTO, type DocDeletedDTO, type DocHistoryDTO, type DocHistoryQuery, type DocLintDTO, type DocLintRequest, type DocMovedDTO, type DocMoveRequest, type EdgesDTO, type EdgesQuery, type DocEditedDTO, type DocEditRequest, type DocKindName, type DocWriteRequest, type DocWrittenDTO, type ObjectDTO, type ObjectListDTO, type ObjectListRequest, type ObjectSearchDTO, type ObjectSearchRequest } from '@north-light/api';
|
|
2
2
|
import type { RequestOptions } from '../types.js';
|
|
3
3
|
import { type Request } from './request.js';
|
|
4
4
|
/** `docs.write` input. */
|
|
@@ -71,6 +71,14 @@ export declare class Docs {
|
|
|
71
71
|
edit(ref: string, params: DocEditParams, options?: RequestOptions): Promise<DocEditedDTO>;
|
|
72
72
|
/** Delete a document (`ref` is its canonical name or id) and, when it is schema-typed, its facts. Refused like any write the caller may not make. */
|
|
73
73
|
delete(ref: string, options?: RequestOptions): Promise<DocDeletedDTO>;
|
|
74
|
+
/** Rename a document or change its owner (`new_name`, `owner`). Returns its new canonical name. */
|
|
75
|
+
move(ref: string, params: DocMoveRequest, options?: RequestOptions): Promise<DocMovedDTO>;
|
|
76
|
+
/** A document's revisions; `diff` is a revision number to include a diff against. */
|
|
77
|
+
history(ref: string, query?: DocHistoryQuery, options?: RequestOptions): Promise<DocHistoryDTO>;
|
|
78
|
+
/** Lint documents; each finding is an `error` or `warning`. */
|
|
79
|
+
lint(params?: DocLintRequest, options?: RequestOptions): Promise<DocLintDTO>;
|
|
80
|
+
/** The links and watches into and out of one object, filtered by `type` and `direction`. */
|
|
81
|
+
edges(ref: string, query?: EdgesQuery, options?: RequestOptions): Promise<EdgesDTO>;
|
|
74
82
|
/** List the objects the app may read, newest first, a page at a time; `extensions` and `schema_type` filter inside the query, before the page limit. */
|
|
75
83
|
list(params?: DocListParams, options?: RequestOptions): Promise<ObjectListDTO>;
|
|
76
84
|
/** Search objects by name, `body` text or `grep`; `extensions` and `schema_type` filter inside the query in every mode. */
|
package/dist/resources/docs.js
CHANGED
|
@@ -24,6 +24,22 @@ export class Docs {
|
|
|
24
24
|
delete(ref, options) {
|
|
25
25
|
return this.request('DELETE', routes.doc(ref), undefined, options);
|
|
26
26
|
}
|
|
27
|
+
/** Rename a document or change its owner (`new_name`, `owner`). Returns its new canonical name. */
|
|
28
|
+
move(ref, params, options) {
|
|
29
|
+
return this.request('POST', routes.docMove(ref), params, options);
|
|
30
|
+
}
|
|
31
|
+
/** A document's revisions; `diff` is a revision number to include a diff against. */
|
|
32
|
+
history(ref, query, options) {
|
|
33
|
+
return this.request('GET', withQuery(routes.docHistory(ref), query), undefined, options);
|
|
34
|
+
}
|
|
35
|
+
/** Lint documents; each finding is an `error` or `warning`. */
|
|
36
|
+
lint(params = {}, options) {
|
|
37
|
+
return this.request('POST', routes.docsLint(), params, options);
|
|
38
|
+
}
|
|
39
|
+
/** The links and watches into and out of one object, filtered by `type` and `direction`. */
|
|
40
|
+
edges(ref, query, options) {
|
|
41
|
+
return this.request('GET', withQuery(routes.objectEdges(ref), query), undefined, options);
|
|
42
|
+
}
|
|
27
43
|
/** List the objects the app may read, newest first, a page at a time; `extensions` and `schema_type` filter inside the query, before the page limit. */
|
|
28
44
|
list(params = {}, options) {
|
|
29
45
|
const { extensions, ...rest } = params;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type CreateReviewCommentRequest, type EditReviewCommentRequest, type ListReviewCommentsQuery, type ReadReviewCommentEventsQuery, type ReviewCommentActionRequest, type ReviewCommentDetailDTO, type ReviewCommentEventsDTO, type ReviewCommentListDTO, type ReviewCommentMutationDTO, type DiscussDTO, PostDiscussMessageDTO, ReviewCancelResultDTO, ReviewDTO, ReviewDocumentBaseDTO, ReviewListDTO, ReviewStateDTO, ReviewSubmitResultDTO } from '@north-light/api';
|
|
2
2
|
import type { RequestOptions } from '../types.js';
|
|
3
3
|
import { type Request } from './request.js';
|
|
4
|
-
export type { ReviewCancelResultDTO, ReviewDTO, ReviewDocumentBaseDTO, ReviewListDTO, ReviewStateDTO, ReviewSubmitResultDTO };
|
|
4
|
+
export type { ReviewCommentDetailDTO, ReviewCommentEventsDTO, ReviewCommentListDTO, ReviewCommentMutationDTO, ReviewCancelResultDTO, ReviewDTO, ReviewDocumentBaseDTO, ReviewListDTO, ReviewStateDTO, ReviewSubmitResultDTO };
|
|
5
5
|
/** Filters for `reviews.list`. `run_id` keeps the reviews whose asking node belongs to that run. */
|
|
6
6
|
export interface ReviewListQuery {
|
|
7
7
|
state?: ReviewStateDTO;
|
|
@@ -34,4 +34,17 @@ export declare class Reviews {
|
|
|
34
34
|
discuss(reviewId: string, options?: RequestOptions): Promise<DiscussDTO>;
|
|
35
35
|
/** Post a Discuss message to the review's companion. It is not a review comment. */
|
|
36
36
|
postDiscuss(reviewId: string, text: string, options?: RequestOptions): Promise<PostDiscussMessageDTO>;
|
|
37
|
+
/** The review's comments, current projection. `status` `'all'` includes resolved and deleted ones. */
|
|
38
|
+
comments(reviewId: string, query?: Pick<ListReviewCommentsQuery, 'status'>, options?: RequestOptions): Promise<ReviewCommentListDTO>;
|
|
39
|
+
/** The review's append-only comment events after `since_seq`; pass `next_since_seq` back to continue. */
|
|
40
|
+
commentEvents(reviewId: string, query?: ReadReviewCommentEventsQuery, options?: RequestOptions): Promise<ReviewCommentEventsDTO>;
|
|
41
|
+
/** Add a comment anchored to text that occurs in the review's current document. Never retried: a retry could add a second comment. */
|
|
42
|
+
createComment(reviewId: string, body: CreateReviewCommentRequest, options?: RequestOptions): Promise<ReviewCommentMutationDTO>;
|
|
43
|
+
/** One comment with its event history. */
|
|
44
|
+
comment(commentId: string, options?: RequestOptions): Promise<ReviewCommentDetailDTO>;
|
|
45
|
+
/** Change a comment's text. `if_revision` refuses the edit when the comment moved on. */
|
|
46
|
+
editComment(commentId: string, body: EditReviewCommentRequest, options?: RequestOptions): Promise<ReviewCommentMutationDTO>;
|
|
47
|
+
resolveComment(commentId: string, body?: ReviewCommentActionRequest, options?: RequestOptions): Promise<ReviewCommentMutationDTO>;
|
|
48
|
+
reopenComment(commentId: string, body?: ReviewCommentActionRequest, options?: RequestOptions): Promise<ReviewCommentMutationDTO>;
|
|
49
|
+
deleteComment(commentId: string, body?: ReviewCommentActionRequest, options?: RequestOptions): Promise<ReviewCommentMutationDTO>;
|
|
37
50
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { routes } from '@north-light/api';
|
|
1
2
|
import { pathSegment } from './identifiers.js';
|
|
2
3
|
import { withQuery } from './request.js';
|
|
3
4
|
/** Reviews of documents that agents in the caller's runs asked the person to review (app listener only).
|
|
@@ -32,6 +33,35 @@ export class Reviews {
|
|
|
32
33
|
postDiscuss(reviewId, text, options = {}) {
|
|
33
34
|
return this.request('POST', `${reviewPath(reviewId)}/discuss`, { text }, { ...options, maxRetries: 0 });
|
|
34
35
|
}
|
|
36
|
+
/** The review's comments, current projection. `status` `'all'` includes resolved and deleted ones. */
|
|
37
|
+
comments(reviewId, query, options) {
|
|
38
|
+
return this.request('GET', withQuery(routes.humanReviewComments(pathSegment(reviewId, 'review id')), query), undefined, options);
|
|
39
|
+
}
|
|
40
|
+
/** The review's append-only comment events after `since_seq`; pass `next_since_seq` back to continue. */
|
|
41
|
+
commentEvents(reviewId, query, options) {
|
|
42
|
+
return this.request('GET', withQuery(routes.humanReviewCommentEvents(pathSegment(reviewId, 'review id')), query), undefined, options);
|
|
43
|
+
}
|
|
44
|
+
/** Add a comment anchored to text that occurs in the review's current document. Never retried: a retry could add a second comment. */
|
|
45
|
+
createComment(reviewId, body, options = {}) {
|
|
46
|
+
return this.request('POST', routes.humanReviewComments(pathSegment(reviewId, 'review id')), body, { ...options, maxRetries: 0 });
|
|
47
|
+
}
|
|
48
|
+
/** One comment with its event history. */
|
|
49
|
+
comment(commentId, options) {
|
|
50
|
+
return this.request('GET', routes.humanComment(pathSegment(commentId, 'comment id')), undefined, options);
|
|
51
|
+
}
|
|
52
|
+
/** Change a comment's text. `if_revision` refuses the edit when the comment moved on. */
|
|
53
|
+
editComment(commentId, body, options = {}) {
|
|
54
|
+
return this.request('POST', routes.humanCommentEdit(pathSegment(commentId, 'comment id')), body, { ...options, maxRetries: 0 });
|
|
55
|
+
}
|
|
56
|
+
resolveComment(commentId, body = {}, options = {}) {
|
|
57
|
+
return this.request('POST', routes.humanCommentResolve(pathSegment(commentId, 'comment id')), body, { ...options, maxRetries: 0 });
|
|
58
|
+
}
|
|
59
|
+
reopenComment(commentId, body = {}, options = {}) {
|
|
60
|
+
return this.request('POST', routes.humanCommentReopen(pathSegment(commentId, 'comment id')), body, { ...options, maxRetries: 0 });
|
|
61
|
+
}
|
|
62
|
+
deleteComment(commentId, body = {}, options = {}) {
|
|
63
|
+
return this.request('POST', routes.humanCommentDelete(pathSegment(commentId, 'comment id')), body, { ...options, maxRetries: 0 });
|
|
64
|
+
}
|
|
35
65
|
}
|
|
36
66
|
function reviewPath(id) {
|
|
37
67
|
return `/v1/human/reviews/${encodeURIComponent(pathSegment(id, 'review id'))}`;
|
|
@@ -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.888"
|
|
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.
|
|
30
|
+
This skill is for SDK version `0.3.888`. 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
|
|
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.888";
|
|
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.888';
|
|
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.
|
|
4
|
-
"crouterContract": "1.
|
|
3
|
+
"version": "0.3.888",
|
|
4
|
+
"crouterContract": "1.113",
|
|
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",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"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); }\""
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@north-light/api": "0.3.
|
|
54
|
-
"@north-light/identity": "0.3.
|
|
55
|
-
"@north-light/plugin": "0.3.
|
|
53
|
+
"@north-light/api": "0.3.888",
|
|
54
|
+
"@north-light/identity": "0.3.888",
|
|
55
|
+
"@north-light/plugin": "0.3.888",
|
|
56
56
|
"jose": "^6.2.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|