@netnodeag/kraftwerk 0.82.0 → 0.84.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 +212 -11
- package/dist/cli/init.js +1 -0
- package/dist/cli/kraftwerk.js +3 -0
- package/dist/cli/presentations.d.ts +2 -0
- package/dist/cli/presentations.js +261 -0
- package/dist/client/routes.d.ts +18 -0
- package/dist/client/routes.js +18 -0
- package/dist/config.d.ts +16 -0
- package/dist/config.js +10 -2
- package/dist/core/boards.d.ts +14 -1
- package/dist/core/boards.js +34 -1
- package/dist/core/chat/context.js +11 -2
- package/dist/core/git.js +3 -1
- package/dist/core/presentations/browser.d.ts +43 -0
- package/dist/core/presentations/browser.js +53 -0
- package/dist/core/presentations/builtin.d.ts +3 -0
- package/dist/core/presentations/builtin.js +142 -0
- package/dist/core/presentations/chart.d.ts +34 -0
- package/dist/core/presentations/chart.js +159 -0
- package/dist/core/presentations/deck.d.ts +63 -0
- package/dist/core/presentations/deck.js +198 -0
- package/dist/core/presentations/export.d.ts +21 -0
- package/dist/core/presentations/export.js +75 -0
- package/dist/core/presentations/html.d.ts +135 -0
- package/dist/core/presentations/html.js +389 -0
- package/dist/core/presentations/index.d.ts +252 -0
- package/dist/core/presentations/index.js +753 -0
- package/dist/core/presentations/layout.d.ts +47 -0
- package/dist/core/presentations/layout.js +147 -0
- package/dist/core/presentations/markdown.d.ts +49 -0
- package/dist/core/presentations/markdown.js +158 -0
- package/dist/core/presentations/merge.d.ts +26 -0
- package/dist/core/presentations/merge.js +28 -0
- package/dist/core/presentations/presence.d.ts +31 -0
- package/dist/core/presentations/presence.js +131 -0
- package/dist/core/presentations/render.d.ts +33 -0
- package/dist/core/presentations/render.js +318 -0
- package/dist/core/presentations/slots.d.ts +33 -0
- package/dist/core/presentations/slots.js +114 -0
- package/dist/core/presentations/template.d.ts +253 -0
- package/dist/core/presentations/template.js +141 -0
- package/dist/core/presentations/versions.d.ts +30 -0
- package/dist/core/presentations/versions.js +75 -0
- package/dist/core/refs.d.ts +1 -1
- package/dist/core/refs.js +9 -1
- package/dist/core/search.d.ts +10 -0
- package/dist/core/search.js +6 -0
- package/dist/core/settings.d.ts +2 -0
- package/dist/core/settings.js +12 -1
- package/dist/core/trash.d.ts +1 -1
- package/dist/server/api/index.d.ts +62 -1
- package/dist/server/api/index.js +2 -0
- package/dist/server/api/presentations.d.ts +66 -0
- package/dist/server/api/presentations.js +185 -0
- package/dist/server/api/socket.js +24 -1
- package/dist/server/api/workspace.d.ts +5 -0
- package/dist/server/api/workspace.js +2 -0
- package/package.json +6 -2
- package/schema/kraftwerk.schema.json +18 -0
- package/web/dist/assets/{dist-BBFUIftm.js → dist-3Yr8mX0X.js} +1 -1
- package/web/dist/assets/{dist-DtUB2Uu2.js → dist-BVzRayNB.js} +1 -1
- package/web/dist/assets/{dist-BuwdjX6z.js → dist-BdYm_4II.js} +1 -1
- package/web/dist/assets/{dist-C16bXf8c.js → dist-Bf3GuzEk.js} +1 -1
- package/web/dist/assets/{dist-Bie1ebP9.js → dist-DGymUpLv.js} +1 -1
- package/web/dist/assets/{dist-CH73jsgO.js → dist-DIvdTMOT.js} +1 -1
- package/web/dist/assets/{dist-DvkrCSGL.js → dist-DchG_zAX.js} +1 -1
- package/web/dist/assets/{dist-C0ve4Tka.js → dist-Dt9RqYvy.js} +1 -1
- package/web/dist/assets/dist-m1b2E3aJ.js +1 -0
- package/web/dist/assets/{dist-C_rJjRj7.js → dist-mxFa618U.js} +1 -1
- package/web/dist/assets/{dist-CDUZdAAS.js → dist-xXM6FJLm.js} +1 -1
- package/web/dist/assets/{editor-3z92i0tV.js → editor-DYDCHRgT.js} +3 -3
- package/web/dist/assets/index-CvvZzwHR.js +473 -0
- package/web/dist/assets/index-JhhhmD7T.css +2 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/dist-DYICNp09.js +0 -1
- package/web/dist/assets/index-DRhNELK_.js +0 -232
- package/web/dist/assets/index-unGEux3Y.css +0 -2
|
@@ -581,6 +581,7 @@ export declare const routes: (Route<"agents.addJournal", {
|
|
|
581
581
|
places: boolean;
|
|
582
582
|
events: boolean;
|
|
583
583
|
boards: boolean;
|
|
584
|
+
presentations: boolean;
|
|
584
585
|
publicUrl: string;
|
|
585
586
|
cloud: {
|
|
586
587
|
included: boolean;
|
|
@@ -619,7 +620,63 @@ export declare const routes: (Route<"agents.addJournal", {
|
|
|
619
620
|
notes: z.ZodOptional<z.ZodString>;
|
|
620
621
|
tags: z.ZodOptional<z.ZodUnknown>;
|
|
621
622
|
records: z.ZodOptional<z.ZodUnknown>;
|
|
622
|
-
}, z.core.$loose>> | Route<"
|
|
623
|
+
}, z.core.$loose>> | Route<"presentations.comment", import("./router.js").Reply<import("../../core/presentations/index.js").DeckComment>, "/api/presentations/:name/comments", z.ZodObject<{
|
|
624
|
+
slide: z.ZodNumber;
|
|
625
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
626
|
+
text: z.ZodString;
|
|
627
|
+
}, z.core.$strip>> | Route<"presentations.commentDelete", {
|
|
628
|
+
ok: true;
|
|
629
|
+
}, "/api/presentations/:name/comments/:id", undefined> | Route<"presentations.commentSave", import("../../core/presentations/index.js").DeckComment, "/api/presentations/:name/comments/:id", z.ZodObject<{
|
|
630
|
+
resolved: z.ZodOptional<z.ZodBoolean>;
|
|
631
|
+
reply: z.ZodOptional<z.ZodString>;
|
|
632
|
+
}, z.core.$strip>> | Route<"presentations.create", import("./router.js").Reply<import("../../core/presentations/index.js").PresentationDetail>, "/api/presentations", z.ZodObject<{
|
|
633
|
+
project: z.ZodOptional<z.ZodString>;
|
|
634
|
+
title: z.ZodString;
|
|
635
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
636
|
+
template: z.ZodOptional<z.ZodString>;
|
|
637
|
+
source: z.ZodOptional<z.ZodString>;
|
|
638
|
+
}, z.core.$strip>> | Route<"presentations.delete", {
|
|
639
|
+
ok: true;
|
|
640
|
+
}, "/api/presentations/:name", undefined> | Route<"presentations.export", void, "/api/presentations/:name/export", undefined> | Route<"presentations.file", void, "/api/presentations/:name/file", undefined> | Route<"presentations.get", import("../../core/presentations/index.js").PresentationDetail, "/api/presentations/:name", undefined> | Route<"presentations.history", {
|
|
641
|
+
versions: import("../../core/presentations/versions.js").DeckVersion[];
|
|
642
|
+
}, "/api/presentations/:name/history", undefined> | Route<"presentations.links", {
|
|
643
|
+
tasks: import("../../core/boards.js").LinkingTask[];
|
|
644
|
+
}, "/api/presentations/:name/links", undefined> | Route<"presentations.list", import("../../core/presentations/index.js").PresentationsView, "/api/presentations", undefined> | Route<"presentations.presence", {
|
|
645
|
+
viewers: import("../../core/presentations/presence.js").Viewer[];
|
|
646
|
+
}, "/api/presentations/:name/presence", z.ZodObject<{
|
|
647
|
+
client: z.ZodString;
|
|
648
|
+
slide: z.ZodNumber;
|
|
649
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
650
|
+
leave: z.ZodOptional<z.ZodBoolean>;
|
|
651
|
+
}, z.core.$strip>> | Route<"presentations.save", import("../../core/presentations/index.js").PresentationDetail, "/api/presentations/:name", z.ZodObject<{
|
|
652
|
+
base: z.ZodOptional<z.ZodString>;
|
|
653
|
+
source: z.ZodOptional<z.ZodString>;
|
|
654
|
+
title: z.ZodOptional<z.ZodString>;
|
|
655
|
+
template: z.ZodOptional<z.ZodString>;
|
|
656
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
657
|
+
"16:9": "16:9";
|
|
658
|
+
"4:3": "4:3";
|
|
659
|
+
}>>>;
|
|
660
|
+
numbers: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
661
|
+
slides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
662
|
+
layout: z.ZodOptional<z.ZodString>;
|
|
663
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
664
|
+
background: z.ZodOptional<z.ZodString>;
|
|
665
|
+
transition: z.ZodOptional<z.ZodString>;
|
|
666
|
+
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
667
|
+
content: z.ZodString;
|
|
668
|
+
}, z.core.$strip>>>;
|
|
669
|
+
}, z.core.$strip>> | Route<"presentations.slide", void, "/api/presentations/:name/slides/:n", undefined> | Route<"presentations.templateFile", void, "/api/presentations/templates/:slug/file", undefined> | Route<"presentations.templates", {
|
|
670
|
+
templates: import("../../core/presentations/template.js").TemplateSummary[];
|
|
671
|
+
}, "/api/presentations/templates", undefined> | Route<"presentations.upload", import("./router.js").Reply<{
|
|
672
|
+
path: string;
|
|
673
|
+
size: number;
|
|
674
|
+
}>, "/api/presentations/:name/assets", undefined> | Route<"presentations.version", {
|
|
675
|
+
id: string;
|
|
676
|
+
at: string;
|
|
677
|
+
source: string;
|
|
678
|
+
deck: import("../../core/presentations/deck.js").DeckDoc;
|
|
679
|
+
}, "/api/presentations/:name/history/:id", undefined> | Route<"projects.create", import("./router.js").Reply<import("../../core/projects.js").ProjectDetail>, "/api/projects", z.ZodObject<{
|
|
623
680
|
title: z.ZodString;
|
|
624
681
|
goal: z.ZodOptional<z.ZodString>;
|
|
625
682
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -761,6 +818,10 @@ export declare const routes: (Route<"agents.addJournal", {
|
|
|
761
818
|
enabled: z.ZodBoolean;
|
|
762
819
|
root: z.ZodOptional<z.ZodString>;
|
|
763
820
|
}, z.core.$strip>>;
|
|
821
|
+
presentations: z.ZodOptional<z.ZodObject<{
|
|
822
|
+
enabled: z.ZodBoolean;
|
|
823
|
+
root: z.ZodOptional<z.ZodString>;
|
|
824
|
+
}, z.core.$strip>>;
|
|
764
825
|
}, z.core.$loose>> | Route<"skills.get", import("../../core/skills.js").SkillDetail, "/api/skills/:name", undefined> | Route<"skills.list", {
|
|
765
826
|
root: string;
|
|
766
827
|
skills: import("../../core/skills.js").SkillInfo[];
|
package/dist/server/api/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import { hubRoutes } from "./hub.js";
|
|
|
11
11
|
import { fileRoutes } from "./files.js";
|
|
12
12
|
import { gitRoutes } from "./git.js";
|
|
13
13
|
import { knowledgeRoutes } from "./knowledge.js";
|
|
14
|
+
import { presentationRoutes } from "./presentations.js";
|
|
14
15
|
import { projectRoutes } from "./projects.js";
|
|
15
16
|
import { createRouter, route } from "./router.js";
|
|
16
17
|
import { runRoutes } from "./runs.js";
|
|
@@ -33,6 +34,7 @@ const domainRoutes = [
|
|
|
33
34
|
...channelRoutes,
|
|
34
35
|
...projectRoutes,
|
|
35
36
|
...boardRoutes,
|
|
37
|
+
...presentationRoutes,
|
|
36
38
|
...contactRoutes,
|
|
37
39
|
...placeRoutes,
|
|
38
40
|
...eventRoutes,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Presentations over the API. A deck is addressed by its name and, for a
|
|
4
|
+
* project's deck, `?project=<slug>`. `get` carries everything the editor
|
|
5
|
+
* needs (the parsed slides, the source, the template's layouts and slots,
|
|
6
|
+
* the render warnings); `slide` serves one slide as PNG and `export` the
|
|
7
|
+
* PPTX or PDF — all from the same render (core/presentations).
|
|
8
|
+
*/
|
|
9
|
+
export declare const presentationErrors: (message: string) => number;
|
|
10
|
+
export declare const presentationRoutes: (import("./router.js").Route<"presentations.comment", import("./router.js").Reply<import("../../core/presentations/index.js").DeckComment>, "/api/presentations/:name/comments", z.ZodObject<{
|
|
11
|
+
slide: z.ZodNumber;
|
|
12
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
13
|
+
text: z.ZodString;
|
|
14
|
+
}, z.core.$strip>> | import("./router.js").Route<"presentations.commentDelete", {
|
|
15
|
+
ok: true;
|
|
16
|
+
}, "/api/presentations/:name/comments/:id", undefined> | import("./router.js").Route<"presentations.commentSave", import("../../core/presentations/index.js").DeckComment, "/api/presentations/:name/comments/:id", z.ZodObject<{
|
|
17
|
+
resolved: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
reply: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>> | import("./router.js").Route<"presentations.create", import("./router.js").Reply<import("../../core/presentations/index.js").PresentationDetail>, "/api/presentations", z.ZodObject<{
|
|
20
|
+
project: z.ZodOptional<z.ZodString>;
|
|
21
|
+
title: z.ZodString;
|
|
22
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
23
|
+
template: z.ZodOptional<z.ZodString>;
|
|
24
|
+
source: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>> | import("./router.js").Route<"presentations.delete", {
|
|
26
|
+
ok: true;
|
|
27
|
+
}, "/api/presentations/:name", undefined> | import("./router.js").Route<"presentations.export", void, "/api/presentations/:name/export", undefined> | import("./router.js").Route<"presentations.file", void, "/api/presentations/:name/file", undefined> | import("./router.js").Route<"presentations.get", import("../../core/presentations/index.js").PresentationDetail, "/api/presentations/:name", undefined> | import("./router.js").Route<"presentations.history", {
|
|
28
|
+
versions: import("../../core/presentations/versions.js").DeckVersion[];
|
|
29
|
+
}, "/api/presentations/:name/history", undefined> | import("./router.js").Route<"presentations.links", {
|
|
30
|
+
tasks: import("../../core/boards.js").LinkingTask[];
|
|
31
|
+
}, "/api/presentations/:name/links", undefined> | import("./router.js").Route<"presentations.list", import("../../core/presentations/index.js").PresentationsView, "/api/presentations", undefined> | import("./router.js").Route<"presentations.presence", {
|
|
32
|
+
viewers: import("../../core/presentations/presence.js").Viewer[];
|
|
33
|
+
}, "/api/presentations/:name/presence", z.ZodObject<{
|
|
34
|
+
client: z.ZodString;
|
|
35
|
+
slide: z.ZodNumber;
|
|
36
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
37
|
+
leave: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
}, z.core.$strip>> | import("./router.js").Route<"presentations.save", import("../../core/presentations/index.js").PresentationDetail, "/api/presentations/:name", z.ZodObject<{
|
|
39
|
+
base: z.ZodOptional<z.ZodString>;
|
|
40
|
+
source: z.ZodOptional<z.ZodString>;
|
|
41
|
+
title: z.ZodOptional<z.ZodString>;
|
|
42
|
+
template: z.ZodOptional<z.ZodString>;
|
|
43
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
44
|
+
"16:9": "16:9";
|
|
45
|
+
"4:3": "4:3";
|
|
46
|
+
}>>>;
|
|
47
|
+
numbers: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
48
|
+
slides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
+
layout: z.ZodOptional<z.ZodString>;
|
|
50
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
51
|
+
background: z.ZodOptional<z.ZodString>;
|
|
52
|
+
transition: z.ZodOptional<z.ZodString>;
|
|
53
|
+
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
54
|
+
content: z.ZodString;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
56
|
+
}, z.core.$strip>> | import("./router.js").Route<"presentations.slide", void, "/api/presentations/:name/slides/:n", undefined> | import("./router.js").Route<"presentations.templateFile", void, "/api/presentations/templates/:slug/file", undefined> | import("./router.js").Route<"presentations.templates", {
|
|
57
|
+
templates: import("../../core/presentations/template.js").TemplateSummary[];
|
|
58
|
+
}, "/api/presentations/templates", undefined> | import("./router.js").Route<"presentations.upload", import("./router.js").Reply<{
|
|
59
|
+
path: string;
|
|
60
|
+
size: number;
|
|
61
|
+
}>, "/api/presentations/:name/assets", undefined> | import("./router.js").Route<"presentations.version", {
|
|
62
|
+
id: string;
|
|
63
|
+
at: string;
|
|
64
|
+
source: string;
|
|
65
|
+
deck: import("../../core/presentations/deck.js").DeckDoc;
|
|
66
|
+
}, "/api/presentations/:name/history/:id", undefined>)[];
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { createReadStream } from "node:fs";
|
|
2
|
+
import { stat } from "node:fs/promises";
|
|
3
|
+
import * as z from "zod";
|
|
4
|
+
import { createDeck, deckSlidePng, deleteDeck, exportBytes, getDeck, listAllDecks, listDecks, listTemplates, openPresentations, saveAsset, addComment, updateComment, deleteComment, StaleDeckError, existingDeckDir, deckVersions, deckVersion, deckFile, templateFile, saveDeck, } from "../../core/presentations/index.js";
|
|
5
|
+
import { ApiError, fail, reply, route, statusByMessage } from "./router.js";
|
|
6
|
+
import { localPerson } from "../../core/chat/sessions.js";
|
|
7
|
+
import { tasksReferencing } from "../../core/boards.js";
|
|
8
|
+
import { leavePresence, touchPresence } from "../../core/presentations/presence.js";
|
|
9
|
+
/**
|
|
10
|
+
* Presentations over the API. A deck is addressed by its name and, for a
|
|
11
|
+
* project's deck, `?project=<slug>`. `get` carries everything the editor
|
|
12
|
+
* needs (the parsed slides, the source, the template's layouts and slots,
|
|
13
|
+
* the render warnings); `slide` serves one slide as PNG and `export` the
|
|
14
|
+
* PPTX or PDF — all from the same render (core/presentations).
|
|
15
|
+
*/
|
|
16
|
+
export const presentationErrors = statusByMessage(/^no (presentation|slide|project)/);
|
|
17
|
+
const Slide = z.object({
|
|
18
|
+
layout: z.string().optional(),
|
|
19
|
+
notes: z.string().optional(),
|
|
20
|
+
background: z.string().optional(),
|
|
21
|
+
transition: z.string().optional(),
|
|
22
|
+
extra: z.record(z.string(), z.unknown()).optional(),
|
|
23
|
+
content: z.string(),
|
|
24
|
+
});
|
|
25
|
+
const SaveFields = z.object({
|
|
26
|
+
/** The updatedAt the caller's copy was read at: a deck changed since then is not overwritten (409 with the current updatedAt). */
|
|
27
|
+
base: z.string().optional(),
|
|
28
|
+
source: z.string().optional(),
|
|
29
|
+
title: z.string().optional(),
|
|
30
|
+
template: z.string().optional(),
|
|
31
|
+
size: z.enum(["16:9", "4:3"]).nullable().optional(),
|
|
32
|
+
/** false: no slide numbers in the deck (`numbers: false` in its headmatter); true or null: back on. */
|
|
33
|
+
numbers: z.boolean().nullable().optional(),
|
|
34
|
+
slides: z.array(Slide).optional(),
|
|
35
|
+
});
|
|
36
|
+
const CreateFields = z.object({
|
|
37
|
+
project: z.string().optional(),
|
|
38
|
+
title: z.string(),
|
|
39
|
+
slug: z.string().optional(),
|
|
40
|
+
template: z.string().optional(),
|
|
41
|
+
source: z.string().optional(),
|
|
42
|
+
});
|
|
43
|
+
const refOf = (c) => {
|
|
44
|
+
const project = c.query.get("project");
|
|
45
|
+
return { ...(project ? { project } : {}), name: c.params.name };
|
|
46
|
+
};
|
|
47
|
+
/** Who writes a comment: a member by their handle, else this machine's person. */
|
|
48
|
+
const authorOf = async (trust) => (trust.kind === "member" ? trust.member.handle : (await localPerson()).handle);
|
|
49
|
+
const requireOn = async () => {
|
|
50
|
+
if ((await openPresentations()).off)
|
|
51
|
+
fail(409, "presentations are off");
|
|
52
|
+
};
|
|
53
|
+
/** A deck's or a template's file, as the browser asks for it. SVGs run no scripts here. */
|
|
54
|
+
async function sendFile(c, f) {
|
|
55
|
+
const st = await stat(f.path);
|
|
56
|
+
c.res.writeHead(200, {
|
|
57
|
+
"content-type": f.mime,
|
|
58
|
+
"content-length": st.size,
|
|
59
|
+
"cache-control": "private, max-age=0, must-revalidate",
|
|
60
|
+
"last-modified": st.mtime.toUTCString(),
|
|
61
|
+
"x-content-type-options": "nosniff",
|
|
62
|
+
...(f.mime === "image/svg+xml" ? { "content-security-policy": "sandbox" } : {}),
|
|
63
|
+
});
|
|
64
|
+
createReadStream(f.path).pipe(c.res);
|
|
65
|
+
}
|
|
66
|
+
export const presentationRoutes = [
|
|
67
|
+
route({ name: "presentations.list", method: "GET", path: "/api/presentations", summary: "the decks: a project's with ?project=, every deck with ?all=1, else the workspace's" }, async (c) => {
|
|
68
|
+
if (c.query.get("all") === "1") {
|
|
69
|
+
const opened = await openPresentations();
|
|
70
|
+
return { enabled: !opened.off && !!opened.root, ...(opened.root ? { root: opened.root } : {}), presentations: await listAllDecks(), ...(opened.error ? { error: opened.error } : {}) };
|
|
71
|
+
}
|
|
72
|
+
return listDecks(c.query.get("project") ?? undefined);
|
|
73
|
+
}),
|
|
74
|
+
route({ name: "presentations.templates", method: "GET", path: "/api/presentations/templates", summary: "the templates: the built-in one and the workspace's, with their layouts" }, async () => {
|
|
75
|
+
return { templates: await listTemplates() };
|
|
76
|
+
}),
|
|
77
|
+
route({ name: "presentations.create", method: "POST", path: "/api/presentations", summary: "create a deck (a starter deck.md, or from `source`)", errors: presentationErrors, body: CreateFields }, async (c) => {
|
|
78
|
+
await requireOn();
|
|
79
|
+
const body = await c.body();
|
|
80
|
+
return reply(201, await createDeck({ ...(body.project ? { project: body.project } : {}), title: body.title, ...(body.slug ? { slug: body.slug } : {}), ...(body.template ? { template: body.template } : {}), ...(body.source ? { source: body.source } : {}) }));
|
|
81
|
+
}),
|
|
82
|
+
route({ name: "presentations.get", method: "GET", path: "/api/presentations/:name", summary: "one deck: slides, source, layouts, warnings (?project=)", errors: presentationErrors }, async (c) => {
|
|
83
|
+
await requireOn();
|
|
84
|
+
const d = await getDeck(refOf(c));
|
|
85
|
+
if (!d)
|
|
86
|
+
fail(404, `no presentation "${c.params.name}"`);
|
|
87
|
+
return d;
|
|
88
|
+
}),
|
|
89
|
+
route({ name: "presentations.save", method: "PUT", path: "/api/presentations/:name", summary: "save a deck: the whole source, or title/template/size/numbers/slides (?project=)", errors: presentationErrors, body: SaveFields }, async (c) => {
|
|
90
|
+
await requireOn();
|
|
91
|
+
const { slides, ...rest } = await c.body();
|
|
92
|
+
try {
|
|
93
|
+
return await saveDeck(refOf(c), { ...rest, ...(slides ? { slides: slides.map((s) => ({ ...s, extra: s.extra ?? {} })) } : {}) });
|
|
94
|
+
}
|
|
95
|
+
catch (err) {
|
|
96
|
+
if (err instanceof StaleDeckError)
|
|
97
|
+
throw new ApiError(409, err.message, { error: err.message, updatedAt: err.current });
|
|
98
|
+
throw err;
|
|
99
|
+
}
|
|
100
|
+
}),
|
|
101
|
+
route({ name: "presentations.delete", method: "DELETE", path: "/api/presentations/:name", summary: "move a deck to the trash (?project=)", errors: presentationErrors }, async (c) => {
|
|
102
|
+
await requireOn();
|
|
103
|
+
await deleteDeck(refOf(c));
|
|
104
|
+
return { ok: true };
|
|
105
|
+
}),
|
|
106
|
+
// The body is the picture itself; x-file-name names it.
|
|
107
|
+
route({ name: "presentations.upload", method: "POST", path: "/api/presentations/:name/assets", summary: "upload a picture into the deck's assets/ (?project=)", errors: (m) => (/^no (presentation|project)/.test(m) ? 404 : 400), upload: true }, async (c) => {
|
|
108
|
+
await requireOn();
|
|
109
|
+
const name = decodeURIComponent(String(c.req.headers["x-file-name"] ?? "picture.png"));
|
|
110
|
+
return reply(201, await saveAsset(refOf(c), name, c.req));
|
|
111
|
+
}),
|
|
112
|
+
route({ name: "presentations.comment", method: "POST", path: "/api/presentations/:name/comments", summary: "comment on slide n, or one of its boxes {slide, slot?, text} (?project=)", errors: (m) => (/^no (presentation|slide|project)/.test(m) ? 404 : 400), body: z.object({ slide: z.number().int().positive(), slot: z.string().optional(), text: z.string() }) }, async (c) => {
|
|
113
|
+
await requireOn();
|
|
114
|
+
const body = await c.body();
|
|
115
|
+
return reply(201, await addComment(refOf(c), { ...body, author: await authorOf(c.trust) }));
|
|
116
|
+
}),
|
|
117
|
+
route({ name: "presentations.commentSave", method: "PUT", path: "/api/presentations/:name/comments/:id", summary: "resolve or reopen a comment, or answer it {resolved?, reply?} (?project=)", errors: (m) => (/^no (presentation|project|comment)/.test(m) ? 404 : 400), body: z.object({ resolved: z.boolean().optional(), reply: z.string().optional() }) }, async (c) => {
|
|
118
|
+
await requireOn();
|
|
119
|
+
return updateComment(refOf(c), c.params.id, { ...(await c.body()), author: await authorOf(c.trust) });
|
|
120
|
+
}),
|
|
121
|
+
route({ name: "presentations.commentDelete", method: "DELETE", path: "/api/presentations/:name/comments/:id", summary: "remove a comment (?project=)", errors: (m) => (/^no (presentation|project|comment)/.test(m) ? 404 : 400) }, async (c) => {
|
|
122
|
+
await requireOn();
|
|
123
|
+
await deleteComment(refOf(c), c.params.id);
|
|
124
|
+
return { ok: true };
|
|
125
|
+
}),
|
|
126
|
+
route({ name: "presentations.presence", method: "POST", path: "/api/presentations/:name/presence", summary: "this editor is on slide n (and box slot), or left {client, slide, slot?, leave?} → everyone on the deck; live: sub `deck.<project>/<name>` (?project=)", errors: presentationErrors, body: z.object({ client: z.string().min(1).max(64), slide: z.number().int().positive(), slot: z.string().max(64).optional(), leave: z.boolean().optional() }) }, async (c) => {
|
|
127
|
+
await requireOn();
|
|
128
|
+
const body = await c.body();
|
|
129
|
+
const dir = await existingDeckDir(refOf(c));
|
|
130
|
+
if (body.leave) {
|
|
131
|
+
leavePresence(dir, body.client);
|
|
132
|
+
return { viewers: [] };
|
|
133
|
+
}
|
|
134
|
+
return { viewers: touchPresence(dir, { client: body.client, who: await authorOf(c.trust), slide: body.slide, ...(body.slot ? { slot: body.slot } : {}) }) };
|
|
135
|
+
}),
|
|
136
|
+
route({ name: "presentations.history", method: "GET", path: "/api/presentations/:name/history", summary: "the deck's earlier versions, newest first (?project=)", errors: presentationErrors }, async (c) => {
|
|
137
|
+
await requireOn();
|
|
138
|
+
return { versions: await deckVersions(refOf(c)) };
|
|
139
|
+
}),
|
|
140
|
+
route({ name: "presentations.links", method: "GET", path: "/api/presentations/:name/links", summary: "the tasks that link the deck (presentation:<name> in their refs) (?project=)", errors: presentationErrors }, async (c) => {
|
|
141
|
+
await requireOn();
|
|
142
|
+
const ref = refOf(c);
|
|
143
|
+
await existingDeckDir(ref);
|
|
144
|
+
return { tasks: await tasksReferencing(`presentation:${ref.name}`) };
|
|
145
|
+
}),
|
|
146
|
+
route({ name: "presentations.version", method: "GET", path: "/api/presentations/:name/history/:id", summary: "one earlier version: its deck.md and the deck parsed (?project=)", errors: (m) => (/^no (presentation|project|version)/.test(m) ? 404 : 400) }, async (c) => {
|
|
147
|
+
await requireOn();
|
|
148
|
+
return deckVersion(refOf(c), c.params.id);
|
|
149
|
+
}),
|
|
150
|
+
route({ name: "presentations.templateFile", method: "GET", path: "/api/presentations/templates/:slug/file", summary: "a file of a workspace template: its fonts, its pictures (?path=)", errors: 404, raw: true }, async (c) => {
|
|
151
|
+
await requireOn();
|
|
152
|
+
const f = await templateFile(c.params.slug, c.query.get("path") ?? "");
|
|
153
|
+
if (!f)
|
|
154
|
+
fail(404, "no such file");
|
|
155
|
+
await sendFile(c, f);
|
|
156
|
+
}),
|
|
157
|
+
route({ name: "presentations.file", method: "GET", path: "/api/presentations/:name/file", summary: "a file of a deck: a picture under assets/ (?path=&project=)", errors: presentationErrors, raw: true }, async (c) => {
|
|
158
|
+
await requireOn();
|
|
159
|
+
const f = await deckFile(refOf(c), c.query.get("path") ?? "");
|
|
160
|
+
if (!f)
|
|
161
|
+
fail(404, "no such file");
|
|
162
|
+
await sendFile(c, f);
|
|
163
|
+
}),
|
|
164
|
+
route({ name: "presentations.slide", method: "GET", path: "/api/presentations/:name/slides/:n", summary: "one slide as PNG (?project=&width=1280; &hide=<slot> leaves that slot's content out)", errors: presentationErrors, raw: true }, async (c) => {
|
|
165
|
+
await requireOn();
|
|
166
|
+
const width = Math.min(3840, Math.max(160, Number(c.query.get("width")) || 1280));
|
|
167
|
+
const png = await deckSlidePng(refOf(c), Number(c.params.n), width, c.query.get("hide") ?? undefined);
|
|
168
|
+
c.res.writeHead(200, { "content-type": "image/png", "content-length": png.length, "cache-control": "private, max-age=0, must-revalidate", "x-content-type-options": "nosniff" });
|
|
169
|
+
c.res.end(Buffer.from(png));
|
|
170
|
+
}),
|
|
171
|
+
route({ name: "presentations.export", method: "GET", path: "/api/presentations/:name/export", summary: "the deck as a file: ?format=pptx|pdf|html (?project=)", errors: presentationErrors, raw: true }, async (c) => {
|
|
172
|
+
await requireOn();
|
|
173
|
+
const f = c.query.get("format");
|
|
174
|
+
const format = f === "pdf" || f === "html" ? f : "pptx";
|
|
175
|
+
const out = await exportBytes(refOf(c), format);
|
|
176
|
+
c.res.writeHead(200, {
|
|
177
|
+
"content-type": out.mime,
|
|
178
|
+
"content-length": out.bytes.length,
|
|
179
|
+
"cache-control": "no-store",
|
|
180
|
+
"x-content-type-options": "nosniff",
|
|
181
|
+
"content-disposition": `attachment; filename*=UTF-8''${encodeURIComponent(out.filename)}`,
|
|
182
|
+
});
|
|
183
|
+
c.res.end(Buffer.from(out.bytes));
|
|
184
|
+
}),
|
|
185
|
+
];
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { subscribeChat } from "../../core/chat/sessions.js";
|
|
2
2
|
import { watch } from "../live.js";
|
|
3
3
|
import { resolveVibeable, subscribeVibeable } from "../../core/vibeables.js";
|
|
4
|
+
import { existingDeckDir } from "../../core/presentations/index.js";
|
|
5
|
+
import { leavePresence, subscribePresence, watchDeckFiles } from "../../core/presentations/presence.js";
|
|
6
|
+
import { changed } from "../../core/changes.js";
|
|
7
|
+
import { AsyncResource } from "node:async_hooks";
|
|
4
8
|
import { MACHINE_ROUTES, runInHub } from "../hub-context.js";
|
|
5
9
|
import { apiRouter, PROTOCOL_VERSION, routes } from "./index.js";
|
|
6
10
|
/**
|
|
@@ -17,7 +21,10 @@ import { apiRouter, PROTOCOL_VERSION, routes } from "./index.js";
|
|
|
17
21
|
* → `{watch: key, data}` now and whenever it changes. `{unwatch: key}` stops.
|
|
18
22
|
* - `{sub: key, topic, after?}` follows an event stream: `chat.<id>` (events
|
|
19
23
|
* after seq `after`, then new ones) or `vibeable.<slug>` (file changes, dev
|
|
20
|
-
* server state)
|
|
24
|
+
* server state) or `deck.<project>/<name>[@<client>]` (who has the deck
|
|
25
|
+
* open, where: the whole list on each change; with `@<client>`, that
|
|
26
|
+
* editor leaves the deck when the subscription or the socket ends) → `{event: key, data}` per event.
|
|
27
|
+
* `{unsub: key}` stops.
|
|
21
28
|
*
|
|
22
29
|
* `key`s are the client's own names, unique per connection. A refusal of a
|
|
23
30
|
* message is `{id?, watch?, sub?, error}`.
|
|
@@ -65,6 +72,22 @@ export function serveSocket(conn, workspaceOf, version, trust, recheck, hub) {
|
|
|
65
72
|
if (dir)
|
|
66
73
|
unsubscribe = subscribeVibeable(name, dir, push);
|
|
67
74
|
}
|
|
75
|
+
else if (kind === "deck" && name) {
|
|
76
|
+
const [deck, client] = name.split("@");
|
|
77
|
+
const [a, b] = deck.split("/");
|
|
78
|
+
const dir = await existingDeckDir(b ? { project: a, name: b } : { name: a }).catch(() => null);
|
|
79
|
+
if (dir) {
|
|
80
|
+
const stopFollowing = subscribePresence(dir, (viewers) => push({ viewers }));
|
|
81
|
+
// A file changed on disk (an agent, the CLI): the watched routes re-evaluate now, in this connection's workspace.
|
|
82
|
+
const stopFiles = watchDeckFiles(dir, AsyncResource.bind(() => changed()));
|
|
83
|
+
unsubscribe = () => {
|
|
84
|
+
stopFollowing();
|
|
85
|
+
stopFiles();
|
|
86
|
+
if (client)
|
|
87
|
+
leavePresence(dir, client);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
68
91
|
else {
|
|
69
92
|
if (stops.get(key) === placeholder)
|
|
70
93
|
stops.delete(key);
|
|
@@ -37,6 +37,7 @@ export declare const workspaceRoutes: (import("./router.js").Route<"identity.get
|
|
|
37
37
|
places: boolean;
|
|
38
38
|
events: boolean;
|
|
39
39
|
boards: boolean;
|
|
40
|
+
presentations: boolean;
|
|
40
41
|
/** @deprecated Always "": the Cloudflare Tunnel that set it was removed in 0.65. Removed with protocol 2. */
|
|
41
42
|
publicUrl: string;
|
|
42
43
|
cloud: {
|
|
@@ -106,6 +107,10 @@ export declare const workspaceRoutes: (import("./router.js").Route<"identity.get
|
|
|
106
107
|
enabled: z.ZodBoolean;
|
|
107
108
|
root: z.ZodOptional<z.ZodString>;
|
|
108
109
|
}, z.core.$strip>>;
|
|
110
|
+
presentations: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
enabled: z.ZodBoolean;
|
|
112
|
+
root: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
109
114
|
}, z.core.$loose>> | import("./router.js").Route<"update.check", import("./router.js").Reply<{
|
|
110
115
|
name: string;
|
|
111
116
|
current: string;
|
|
@@ -37,6 +37,7 @@ const SettingsFields = z.looseObject({
|
|
|
37
37
|
places: RootBlock.optional(),
|
|
38
38
|
events: RootBlock.optional(),
|
|
39
39
|
boards: RootBlock.optional(),
|
|
40
|
+
presentations: RootBlock.optional(),
|
|
40
41
|
});
|
|
41
42
|
/**
|
|
42
43
|
* Mark the workspaces the hub answering this request serves — or, a daemon,
|
|
@@ -113,6 +114,7 @@ export const workspaceRoutes = [
|
|
|
113
114
|
places: (ws?.config.places && ws.config.places.enabled !== false) === true,
|
|
114
115
|
events: (ws?.config.events && ws.config.events.enabled !== false) === true,
|
|
115
116
|
boards: (ws?.config.boards && ws.config.boards.enabled !== false) === true,
|
|
117
|
+
presentations: (ws?.config.presentations && ws.config.presentations.enabled !== false) === true,
|
|
116
118
|
/** @deprecated Always "": the Cloudflare Tunnel that set it was removed in 0.65. Removed with protocol 2. */
|
|
117
119
|
publicUrl: "",
|
|
118
120
|
// The machine's cloud record (only the daemon registers one); `included`: this workspace rides along (no cloud.enabled: false veto).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netnodeag/kraftwerk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Open-source agentic workspace for teams
|
|
3
|
+
"version": "0.84.0",
|
|
4
|
+
"description": "Open-source agentic workspace for teams — where people and AI agents get work done together: agents (Claude Code, Codex, Pi), skills, shared knowledge, repeatable workflows, and deterministic verification",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
7
7
|
"workflow",
|
|
@@ -72,11 +72,15 @@
|
|
|
72
72
|
"@agentclientprotocol/codex-acp": "^1.10.0",
|
|
73
73
|
"@agentclientprotocol/sdk": "^1.4.0",
|
|
74
74
|
"@inquirer/prompts": "^8.7.1",
|
|
75
|
+
"@office-kit/pptx": "0.28.0",
|
|
76
|
+
"@office-kit/pptx-preview": "0.21.0",
|
|
75
77
|
"ajv": "^8.20.0",
|
|
76
78
|
"chalk": "^6.0.0",
|
|
77
79
|
"cli-table3": "^0.6.5",
|
|
78
80
|
"commander": "^15.0.0",
|
|
81
|
+
"marked": "18.0.11",
|
|
79
82
|
"ora": "^9.4.1",
|
|
83
|
+
"playwright-core": "1.63.0",
|
|
80
84
|
"yaml": "^2.9.0",
|
|
81
85
|
"zod": "^4.6.5"
|
|
82
86
|
},
|
|
@@ -225,6 +225,24 @@
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
|
+
"presentations": {
|
|
229
|
+
"type": [
|
|
230
|
+
"object",
|
|
231
|
+
"null"
|
|
232
|
+
],
|
|
233
|
+
"additionalProperties": false,
|
|
234
|
+
"description": "Presentations: slide decks as folders (deck.md, assets/, exports/) per project (projects/<p>/presentations/) and workspace-wide under the root, rendered from a template into PPTX, PDF and slide images. Absent = feature off, a bare `presentations:` = on with defaults.",
|
|
235
|
+
"properties": {
|
|
236
|
+
"enabled": {
|
|
237
|
+
"type": "boolean",
|
|
238
|
+
"description": "Turn the feature off while keeping the config. Default: true when this block exists"
|
|
239
|
+
},
|
|
240
|
+
"root": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"description": "Where the workspace decks and templates live, relative to the project root. Default: kraftwerk-data/presentations"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
228
246
|
"boards": {
|
|
229
247
|
"type": [
|
|
230
248
|
"object",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as e,R as t,Ut as n,i as r,r as i,s as a,u as o}from"./dist-CYzOYk_e.js";import{n as s}from"./dist-
|
|
1
|
+
import{L as e,R as t,Ut as n,i as r,r as i,s as a,u as o}from"./dist-CYzOYk_e.js";import{n as s}from"./dist-Dt9RqYvy.js";import{r as c}from"./dist-xXM6FJLm.js";var l=i.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:`!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso`,nodeNames:`⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity`,maxTerm:36,nodeProps:[[`isolate`,-3,3,13,17,``]],skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new r(`b~RP#q#rU~XP#q#r[~aOT~~`,17,4),new r("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new r(`[~RPwxU~ZOp~~`,11,15),new r(`[~RPrsU~ZOn~~`,11,14),new r("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new r("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),u=c.parser.configure({top:`SingleExpression`}),d=l.configure({props:[e({Text:t.content,Is:t.definitionOperator,AttributeName:t.attributeName,VueAttributeName:t.keyword,Identifier:t.variableName,"AttributeValue ScriptAttributeValue":t.attributeValue,Entity:t.character,"{{ }}":t.brace,"@ :":t.punctuation})]}),f={parser:u},p=d.configure({wrap:n((e,t)=>e.name==`InterpolationContent`?f:null)}),m=d.configure({wrap:n((e,t)=>e.name==`AttributeScript`?f:null),top:`Attribute`}),h={parser:p},g={parser:m},_=s();function v(e){return e.configure({dialect:`selfClosing`,wrap:n(b)},`vue`)}var y=v(_.language);function b(e,t){switch(e.name){case`Attribute`:return/^(@|:|v-)/.test(t.read(e.from,e.from+2))?g:null;case`Text`:return h}return null}function x(e={}){let t=_;if(e.base){if(e.base.language.name!=`html`||!(e.base.language instanceof a))throw RangeError(`The base option must be the result of calling html(...)`);t=e.base}return new o(t.language==_.language?y:v(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:[`{`,`"`]}})])}export{x as vue};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,D as t,L as n,R as r,h as i,n as a,r as o,s,u as c,x as l}from"./dist-CYzOYk_e.js";import{r as u}from"./dist-Bie1ebP9.js";var d=110,f=1,p=2,m=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function h(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function g(e){return e>=48&&e<=57}var _=new a((e,t)=>{if(e.next==40){let t=e.peek(-1);(h(t)||g(t)||t==95||t==45)&&e.acceptToken(p,1)}}),v=new a(e=>{if(m.indexOf(e.peek(-1))>-1){let{next:t}=e;(h(t)||t==95||t==35||t==46||t==91||t==58||t==45)&&e.acceptToken(d)}}),y=new a(e=>{if(m.indexOf(e.peek(-1))<0){let{next:t}=e;if(t==37&&(e.advance(),e.acceptToken(f)),h(t)){do e.advance();while(h(e.next));e.acceptToken(f)}}}),b=n({"import charset namespace keyframes media supports when":r.definitionKeyword,"from to selector":r.keyword,NamespaceName:r.namespace,KeyframeName:r.labelName,TagName:r.tagName,ClassName:r.className,PseudoClassName:r.constant(r.className),IdName:r.labelName,"FeatureName PropertyName PropertyVariable":r.propertyName,AttributeName:r.attributeName,NumberLiteral:r.number,KeywordQuery:r.keyword,UnaryQueryOp:r.operatorKeyword,"CallTag ValueName":r.atom,VariableName:r.variableName,"AtKeyword Interpolation":r.special(r.variableName),Callee:r.operatorKeyword,Unit:r.unit,"UniversalSelector NestingSelector":r.definitionOperator,MatchOp:r.compareOperator,"ChildOp SiblingOp, LogicOp":r.logicOperator,BinOp:r.arithmeticOperator,Important:r.modifier,"Comment LineComment":r.blockComment,ColorLiteral:r.color,"ParenthesizedContent StringLiteral":r.string,Escape:r.special(r.string),": ...":r.punctuation,"PseudoOp #":r.derefOperator,"; ,":r.separator,"( )":r.paren,"[ ]":r.squareBracket,"{ }":r.brace}),x={__proto__:null,lang:40,"nth-child":40,"nth-last-child":40,"nth-of-type":40,"nth-last-of-type":40,dir:40,"host-context":40,and:244,or:244,not:74,only:74,url:86,"url-prefix":86,domain:86,regexp:86,when:117,selector:142,from:172,to:174},S={__proto__:null,"@import":126,"@plugin":126,"@media":152,"@charset":156,"@namespace":160,"@keyframes":166,"@supports":178},C=o.deserialize({version:14,states:"@^O!gQWOOO!nQaO'#CeOOQP'#Cd'#CdO$RQWO'#CgO$xQaO'#EaO%cQWO'#CiO%kQWO'#DZO%pQWO'#D^O%uQaO'#DfOOQP'#Es'#EsO'YQWO'#DlO'yQWO'#DyO(QQWO'#D{O(xQWO'#D}O)TQWO'#EQO'bQWO'#EWO)YQ`O'#FTO)]Q`O'#FTO)hQ`O'#FTO)vQWO'#EYOOQO'#Er'#ErOOQO'#FV'#FVOOQO'#Ec'#EcO){QWO'#EqO*WQWO'#EqQOQWOOOOQP'#Ch'#ChOOQP,59R,59RO$RQWO,59RO*bQWO'#EdO+PQWO,58|O+_QWO,59TO%kQWO,59uO%pQWO,59xO*bQWO,59{O*bQWO,59}OOQO'#De'#DeO*bQWO,5:OO,bQpO'#E}O,iQWO'#DkOOQO,58|,58|O(QQWO,58|O,pQWO,5:{OOQO,5:{,5:{OOQT'#Cl'#ClO-UQeO,59TO.cQ[O,59TOOQP'#D]'#D]OOQP,59u,59uOOQO'#D_'#D_O.hQpO,59xOOQO'#EZ'#EZO.pQ`O,5;oOOQO,5;o,5;oO/OQWO,5:WO/VQWO,5:WOOQS'#Dn'#DnO/rQWO'#DsO/yQ!fO'#FRO0eQWO'#DtOOQS'#FS'#FSO+YQWO,5:eO'bQWO'#DrOOQS'#Cu'#CuO(QQWO'#CwO0jQ!hO'#CyO2^Q!fO,5:gO2oQWO'#DWOOQS'#Ex'#ExO(QQWO'#DQOOQO'#EP'#EPO2tQWO,5:iO2yQWO,5:iOOQO'#ES'#ES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ames:`⚠ Unit ( Comment LineComment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName ) ArgList , PseudoClassName ArgList VariableName AtKeyword PropertyVariable ValueName ( ParenthesizedValue ColorLiteral NumberLiteral StringLiteral Escape Interpolation BinaryExpression BinOp LogicOp UnaryExpression UnaryQueryOp CallExpression ] SubscriptExpression [ CallLiteral CallTag ParenthesizedContent IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp InterpolatedSelector ; when } { Block ImportStatement import KeywordQuery FeatureQuery FeatureName BinaryQuery UnaryQuery ParenthesizedQuery SelectorQuery selector CallQuery ArgList SubscriptQuery MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList from to SupportsStatement supports DetachedRuleSet PropertyName Declaration Important Inclusion IdSelector ClassSelector Inclusion CallExpression`,maxTerm:133,nodeProps:[[`isolate`,-3,3,4,30,``],[`openedBy`,17,`(`,59,`{`],[`closedBy`,26,`)`,60,`}`]],propSources:[b],skippedNodes:[0,3,4],repeatNodeCount:10,tokenData:"!2q~R!ZOX$tX^%l^p$tpq%lqr)Ors-xst/ltu6Zuv$tvw8^wx:Uxy;syz<Uz{<Z{|<t|}BQ}!OBc!O!PDo!P!QFY!Q![Jw![!]Kr!]!^Ln!^!_MP!_!`M{!`!aNl!a!b$t!b!c! m!c!}!&R!}#O!'y#O#P$t#P#Q!([#Q#R!(m#R#T$t#T#o!&R#o#p!)S#p#q!(m#q#r!)e#r#s!)v#s#y$t#y#z%l#z$f$t$f$g%l$g#BY$t#BY#BZ%l#BZ$IS$t$IS$I_%l$I_$I|$t$I|$JO%l$JO$JT$t$JT$JU%l$JU$KV$t$KV$KW%l$KW&FU$t&FU&FV%l&FV;'S$t;'S;=`!2k<%lO$t`$wSOy%Tz;'S%T;'S;=`%f<%lO%T`%YS|`Oy%Tz;'S%T;'S;=`%f<%lO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w!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!/o<%lO!/o]!1ZP;=`<%l!/om!1cU|`Oy!.wyz!/oz;'S!.w;'S;=`!1u;=`<%l!/o<%lO!.wm!1xXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!.w<%lO!/om!2hP;=`<%l!.w`!2nP;=`<%l$t",tokenizers:[v,y,_,0,1,2,3,4],topRules:{StyleSheet:[0,5]},specialized:[{term:116,get:e=>x[e]||-1},{term:23,get:e=>S[e]||-1}],tokenPrec:2180}),w=s.define({name:`less`,parser:C.configure({props:[t.add({Declaration:i()}),e.add({Block:l})]}),languageData:{commentTokens:{block:{open:`/*`,close:`*/`},line:`//`},indentOnInput:/^\s*\}$/,wordChars:`@-`}}),T=u(e=>e.name==`VariableName`||e.name==`AtKeyword`);function E(){return new c(w,w.data.of({autocomplete:T}))}export{E as less};
|
|
1
|
+
import{C as e,D as t,L as n,R as r,h as i,n as a,r as o,s,u as c,x as l}from"./dist-CYzOYk_e.js";import{r as u}from"./dist-DGymUpLv.js";var d=110,f=1,p=2,m=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function h(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function g(e){return e>=48&&e<=57}var _=new a((e,t)=>{if(e.next==40){let t=e.peek(-1);(h(t)||g(t)||t==95||t==45)&&e.acceptToken(p,1)}}),v=new a(e=>{if(m.indexOf(e.peek(-1))>-1){let{next:t}=e;(h(t)||t==95||t==35||t==46||t==91||t==58||t==45)&&e.acceptToken(d)}}),y=new a(e=>{if(m.indexOf(e.peek(-1))<0){let{next:t}=e;if(t==37&&(e.advance(),e.acceptToken(f)),h(t)){do e.advance();while(h(e.next));e.acceptToken(f)}}}),b=n({"import charset namespace keyframes media supports when":r.definitionKeyword,"from to selector":r.keyword,NamespaceName:r.namespace,KeyframeName:r.labelName,TagName:r.tagName,ClassName:r.className,PseudoClassName:r.constant(r.className),IdName:r.labelName,"FeatureName PropertyName PropertyVariable":r.propertyName,AttributeName:r.attributeName,NumberLiteral:r.number,KeywordQuery:r.keyword,UnaryQueryOp:r.operatorKeyword,"CallTag ValueName":r.atom,VariableName:r.variableName,"AtKeyword Interpolation":r.special(r.variableName),Callee:r.operatorKeyword,Unit:r.unit,"UniversalSelector NestingSelector":r.definitionOperator,MatchOp:r.compareOperator,"ChildOp SiblingOp, LogicOp":r.logicOperator,BinOp:r.arithmeticOperator,Important:r.modifier,"Comment LineComment":r.blockComment,ColorLiteral:r.color,"ParenthesizedContent StringLiteral":r.string,Escape:r.special(r.string),": ...":r.punctuation,"PseudoOp #":r.derefOperator,"; ,":r.separator,"( )":r.paren,"[ ]":r.squareBracket,"{ }":r.brace}),x={__proto__:null,lang:40,"nth-child":40,"nth-last-child":40,"nth-of-type":40,"nth-last-of-type":40,dir:40,"host-context":40,and:244,or:244,not:74,only:74,url:86,"url-prefix":86,domain:86,regexp:86,when:117,selector:142,from:172,to:174},S={__proto__:null,"@import":126,"@plugin":126,"@media":152,"@charset":156,"@namespace":160,"@keyframes":166,"@supports":178},C=o.deserialize({version:14,states:"@^O!gQWOOO!nQaO'#CeOOQP'#Cd'#CdO$RQWO'#CgO$xQaO'#EaO%cQWO'#CiO%kQWO'#DZO%pQWO'#D^O%uQaO'#DfOOQP'#Es'#EsO'YQWO'#DlO'yQWO'#DyO(QQWO'#D{O(xQWO'#D}O)TQWO'#EQO'bQWO'#EWO)YQ`O'#FTO)]Q`O'#FTO)hQ`O'#FTO)vQWO'#EYOOQO'#Er'#ErOOQO'#FV'#FVOOQO'#Ec'#EcO){QWO'#EqO*WQWO'#EqQOQWOOOOQP'#Ch'#ChOOQP,59R,59RO$RQWO,59RO*bQWO'#EdO+PQWO,58|O+_QWO,59TO%kQWO,59uO%pQWO,59xO*bQWO,59{O*bQWO,59}OOQO'#De'#DeO*bQWO,5:OO,bQpO'#E}O,iQWO'#D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$hQ$s#fR%r$sQ#q![R$|#qQ%W$PR%{%WQ!o`Q#c!UT$T!o#cQ%[$UR&O%[QiOR#ZwVfOhwUSOhwQ!wmQ#RrQ#SsQ#TuQ$k#^Q$}#rR%a$YR$l#^R$n#`Q!d[S#Uv$gQ#[yQ#f!XQ#u!bQ#|!gQ$U!qQ$]!{d$c#U#`$d$e$m$u%g%m%t&TQ$o#bQ$y#oQ%P#wQ%Q#yS%Y$U%[Q%d$_Q%e$bQ%q$rR%}%ZQzSQ!pbQ!|nQ%b$YR&Q%aQ#YvR%h$gR#g!XQ!_ZQ#e!WQ$x#mR&V%sW![Z!W#m%sQ!m_Q#j!ZQ#t!`Q$w#lR${#pVcOhwSgOwR!sh",nodeNames:`⚠ Unit ( Comment LineComment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName ) ArgList , PseudoClassName ArgList VariableName AtKeyword PropertyVariable ValueName ( ParenthesizedValue ColorLiteral NumberLiteral StringLiteral Escape Interpolation BinaryExpression BinOp LogicOp UnaryExpression UnaryQueryOp CallExpression ] SubscriptExpression [ CallLiteral CallTag ParenthesizedContent IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp InterpolatedSelector ; when } { Block ImportStatement import KeywordQuery FeatureQuery FeatureName BinaryQuery UnaryQuery ParenthesizedQuery SelectorQuery selector CallQuery ArgList SubscriptQuery MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList from to SupportsStatement supports DetachedRuleSet PropertyName Declaration Important Inclusion IdSelector ClassSelector Inclusion CallExpression`,maxTerm:133,nodeProps:[[`isolate`,-3,3,4,30,``],[`openedBy`,17,`(`,59,`{`],[`closedBy`,26,`)`,60,`}`]],propSources:[b],skippedNodes:[0,3,4],repeatNodeCount:10,tokenData:"!2q~R!ZOX$tX^%l^p$tpq%lqr)Ors-xst/ltu6Zuv$tvw8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XOY!+vZr!+vrs!,cs#O!+v#O#P!,h#P;'S!+v;'S;=`!-d;=`<%l!+v<%lO!+v]!-gP;=`<%l!+vm!-oU|`Oy!*kyz!+vz;'S!*k;'S;=`!.R;=`<%l!+v<%lO!*km!.UXOY!+vZr!+vrs!,cs#O!+v#O#P!,h#P;'S!+v;'S;=`!-d;=`<%l!*k<%lO!+vm!.tP;=`<%l!*km!.|Z|`OY!.wYZ%TZw!.wwx!+cxy!.wyz!/oz#O!.w#O#P!1^#P;'S!.w;'S;=`!2e<%lO!.w]!/rWOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W<%lO!/o]!0_RO;'S!/o;'S;=`!0h;=`O!/o]!0kXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!/o<%lO!/o]!1ZP;=`<%l!/om!1cU|`Oy!.wyz!/oz;'S!.w;'S;=`!1u;=`<%l!/o<%lO!.wm!1xXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!.w<%lO!/om!2hP;=`<%l!.w`!2nP;=`<%l$t",tokenizers:[v,y,_,0,1,2,3,4],topRules:{StyleSheet:[0,5]},specialized:[{term:116,get:e=>x[e]||-1},{term:23,get:e=>S[e]||-1}],tokenPrec:2180}),w=s.define({name:`less`,parser:C.configure({props:[t.add({Declaration:i()}),e.add({Block:l})]}),languageData:{commentTokens:{block:{open:`/*`,close:`*/`},line:`//`},indentOnInput:/^\s*\}$/,wordChars:`@-`}}),T=u(e=>e.name==`VariableName`||e.name==`AtKeyword`);function E(){return new c(w,w.data.of({autocomplete:T}))}export{E as less};
|