@deliverd/sdk 0.36.0 → 0.38.0
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/README.md +30 -0
- package/dist/adapters/index.d.ts +6 -2
- package/dist/adapters/index.d.ts.map +1 -1
- package/dist/adapters/index.js +3 -1
- package/dist/adapters/openrouter.d.ts +277 -0
- package/dist/adapters/openrouter.d.ts.map +1 -0
- package/dist/adapters/openrouter.js +439 -0
- package/dist/adapters/shared.d.ts +1 -1
- package/dist/adapters/ui-sdk.d.ts +43 -5
- package/dist/adapters/ui-sdk.d.ts.map +1 -1
- package/dist/adapters/ui-sdk.js +54 -8
- package/dist/governance.d.ts +6 -1
- package/dist/governance.d.ts.map +1 -1
- package/dist/governance.js +8 -0
- package/dist/released.d.ts +1 -1
- package/dist/released.d.ts.map +1 -1
- package/dist/released.js +3056 -0
- package/dist/types.d.ts +33 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adapters/index.ts +28 -2
- package/src/adapters/openrouter.ts +678 -0
- package/src/adapters/shared.ts +1 -1
- package/src/adapters/ui-sdk.ts +77 -13
- package/src/governance.ts +10 -0
- package/src/released.ts +3058 -0
- package/src/types.ts +36 -0
package/dist/adapters/ui-sdk.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { askAboutCall } from "./shared.js";
|
|
2
|
+
/**
|
|
3
|
+
* Steps a person has already approved through Deliverd, by identity. UI SDK
|
|
4
|
+
* hands the same step object to the bridge's `allow` and then to the one
|
|
5
|
+
* `registerTools` was given, so the second can tell that the person was
|
|
6
|
+
* already asked about this very step and not ask them twice.
|
|
7
|
+
*/
|
|
8
|
+
const approvedSteps = new WeakSet();
|
|
2
9
|
/**
|
|
3
10
|
* UI SDK's `allow` hook, answered by a person through Deliverd.
|
|
4
11
|
*
|
|
@@ -8,6 +15,7 @@ import { askAboutCall } from "./shared.js";
|
|
|
8
15
|
*/
|
|
9
16
|
export function deliverdAllow(options) {
|
|
10
17
|
const needsPerson = options.when ?? ((step) => Boolean(step.confirm));
|
|
18
|
+
const via = options.via !== undefined && VIA.test(options.via) ? options.via : undefined;
|
|
11
19
|
return async (step, context) => {
|
|
12
20
|
if (!needsPerson(step))
|
|
13
21
|
return true;
|
|
@@ -18,7 +26,7 @@ export function deliverdAllow(options) {
|
|
|
18
26
|
const response = await doFetch(options.endpoint, {
|
|
19
27
|
method: "POST",
|
|
20
28
|
headers: { "content-type": "application/json", ...headers },
|
|
21
|
-
body: JSON.stringify({ step: pickStep(step), nonce: nonce() }),
|
|
29
|
+
body: JSON.stringify({ step: pickStep(step), nonce: nonce(), ...(via ? { via } : {}) }),
|
|
22
30
|
signal: context?.signal,
|
|
23
31
|
});
|
|
24
32
|
const body = (await response.json().catch(() => null));
|
|
@@ -38,9 +46,40 @@ export function deliverdAllow(options) {
|
|
|
38
46
|
answer = { allowed: false, reason: "The approval route could not be reached, so the step was not run." };
|
|
39
47
|
}
|
|
40
48
|
options.onAnswer?.(answer, step);
|
|
49
|
+
if (answer.allowed && typeof step === "object" && step !== null)
|
|
50
|
+
approvedSteps.add(step);
|
|
41
51
|
return answer.allowed;
|
|
42
52
|
};
|
|
43
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* The `allow` that UI SDK's `registerTools` asks for, answered by a person
|
|
56
|
+
* through Deliverd. Use it when the browser's own agent (ChatGPT's site tools,
|
|
57
|
+
* or any browser with WebMCP) can use your page:
|
|
58
|
+
*
|
|
59
|
+
* ```ts
|
|
60
|
+
* registerTools(agent, {
|
|
61
|
+
* allow: deliverdWebMcpAllow({ endpoint: "/api/deliverd/ui-approval" }),
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* It asks about marked steps by default, as `deliverdAllow` does, and tells
|
|
66
|
+
* your route the browser's agent asked (`via: "webmcp"`). A step the bridge's
|
|
67
|
+
* own `deliverdAllow` already put to a person is not asked about again.
|
|
68
|
+
*
|
|
69
|
+
* Do not pass `allow: () => true` to `registerTools` unless the bridge has an
|
|
70
|
+
* `allow` that asks a person: with no bridge `allow`, UI SDK lets the browser's
|
|
71
|
+
* agent through a `data-agent-confirm` mark on that `true` alone.
|
|
72
|
+
*/
|
|
73
|
+
export function deliverdWebMcpAllow(options) {
|
|
74
|
+
const ask = deliverdAllow({ ...options, via: options.via ?? "webmcp" });
|
|
75
|
+
return async (step, context) => {
|
|
76
|
+
// The bridge's own deliverdAllow said yes to this very step a moment ago.
|
|
77
|
+
// Used once: the same object never counts for a later step.
|
|
78
|
+
if (typeof step === "object" && step !== null && approvedSteps.delete(step))
|
|
79
|
+
return true;
|
|
80
|
+
return ask(step, context);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
44
83
|
export const UI_SDK_DEFAULT_TIMEOUT = "4m";
|
|
45
84
|
/**
|
|
46
85
|
* The server half: a fetch-style `POST` handler (Next.js route handlers, Hono,
|
|
@@ -70,30 +109,34 @@ export function uiSdkApprovalRoute(options) {
|
|
|
70
109
|
const parsed = readBody(raw);
|
|
71
110
|
if (!parsed)
|
|
72
111
|
return json({ allowed: false, reason: "The step could not be read." }, 400);
|
|
73
|
-
const { step, nonce: id } = parsed;
|
|
74
|
-
|
|
112
|
+
const { step, nonce: id, via } = parsed;
|
|
113
|
+
const context = via ? { via } : {};
|
|
114
|
+
if (!(await needsPerson(step, request, context))) {
|
|
75
115
|
return json({ allowed: false, reason: "This step is not one this route asks a person about." }, 403);
|
|
76
116
|
}
|
|
77
117
|
const name = stepName(step);
|
|
78
118
|
const outcome = await askAboutCall(name, { component: step.component, ref: step.ref, action: step.action, args: step.args ?? [] }, `ui-sdk:${await sha256(canonical({ step, id }))}`, {
|
|
79
119
|
...options,
|
|
80
120
|
when: undefined,
|
|
81
|
-
describe: () => describe(step),
|
|
121
|
+
describe: () => describe(step, context),
|
|
82
122
|
timeout,
|
|
83
123
|
expiresIn: options.expiresIn ?? timeout,
|
|
84
|
-
metadata: { ...options.metadata, source: "ui-sdk" },
|
|
124
|
+
metadata: { ...options.metadata, source: "ui-sdk", ...(via ? { via } : {}) },
|
|
85
125
|
}, request.signal);
|
|
86
126
|
return json(outcome.allowed ? { allowed: true, decidedBy: outcome.decidedBy } : { allowed: false, reason: outcome.reason }, 200);
|
|
87
127
|
};
|
|
88
128
|
}
|
|
89
129
|
/** What an approver reads about a step, when the app did not write it. */
|
|
90
|
-
export function describeStep(step) {
|
|
130
|
+
export function describeStep(step, context = {}) {
|
|
91
131
|
const target = step.label ? `"${step.label}"` : `the ${step.component}`;
|
|
92
132
|
const verb = step.action === "press" ? "press" : step.action === "setValue" ? "set" : step.action;
|
|
93
133
|
const values = (step.args ?? []).map((arg) => (typeof arg === "string" ? arg : JSON.stringify(arg))).join(", ");
|
|
94
134
|
const lines = [
|
|
95
135
|
step.confirm ? `The app says this: ${step.confirm}` : undefined,
|
|
96
136
|
`An agent wants to ${verb} ${target}${values ? ` (${truncate(values, 500)})` : ""} in the app.`,
|
|
137
|
+
context.via === "webmcp"
|
|
138
|
+
? "It is the browser's own agent, using the page through WebMCP, not an agent the app runs."
|
|
139
|
+
: undefined,
|
|
97
140
|
].filter(Boolean);
|
|
98
141
|
return {
|
|
99
142
|
title: truncate(step.confirm ?? `Let the agent ${verb} ${target}`, 200),
|
|
@@ -102,6 +145,7 @@ export function describeStep(step) {
|
|
|
102
145
|
};
|
|
103
146
|
}
|
|
104
147
|
const BODY_MAX = 16_000;
|
|
148
|
+
const VIA = /^[a-z0-9-]{1,40}$/;
|
|
105
149
|
function stepName(step) {
|
|
106
150
|
return step.label ? `${step.action} "${step.label}"` : `${step.action} ${step.component}`;
|
|
107
151
|
}
|
|
@@ -119,7 +163,9 @@ function pickStep(step) {
|
|
|
119
163
|
function readBody(raw) {
|
|
120
164
|
if (typeof raw !== "object" || raw === null)
|
|
121
165
|
return null;
|
|
122
|
-
const { step, nonce: id } = raw;
|
|
166
|
+
const { step, nonce: id, via } = raw;
|
|
167
|
+
if (via !== undefined && (typeof via !== "string" || !VIA.test(via)))
|
|
168
|
+
return null;
|
|
123
169
|
if (typeof id !== "string" || id.length === 0 || id.length > 100)
|
|
124
170
|
return null;
|
|
125
171
|
if (typeof step !== "object" || step === null)
|
|
@@ -134,7 +180,7 @@ function readBody(raw) {
|
|
|
134
180
|
return null;
|
|
135
181
|
if (s.args !== undefined && !Array.isArray(s.args))
|
|
136
182
|
return null;
|
|
137
|
-
return { step: pickStep(s), nonce: id };
|
|
183
|
+
return { step: pickStep(s), nonce: id, ...(typeof via === "string" ? { via } : {}) };
|
|
138
184
|
}
|
|
139
185
|
function json(body, status) {
|
|
140
186
|
return new Response(JSON.stringify(body), { status, headers: { "content-type": "application/json" } });
|
package/dist/governance.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HttpClient } from "./http.js";
|
|
2
2
|
import { type PageOf } from "./paging.js";
|
|
3
|
-
import type { AiIncident, AiIncidentDetail, AiSystem, AiSystemDetail, AuthorityDecision, CheckAuthorityInput, CreateCustomFrameworkInput, CustomFramework, DraftedIncidentReport, DraftIncidentReportInput, FrameworkCatalogue, FrameworkMapping, FrameworkMappingInput, GovernanceSummary, GovernanceSummaryInput, IctRegister, ListIncidentsInput, ModelChangeInput, ModelChangeResult, RegisterAiSystemInput, ReportIncidentInput, UpdateAiSystemInput } from "./types.js";
|
|
3
|
+
import type { AiIncident, AiIncidentDetail, AiSystem, AiSystemDetail, AuthorityDecision, CheckAuthorityInput, CreateCustomFrameworkInput, CustomFramework, DraftedIncidentReport, DraftIncidentReportInput, FrameworkCatalogue, FrameworkMapping, FrameworkMappingInput, GovernanceSummary, GovernanceSummaryInput, IctRegister, ListIncidentsInput, UsePolicy, ModelChangeInput, ModelChangeResult, RegisterAiSystemInput, ReportIncidentInput, UpdateAiSystemInput } from "./types.js";
|
|
4
4
|
/**
|
|
5
5
|
* The organisation's register of AI systems. A governed task names one by
|
|
6
6
|
* `aiSystemId` instead of describing it again, and a change of model is
|
|
@@ -88,6 +88,11 @@ export declare class AiGovernance {
|
|
|
88
88
|
createCustomFramework(input: CreateCustomFrameworkInput, signal?: AbortSignal): Promise<CustomFramework>;
|
|
89
89
|
/** The ICT third-party register: providers, contracts, the AI systems under each, gaps and concentration. */
|
|
90
90
|
ictRegister(signal?: AbortSignal): Promise<IctRegister>;
|
|
91
|
+
/**
|
|
92
|
+
* The AI use policy: which data may go into which kind of AI tool. Read
|
|
93
|
+
* only; a person changes it in the app (Governance → AI use policy).
|
|
94
|
+
*/
|
|
95
|
+
aiUsePolicy(signal?: AbortSignal): Promise<UsePolicy>;
|
|
91
96
|
/** The organisation's AI governance in counts, optionally narrowed. Never a compliance percentage. */
|
|
92
97
|
summary(input?: GovernanceSummaryInput, signal?: AbortSignal): Promise<GovernanceSummary>;
|
|
93
98
|
}
|
package/dist/governance.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"governance.d.ts","sourceRoot":"","sources":["../src/governance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAiB,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,EACf,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAIpB;;;;GAIG;AACH,qBAAa,SAAS;IACR,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE7C,6DAA6D;IACvD,IAAI,CAAC,KAAK,GAAE;QAAE,MAAM,CAAC,EAAE,QAAQ,C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M,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAIvD;;;OAGG;IACG,WAAW,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC;IAK3D,sGAAsG;IACtG,OAAO,CAAC,KAAK,GAAE,sBAA2B,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAQ9F"}
|
package/dist/governance.js
CHANGED
|
@@ -154,6 +154,14 @@ export class AiGovernance {
|
|
|
154
154
|
ictRegister(signal) {
|
|
155
155
|
return this.http.request({ method: "GET", path: "/governance/ict-register", signal });
|
|
156
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* The AI use policy: which data may go into which kind of AI tool. Read
|
|
159
|
+
* only; a person changes it in the app (Governance → AI use policy).
|
|
160
|
+
*/
|
|
161
|
+
async aiUsePolicy(signal) {
|
|
162
|
+
const { policy } = await this.http.request({ method: "GET", path: "/governance/ai-use-policy", signal });
|
|
163
|
+
return policy;
|
|
164
|
+
}
|
|
157
165
|
/** The organisation's AI governance in counts, optionally narrowed. Never a compliance percentage. */
|
|
158
166
|
summary(input = {}, signal) {
|
|
159
167
|
return this.http.request({
|
package/dist/released.d.ts
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* **Add the version here when you publish it, not before.** An entry is a
|
|
44
44
|
* claim that `npm install @deliverd/sdk@x` works today.
|
|
45
45
|
*/
|
|
46
|
-
export declare const PUBLISHED_TO_NPM: readonly ["0.1.0", "0.2.0", "0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.6.2", "0.7.0", "0.7.1", "0.8.0", "0.8.1", "0.8.2", "0.9.0", "0.10.0", "0.11.0", "0.11.1", "0.12.0", "0.13.0", "0.14.0", "0.15.0", "0.16.0", "0.17.0", "0.18.0", "0.19.0", "0.20.0", "0.21.0", "0.22.0", "0.23.0", "0.24.0", "0.24.1", "0.25.0", "0.25.1", "0.26.0", "0.27.0", "0.28.0", "0.29.0", "0.30.0", "0.31.0", "0.32.0", "0.33.0", "0.34.0", "0.35.0"];
|
|
46
|
+
export declare const PUBLISHED_TO_NPM: readonly ["0.1.0", "0.2.0", "0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.6.2", "0.7.0", "0.7.1", "0.8.0", "0.8.1", "0.8.2", "0.9.0", "0.10.0", "0.11.0", "0.11.1", "0.12.0", "0.13.0", "0.14.0", "0.15.0", "0.16.0", "0.17.0", "0.18.0", "0.19.0", "0.20.0", "0.21.0", "0.22.0", "0.23.0", "0.24.0", "0.24.1", "0.25.0", "0.25.1", "0.26.0", "0.27.0", "0.28.0", "0.29.0", "0.30.0", "0.31.0", "0.32.0", "0.33.0", "0.34.0", "0.35.0", "0.36.0", "0.37.0"];
|
|
47
47
|
/**
|
|
48
48
|
* A fingerprint of what each *published* version recorded.
|
|
49
49
|
*
|
package/dist/released.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"released.d.ts","sourceRoot":"","sources":["../src/released.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"released.d.ts","sourceRoot":"","sources":["../src/released.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,+bA8CnB,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyHzC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CA+7pCtD,CAAC"}
|