@netnodeag/kraftwerk 0.89.0 → 0.91.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/dist/config.d.ts +5 -5
- package/dist/config.js +5 -5
- package/dist/core/boards.d.ts +2 -0
- package/dist/core/boards.js +2 -1
- package/dist/core/git.d.ts +16 -7
- package/dist/core/git.js +66 -17
- package/dist/core/settings.d.ts +1 -1
- package/dist/core/settings.js +2 -2
- package/dist/server/api/boards.d.ts +1 -0
- package/dist/server/api/boards.js +3 -3
- package/dist/server/api/git.js +1 -1
- package/dist/server/api/index.d.ts +1 -0
- package/package.json +1 -1
- package/schema/kraftwerk.schema.json +4 -3
- package/web/dist/assets/{dist-CuQVlHmR.js → dist-C0Jxvhwn.js} +1 -1
- package/web/dist/assets/dist-C1WqvXAD.js +1 -0
- package/web/dist/assets/{dist-inSuTuvd.js → dist-CZxfdtxW.js} +1 -1
- package/web/dist/assets/{dist-Bwm-InnG.js → dist-Csjcf5LO.js} +1 -1
- package/web/dist/assets/{dist-zc76_oug.js → dist-D7WMKT8o.js} +1 -1
- package/web/dist/assets/{dist-DOZij73R.js → dist-DG_vz4ve.js} +1 -1
- package/web/dist/assets/{dist-CHNk_tCU.js → dist-DiWjZMcB.js} +1 -1
- package/web/dist/assets/{dist-BLoM0Dq2.js → dist-Dyuuk1fJ.js} +1 -1
- package/web/dist/assets/{dist-D5aPmQfe.js → dist-MLy_Y-bk.js} +1 -1
- package/web/dist/assets/{dist-C9jiAZnC.js → dist-OqZg6HSo.js} +1 -1
- package/web/dist/assets/{dist-CH2v86Mr.js → dist-oZGvjDYG.js} +1 -1
- package/web/dist/assets/{editor-D7dlWZJQ.js → editor-BVY58sKa.js} +3 -3
- package/web/dist/assets/index-CeXHhxNI.css +2 -0
- package/web/dist/assets/index-Dx5HEIp7.js +485 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/dist-D3RrimdQ.js +0 -1
- package/web/dist/assets/index-B6hi3Hjt.css +0 -2
- package/web/dist/assets/index-BR2r1XV8.js +0 -486
package/dist/config.d.ts
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* git: # workspace git sync (absent = off, bare key = on with defaults)
|
|
28
28
|
* remote: origin
|
|
29
29
|
* interval: 300 # seconds between background fetches
|
|
30
|
-
* autosync: pull # off | pull
|
|
30
|
+
* autosync: pull # off | pull | push (push = pull, then push what is committed)
|
|
31
31
|
* repos: # git repositories the agents work on (absent = off, bare key = on)
|
|
32
32
|
* root: kraftwerk-data/repos # where clones land, relative to the file. Default: repos
|
|
33
33
|
* vibeables: # small apps built live in a chat, rendered in the inspector (absent = off, bare key = on)
|
|
@@ -47,8 +47,8 @@ export declare const CONFIG_FILENAMES: string[];
|
|
|
47
47
|
/**
|
|
48
48
|
* Git sync for the workspace. The synced paths are not configurable: they
|
|
49
49
|
* are the roots this file already declares (workflows, knowledge, agents,
|
|
50
|
-
* skills), channels/, README.md and kraftwerk.yml itself.
|
|
51
|
-
* interval
|
|
50
|
+
* skills), channels/, README.md and kraftwerk.yml itself. Commits stay manual; the
|
|
51
|
+
* interval fetches, pulls when `autosync` allows it, and pushes only with `autosync: push`.
|
|
52
52
|
*/
|
|
53
53
|
/**
|
|
54
54
|
* A remote or branch name kraftwerk will hand to git as a positional
|
|
@@ -66,8 +66,8 @@ export interface GitConfig {
|
|
|
66
66
|
branch?: string;
|
|
67
67
|
/** Seconds between background fetches. 0 disables the timer. Default: 300. */
|
|
68
68
|
interval?: number;
|
|
69
|
-
/** off = fetch only. pull = also fast-forward when behind and clean. Default: pull. */
|
|
70
|
-
autosync?: "off" | "pull";
|
|
69
|
+
/** off = fetch only. pull = also fast-forward when behind and clean. push = pull, and push commits that are ahead. Default: pull. */
|
|
70
|
+
autosync?: "off" | "pull" | "push";
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* Repositories: git clones the agents work on, kept under one root inside
|
package/dist/config.js
CHANGED
|
@@ -32,7 +32,7 @@ import { parse } from "yaml";
|
|
|
32
32
|
* git: # workspace git sync (absent = off, bare key = on with defaults)
|
|
33
33
|
* remote: origin
|
|
34
34
|
* interval: 300 # seconds between background fetches
|
|
35
|
-
* autosync: pull # off | pull
|
|
35
|
+
* autosync: pull # off | pull | push (push = pull, then push what is committed)
|
|
36
36
|
* repos: # git repositories the agents work on (absent = off, bare key = on)
|
|
37
37
|
* root: kraftwerk-data/repos # where clones land, relative to the file. Default: repos
|
|
38
38
|
* vibeables: # small apps built live in a chat, rendered in the inspector (absent = off, bare key = on)
|
|
@@ -53,8 +53,8 @@ const WORKFLOW_ROOT_CANDIDATES = ["src/workflows", "workflows"];
|
|
|
53
53
|
/**
|
|
54
54
|
* Git sync for the workspace. The synced paths are not configurable: they
|
|
55
55
|
* are the roots this file already declares (workflows, knowledge, agents,
|
|
56
|
-
* skills), channels/, README.md and kraftwerk.yml itself.
|
|
57
|
-
* interval
|
|
56
|
+
* skills), channels/, README.md and kraftwerk.yml itself. Commits stay manual; the
|
|
57
|
+
* interval fetches, pulls when `autosync` allows it, and pushes only with `autosync: push`.
|
|
58
58
|
*/
|
|
59
59
|
/**
|
|
60
60
|
* A remote or branch name kraftwerk will hand to git as a positional
|
|
@@ -429,8 +429,8 @@ function validateGit(configPath, value) {
|
|
|
429
429
|
if (g.interval !== undefined && (typeof g.interval !== "number" || !Number.isInteger(g.interval) || g.interval < 0)) {
|
|
430
430
|
throw new Error(`${file}: git.interval must be a whole number of seconds (0 disables the timer)`);
|
|
431
431
|
}
|
|
432
|
-
if (g.autosync !== undefined && g.autosync !== "off" && g.autosync !== "pull") {
|
|
433
|
-
throw new Error(`${file}: git.autosync must be "off" or "
|
|
432
|
+
if (g.autosync !== undefined && g.autosync !== "off" && g.autosync !== "pull" && g.autosync !== "push") {
|
|
433
|
+
throw new Error(`${file}: git.autosync must be "off", "pull" or "push"`);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
/**
|
package/dist/core/boards.d.ts
CHANGED
|
@@ -142,6 +142,8 @@ export interface TaskInput {
|
|
|
142
142
|
export interface WriteOpts {
|
|
143
143
|
actor?: string;
|
|
144
144
|
message?: string;
|
|
145
|
+
/** The change wakes nobody: the caller has already started the session the assignee works in. */
|
|
146
|
+
quiet?: boolean;
|
|
145
147
|
}
|
|
146
148
|
export declare function openBoards(): Promise<{
|
|
147
149
|
project?: ResolvedWorkspace;
|
package/dist/core/boards.js
CHANGED
|
@@ -794,7 +794,8 @@ export async function saveTask(ref, idOrNumber, input, opts = {}) {
|
|
|
794
794
|
else if (opts.message && next.status === def.status)
|
|
795
795
|
await writeLogLine(current.path, next.title, oneLine(opts.message), actor);
|
|
796
796
|
});
|
|
797
|
-
|
|
797
|
+
if (!opts.quiet)
|
|
798
|
+
await maybeEmit(ref, board, def, next, next.status !== def.status ? "moved" : "assigned", actor, opts.message);
|
|
798
799
|
changed();
|
|
799
800
|
return (await getTask(ref, next.slug));
|
|
800
801
|
}
|
package/dist/core/git.d.ts
CHANGED
|
@@ -14,9 +14,13 @@
|
|
|
14
14
|
* - Reads are scoped too: the diff endpoint only shows a path the status
|
|
15
15
|
* screen lists as syncable, and status never lists what .gitignore hides,
|
|
16
16
|
* so an untracked .env cannot be read through it.
|
|
17
|
-
* -
|
|
18
|
-
* fast-forward when `autosync
|
|
19
|
-
* one checked out, and no tracked file is modified.
|
|
17
|
+
* - Commits are manual. The background timer only fetches, and pulls
|
|
18
|
+
* fast-forward when `autosync` is `pull` or `push`, the configured branch
|
|
19
|
+
* is the one checked out, and no tracked file is modified.
|
|
20
|
+
* - Push is a click, unless `autosync: push` opts in: then the timer also
|
|
21
|
+
* pushes commits that already exist to a branch that already tracks its
|
|
22
|
+
* upstream. It never creates a commit, never publishes a new branch and
|
|
23
|
+
* never forces.
|
|
20
24
|
* - A diverged branch is reported, never merged or rebased from here.
|
|
21
25
|
*
|
|
22
26
|
* Every git call passes an argument array, so nothing reaches a shell, and
|
|
@@ -28,6 +32,8 @@
|
|
|
28
32
|
/** Files that must never be staged, whatever the scope says. */
|
|
29
33
|
/** Paths whose content is never shown or synced, whichever repo they sit in. */
|
|
30
34
|
export declare const DENY: RegExp[];
|
|
35
|
+
/** off = fetch only. pull = also fast-forward. push = fast-forward, then push what is ahead. */
|
|
36
|
+
export type Autosync = "off" | "pull" | "push";
|
|
31
37
|
export interface GitFile {
|
|
32
38
|
/** Path relative to the repo root, which is what git speaks. */
|
|
33
39
|
path: string;
|
|
@@ -58,10 +64,12 @@ export interface GitStatus {
|
|
|
58
64
|
blockedHidden?: number;
|
|
59
65
|
/** Repo-relative roots that may be committed. */
|
|
60
66
|
scope?: string[];
|
|
61
|
-
autosync?:
|
|
67
|
+
autosync?: Autosync;
|
|
62
68
|
interval?: number;
|
|
63
69
|
lastFetch?: string;
|
|
64
70
|
lastPull?: string;
|
|
71
|
+
/** The last push that worked, by hand or in the background. */
|
|
72
|
+
lastPush?: string;
|
|
65
73
|
lastError?: string;
|
|
66
74
|
}
|
|
67
75
|
export interface GitDiff {
|
|
@@ -139,9 +147,10 @@ export declare function gitPush(): Promise<{
|
|
|
139
147
|
error?: string;
|
|
140
148
|
}>;
|
|
141
149
|
/**
|
|
142
|
-
* Fetch on an interval,
|
|
143
|
-
*
|
|
144
|
-
*
|
|
150
|
+
* Fetch on an interval, fast-forward when `autosync` is `pull` or `push`,
|
|
151
|
+
* and with `push` also push what is ahead. Never commits. A pull is skipped
|
|
152
|
+
* while the tree is dirty, so nobody's unsaved work is disturbed by a
|
|
153
|
+
* background merge. Ticks are chained, not scheduled
|
|
145
154
|
* on a fixed interval: a fetch against a slow remote must finish (or time
|
|
146
155
|
* out) before the next one starts, or a short interval piles up processes.
|
|
147
156
|
*/
|
package/dist/core/git.js
CHANGED
|
@@ -22,9 +22,13 @@ import { workspaceEnv } from "./env.js";
|
|
|
22
22
|
* - Reads are scoped too: the diff endpoint only shows a path the status
|
|
23
23
|
* screen lists as syncable, and status never lists what .gitignore hides,
|
|
24
24
|
* so an untracked .env cannot be read through it.
|
|
25
|
-
* -
|
|
26
|
-
* fast-forward when `autosync
|
|
27
|
-
* one checked out, and no tracked file is modified.
|
|
25
|
+
* - Commits are manual. The background timer only fetches, and pulls
|
|
26
|
+
* fast-forward when `autosync` is `pull` or `push`, the configured branch
|
|
27
|
+
* is the one checked out, and no tracked file is modified.
|
|
28
|
+
* - Push is a click, unless `autosync: push` opts in: then the timer also
|
|
29
|
+
* pushes commits that already exist to a branch that already tracks its
|
|
30
|
+
* upstream. It never creates a commit, never publishes a new branch and
|
|
31
|
+
* never forces.
|
|
28
32
|
* - A diverged branch is reported, never merged or rebased from here.
|
|
29
33
|
*
|
|
30
34
|
* Every git call passes an argument array, so nothing reaches a shell, and
|
|
@@ -344,10 +348,13 @@ const gitState = perWorkspace(() => ({
|
|
|
344
348
|
chain: Promise.resolve(),
|
|
345
349
|
lastFetch: undefined,
|
|
346
350
|
lastPull: undefined,
|
|
351
|
+
lastPush: undefined,
|
|
347
352
|
lastError: undefined,
|
|
348
353
|
timer: null,
|
|
349
354
|
ticking: false,
|
|
350
355
|
lastRun: 0,
|
|
356
|
+
/** A commit asked for a sync while a tick was in flight: run one more right after it. */
|
|
357
|
+
again: false,
|
|
351
358
|
/** Set when the workspace closes: a tick in flight does not schedule the next one. */
|
|
352
359
|
stopped: false,
|
|
353
360
|
}));
|
|
@@ -415,6 +422,7 @@ export async function gitStatus(fresh = false) {
|
|
|
415
422
|
interval: repo.cfg.interval,
|
|
416
423
|
lastFetch: gitState().lastFetch,
|
|
417
424
|
lastPull: gitState().lastPull,
|
|
425
|
+
lastPush: gitState().lastPush,
|
|
418
426
|
lastError: gitState().lastError,
|
|
419
427
|
};
|
|
420
428
|
// A failed status (a stale index.lock, a timeout on a huge untracked tree)
|
|
@@ -561,6 +569,9 @@ async function commitNow(paths, message) {
|
|
|
561
569
|
return { ok: false, error };
|
|
562
570
|
}
|
|
563
571
|
touched();
|
|
572
|
+
// With `autosync: push` a commit should not sit here until the next interval.
|
|
573
|
+
if (repo.cfg.autosync === "push")
|
|
574
|
+
syncSoon();
|
|
564
575
|
return { ok: true, committed: paths.length };
|
|
565
576
|
}
|
|
566
577
|
export function gitFetch() {
|
|
@@ -633,6 +644,7 @@ async function pushNow() {
|
|
|
633
644
|
gitState().lastError = r.stderr || "push failed";
|
|
634
645
|
return { ok: false, error: gitState().lastError };
|
|
635
646
|
}
|
|
647
|
+
gitState().lastPush = new Date().toISOString();
|
|
636
648
|
gitState().lastError = undefined;
|
|
637
649
|
return { ok: true };
|
|
638
650
|
}
|
|
@@ -645,9 +657,10 @@ async function pushNow() {
|
|
|
645
657
|
*/
|
|
646
658
|
const RECHECK_MS = 60_000;
|
|
647
659
|
/**
|
|
648
|
-
* Fetch on an interval,
|
|
649
|
-
*
|
|
650
|
-
*
|
|
660
|
+
* Fetch on an interval, fast-forward when `autosync` is `pull` or `push`,
|
|
661
|
+
* and with `push` also push what is ahead. Never commits. A pull is skipped
|
|
662
|
+
* while the tree is dirty, so nobody's unsaved work is disturbed by a
|
|
663
|
+
* background merge. Ticks are chained, not scheduled
|
|
651
664
|
* on a fixed interval: a fetch against a slow remote must finish (or time
|
|
652
665
|
* out) before the next one starts, or a short interval piles up processes.
|
|
653
666
|
*/
|
|
@@ -665,6 +678,25 @@ export function stopGitSync() {
|
|
|
665
678
|
clearTimeout(s.timer);
|
|
666
679
|
s.timer = null;
|
|
667
680
|
}
|
|
681
|
+
/**
|
|
682
|
+
* Run the background sync now instead of at the next interval. Goes through
|
|
683
|
+
* the timer, so it is a no-op while the timer is off (interval 0) or the
|
|
684
|
+
* workspace's sync was never started, and it never overlaps a running tick.
|
|
685
|
+
*/
|
|
686
|
+
function syncSoon() {
|
|
687
|
+
const s = gitState();
|
|
688
|
+
if (s.stopped)
|
|
689
|
+
return;
|
|
690
|
+
s.lastRun = 0;
|
|
691
|
+
if (s.ticking) {
|
|
692
|
+
s.again = true;
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
if (!s.timer)
|
|
696
|
+
return;
|
|
697
|
+
clearTimeout(s.timer);
|
|
698
|
+
schedule(0);
|
|
699
|
+
}
|
|
668
700
|
function schedule(ms) {
|
|
669
701
|
const timer = setTimeout(() => void tick(), ms);
|
|
670
702
|
timer.unref?.();
|
|
@@ -691,24 +723,41 @@ async function tick() {
|
|
|
691
723
|
finally {
|
|
692
724
|
// The workspace may have closed while git ran: then its state is gone and nothing is scheduled.
|
|
693
725
|
if (workspaceOpen()) {
|
|
694
|
-
gitState()
|
|
695
|
-
|
|
726
|
+
const s = gitState();
|
|
727
|
+
s.ticking = false;
|
|
728
|
+
if (s.again)
|
|
729
|
+
next = 0;
|
|
730
|
+
s.again = false;
|
|
731
|
+
if (!s.stopped)
|
|
696
732
|
schedule(next);
|
|
697
733
|
}
|
|
698
734
|
}
|
|
699
735
|
}
|
|
700
736
|
async function sync(repo) {
|
|
701
737
|
const fetched = await gitFetch();
|
|
702
|
-
if (!fetched.ok || repo.cfg.autosync
|
|
738
|
+
if (!fetched.ok || repo.cfg.autosync === "off")
|
|
703
739
|
return;
|
|
704
|
-
|
|
705
|
-
if (st.error ||
|
|
740
|
+
let st = await gitStatus();
|
|
741
|
+
if (st.error || st.diverged || !st.repoRoot)
|
|
742
|
+
return;
|
|
743
|
+
if (st.behind) {
|
|
744
|
+
// A local modification can make --ff-only refuse, and a failed pull
|
|
745
|
+
// every interval would park a permanent error in the UI. Untracked
|
|
746
|
+
// files do not count: they only collide when an incoming commit adds
|
|
747
|
+
// the same path, and that shows up as one pull error, not silence.
|
|
748
|
+
if (await hasLocalChanges(st.repoRoot))
|
|
749
|
+
return;
|
|
750
|
+
if (!(await gitPull()).ok)
|
|
751
|
+
return;
|
|
752
|
+
st = await gitStatus();
|
|
753
|
+
}
|
|
754
|
+
if (repo.cfg.autosync !== "push")
|
|
706
755
|
return;
|
|
707
|
-
//
|
|
708
|
-
//
|
|
709
|
-
//
|
|
710
|
-
//
|
|
711
|
-
if (
|
|
756
|
+
// Only what would go through: a branch that already tracks its upstream
|
|
757
|
+
// (the first push, which publishes the branch, stays a click), is ahead
|
|
758
|
+
// of it and not behind. A diverged branch would be rejected every
|
|
759
|
+
// interval; it is reported on the git screen instead.
|
|
760
|
+
if (st.error || !st.upstream || !st.ahead || st.behind)
|
|
712
761
|
return;
|
|
713
|
-
await
|
|
762
|
+
await gitPush();
|
|
714
763
|
}
|
package/dist/core/settings.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export interface GitSettingsInput {
|
|
|
51
51
|
remote?: string;
|
|
52
52
|
branch?: string;
|
|
53
53
|
interval?: number | string;
|
|
54
|
-
autosync?: "off" | "pull" | "";
|
|
54
|
+
autosync?: "off" | "pull" | "push" | "";
|
|
55
55
|
}
|
|
56
56
|
export declare function getSettings(): Promise<SettingsView>;
|
|
57
57
|
export declare function saveSettings(input: SaveSettingsInput): Promise<SettingsView>;
|
package/dist/core/settings.js
CHANGED
|
@@ -68,8 +68,8 @@ function cleanGit(value) {
|
|
|
68
68
|
out.interval = n;
|
|
69
69
|
}
|
|
70
70
|
if (value.autosync !== undefined && value.autosync !== "") {
|
|
71
|
-
if (value.autosync !== "off" && value.autosync !== "pull")
|
|
72
|
-
throw new Error('git.autosync must be "off" or "
|
|
71
|
+
if (value.autosync !== "off" && value.autosync !== "pull" && value.autosync !== "push")
|
|
72
|
+
throw new Error('git.autosync must be "off", "pull" or "push"');
|
|
73
73
|
if (value.autosync !== GIT_DEFAULTS.autosync)
|
|
74
74
|
out.autosync = value.autosync;
|
|
75
75
|
}
|
|
@@ -104,4 +104,5 @@ export declare const boardRoutes: (import("./router.js").Route<"boards.create",
|
|
|
104
104
|
notes: z.ZodOptional<z.ZodString>;
|
|
105
105
|
actor: z.ZodOptional<z.ZodString>;
|
|
106
106
|
message: z.ZodOptional<z.ZodString>;
|
|
107
|
+
wake: z.ZodOptional<z.ZodBoolean>;
|
|
107
108
|
}, z.core.$strip>>)[];
|
|
@@ -102,10 +102,10 @@ export const boardRoutes = [
|
|
|
102
102
|
const task = (await getTask(refOf(c), c.params.task)) ?? fail(404, `no task "${c.params.task}"`);
|
|
103
103
|
return { ...task, sessions: await taskSessions(task.ref) };
|
|
104
104
|
}),
|
|
105
|
-
route({ name: "tasks.save", method: "PUT", path: "/api/boards/:board/tasks/:task", summary: "save fields and markdown; a status or assignee change is logged (message?)", errors: boardErrors, body: TaskFields }, async (c) => {
|
|
105
|
+
route({ name: "tasks.save", method: "PUT", path: "/api/boards/:board/tasks/:task", summary: "save fields and markdown; a status or assignee change is logged (message?) and wakes an agent assigned in a work column (unless wake: false)", errors: boardErrors, body: TaskFields.extend({ wake: z.boolean().optional() }) }, async (c) => {
|
|
106
106
|
await requireOn();
|
|
107
|
-
const { actor, message, ...fields } = await c.body();
|
|
108
|
-
return saveTask(refOf(c), c.params.task, fields, { actor, message });
|
|
107
|
+
const { actor, message, wake, ...fields } = await c.body();
|
|
108
|
+
return saveTask(refOf(c), c.params.task, fields, { actor, message, quiet: wake === false });
|
|
109
109
|
}),
|
|
110
110
|
route({
|
|
111
111
|
name: "tasks.move",
|
package/dist/server/api/git.js
CHANGED
|
@@ -18,7 +18,7 @@ export const gitRoutes = [
|
|
|
18
18
|
fail(400, "path required");
|
|
19
19
|
return gitDiff(file);
|
|
20
20
|
}),
|
|
21
|
-
//
|
|
21
|
+
// Committing stays manual: the background timer never writes history, and pushes it only with `autosync: push`.
|
|
22
22
|
route({ name: "git.commit", method: "POST", path: "/api/git/commit", summary: "stage and commit {paths, message}", errors: 400, body: Commit }, async (c) => {
|
|
23
23
|
const { paths, message } = await c.body();
|
|
24
24
|
const result = await gitCommit(paths, message);
|
|
@@ -904,6 +904,7 @@ export declare const routes: (Route<"agents.addJournal", {
|
|
|
904
904
|
notes: z.ZodOptional<z.ZodString>;
|
|
905
905
|
actor: z.ZodOptional<z.ZodString>;
|
|
906
906
|
message: z.ZodOptional<z.ZodString>;
|
|
907
|
+
wake: z.ZodOptional<z.ZodBoolean>;
|
|
907
908
|
}, z.core.$strip>> | Route<"temp.clean", {
|
|
908
909
|
ok: boolean;
|
|
909
910
|
removed: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netnodeag/kraftwerk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.91.0",
|
|
4
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",
|
|
@@ -106,14 +106,15 @@
|
|
|
106
106
|
"interval": {
|
|
107
107
|
"type": "integer",
|
|
108
108
|
"minimum": 0,
|
|
109
|
-
"description": "Seconds between background fetches (and auto-pulls). 0 disables the timer. Default: 300"
|
|
109
|
+
"description": "Seconds between background fetches (and auto-pulls, auto-pushes). 0 disables the timer. Default: 300"
|
|
110
110
|
},
|
|
111
111
|
"autosync": {
|
|
112
112
|
"enum": [
|
|
113
113
|
"off",
|
|
114
|
-
"pull"
|
|
114
|
+
"pull",
|
|
115
|
+
"push"
|
|
115
116
|
],
|
|
116
|
-
"description": "off = fetch only. pull = also fast-forward when behind and the tree is clean. Default: pull"
|
|
117
|
+
"description": "off = fetch only. pull = also fast-forward when behind and the tree is clean. push = pull, then push commits that are ahead of the upstream. Default: pull"
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as e,R as t,Ut as n,n as r,r as i,s as a,u as o}from"./dist-BUzdcj0Z.js";import{n as s}from"./dist-
|
|
1
|
+
import{L as e,R as t,Ut as n,n as r,r as i,s as a,u as o}from"./dist-BUzdcj0Z.js";import{n as s}from"./dist-Dyuuk1fJ.js";import{r as c}from"./dist-Csjcf5LO.js";var l=1,u=33,d=34,f=35,p=36,m=new r(e=>{let t=e.pos;for(;;){if(e.next==10){e.advance();break}if(e.next==123&&e.peek(1)==123||e.next<0)break;e.advance()}e.pos>t&&e.acceptToken(l)});function h(e,t,n){return new r(r=>{let i=r.pos;for(;r.next!=e&&r.next>=0&&(n||r.next!=38&&(r.next!=123||r.peek(1)!=123));)r.advance();r.pos>i&&r.acceptToken(t)})}var g=h(39,u,!1),_=h(34,d,!1),v=h(39,f,!0),y=h(34,p,!0),b=i.deserialize({version:14,states:"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<<GrOOQO<<Gr<<GrOOQO1G/[1G/[OOOS-E6x-E6xOOQO1G.}1G.}OOOQ-E6y-E6yOOQOAN=^AN=^",stateData:"&d~OvOS~OPROSQOVROWRO~OZTO[XO^VOaUOhWO~OR]OU^O~O[`O^aO~O[bO~O[cO~O[dO~ObeO~ObfO~ObgO~ORhO~O]kOwiO~O[lO~O_mO~OynOzoO~OysOztO~O[uO~O]wOwiO~O_yOwiO~OtzO~Os|O~OSQOV!OOW!OOr!OOy!QO~OSQOV!ROW!ROq!ROz!QO~O_!TOwiO~O]!UO~Oy!VO~Oz!VO~OSQOV!OOW!OOr!OOy!XO~OSQOV!ROW!ROq!ROz!XO~O]!ZO~O",goto:"#dyPPPPPzPPPP!WPPPPP!WPP!Z!^!a!d!dP!g!j!m!p!v#Q#WPPPPPPPP#^SROSS!Os!PT!Rt!SRYPRqeR{nR}oRZPRqfR[PRqgQSOR_SQj`SvjxRxlQ!PsR!W!PQ!StR!Y!SQpeRrf",nodeNames:`⚠ Text Content }} {{ Interpolation InterpolationContent Entity InvalidEntity Attribute BoundAttributeName [ Identifier ] ( ) ReferenceName # Is ExpressionAttributeValue AttributeInterpolation AttributeInterpolation EventName DirectiveName * StatementAttributeValue AttributeName AttributeValue`,maxTerm:42,nodeProps:[[`openedBy`,3,`{{`,15,`(`],[`closedBy`,4,`}}`,14,`)`],[`isolate`,-4,5,19,25,27,``]],skippedNodes:[0],repeatNodeCount:4,tokenData:"0r~RyOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mqr#rrs%jst&Qtv#rvw&hwx)zxy*byz*xz{+`{}#r}!O+v!O!P-]!P!Q#r!Q![+v![!]+v!]!_#r!_!`-s!`!c#r!c!}+v!}#O.Z#O#P#r#P#Q.q#Q#R#r#R#S+v#S#T#r#T#o+v#o#p/X#p#q#r#q#r0Z#r%W#r%W;'S+v;'S;:j-V;:j;=`$g<%lO+vQ#wTUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rQ$ZSO#q#r#r;'S#r;'S;=`$g<%lO#rQ$jP;=`<%l#rR$t[UQvPOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mq#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR%qTyPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR&XTaPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR&oXUQWPOp'[pq#rq!]'[!]!^#r!^#q'[#q#r(d#r;'S'[;'S;=`)t<%lO'[R'aXUQOp'[pq#rq!]'[!]!^'|!^#q'[#q#r(d#r;'S'[;'S;=`)t<%lO'[R(TTVPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR(gXOp'[pq#rq!]'[!]!^'|!^#q'[#q#r)S#r;'S'[;'S;=`)t<%lO'[P)VUOp)Sq!])S!]!^)i!^;'S)S;'S;=`)n<%lO)SP)nOVPP)qP;=`<%l)SR)wP;=`<%l'[R*RTzPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR*iT^PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+PT_PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+gThPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+}b[PUQO}#r}!O+v!O!Q#r!Q![+v![!]+v!]!c#r!c!}+v!}#R#r#R#S+v#S#T#r#T#o+v#o#q#r#q#r$W#r%W#r%W;'S+v;'S;:j-V;:j;=`$g<%lO+vR-YP;=`<%l+vR-dTwPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR-zTUQbPO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR.bTZPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR.xT]PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/^VUQO#o#r#o#p/s#p#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/zTSPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#r~0^TO#q#r#q#r0m#r;'S#r;'S;=`$g<%lO#r~0rOR~",tokenizers:[m,g,_,v,y,0,1],topRules:{Content:[0,2],Attribute:[1,9]},tokenPrec:0}),x=c.parser.configure({top:`SingleExpression`}),S=b.configure({props:[e({Text:t.content,Is:t.definitionOperator,AttributeName:t.attributeName,"AttributeValue ExpressionAttributeValue StatementAttributeValue":t.attributeValue,Entity:t.character,InvalidEntity:t.invalid,"BoundAttributeName/Identifier":t.attributeName,"EventName/Identifier":t.special(t.attributeName),"ReferenceName/Identifier":t.variableName,"DirectiveName/Identifier":t.keyword,"{{ }}":t.brace,"( )":t.paren,"[ ]":t.bracket,"# '*'":t.punctuation})]}),C={parser:x},w={parser:c.parser},T=S.configure({wrap:n((e,t)=>e.name==`InterpolationContent`?C:null)}),E=S.configure({wrap:n((e,t)=>e.name==`InterpolationContent`?C:e.name==`AttributeInterpolation`?e.node.parent?.name==`StatementAttributeValue`?w:C:null),top:`Attribute`}),D={parser:T},O={parser:E},k=s({selfClosingTags:!0});function A(e){return e.configure({wrap:n(M)},`angular`)}var j=A(k.language);function M(e,t){switch(e.name){case`Attribute`:return/^[*#(\[]|\{\{/.test(t.read(e.from,e.to))?O:null;case`Text`:return D}return null}function N(e={}){let t=k;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==k.language?j:A(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:[`[`,`{`,`"`]},indentOnInput:/^\s*[\}\]]$/})])}export{N as angular};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as markdown}from"./editor-BVY58sKa.js";
|
|
@@ -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-BUzdcj0Z.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-BUzdcj0Z.js";import{n as s}from"./dist-Dyuuk1fJ.js";import{r as c}from"./dist-Csjcf5LO.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};
|