@deliverd/sdk 0.37.0 → 0.39.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 +34 -0
- package/dist/adapters/index.d.ts +6 -0
- package/dist/adapters/index.d.ts.map +1 -1
- package/dist/adapters/index.js +3 -0
- package/dist/adapters/muse-spark.d.ts +6 -0
- package/dist/adapters/muse-spark.d.ts.map +1 -1
- package/dist/adapters/muse-spark.js +7 -2
- 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/perplexity.d.ts +99 -0
- package/dist/adapters/perplexity.d.ts.map +1 -0
- package/dist/adapters/perplexity.js +150 -0
- package/dist/adapters/shared.d.ts +1 -1
- 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 +3101 -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 +42 -0
- package/src/adapters/muse-spark.ts +9 -3
- package/src/adapters/openrouter.ts +678 -0
- package/src/adapters/perplexity.ts +236 -0
- package/src/adapters/shared.ts +1 -1
- package/src/governance.ts +10 -0
- package/src/released.ts +3103 -0
- package/src/types.ts +36 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { approveAndRun } from "./muse-spark.js";
|
|
2
|
+
import { askAboutCall } from "./shared.js";
|
|
3
|
+
/**
|
|
4
|
+
* Perplexity's Agent API: a person decides the tool calls a run asks to make.
|
|
5
|
+
*
|
|
6
|
+
* The Agent API (`POST https://api.perplexity.ai/v1/agent`, also served at
|
|
7
|
+
* `/v1/responses` for the OpenAI SDK) runs the agent loop itself: search,
|
|
8
|
+
* fetch, any model through one key, remote MCP servers and the connectors a
|
|
9
|
+
* Project administrator set up. It stops for a person in two places, and this
|
|
10
|
+
* answers both:
|
|
11
|
+
*
|
|
12
|
+
* - **MCP servers and connectors with `require_approval`.** The call does not
|
|
13
|
+
* run; the response's `output` carries an `mcp_approval_request` instead,
|
|
14
|
+
* and the next request answers it with an `mcp_approval_response`. Perplexity
|
|
15
|
+
* runs MCP and connector calls without asking unless `require_approval` is
|
|
16
|
+
* set, unlike OpenAI's default, so set it on every server that can change
|
|
17
|
+
* something.
|
|
18
|
+
* - **Your own functions.** A `function_call` in `output` is a call your code
|
|
19
|
+
* makes, so your code is where a person comes in: only approved calls run,
|
|
20
|
+
* and a declined one answers the model with the person's reason.
|
|
21
|
+
*
|
|
22
|
+
* ```ts
|
|
23
|
+
* import Perplexity from "@perplexity-ai/perplexity_ai";
|
|
24
|
+
* import { Deliverd } from "@deliverd/sdk";
|
|
25
|
+
* import { runPerplexityWithDeliverd } from "@deliverd/sdk/adapters";
|
|
26
|
+
*
|
|
27
|
+
* const response = await runPerplexityWithDeliverd(new Perplexity(), {
|
|
28
|
+
* model: "openai/gpt-5.6-sol",
|
|
29
|
+
* input: "Close the stale issues in our tracker",
|
|
30
|
+
* tools: [{ type: "connector", id: "connector_linear", server_label: "linear", require_approval: "always" }],
|
|
31
|
+
* }, { deliverd: new Deliverd(), approvers: ["platform-team"] });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* Every call is keyed by its id (`perplexity:<id>`), so a retried round, or a
|
|
35
|
+
* process restarted mid-wait, finds the request it already made. Shapes are
|
|
36
|
+
* from Perplexity's Agent API reference (MCP tool, connectors, custom
|
|
37
|
+
* functions); nothing from `@perplexity-ai/perplexity_ai` is imported.
|
|
38
|
+
*/
|
|
39
|
+
const PREFIX = "perplexity:";
|
|
40
|
+
/**
|
|
41
|
+
* Ask about every `mcp_approval_request` in a response's `output`, and build
|
|
42
|
+
* the answers. A call `when` does not select is approved without asking.
|
|
43
|
+
* Other items are ignored.
|
|
44
|
+
*/
|
|
45
|
+
export async function answerPerplexityApprovals(output, options) {
|
|
46
|
+
const result = { responses: [], reasons: {} };
|
|
47
|
+
for (const request of approvalRequests(output)) {
|
|
48
|
+
const input = parseArguments(request.arguments);
|
|
49
|
+
let approve = true;
|
|
50
|
+
let reason;
|
|
51
|
+
if (!options.when || (await options.when(request.name, input))) {
|
|
52
|
+
const outcome = await askAboutCall(request.name, input, `${PREFIX}${request.id}`, {
|
|
53
|
+
...options,
|
|
54
|
+
metadata: {
|
|
55
|
+
...options.metadata,
|
|
56
|
+
...(request.server_label ? { server: request.server_label } : {}),
|
|
57
|
+
...(request.connector_id ? { connector: request.connector_id } : {}),
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
approve = outcome.allowed;
|
|
61
|
+
if (!outcome.allowed)
|
|
62
|
+
reason = outcome.reason;
|
|
63
|
+
}
|
|
64
|
+
const answer = { type: "mcp_approval_response", approval_request_id: request.id, approve };
|
|
65
|
+
if (reason) {
|
|
66
|
+
result.reasons[request.id] = reason;
|
|
67
|
+
if (options.sendReason !== false)
|
|
68
|
+
answer.reason = reason;
|
|
69
|
+
}
|
|
70
|
+
result.responses.push(answer);
|
|
71
|
+
}
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Ask about, and run, every `function_call` in a response's `output`. Only
|
|
76
|
+
* approved calls run; a declined one's output tells the model a person said
|
|
77
|
+
* no, and why. Every call gets an output, because the run cannot continue
|
|
78
|
+
* without one.
|
|
79
|
+
*/
|
|
80
|
+
export async function runPerplexityFunctionCalls(output, run, options) {
|
|
81
|
+
const results = [];
|
|
82
|
+
for (const item of output ?? []) {
|
|
83
|
+
if (item.type !== "function_call")
|
|
84
|
+
continue;
|
|
85
|
+
const call = item;
|
|
86
|
+
results.push({
|
|
87
|
+
type: "function_call_output",
|
|
88
|
+
call_id: call.call_id,
|
|
89
|
+
output: await approveAndRun(call.name, call.arguments, call.call_id, run, options, PREFIX),
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
return results;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Create a response, and keep answering its approval requests and running its
|
|
96
|
+
* function calls until it asks for nothing more.
|
|
97
|
+
*
|
|
98
|
+
* Each follow-up carries everything in `params` (`model`, `tools`,
|
|
99
|
+
* `instructions`) except `input`, which becomes the answers and outputs, with
|
|
100
|
+
* the last response's id as `previous_response_id`; or, with `replay`, the
|
|
101
|
+
* whole conversation so far. The `tools` array goes unchanged, as Perplexity
|
|
102
|
+
* requires. Non-streaming, foreground responses only.
|
|
103
|
+
*/
|
|
104
|
+
export async function runPerplexityWithDeliverd(client, params, options) {
|
|
105
|
+
const { input: firstInput, previous_response_id: _chain, ...carried } = params;
|
|
106
|
+
void _chain;
|
|
107
|
+
let response = await client.responses.create(params);
|
|
108
|
+
let history = toItems(firstInput);
|
|
109
|
+
const maxRounds = options.maxRounds ?? 10;
|
|
110
|
+
for (let round = 0;; round++) {
|
|
111
|
+
const output = response.output ?? [];
|
|
112
|
+
const asking = approvalRequests(output).length > 0;
|
|
113
|
+
const calling = !!options.run && output.some((item) => item.type === "function_call");
|
|
114
|
+
if (!asking && !calling)
|
|
115
|
+
return response;
|
|
116
|
+
if (round >= maxRounds) {
|
|
117
|
+
throw new Error(`The run was still asking for decisions after ${maxRounds} rounds. Raise maxRounds if that is expected.`);
|
|
118
|
+
}
|
|
119
|
+
const { responses } = await answerPerplexityApprovals(output, options);
|
|
120
|
+
const results = options.run ? await runPerplexityFunctionCalls(output, options.run, options) : [];
|
|
121
|
+
const answers = [...responses, ...results];
|
|
122
|
+
if (options.replay) {
|
|
123
|
+
history = [...history, ...output, ...answers];
|
|
124
|
+
response = await client.responses.create({ ...carried, input: history });
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
response = await client.responses.create({ ...carried, input: answers, previous_response_id: response.id });
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function approvalRequests(output) {
|
|
132
|
+
return (output ?? []).filter((item) => item.type === "mcp_approval_request" && !!item.id);
|
|
133
|
+
}
|
|
134
|
+
function toItems(input) {
|
|
135
|
+
if (input === undefined || input === null)
|
|
136
|
+
return [];
|
|
137
|
+
if (typeof input === "string")
|
|
138
|
+
return [{ type: "message", role: "user", content: input }];
|
|
139
|
+
return Array.isArray(input) ? [...input] : [input];
|
|
140
|
+
}
|
|
141
|
+
function parseArguments(raw) {
|
|
142
|
+
if (!raw)
|
|
143
|
+
return {};
|
|
144
|
+
try {
|
|
145
|
+
return JSON.parse(raw);
|
|
146
|
+
}
|
|
147
|
+
catch {
|
|
148
|
+
return raw;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -7,7 +7,7 @@ import type { ApprovalFactor, ApprovalRisk, Decision, FieldChange } from "../typ
|
|
|
7
7
|
* The adapters are written against each framework's own hook — the Claude
|
|
8
8
|
* Agent SDK's `canUseTool`, the AI SDK's `toolApproval`, the OpenAI Agents
|
|
9
9
|
* SDK's interruptions, LangGraph's `interrupt`, Mastra's suspended tool
|
|
10
|
-
* approvals, the function calls in a Muse Spark response — by shape rather than by
|
|
10
|
+
* approvals, OpenRouter's `PermissionRequest` hook and paused calls, the function calls in a Muse Spark response — by shape rather than by
|
|
11
11
|
* import, so `@deliverd/sdk` keeps its promise of no dependencies. Each
|
|
12
12
|
* shape was taken from that framework's published type definitions and is
|
|
13
13
|
* checked against them in this package's tests.
|
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,EAC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E,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAS5F,sGAAsG;IACtG,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAI7D;;;;OAIG;IACH,gBAAgB,CAAC,KAAK,GAAE,qBAA0B,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;IASpG,oHAAoH;IACpH,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC;IAIxG,6GAA6G;IAC7G,WAAW,CAAC,MAAM,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", "0.36.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", "0.38.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,ycA+CnB,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2HzC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAg9sCtD,CAAC"}
|