@netnodeag/kraftwerk 0.81.0 → 0.83.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 +227 -0
- package/dist/cli/boards.d.ts +2 -0
- package/dist/cli/boards.js +486 -0
- package/dist/cli/init.js +2 -0
- package/dist/cli/kraftwerk.js +6 -0
- package/dist/cli/presentations.d.ts +2 -0
- package/dist/cli/presentations.js +261 -0
- package/dist/client/routes.d.ts +32 -0
- package/dist/client/routes.js +32 -0
- package/dist/config.d.ts +35 -0
- package/dist/config.js +33 -2
- package/dist/core/attention.d.ts +2 -2
- package/dist/core/attention.js +22 -2
- package/dist/core/board-wake.d.ts +21 -0
- package/dist/core/board-wake.js +221 -0
- package/dist/core/boards.d.ts +269 -0
- package/dist/core/boards.js +969 -0
- package/dist/core/chat/acp.d.ts +1 -1
- package/dist/core/chat/acp.js +2 -1
- package/dist/core/chat/backend.d.ts +11 -0
- package/dist/core/chat/backend.js +9 -1
- package/dist/core/chat/context.js +25 -4
- package/dist/core/chat/pi.d.ts +1 -1
- package/dist/core/chat/pi.js +2 -1
- package/dist/core/chat/seats.js +3 -2
- package/dist/core/chat/sessions.d.ts +2 -0
- package/dist/core/chat/sessions.js +1 -0
- package/dist/core/chat/state.js +1 -1
- package/dist/core/chat/types.d.ts +11 -1
- package/dist/core/files.d.ts +1 -1
- package/dist/core/files.js +19 -1
- package/dist/core/git.js +5 -1
- package/dist/core/notifications.d.ts +1 -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 +33 -1
- package/dist/core/search.d.ts +22 -0
- package/dist/core/search.js +25 -0
- package/dist/core/settings.d.ts +4 -0
- package/dist/core/settings.js +24 -1
- package/dist/core/trash.d.ts +1 -1
- package/dist/server/api/boards.d.ts +105 -0
- package/dist/server/api/boards.js +160 -0
- package/dist/server/api/chats.d.ts +2 -0
- package/dist/server/api/chats.js +9 -3
- package/dist/server/api/index.d.ts +167 -3
- package/dist/server/api/index.js +4 -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 +10 -0
- package/dist/server/api/workspace.js +4 -0
- package/dist/server/push.js +1 -1
- package/dist/server/server.js +3 -0
- package/package.json +6 -2
- package/schema/kraftwerk.schema.json +57 -0
- package/web/dist/assets/{dist-Ba6WSVOB.js → dist-5-ibIscm.js} +1 -1
- package/web/dist/assets/{dist-ENZYo2jZ.js → dist-5lgY5B-M.js} +1 -1
- package/web/dist/assets/{dist-BiU4F98O.js → dist-BJaPgnhj.js} +1 -1
- package/web/dist/assets/{dist-Dy1SvhKC.js → dist-Bar1_NBq.js} +1 -1
- package/web/dist/assets/{dist-AhnSw4hy.js → dist-BxCxboU8.js} +1 -1
- package/web/dist/assets/dist-CDitSY16.js +1 -0
- package/web/dist/assets/{dist-FfKYtQxT.js → dist-CRXT8IL6.js} +1 -1
- package/web/dist/assets/{dist-BK0VhAPQ.js → dist-CXRjiHpl.js} +1 -1
- package/web/dist/assets/{dist-Dx3aajX1.js → dist-CpnB7MfK.js} +1 -1
- package/web/dist/assets/{dist-8IOFzZx-.js → dist-D1VK1YdB.js} +1 -1
- package/web/dist/assets/{dist-cewmjxFi.js → dist-D52LvyO8.js} +1 -1
- package/web/dist/assets/{editor-CZMrhTTL.css → editor-C0_Snnzk.css} +1 -1
- package/web/dist/assets/{editor-CaRa1NMC.js → editor-HCNTXWWs.js} +3 -3
- package/web/dist/assets/index-Dnlu16AL.css +2 -0
- package/web/dist/assets/index-kwWnQOhD.js +473 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/dist-lgUK2Fjt.js +0 -1
- package/web/dist/assets/index-Dpzux3OC.js +0 -231
- package/web/dist/assets/index-Dvt-vE1h.css +0 -2
package/README.md
CHANGED
|
@@ -259,6 +259,8 @@ kraftwerk workspaces # every workspace on this machine; works
|
|
|
259
259
|
kraftwerk devices # paired devices (a phone, another computer); devices pair|revoke
|
|
260
260
|
kraftwerk remote on|off|pair # reach this machine from anywhere through the relay, end to end encrypted
|
|
261
261
|
kraftwerk projects # goal-scoped project folders; projects create|show|link|log|remove
|
|
262
|
+
kraftwerk boards|tasks # task boards per project or workspace; tasks create|show|move|assign|log|pick|remove
|
|
263
|
+
kraftwerk presentations # slide decks (HTML slides, themes, PPTX/PDF/HTML export) per project or workspace; show|create|check|render|remove|templates
|
|
262
264
|
kraftwerk contacts|places|events # who, where and when, one Markdown file each; … show|create|set|remove, events --from/--to
|
|
263
265
|
kraftwerk ref <kind:slug> # resolve a reference (contact:anna-meier, project:relaunch, …); --file <md> resolves every one in a file
|
|
264
266
|
kraftwerk trash # what was deleted; trash restore|purge <id>, trash empty
|
|
@@ -634,6 +636,231 @@ kraftwerk projects remove relaunch-netnode-ch
|
|
|
634
636
|
The registry of workspaces on this machine, which answered to
|
|
635
637
|
`kraftwerk projects` until 0.48, is `kraftwerk workspaces` now.
|
|
636
638
|
|
|
639
|
+
## Boards and tasks
|
|
640
|
+
|
|
641
|
+
Turn on `boards:` in `kraftwerk.yml` (or the checkbox in settings) and every
|
|
642
|
+
project can have task boards, and the workspace its own:
|
|
643
|
+
|
|
644
|
+
```yaml
|
|
645
|
+
boards:
|
|
646
|
+
root: kraftwerk-data/boards # default; the workspace's boards (a project's live in projects/<slug>/boards/)
|
|
647
|
+
columns: [draft, todo, progress, review, done] # default for boards that name none
|
|
648
|
+
```
|
|
649
|
+
|
|
650
|
+
```
|
|
651
|
+
projects/<slug>/boards/<board>/board.md # title, columns, default agent, stale_after + the board's rules
|
|
652
|
+
projects/<slug>/boards/<board>/tasks/<n>-<slug>/ # one task: task.md, log.md, its files
|
|
653
|
+
kraftwerk-data/boards/<board>/… # workspace boards, same shape
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
A column is a slug or `{slug, label, limit, done, review}`: `review: true`
|
|
657
|
+
means tasks there wait for a human (they count as attention), `done: true`
|
|
658
|
+
means finished. The column is a field of `task.md`, so a move is a one-line
|
|
659
|
+
diff and the task's folder never moves. Task folders are numbered per board
|
|
660
|
+
(`50-write-a-press-release`); the number names the task in the CLI, the
|
|
661
|
+
folder name is its reference (`task:50-write-a-press-release`). The log is in
|
|
662
|
+
the journal format: `## 2026-11-05` days, `* 16:40 Moved Todo → In progress:
|
|
663
|
+
starting (lisa/claude)` lines, newest first; kraftwerk writes it on every
|
|
664
|
+
create, move, assign, pick and file change, and agents and humans add lines.
|
|
665
|
+
|
|
666
|
+
```
|
|
667
|
+
kraftwerk boards [--project <p>] [--all] # the boards; boards show|create|set|remove
|
|
668
|
+
kraftwerk tasks [--project <p>] [--board <b>] # the tasks of a board (default: the project's `tasks` board)
|
|
669
|
+
kraftwerk tasks create "<title>" --status todo --assign lisa --file $KRAFTWERK_TEMP/task.md -m "…"
|
|
670
|
+
kraftwerk tasks show 50 | move 50 review -m "…" | assign 50 max -m "…" | assign 50 human | log 50 "…" | pick --as lisa | remove 50
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
**Agents and the board.** A project chat and every agent see the boards
|
|
674
|
+
in their context: columns with counts, the open tasks, the rules written
|
|
675
|
+
in `board.md`, and the commands. Inside a session the CLI knows who it is
|
|
676
|
+
(`KRAFTWERK_AGENT`, `KRAFTWERK_ACTOR`), so `tasks pick` and `tasks log` need
|
|
677
|
+
no name. Waking is event-based: whenever a task has an agent as assignee
|
|
678
|
+
and sits in a work column — created there, moved there, assigned, handed
|
|
679
|
+
over — that agent gets a session with the task as its scope (the task
|
|
680
|
+
block: `task.md`, the files, the whole log, so a hand-over reads like a
|
|
681
|
+
message from the previous agent), or the message is posted into its open
|
|
682
|
+
session for that task. Draft, Review and Done never wake anyone; an agent
|
|
683
|
+
acting on its own task does not wake itself; a board's `agent:` is the
|
|
684
|
+
default assignee for tasks entering Todo unassigned. The events are lines in
|
|
685
|
+
`<output>/boards/events.jsonl`, local to the machine, so a clone of the
|
|
686
|
+
workspace never starts the same work twice. Only a human moves a task into a
|
|
687
|
+
done column; `tasks assign <n> human` clears the assignee and puts the task
|
|
688
|
+
into Review.
|
|
689
|
+
|
|
690
|
+
## Presentations
|
|
691
|
+
|
|
692
|
+
Turn on `presentations:` in `kraftwerk.yml` (or the checkbox in settings)
|
|
693
|
+
and every project can have slide decks, and the workspace its own:
|
|
694
|
+
|
|
695
|
+
```yaml
|
|
696
|
+
presentations:
|
|
697
|
+
root: kraftwerk-data/presentations # default; the workspace's decks and templates (a project's decks live in projects/<slug>/presentations/)
|
|
698
|
+
```
|
|
699
|
+
|
|
700
|
+
```
|
|
701
|
+
projects/<slug>/presentations/<name>/deck.md # the slides: markdown (and HTML) on a template's layouts
|
|
702
|
+
projects/<slug>/presentations/<name>/assets/ # the pictures the slides show
|
|
703
|
+
projects/<slug>/presentations/<name>/exports/ # what `render` wrote: .pptx, .pdf, .html, slides/NN.png
|
|
704
|
+
kraftwerk-data/presentations/<name>/… # workspace decks, same shape
|
|
705
|
+
kraftwerk-data/presentations/templates/<slug>/ # your own themes: template.yml, theme.css, fonts and pictures beside them
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
A deck is one markdown file. The headmatter names the title, the template
|
|
709
|
+
and, optionally, CSS of the deck's own; a `---` line starts the next slide,
|
|
710
|
+
and an optional YAML block right after it sets the slide's `layout:` (and
|
|
711
|
+
`background:`, `slots:`). The content before the first `::slot::` marker is
|
|
712
|
+
the slide's title (a leading heading) and body; `::left::`, `::image::`,
|
|
713
|
+
`::chart::`, … fill the layout's named slots, `::notes::` are the speaker
|
|
714
|
+
notes. A slot holds markdown, raw HTML, a picture (``),
|
|
715
|
+
a table, or a fenced `chart` block (YAML: `kind` column | bar | line | pie |
|
|
716
|
+
doughnut | area, `categories`, `series` with `name` and `values`).
|
|
717
|
+
|
|
718
|
+
```markdown
|
|
719
|
+
---
|
|
720
|
+
title: Why we move to NodeHive
|
|
721
|
+
template: netnode
|
|
722
|
+
layout: title
|
|
723
|
+
---
|
|
724
|
+
# Why we move to NodeHive
|
|
725
|
+
::subtitle::
|
|
726
|
+
Content pipeline review · November 2026
|
|
727
|
+
::notes::
|
|
728
|
+
Open with the migration timeline.
|
|
729
|
+
|
|
730
|
+
---
|
|
731
|
+
layout: content
|
|
732
|
+
slots:
|
|
733
|
+
title: { size: 30 }
|
|
734
|
+
figures: { kind: html, x: 0.44, y: 3.2, w: 9.12, h: 1.6 }
|
|
735
|
+
---
|
|
736
|
+
# One source, every channel
|
|
737
|
+
- Editors write **once**, in markdown
|
|
738
|
+
- Every channel reads the same API
|
|
739
|
+
::figures::
|
|
740
|
+
<div class="kpis"><div class="kpi"><strong>−60%</strong><span>time per text</span></div></div>
|
|
741
|
+
```
|
|
742
|
+
|
|
743
|
+
**Slides are HTML.** The editor, the thumbnails, present mode, the HTML
|
|
744
|
+
file, the PDF and the PNGs all show the same live HTML in the template's
|
|
745
|
+
theme; PDF and PNG are printed from it by a headless browser (Playwright's
|
|
746
|
+
Chromium when installed, else the installed Chrome; without either the
|
|
747
|
+
PowerPoint model's raster stands in, with a warning). The PowerPoint file
|
|
748
|
+
is a native model of the same slots — text, lists, pictures, native charts
|
|
749
|
+
and tables stay editable — its HTML pieces placed as pictures of
|
|
750
|
+
themselves. A slide may move or restyle a layout's slot, or add boxes of
|
|
751
|
+
its own, in its `slots:` (positions in inches on a 10 × 5.625 canvas);
|
|
752
|
+
kinds are `text`, `markdown`, `image`, `chart`, `table`, `html` and
|
|
753
|
+
`embed` (a URL, or a whole page with scripts, run sandboxed).
|
|
754
|
+
|
|
755
|
+
**The design** is the template: `template.yml` names the canvas, fonts,
|
|
756
|
+
colors, layouts (slots placed in inches, decorations behind them) and
|
|
757
|
+
snippets — the theme's ready-made pieces (cards, key figures, a flow, a
|
|
758
|
+
timeline …) for the editor's insert menu — and `theme.css` styles the
|
|
759
|
+
slides, scoped to them (`:root` means the slide; `@font-face` fonts sit
|
|
760
|
+
beside the file). `kraftwerk presentations templates init <slug>` copies
|
|
761
|
+
the built-in one to start from; the deck's own `css:` goes on top for one
|
|
762
|
+
deck. What a slot cannot show (an empty required slot, an unknown layout,
|
|
763
|
+
a missing picture, a broken chart block) is a warning with the slide and
|
|
764
|
+
the slot, in the editor, in `show` and in `check`.
|
|
765
|
+
|
|
766
|
+
```
|
|
767
|
+
kraftwerk presentations [--project <p>] [--all] # the decks; presentations show|create|check|render|remove
|
|
768
|
+
kraftwerk presentations create "<title>" --project relaunch [--template netnode] [--from deck.md]
|
|
769
|
+
kraftwerk presentations show nodehive-pitch --project relaunch # slides, the template's layouts and slots, its pieces, the warnings
|
|
770
|
+
kraftwerk presentations check nodehive-pitch --project relaunch # exit 1 on errors
|
|
771
|
+
kraftwerk presentations render nodehive-pitch --project relaunch --png --pdf --pptx --html [--out <dir>]
|
|
772
|
+
kraftwerk presentations templates [init <slug>]
|
|
773
|
+
```
|
|
774
|
+
|
|
775
|
+
**The editor** (`#/projects/<slug>/presentations/<name>`) is the slide
|
|
776
|
+
itself, live, and works like ChatGPT's presentation editor:
|
|
777
|
+
|
|
778
|
+
- **Slides.** A numbered strip (drag to reorder; right click to duplicate,
|
|
779
|
+
hide, move or delete), a grid of all slides, a new slide from a picture of
|
|
780
|
+
each layout, zoom from fit to 150 %. Hidden slides stay in the deck and
|
|
781
|
+
out of present mode and the exports.
|
|
782
|
+
- **On the slide.** Every slot is a box: click to select, ⇧-click or drag a
|
|
783
|
+
frame for several, drag to move with guides to the slide's edges and
|
|
784
|
+
middle and to the other boxes, resize from the corners (⇧ keeps the
|
|
785
|
+
proportions), rotate from the handle below, nudge with the arrows,
|
|
786
|
+
⌘C/⌘V/⌘D, Delete, ⌘Z/⇧⌘Z. A double click types into a box where it
|
|
787
|
+
stands in the slide's own fonts, or opens the source of HTML, charts and
|
|
788
|
+
embeds beside the slide, which follows as you type.
|
|
789
|
+
- **Format.** The bar over a box sets font, size, bold, italic, alignment
|
|
790
|
+
and color; the Format panel adds position, rotation, alignment to the
|
|
791
|
+
slide, underline and strikethrough, text and fill colors (the theme's or
|
|
792
|
+
any), corners, border, shadow, opacity and how a picture fits; several
|
|
793
|
+
boxes align to each other; right click orders the layers. With nothing
|
|
794
|
+
selected it sets the slide's background, a color or a picture.
|
|
795
|
+
- **Insert.** Text, a picture (uploaded into `assets/`, or dropped onto
|
|
796
|
+
the slide), a chart, a table, shapes (rectangle, rounded, circle, line,
|
|
797
|
+
arrow, star), HTML, an embed, and the theme's pieces.
|
|
798
|
+
- **Design.** The design panel switches the theme with a preview of the
|
|
799
|
+
slide in each and takes CSS for this deck; slides carry their number
|
|
800
|
+
(`data-n`, `data-nn`, `data-of`) for the theme to show.
|
|
801
|
+
- **Agent.** "Ask an agent" under the slide opens a chat docked beside the
|
|
802
|
+
deck with the deck and the slide named; the agent edits `deck.md` and the
|
|
803
|
+
slide changes in front of you (the server watches an open deck's folder,
|
|
804
|
+
so an agent's save shows at once). "ask" on a box has one-click
|
|
805
|
+
requests: shorten, rewrite clearer, bullet points, make it a chart,
|
|
806
|
+
translate to English or German, speaker notes, or something else.
|
|
807
|
+
- **From a brief.** A new deck can start from what it is about, typed or
|
|
808
|
+
from notes files (md, txt, csv, json, html, yaml): the agent beside it
|
|
809
|
+
answers with the outline, then writes the slides in the theme while you
|
|
810
|
+
watch.
|
|
811
|
+
- **Review.** Comments on a slide or on one box (right click → Comment…,
|
|
812
|
+
or the comments button): a pin on the box, a count on the slide and in
|
|
813
|
+
the bar, answers, resolve and reopen. They live in `comments.json` beside
|
|
814
|
+
`deck.md`, pointing at the slide's `id:` (given when its first comment
|
|
815
|
+
lands), so they follow the slide when it moves. Agents read and resolve
|
|
816
|
+
them: `kraftwerk presentations comments|comment|resolve`.
|
|
817
|
+
- **Share.** Copy a link to the editor or to present mode (for anyone who
|
|
818
|
+
reaches this workspace: paired devices, members), or download the deck
|
|
819
|
+
as one HTML file that opens anywhere.
|
|
820
|
+
- **Several editors.** A person, an agent and another window can work on
|
|
821
|
+
one deck: every save names the version it was made on, a save over a
|
|
822
|
+
newer file is refused (409) and the editor merges slide by slide — both
|
|
823
|
+
sides' changes stay; a slide changed on both sides keeps theirs and says
|
|
824
|
+
so (⌘Z brings yours back).
|
|
825
|
+
- **Charts.** A chart opens as a data grid beside the slide: kind, title,
|
|
826
|
+
a row per category, a column per series (add, rename, remove); the
|
|
827
|
+
source tab shows the same block as YAML.
|
|
828
|
+
- **Version history.** Earlier versions of the deck are kept in
|
|
829
|
+
`.history/` beside `deck.md`: before saves (once a minute while you edit)
|
|
830
|
+
and whenever an agent or a tool changes the file; the newest 50 stay.
|
|
831
|
+
The history panel shows each version's slides and restores one as an
|
|
832
|
+
ordinary edit (⌘Z takes it back).
|
|
833
|
+
- **Transitions.** Each slide comes in with a fade (the default), a slide,
|
|
834
|
+
a zoom or a cut (`transition:` in its head, or the Format panel with
|
|
835
|
+
nothing selected); present mode and the HTML file play them, the
|
|
836
|
+
PowerPoint file gets fade, push and zoom.
|
|
837
|
+
- **Linked from tasks and chats.** A task's links (its `refs:`) take a
|
|
838
|
+
deck from a list; the chip opens it, and the agent working the task
|
|
839
|
+
gets the deck's folder with the task. In a chat, `presentation:` offers
|
|
840
|
+
the decks and the sent `presentation:<name>` links to the deck. The
|
|
841
|
+
deck's share menu copies that reference and lists the tasks that link
|
|
842
|
+
it.
|
|
843
|
+
- **Slide numbers.** On by default, drawn by the theme bottom right
|
|
844
|
+
(not on title and section slides). The Format panel with nothing
|
|
845
|
+
selected turns them off for the deck (`numbers: false` in the
|
|
846
|
+
headmatter) or for one slide (`number: false` in its head). The
|
|
847
|
+
PowerPoint file carries them as slide-number fields, so they keep
|
|
848
|
+
counting when slides move there.
|
|
849
|
+
- **Who else is here.** Everyone with the deck open (other people, other
|
|
850
|
+
tabs) shows as an avatar in the bar and a dot on the slide they are on;
|
|
851
|
+
the box they have selected is outlined in their color with their name.
|
|
852
|
+
Click an avatar to go to their slide. It lives in memory only and
|
|
853
|
+
follows the live connection: a closed tab is gone at once.
|
|
854
|
+
- **Present.** `…/present[/<n>]` full screen (arrows, space, Escape, N for
|
|
855
|
+
the notes, F for fullscreen, a clock); `…/presenter[/<n>]` is the
|
|
856
|
+
presenter view with the current and the next slide, the notes and the
|
|
857
|
+
clock. PowerPoint, PDF and HTML download from the bar.
|
|
858
|
+
|
|
859
|
+
**Agents and the deck.** A project chat and every agent see the project's
|
|
860
|
+
decks in their context with the format, the theme's pieces and the
|
|
861
|
+
commands; agents write `deck.md` directly, put pictures into `assets/`, and
|
|
862
|
+
look at the slide images `render --png` writes before handing the deck over.
|
|
863
|
+
|
|
637
864
|
## Contacts, places and events
|
|
638
865
|
|
|
639
866
|
Who, where and when, kept by the workspace itself so people and agents can
|