pico-engine 1.9.4 → 1.10.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 +13 -5
- package/demos/bootstrap/README.md +12 -0
- package/demos/bootstrap/com.example.visitors.bootstrap.krl +101 -0
- package/demos/bootstrap/com.example.visitors.format.krl +25 -0
- package/demos/bootstrap/com.example.visitors.krl +228 -0
- package/demos/bootstrap/try-it.md +5 -0
- package/demos/child_tasks/README.md +12 -0
- package/demos/child_tasks/com.example.task_runner.bootstrap.krl +88 -0
- package/demos/child_tasks/com.example.task_runner.krl +139 -0
- package/demos/child_tasks/com.example.task_worker.krl +45 -0
- package/demos/child_tasks/try-it.md +5 -0
- package/demos/collection/README.md +13 -0
- package/demos/collection/com.example.collection.bootstrap.krl +148 -0
- package/demos/collection/com.example.collection.krl +95 -0
- package/demos/collection/com.example.collection.report.krl +93 -0
- package/demos/collection/com.example.collection.room.krl +101 -0
- package/demos/collection/try-it.md +6 -0
- package/demos/echo/README.md +11 -0
- package/demos/echo/com.example.echo.bootstrap.krl +84 -0
- package/demos/echo/com.example.echo.krl +73 -0
- package/demos/echo/try-it.md +5 -0
- package/demos/guard_rules/README.md +12 -0
- package/demos/guard_rules/com.example.archive.bootstrap.krl +98 -0
- package/demos/guard_rules/com.example.archive.krl +213 -0
- package/demos/guard_rules/com.example.archive_store.krl +36 -0
- package/demos/guard_rules/try-it.md +5 -0
- package/demos/json_query/README.md +11 -0
- package/demos/json_query/com.example.json_query.bootstrap.krl +84 -0
- package/demos/json_query/com.example.json_query.krl +162 -0
- package/demos/json_query/try-it.md +5 -0
- package/demos/kblog/README.md +14 -0
- package/demos/kblog/com.example.kblog.bootstrap.krl +135 -0
- package/demos/kblog/com.example.kblog.config.krl +50 -0
- package/demos/kblog/com.example.kblog.data.krl +75 -0
- package/demos/kblog/com.example.kblog.krl +184 -0
- package/demos/kblog/com.example.kblog.posting.krl +109 -0
- package/demos/kblog/try-it.md +6 -0
- package/demos/layered_rulesets/README.md +13 -0
- package/demos/layered_rulesets/com.example.invitations.bootstrap.krl +87 -0
- package/demos/layered_rulesets/com.example.invitations.krl +164 -0
- package/demos/layered_rulesets/com.example.invitations.short_links.krl +45 -0
- package/demos/layered_rulesets/com.example.invitations.welcome.krl +39 -0
- package/demos/layered_rulesets/try-it.md +5 -0
- package/demos/moving_picos/README.md +15 -0
- package/demos/moving_picos/io.picolabs.club_gear_demo.krl +650 -0
- package/demos/moving_picos/io.picolabs.ride_coordinator_demo.krl +331 -0
- package/demos/score_tracker/README.md +11 -0
- package/demos/score_tracker/com.example.score_tracker.bootstrap.krl +107 -0
- package/demos/score_tracker/com.example.score_tracker.krl +162 -0
- package/demos/score_tracker/try-it.md +5 -0
- package/demos/secrets/README.md +12 -0
- package/demos/secrets/com.example.hook_service.krl +120 -0
- package/demos/secrets/com.example.notifier.bootstrap.krl +130 -0
- package/demos/secrets/com.example.notifier.krl +138 -0
- package/demos/secrets/try-it.md +5 -0
- package/demos/try-it-order.json +1 -0
- package/demos/two_picos/README.md +12 -0
- package/demos/two_picos/com.example.two_picos.answerer.krl +125 -0
- package/demos/two_picos/com.example.two_picos.asker.krl +124 -0
- package/demos/two_picos/com.example.two_picos.bootstrap.krl +134 -0
- package/demos/two_picos/try-it.md +5 -0
- package/demos/xmlui/README.md +17 -0
- package/demos/xmlui/com.example.contacts.krl +132 -0
- package/demos/xmlui/com.example.fav_color.krl +39 -0
- package/demos/xmlui/com.example.guestbook.krl +61 -0
- package/demos/xmlui/com.example.hello.krl +19 -0
- package/demos/xmlui/com.example.temperature_sensors_view.krl +105 -0
- package/demos/xmlui/com.example.thermostat.bootstrap.krl +95 -0
- package/demos/xmlui/com.example.thermostat.krl +124 -0
- package/demos/xmlui/temperature_sensors.krl +56 -0
- package/demos/xmlui/try-it.md +5 -0
- package/dist/bundledKrl.js +97 -12
- package/dist/cli.js +7 -1
- package/dist/engineConfig.js +20 -1
- package/dist/identity/portableMove.js +5 -1
- package/dist/index.js +45 -12
- package/dist/internalAccess.js +110 -0
- package/dist/oauth/OAuthService.js +172 -10
- package/dist/oauth/acg.js +194 -24
- package/dist/oauth/cimd.js +381 -0
- package/dist/oauth/discovery.js +175 -0
- package/dist/runMcp.js +1 -1
- package/dist/server.js +210 -47
- package/dist/subtreeWrangler.js +8 -5
- package/dist/uiChannelPolicies.js +2 -0
- package/krl/io.picolabs.pds.krl +109 -21
- package/krl/io.picolabs.pico-engine-ui.krl +13 -7
- package/krl/io.picolabs.wrangler.krl +21 -9
- package/krl/io.picolabs.xmlui.krl +3 -2
- package/mcp/devResources.js +52 -0
- package/mcp/devTools.js +40 -9
- package/mcp/docs/CLAUDE.md +6 -4
- package/mcp/docs/cookbook/README.md +23 -0
- package/mcp/docs/cookbook/bootstrap/README.md +23 -0
- package/mcp/docs/cookbook/bootstrap/instructions.md +75 -0
- package/mcp/docs/cookbook/child_tasks/README.md +20 -0
- package/mcp/docs/cookbook/child_tasks/instructions.md +60 -0
- package/mcp/docs/cookbook/collection/README.md +21 -0
- package/mcp/docs/cookbook/collection/instructions.md +93 -0
- package/mcp/docs/cookbook/echo/README.md +19 -0
- package/mcp/docs/cookbook/echo/instructions.md +59 -0
- package/mcp/docs/cookbook/guard_rules/README.md +22 -0
- package/mcp/docs/cookbook/guard_rules/instructions.md +73 -0
- package/mcp/docs/cookbook/json_query/README.md +26 -0
- package/mcp/docs/cookbook/json_query/instructions.md +64 -0
- package/mcp/docs/cookbook/kblog/README.md +60 -0
- package/mcp/docs/cookbook/kblog/instructions.md +102 -0
- package/mcp/docs/cookbook/layered_rulesets/README.md +24 -0
- package/mcp/docs/cookbook/layered_rulesets/instructions.md +87 -0
- package/mcp/docs/cookbook/moving_picos/README.md +44 -0
- package/mcp/docs/cookbook/moving_picos/instructions.md +150 -0
- package/mcp/docs/cookbook/score_tracker/README.md +19 -0
- package/mcp/docs/cookbook/score_tracker/instructions.md +73 -0
- package/mcp/docs/cookbook/secrets/README.md +25 -0
- package/mcp/docs/cookbook/secrets/instructions.md +98 -0
- package/mcp/docs/cookbook/two_picos/README.md +20 -0
- package/mcp/docs/cookbook/two_picos/instructions.md +88 -0
- package/mcp/docs/cookbook/xmlui/README.md +23 -0
- package/mcp/docs/cookbook/xmlui/instructions.md +84 -0
- package/mcp/docs/developing/README.md +28 -0
- package/mcp/docs/developing/accepting-relationship-requests.md +65 -0
- package/mcp/docs/developing/arrays-and-maps.md +77 -0
- package/mcp/docs/developing/converting-time-formats.md +28 -0
- package/mcp/docs/developing/cookies-and-redirects.md +81 -0
- package/mcp/docs/developing/decoding-form-data.md +67 -0
- package/mcp/docs/developing/engine-log-files.md +34 -0
- package/mcp/docs/developing/event-loop.md +77 -0
- package/mcp/docs/developing/events-from-email.md +80 -0
- package/mcp/docs/developing/initializing-entity-variables.md +83 -0
- package/mcp/docs/developing/mcp-ai-tools.md +98 -0
- package/mcp/docs/developing/misconceptions.md +467 -0
- package/mcp/docs/developing/names-and-scope.md +44 -0
- package/mcp/docs/developing/postman.md +159 -0
- package/mcp/docs/developing/querying-another-pico.md +47 -0
- package/mcp/docs/developing/singleton-picos.md +36 -0
- package/mcp/docs/developing/tabular-data.md +67 -0
- package/mcp/docs/developing/tips.md +251 -0
- package/mcp/docs/developing/webhook-signatures.md +56 -0
- package/mcp/docs/developing/workflow.md +106 -0
- package/mcp/docs/exp/README.md +46 -0
- package/mcp/docs/exp/event.md +110 -0
- package/mcp/docs/exp/query.md +94 -0
- package/mcp/docs/lessons/README.md +59 -0
- package/mcp/docs/lessons/events-and-queries.md +247 -0
- package/mcp/docs/lessons/gossip.md +28 -0
- package/mcp/docs/lessons/modules-and-apis.md +270 -0
- package/mcp/docs/lessons/pico-based-systems.md +470 -0
- package/mcp/docs/lessons/pico-state.md +267 -0
- package/mcp/docs/lessons/pico-views.md +290 -0
- package/mcp/docs/lessons/quickstart.md +157 -0
- package/mcp/docs/lessons/relationships.md +530 -0
- package/mcp/docs/lessons/scatter-gather.md +362 -0
- package/mcp/docs/pico-engine.md +10 -5
- package/mcp/docs/pico-overview.md +3 -3
- package/mcp/docs/wrangler/README.md +47 -0
- package/mcp/docs/wrangler/channels.md +235 -0
- package/mcp/docs/wrangler/oauth.md +56 -0
- package/mcp/docs/wrangler/pds.md +423 -0
- package/mcp/docs/wrangler/portable-subtree.md +44 -0
- package/mcp/docs/wrangler/relationships.md +297 -0
- package/mcp/docs/wrangler/wrangler.md +253 -0
- package/mcp/docs/wrangler/xmlui.md +60 -0
- package/mcp/engineClient.js +57 -5
- package/mcp/mcpScopes.js +118 -0
- package/mcp/meshHttp.js +151 -45
- package/mcp/runStdio.js +2 -0
- package/mcp/subtreeTools.js +184 -0
- package/mcp/tryItTools.js +202 -0
- package/package.json +18 -9
- package/public/.DS_Store +0 -0
- package/public/pico-engine-ui.css +1 -1
- package/public/pico-engine-ui.js +26 -25
- package/src/bundledKrl.ts +118 -12
- package/src/cli.ts +8 -2
- package/src/engineConfig.ts +33 -2
- package/src/identity/portableMove.ts +6 -1
- package/src/index.ts +469 -422
- package/src/internalAccess.ts +127 -0
- package/src/oauth/OAuthService.ts +243 -11
- package/src/oauth/acg.ts +289 -25
- package/src/oauth/cimd.ts +508 -0
- package/src/oauth/discovery.ts +233 -0
- package/src/runMcp.ts +3 -1
- package/src/server.ts +266 -51
- package/src/subtreeWrangler.ts +17 -5
- package/src/uiChannelPolicies.ts +2 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// Try It! for agents: the same steps the developer UI's Try It! tab takes.
|
|
4
|
+
|
|
5
|
+
const { z } = require("zod");
|
|
6
|
+
const { jsonText } = require("./engineClient");
|
|
7
|
+
const { findWranglerEvent } = require("./devTools");
|
|
8
|
+
|
|
9
|
+
const UI_RID = "io.picolabs.pico-engine-ui";
|
|
10
|
+
const OAUTH_NOTE =
|
|
11
|
+
"The demos are meant for an engine without OAuth: on a mesh with OAuth turned on they install, but their pages and curl examples send no access token, so they may not load data.";
|
|
12
|
+
|
|
13
|
+
function textResult(text, isError = false) {
|
|
14
|
+
return { content: [{ type: "text", text }], isError };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
18
|
+
|
|
19
|
+
function resourceUris(folder) {
|
|
20
|
+
return {
|
|
21
|
+
overview: `pico://docs/cookbook/${folder}/README`,
|
|
22
|
+
instructions: `pico://docs/cookbook/${folder}/instructions`,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function summarize(demo) {
|
|
27
|
+
return {
|
|
28
|
+
name: demo.name || demo.rid,
|
|
29
|
+
folder: demo.folder,
|
|
30
|
+
bootstrapRid: demo.rid,
|
|
31
|
+
shows: demo.description,
|
|
32
|
+
whatToLookForAndTry: demo.notes || null,
|
|
33
|
+
cookbook: demo.docs,
|
|
34
|
+
resources: resourceUris(demo.folder),
|
|
35
|
+
files: (demo.files || []).map((f) => ({ rid: f.rid, file: f.file, url: f.url, path: f.path })),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function findDemo(demos, wanted) {
|
|
40
|
+
const w = wanted.trim().toLowerCase();
|
|
41
|
+
return demos.find(
|
|
42
|
+
(d) =>
|
|
43
|
+
d.folder.toLowerCase() === w ||
|
|
44
|
+
d.rid.toLowerCase() === w ||
|
|
45
|
+
String(d.name || "").toLowerCase() === w
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
async function box(client, uiEci) {
|
|
50
|
+
return client.channelQuery(uiEci, UI_RID, "box", {});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** A child of a pico running a demo (it has a try_it channel and a demo's bootstrap), or null. */
|
|
54
|
+
async function runningDemo(client, childUiEci, demos) {
|
|
55
|
+
const info = await client.channelQuery(childUiEci, UI_RID, "pico", {});
|
|
56
|
+
const channel = ((info && info.channels) || []).find((c) => (c.tags || []).includes("try_it"));
|
|
57
|
+
if (!channel) return null;
|
|
58
|
+
const rulesets = (info && info.rulesets) || [];
|
|
59
|
+
const demo = demos.find((d) => rulesets.some((rs) => rs.rid === d.rid));
|
|
60
|
+
if (!demo) return null;
|
|
61
|
+
const name = ((await box(client, childUiEci)) || {}).name || demo.rid;
|
|
62
|
+
let status = null;
|
|
63
|
+
let error;
|
|
64
|
+
try {
|
|
65
|
+
status = await client.channelQuery(channel.id, demo.rid, "tryIt", {});
|
|
66
|
+
} catch (err) {
|
|
67
|
+
error = String(err);
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
demo: demo.name || demo.rid,
|
|
71
|
+
folder: demo.folder,
|
|
72
|
+
picoName: name,
|
|
73
|
+
uiEci: childUiEci,
|
|
74
|
+
tryItEci: channel.id,
|
|
75
|
+
ready: !!(status && status.ready),
|
|
76
|
+
stage: status ? status.stage : undefined,
|
|
77
|
+
links: status ? status.links || [] : [],
|
|
78
|
+
error,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function registerTryItTools(server, client) {
|
|
83
|
+
server.tool(
|
|
84
|
+
"list_try_it_demos",
|
|
85
|
+
"List the Try It! demos that ship with this engine, in the order the developer UI shows them: what each shows, what to look for and try, its cookbook page (also an MCP resource), and its files. " +
|
|
86
|
+
OAUTH_NOTE,
|
|
87
|
+
{},
|
|
88
|
+
async () => {
|
|
89
|
+
try {
|
|
90
|
+
const { show, demos } = await client.getTryIt();
|
|
91
|
+
return textResult(
|
|
92
|
+
jsonText({
|
|
93
|
+
show,
|
|
94
|
+
hint:
|
|
95
|
+
show === "off"
|
|
96
|
+
? "show_tryit_menu is off on this engine, so no demos are listed."
|
|
97
|
+
: "Run one with run_try_it_demo, passing its folder.",
|
|
98
|
+
demos: (demos || []).map(summarize),
|
|
99
|
+
})
|
|
100
|
+
);
|
|
101
|
+
} catch (err) {
|
|
102
|
+
return textResult(String(err), true);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
server.tool(
|
|
108
|
+
"run_try_it_demo",
|
|
109
|
+
"Run a Try It! demo the way the developer UI does: create a child pico, install the demo's bootstrap ruleset on it, and wait until its tryIt() reports ready. Returns the child's UI ECI, the links to open (pages on their channels), and what to look for and try. Remove the demo afterwards with delete_pico on the returned uiEci. " +
|
|
110
|
+
OAUTH_NOTE,
|
|
111
|
+
{
|
|
112
|
+
demo: z.string().describe("The demo's folder (such as echo or collection), bootstrap rid, or name"),
|
|
113
|
+
parentEci: z
|
|
114
|
+
.string()
|
|
115
|
+
.optional()
|
|
116
|
+
.describe("UI ECI of the pico to create the child under; default the root pico"),
|
|
117
|
+
name: z.string().optional().describe("Name for the new child pico; default the demo's name"),
|
|
118
|
+
timeoutSeconds: z.number().int().min(1).max(300).optional().describe("How long to wait for ready; default 60"),
|
|
119
|
+
},
|
|
120
|
+
async ({ demo, parentEci, name, timeoutSeconds }) => {
|
|
121
|
+
try {
|
|
122
|
+
const { demos } = await client.getTryIt();
|
|
123
|
+
const found = findDemo(demos || [], demo);
|
|
124
|
+
if (!found) {
|
|
125
|
+
return textResult(
|
|
126
|
+
`No demo "${demo}". Folders: ${(demos || []).map((d) => d.folder).join(", ") || "(none; is show_tryit_menu off?)"}`,
|
|
127
|
+
true
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
const parent = parentEci || (await client.resolveUiEci());
|
|
131
|
+
const before = new Set(((await box(client, parent)) || {}).children || []);
|
|
132
|
+
const childName = name || found.name || found.rid;
|
|
133
|
+
await client.channelEventWait(parent, "engine_ui", "new", {
|
|
134
|
+
name: childName,
|
|
135
|
+
backgroundColor: "#c8e6c9",
|
|
136
|
+
});
|
|
137
|
+
let child;
|
|
138
|
+
for (let i = 0; i < 50 && !child; i++) {
|
|
139
|
+
child = (((await box(client, parent)) || {}).children || []).find((c) => !before.has(c));
|
|
140
|
+
if (!child) await sleep(200);
|
|
141
|
+
}
|
|
142
|
+
if (!child) return textResult("The new child pico did not appear.", true);
|
|
143
|
+
|
|
144
|
+
const installed = await client.channelEventWait(child, "engine_ui", "install", { url: found.url });
|
|
145
|
+
const failed = findWranglerEvent(installed, "ruleset_install_failed");
|
|
146
|
+
if (failed) {
|
|
147
|
+
return textResult(
|
|
148
|
+
jsonText({ error: "The bootstrap ruleset did not install.", details: failed, uiEci: child }),
|
|
149
|
+
true
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
const deadline = Date.now() + (timeoutSeconds || 60) * 1000;
|
|
154
|
+
let state = null;
|
|
155
|
+
while (Date.now() < deadline) {
|
|
156
|
+
state = await runningDemo(client, child, [found]);
|
|
157
|
+
if (state && state.ready) break;
|
|
158
|
+
await sleep(500);
|
|
159
|
+
}
|
|
160
|
+
const ready = !!(state && state.ready);
|
|
161
|
+
return textResult(
|
|
162
|
+
jsonText({
|
|
163
|
+
...(state || { demo: found.name || found.rid, folder: found.folder, uiEci: child, ready: false }),
|
|
164
|
+
whatToLookForAndTry: found.notes || null,
|
|
165
|
+
cookbook: found.docs,
|
|
166
|
+
resources: resourceUris(found.folder),
|
|
167
|
+
hint: ready
|
|
168
|
+
? "Open the links, or use query and raise_event on the channel ids in them (the segment after /ui/)."
|
|
169
|
+
: "Not ready yet. Check again with try_it_status; the stage says how far it got.",
|
|
170
|
+
}),
|
|
171
|
+
!ready
|
|
172
|
+
);
|
|
173
|
+
} catch (err) {
|
|
174
|
+
return textResult(String(err), true);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
|
|
179
|
+
server.tool(
|
|
180
|
+
"try_it_status",
|
|
181
|
+
"The Try It! demos running in a pico's children, with each one's progress and links (the developer UI's \"Running here\").",
|
|
182
|
+
{
|
|
183
|
+
parentEci: z.string().optional().describe("UI ECI of the parent pico; default the root pico"),
|
|
184
|
+
},
|
|
185
|
+
async ({ parentEci }) => {
|
|
186
|
+
try {
|
|
187
|
+
const { demos } = await client.getTryIt();
|
|
188
|
+
const parent = parentEci || (await client.resolveUiEci());
|
|
189
|
+
const running = [];
|
|
190
|
+
for (const child of ((await box(client, parent)) || {}).children || []) {
|
|
191
|
+
const state = await runningDemo(client, child, demos || []);
|
|
192
|
+
if (state) running.push(state);
|
|
193
|
+
}
|
|
194
|
+
return textResult(jsonText({ parentEci: parent, running }));
|
|
195
|
+
} catch (err) {
|
|
196
|
+
return textResult(String(err), true);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
module.exports = { registerTryItTools, findDemo };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pico-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Node.js runtime for picos: persistent actors with their own identity, state, and channels that communicate by events and queries. Behavior is written in KRL. Includes an MCP server so AI coding assistants can inspect and drive a running engine.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"files": [
|
|
32
32
|
"bin",
|
|
33
|
+
"demos",
|
|
33
34
|
"public",
|
|
34
35
|
"src",
|
|
35
36
|
"krl",
|
|
@@ -45,16 +46,22 @@
|
|
|
45
46
|
},
|
|
46
47
|
"scripts": {
|
|
47
48
|
"build": "rm -rf dist && tsc",
|
|
48
|
-
"prepack": "node scripts/bundle-docs.js",
|
|
49
|
+
"prepack": "node scripts/bundle-docs.js && node scripts/bundle-demos.js",
|
|
50
|
+
"postpack": "node scripts/bundle-demos.js --clean",
|
|
49
51
|
"start": "npm run dev -s",
|
|
50
52
|
"dev": "scriptsp -r dev:tsc dev:api",
|
|
51
53
|
"dev:tsc": "tsc -w --preserveWatchOutput",
|
|
52
54
|
"dev:api": "onchange -i -k dist/ -- node dist/cli.js",
|
|
53
|
-
"test": "ava reset-cache && ava",
|
|
55
|
+
"test": "ava reset-cache && ava --serial --timeout=3m",
|
|
54
56
|
"test:auth": "ava reset-cache && ava --serial ./test/auth.ts --timeout=2m",
|
|
55
57
|
"test:oauth": "ava reset-cache && ava --serial ./test/oauth.ts --timeout=2m",
|
|
58
|
+
"test:oauth-discovery": "ava reset-cache && ava --serial ./test/oauthDiscovery.ts --timeout=2m",
|
|
59
|
+
"test:oauth-resource": "ava reset-cache && ava --serial ./test/oauthResource.ts --timeout=2m",
|
|
60
|
+
"test:cimd": "ava reset-cache && ava --serial ./test/cimd.ts --timeout=2m",
|
|
56
61
|
"test:acg": "ava reset-cache && ava --serial ./test/acg.ts --timeout=2m",
|
|
57
62
|
"test:http": "ava reset-cache && ava --serial ./test/httpSurface.ts --timeout=2m",
|
|
63
|
+
"test:internal-access": "ava reset-cache && ava --serial ./test/internalAccess.ts --timeout=2m",
|
|
64
|
+
"test:listen": "ava reset-cache && ava --serial ./test/listenFailure.ts --timeout=2m",
|
|
58
65
|
"test:identity": "ava reset-cache && ava --serial ./test/identityStore.ts ./test/identityStoreEngine.ts --timeout=2m",
|
|
59
66
|
"test:dido": "ava reset-cache && ava --serial ./test/didoModule.ts --timeout=2m",
|
|
60
67
|
"test:webvh": "ava reset-cache && ava --serial ./test/webvh.ts --timeout=2m",
|
|
@@ -69,7 +76,7 @@
|
|
|
69
76
|
"test:wildcard-channel-identity": "ava reset-cache && ava --serial ./test/wildcardChannelIdentity.ts --timeout=2m",
|
|
70
77
|
"test:policy": "ava reset-cache && ava --serial ./test/layer2ChannelPolicy.ts ./test/channelPolicyCeiling.ts ./test/wildcardChannelIdentity.ts ./test/channelIdentityPolicy.ts ./test/engineConfig.ts --timeout=3m",
|
|
71
78
|
"test:schema": "ava reset-cache && ava --serial ./test/uiTestingSchema.ts ./test/uiTestingHistorySaved.ts --timeout=3m",
|
|
72
|
-
"test:mcp": "ava reset-cache && ava --serial ./test/mcpDevClient.ts ./test/mcpDevStdioE2e.ts ./test/mcpMesh.ts --timeout=5m && node test/helpers/printMcpTestNoiseNotes.js",
|
|
79
|
+
"test:mcp": "ava reset-cache && ava --serial ./test/mcpDevClient.ts ./test/mcpDevStdioE2e.ts ./test/mcpTryIt.ts ./test/mcpMesh.ts --timeout=5m && node test/helpers/printMcpTestNoiseNotes.js",
|
|
73
80
|
"test:install-failure": "ava reset-cache && ava --serial ./test/installFailureVisibility.ts --timeout=3m",
|
|
74
81
|
"test:cross-engine": "ava reset-cache && ava --serial ./test/crossEngineSubscription.ts --timeout=3m",
|
|
75
82
|
"test:relationship-alias": "ava reset-cache && ava --serial ./test/relationshipAlias.ts --timeout=2m",
|
|
@@ -78,6 +85,8 @@
|
|
|
78
85
|
"test:epic9": "ava reset-cache && ava --serial ./test/epic9Matrix.ts --timeout=3m",
|
|
79
86
|
"test:peer-did4": "ava reset-cache && ava --serial ./test/peerDid4.ts --timeout=2m",
|
|
80
87
|
"test:views": "ava reset-cache && ava --serial ./test/xmluiSpike.ts ./test/xmluiRoutes.ts ./test/xmluiLauncher.ts ./test/xmluiConfig.ts ./test/xmluiViewSchema.ts ./test/xmluiViewPolicy.ts ./test/xmluiViewsOAuth.ts ./test/xmluiS2Demos.ts ./test/xmluiComponents.ts --timeout=2m",
|
|
88
|
+
"test:try-it": "ava reset-cache && ava --serial ./test/tryIt.ts ./test/tryItDemos.ts --timeout=2m",
|
|
89
|
+
"test:libraries": "ava reset-cache && ava --serial ./test/krlLibraries.ts --timeout=2m",
|
|
81
90
|
"vendor:xmlui": "node scripts/copy-xmlui-runtime.mjs"
|
|
82
91
|
},
|
|
83
92
|
"dependencies": {
|
|
@@ -103,14 +112,14 @@
|
|
|
103
112
|
"express": "^4.16.4",
|
|
104
113
|
"helmet": "^7.1.0",
|
|
105
114
|
"home-dir": "^1.0.0",
|
|
106
|
-
"krl-compiler": "^1.
|
|
107
|
-
"krl-stdlib": "^1.
|
|
115
|
+
"krl-compiler": "^1.10.0",
|
|
116
|
+
"krl-stdlib": "^1.10.0",
|
|
108
117
|
"level-json-coerce-null": "^1.0.1",
|
|
109
118
|
"lodash": "^4.17.11",
|
|
110
119
|
"make-dir": "^4.0.0",
|
|
111
120
|
"minimist": "^1.2.5",
|
|
112
|
-
"pico-engine-core": "^1.
|
|
113
|
-
"pico-framework": "^
|
|
121
|
+
"pico-engine-core": "^1.10.0",
|
|
122
|
+
"pico-framework": "^1.10.0",
|
|
114
123
|
"rotating-file-stream": "^1.4.1",
|
|
115
124
|
"zod": "^3.25.76"
|
|
116
125
|
},
|
|
@@ -140,5 +149,5 @@
|
|
|
140
149
|
"!test/helpers/**/*"
|
|
141
150
|
]
|
|
142
151
|
},
|
|
143
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "9578ad6cd53c11fa60cac584f9814dcb58d8648e"
|
|
144
153
|
}
|
package/public/.DS_Store
ADDED
|
Binary file
|