dsh-open-artifact 0.14.3 → 0.14.4
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/CHANGELOG.md +27 -0
- package/lib/client.js +7 -7
- package/lib/index.js +9 -9
- package/package.json +1 -1
- package/skills/open-artifact/SKILL.md +1 -1
- package/vendor/artifact-types/motion/SKILL.md +3 -3
- package/vendor/artifact-types/motion/artifact-type.json +1 -1
- package/vendor/artifact-types/motion/reference/film-api.md +2 -2
- package/vendor/artifact-types/motion/reference/voice.md +38 -3
- package/vendor/frame-host/client/comments.js +9 -9
- package/vendor/frame-host/frame-host.mjs +30 -9
- package/vendor/home/assets/{index-CMbgE2oc.js → index-tTYbu9Md.js} +1 -1
- package/vendor/home/index.html +1 -1
- package/vendor/open-artifact.mjs +17 -13
- package/vendor/runtime.json +1 -1
- package/vendor/{type-server/shell/assets/index-yS15KRJ8.js → shell/assets/index-C3-yWoJw.js} +14 -14
- package/vendor/shell/index.html +1 -1
- package/vendor/type-server/cli.mjs +13 -13
- package/vendor/type-server/editors/data/assets/{index-CelumSdk.js → index-BK7K9G2U.js} +47 -47
- package/vendor/type-server/editors/data/index.html +1 -1
- package/vendor/type-server/editors/design/assets/{index-BrdhJyzS.js → index-B7xC9lgd.js} +1 -1
- package/vendor/type-server/editors/design/index.html +1 -1
- package/vendor/type-server/editors/design-system/assets/{index-CzmxC323.js → index-DGKI25Kz.js} +1 -1
- package/vendor/type-server/editors/design-system/index.html +1 -1
- package/vendor/type-server/editors/docs/assets/{abnfDiagram-WEYOIA3C-Dv154SrF.js → abnfDiagram-WEYOIA3C-DLYeh61n.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{architectureDiagram-ZHVYKT53-DyZHuLhJ.js → architectureDiagram-ZHVYKT53-CvfX-f6t.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{blockDiagram-RJAE7QA3-BVzElt5r.js → blockDiagram-RJAE7QA3-BuMdAurF.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{c4Diagram-XDPPPE54-CZt_JzyM.js → c4Diagram-XDPPPE54-DnsUS0yb.js} +1 -1
- package/vendor/type-server/editors/docs/assets/channel-BYTsmpKR.js +1 -0
- package/vendor/type-server/editors/docs/assets/{chunk-2E7WHVMD-B9sK7gtB.js → chunk-2E7WHVMD-B0hTS-j6.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{chunk-2Q5K7J3B-0sEzcfME.js → chunk-2Q5K7J3B-kuaWCtjo.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{chunk-4EMNKR2T-C_Z99jKO.js → chunk-4EMNKR2T-CnIFvtij.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{chunk-55XCU76K-CTJ_yvnE.js → chunk-55XCU76K-DeNoc63i.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{chunk-5VM5RSS4-BVUngG1n.js → chunk-5VM5RSS4-ByJmCCoZ.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{chunk-JWPE2WC7-BG8q643y.js → chunk-JWPE2WC7-nYIDADtB.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{chunk-VQ5W62QI-DM3WoZ2q.js → chunk-VQ5W62QI-C076AjWx.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{chunk-XXDRQBXY-C00q7Mab.js → chunk-XXDRQBXY-B78mCstV.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{chunk-ZCHMQSOR-D4maMLQe.js → chunk-ZCHMQSOR-BFZDC_RV.js} +2 -2
- package/vendor/type-server/editors/docs/assets/{classDiagram-v2-4MYWR3UA-Bp5cp9Vf.js → classDiagram-v2-4MYWR3UA-BgoltvGQ.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{core-B_ycqU5t.js → core-DOLotgzB.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{cose-bilkent-JH36ORCC-DkfTi_Mh.js → cose-bilkent-JH36ORCC-CTi9NUjI.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{cynefin-EF2NZ3EQ-BAO9xuAp.js → cynefin-EF2NZ3EQ-AT185m6Z.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{cynefinDiagram-WF24UDRP-Dg1Wkac0.js → cynefinDiagram-WF24UDRP-B7A32WOt.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{dagre-NK4GIZVX-CfNALyX0.js → dagre-NK4GIZVX-BPpChDdA.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{diagram-CBK3MWTC-DgJwZ6YO.js → diagram-CBK3MWTC-B8E9ZfwT.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{diagram-I5XIIV2D-DfXCPCo3.js → diagram-I5XIIV2D-Ba0NVe3Z.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{diagram-ODIL2UCW-CS08zfFl.js → diagram-ODIL2UCW-DcEJYqLV.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{diagram-PFBEJUXE-AiRj8OJ_.js → diagram-PFBEJUXE-qd3Bqm9b.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{diagram-RJA3I4VV-sPxKazJU.js → diagram-RJA3I4VV-CXK64Gxp.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{diagram-TYUNFSNR-BTGn9TFm.js → diagram-TYUNFSNR-BUC8aGLh.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{ebnfDiagram-V4P3TTPT-BPbh_BoA.js → ebnfDiagram-V4P3TTPT-BPC5VX-Z.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{elk-QONTBCTQ-D7zmcVsR.js → elk-QONTBCTQ-CXewxyIL.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{erDiagram-KYQIGQAA-q-bPsv5E.js → erDiagram-KYQIGQAA-CCExoS15.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{flowDiagram-IUGLLWBU-C_zjPe4l.js → flowDiagram-IUGLLWBU-Cd-ITEO3.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{ganttDiagram-R7GPNTJY-DDpOC6aJ.js → ganttDiagram-R7GPNTJY-5Xes1jOR.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{gitGraphDiagram-PDYL7XHY-BU1msmkW.js → gitGraphDiagram-PDYL7XHY-DxAnpwu-.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{index-qJ3X4MC1.js → index-C_nafIet.js} +3 -3
- package/vendor/type-server/editors/docs/assets/{infoDiagram-MVDRKAX5-B0LtNVGB.js → infoDiagram-MVDRKAX5-JnY_-gtr.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{ishikawaDiagram-HPEHV2GE-BhviCdhI.js → ishikawaDiagram-HPEHV2GE-B1CanJ8I.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{journeyDiagram-BOSHW7O7-BTSz6EUz.js → journeyDiagram-BOSHW7O7-CRxNu8ma.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{kanban-definition-FNSA4HC5-CswepIc1.js → kanban-definition-FNSA4HC5-CbVkfK-B.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{mermaid.core-CP2KJVd4.js → mermaid.core-B8KhXrKp.js} +4 -4
- package/vendor/type-server/editors/docs/assets/{mindmap-definition-6OY57UG3-B8dzRim4.js → mindmap-definition-6OY57UG3-CeAI8W2f.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{pegDiagram-ECIUJNBX-B7V2uqYh.js → pegDiagram-ECIUJNBX-LgerP_ec.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{pieDiagram-GNMPY74T-h2YV0--u.js → pieDiagram-GNMPY74T-C__3Jf4D.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{quadrantDiagram-D57K4MC3-BDrvmUiS.js → quadrantDiagram-D57K4MC3-CKMN0DdI.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{railroadDiagram-Y72NRBL7-CBc2jbav.js → railroadDiagram-Y72NRBL7-DAp9-ZpN.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{requirementDiagram-EQYSW5RA-2vzlnjD8.js → requirementDiagram-EQYSW5RA-umiVS7zv.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{sankeyDiagram-SY24JHO5-ChkHrWqS.js → sankeyDiagram-SY24JHO5-CBy4oqxY.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{sequenceDiagram-BLEHNHQU-x-fxt2Mo.js → sequenceDiagram-BLEHNHQU-AdVt_Q-4.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{sizeCapture-INFHLROL-CGjaw82k.js → sizeCapture-INFHLROL-VLf13Ek7.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{stateDiagram-v2-A6IESKWZ-DOK0Upui.js → stateDiagram-v2-A6IESKWZ-CKlLy5OU.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{swimlanes-B3ENRKFQ-D5eScFWA.js → swimlanes-B3ENRKFQ-CDMDw0Is.js} +1 -1
- package/vendor/type-server/editors/docs/assets/swimlanesDiagram-AYQRV4AK-D3A8RfCK.js +8 -0
- package/vendor/type-server/editors/docs/assets/{timeline-definition-JXYKGLGB-W55YrrVw.js → timeline-definition-JXYKGLGB-GSz1JMKO.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{usecaseDiagram-WPOLBNNX-tABT6ize.js → usecaseDiagram-WPOLBNNX-CiFLmg1q.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{vennDiagram-Q3Y3IDCW-BWt2GhcT.js → vennDiagram-Q3Y3IDCW-DWWW2vU4.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{wardleyDiagram-IVAIDKWA-fvuZtRA5.js → wardleyDiagram-IVAIDKWA-Te2-YFAR.js} +1 -1
- package/vendor/type-server/editors/docs/assets/{xychartDiagram-4URNHDU4-DcwGParI.js → xychartDiagram-4URNHDU4-Bg5qZWXz.js} +1 -1
- package/vendor/type-server/editors/docs/index.html +1 -1
- package/vendor/type-server/editors/motion/assets/{gif-jobs-D3frbcNq.js → gif-jobs-DJ_BlyJ3.js} +1 -1
- package/vendor/type-server/editors/motion/assets/{index-SWgAM2I3.js → index-wDfoRno_.js} +56 -56
- package/vendor/type-server/editors/motion/assets/{src-D5Za67Y-.js → src-CI-JlOkT.js} +1 -1
- package/vendor/type-server/editors/motion/index.html +1 -1
- package/vendor/type-server/editors/sheets/assets/{index-rCtPaKgo.js → index-CepxaSRn.js} +2 -2
- package/vendor/type-server/editors/sheets/assets/{open_artifact_sheets_bg-5Z-ovm0X.wasm → open_artifact_sheets_bg-BTR1sk36.wasm} +0 -0
- package/vendor/type-server/editors/sheets/assets/{workbook-worker-mGAKSVY2.js → workbook-worker-oPs2yIfH.js} +11 -11
- package/vendor/type-server/editors/sheets/index.html +1 -1
- package/vendor/type-server/editors/slides/assets/{index-DjcMrs2F.js → index-C2Khifud.js} +2 -2
- package/vendor/type-server/editors/slides/assets/{src-Bd7LdOFl.js → src-DVVcnfGK.js} +1 -1
- package/vendor/type-server/editors/slides/index.html +1 -1
- package/vendor/type-server/editors/whiteboard/assets/{drawing-look-worker-LId0hWzY.js → drawing-look-worker-CRANgcMl.js} +3 -3
- package/vendor/type-server/editors/whiteboard/assets/{index-nmJr9plT.js → index-BUcaEfJn.js} +2 -2
- package/vendor/type-server/editors/whiteboard/index.html +1 -1
- package/vendor/type-server/motion-tools.html +6 -6
- package/vendor/type-server/sheets.wasm +0 -0
- package/vendor/{shell/assets/index-yS15KRJ8.js → type-server/shell/assets/index-C3-yWoJw.js} +14 -14
- package/vendor/type-server/shell/index.html +1 -1
- package/vendor/type-server/editors/docs/assets/channel-wcQnbnDl.js +0 -1
- package/vendor/type-server/editors/docs/assets/swimlanesDiagram-AYQRV4AK-C21UYBd-.js +0 -8
package/vendor/shell/index.html
CHANGED
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
color: var(--oa-preboot-fg);
|
|
115
115
|
}
|
|
116
116
|
</style>
|
|
117
|
-
<script type="module" crossorigin src="/_open-artifact/shell/assets/index-
|
|
117
|
+
<script type="module" crossorigin src="/_open-artifact/shell/assets/index-C3-yWoJw.js"></script>
|
|
118
118
|
<link rel="stylesheet" crossorigin href="/_open-artifact/shell/assets/index-B-XFOdw0.css">
|
|
119
119
|
</head>
|
|
120
120
|
<body>
|
|
@@ -203,7 +203,7 @@ var init_tools = __esm({
|
|
|
203
203
|
action: {
|
|
204
204
|
type: "string",
|
|
205
205
|
enum: ARTIFACT_ACTIONS,
|
|
206
|
-
description: "What to do. Omitted: publish."
|
|
206
|
+
description: "What to do: quickstart, list, publish, read, open, call, adopt, delete or share. Omitted: publish."
|
|
207
207
|
},
|
|
208
208
|
intent: {
|
|
209
209
|
type: "string",
|
|
@@ -212,7 +212,7 @@ var init_tools = __esm({
|
|
|
212
212
|
scope: {
|
|
213
213
|
type: "string",
|
|
214
214
|
enum: ["types", "mine", "all"],
|
|
215
|
-
description: "list: the installed types, this session's and this workspace's artifacts
|
|
215
|
+
description: "list: types (the installed types), mine (this session's and this workspace's artifacts; the default) or all (every artifact)."
|
|
216
216
|
},
|
|
217
217
|
type: {
|
|
218
218
|
type: "string",
|
|
@@ -266,10 +266,10 @@ var init_tools = __esm({
|
|
|
266
266
|
DATA_SCHEMA = {
|
|
267
267
|
type: "object",
|
|
268
268
|
properties: {
|
|
269
|
-
action: { type: "string", enum: DATA_ACTIONS },
|
|
269
|
+
action: { type: "string", enum: DATA_ACTIONS, description: "What to do: get, list, query, set, update, delete, str_replace or batch." },
|
|
270
270
|
url: { type: "string", description: "The artifact (open-artifact://artifact/<id>)." },
|
|
271
|
-
collection: { type: "string" },
|
|
272
|
-
doc_id: { type: "string" },
|
|
271
|
+
collection: { type: "string", description: "The collection: alone for list / query (query needs it), with doc_id for one document." },
|
|
272
|
+
doc_id: { type: "string", description: "With collection: the document to get / set / update / delete / str_replace." },
|
|
273
273
|
path: { type: "string", description: "collection/doc_id, instead of the two." },
|
|
274
274
|
data: { type: "object", additionalProperties: true, description: "set / update: the document's fields." },
|
|
275
275
|
file_path: { type: "string", description: "set / update: a JSON file holding the fields, instead of data." },
|
|
@@ -300,7 +300,7 @@ var init_tools = __esm({
|
|
|
300
300
|
COMMENTS_SCHEMA = {
|
|
301
301
|
type: "object",
|
|
302
302
|
properties: {
|
|
303
|
-
action: { type: "string", enum: COMMENTS_ACTIONS },
|
|
303
|
+
action: { type: "string", enum: COMMENTS_ACTIONS, description: "What to do: read, reply, resolve, reopen or wait." },
|
|
304
304
|
url: { type: "string", description: "The artifact (open-artifact://artifact/<id>). wait: optional." },
|
|
305
305
|
thread_id: { type: "string", description: 'reply / resolve / reopen: the thread (after ";thread=" in the message).' },
|
|
306
306
|
text: { type: "string", description: "reply: the answer." },
|
|
@@ -1133,10 +1133,10 @@ function isFramedNavigation(req) {
|
|
|
1133
1133
|
const dest = req.headers["sec-fetch-dest"];
|
|
1134
1134
|
return (req.method === "GET" || req.method === "HEAD") && (dest === "iframe" || dest === "frame");
|
|
1135
1135
|
}
|
|
1136
|
-
function sendFrameDenied(res, status, reason, title, message, ancestors2
|
|
1136
|
+
function sendFrameDenied(res, status, reason, title, message, ancestors2) {
|
|
1137
1137
|
const script = `parent.postMessage({ openArtifact: 'frame_denied', reason: ${JSON.stringify(reason)} }, '*');`;
|
|
1138
1138
|
const html = `<!doctype html><html><head><meta charset="utf-8"><title>${escHtml(title)}</title></head><body><p>${escHtml(message)}</p><script>${script}</script></body></html>`;
|
|
1139
|
-
send(res, status, html, MIME.html, { "content-security-policy": `default-src 'none'; script-src 'unsafe-inline'
|
|
1139
|
+
send(res, status, html, MIME.html, { "content-security-policy": `default-src 'none'; script-src 'unsafe-inline'${ancestors2 ? `; frame-ancestors ${ancestors2}` : ""}` });
|
|
1140
1140
|
}
|
|
1141
1141
|
function sendError(res, error) {
|
|
1142
1142
|
if (res.headersSent) {
|
|
@@ -23083,7 +23083,7 @@ function recordEdits(log, make) {
|
|
|
23083
23083
|
},
|
|
23084
23084
|
queue: (edit) => {
|
|
23085
23085
|
const opId = `edit-${++queuedEdits}`;
|
|
23086
|
-
const queued2 = session.answer({ kind: "queueEdit", opId, newIdCode: newIdCode(), edit
|
|
23086
|
+
const queued2 = session.answer({ kind: "queueEdit", opId, newIdCode: newIdCode(), edit });
|
|
23087
23087
|
if (queued2.kind === "nothingToChange") return queued2;
|
|
23088
23088
|
let step = isObject2(queued2.syncState) ? queued2.syncState.nextStep : null;
|
|
23089
23089
|
if (queued2.kind !== "editQueued" || !isObject2(step) || step.kind !== "sendEdit" || !isObject2(step.recordedEdit)) {
|
|
@@ -44452,9 +44452,9 @@ var init_sharing = __esm({
|
|
|
44452
44452
|
/**
|
|
44453
44453
|
* A request nobody may make: a page for a browser's navigation, JSON for anything else. An artifact's page
|
|
44454
44454
|
* (`page`) loading in a frame tells the Shell framing it instead (`frame_denied`), which a static page cannot;
|
|
44455
|
-
* `ancestors` is who may frame that answer.
|
|
44455
|
+
* `ancestors` is who may frame that answer (none: anyone).
|
|
44456
44456
|
*/
|
|
44457
|
-
denied(req, res, page2 = false, ancestors2
|
|
44457
|
+
denied(req, res, page2 = false, ancestors2) {
|
|
44458
44458
|
req.resume();
|
|
44459
44459
|
const w = words2(req);
|
|
44460
44460
|
if (page2 && isFramedNavigation(req)) return sendFrameDenied(res, 403, "not_granted", w.noAccessTitle, w.noAccess, ancestors2);
|
|
@@ -49689,7 +49689,7 @@ function createTypeServer(options) {
|
|
|
49689
49689
|
const agentFor = (id, who2, status) => mayAskAgent(id, who2) ? status : { ...status, available: false };
|
|
49690
49690
|
const senderOf = (who2) => who2.role === "owner" ? void 0 : { name: who2.name, role: who2.role };
|
|
49691
49691
|
const appOrigin = hosting ? hosting.appOrigin ?? new URL(hosting.shellUrl("art_0")).origin : void 0;
|
|
49692
|
-
const frameAncestors = appOrigin ? `'self' ${appOrigin}` :
|
|
49692
|
+
const frameAncestors = appOrigin ? `'self' ${appOrigin}` : void 0;
|
|
49693
49693
|
const viewer = { id: "owner", name: options.viewerName ?? "You", role: "owner" };
|
|
49694
49694
|
const ownerOf = (id) => hosting && id ? { id: viewer.id, name: hosting.ownerName(id), role: "owner" } : viewer;
|
|
49695
49695
|
const unsupported = (what) => new HttpError(400, "unsupported", `${what} is not available on a hosted server.`);
|
|
@@ -51039,7 +51039,7 @@ data: ${JSON.stringify(payload)}
|
|
|
51039
51039
|
const html = await readFile6(inside(dir, file), "utf8").catch(() => null);
|
|
51040
51040
|
if (html === null) throw new HttpError(404, "not_found", "Not found.");
|
|
51041
51041
|
const page2 = withStableAssets(html, artifact.type);
|
|
51042
|
-
const pageHeaders = { "content-security-policy": `frame-ancestors ${pageAncestors}; object-src 'none'` };
|
|
51042
|
+
const pageHeaders = { "content-security-policy": `${pageAncestors ? `frame-ancestors ${pageAncestors}; ` : ""}object-src 'none'` };
|
|
51043
51043
|
if (who2.role !== "owner") return send(res, 200, withShim(page2), mimeOf(file), { ...pageHeaders, "cache-control": "private, no-store", vary: "Cookie" });
|
|
51044
51044
|
return send(res, 200, page2, mimeOf(file), pageHeaders);
|
|
51045
51045
|
}
|