agent-lyra 0.6.0 → 0.6.1
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 +395 -173
- package/bin/agent-lyra.js +16 -3
- package/package.json +60 -56
- package/src/app-builder/export.js +109 -109
- package/src/app-builder/init.js +52 -52
- package/src/app-builder/preview.js +22 -22
- package/src/app-builder/saved-app.js +70 -70
- package/src/app-builder/saved-preview-browser.js +33 -33
- package/src/app-builder/saved-preview.html +24 -24
- package/src/app-builder/saved-preview.js +61 -61
- package/src/app-builder/validate.js +64 -64
- package/src/memory/cli.js +49 -0
- package/src/memory/contract.json +28 -0
- package/src/memory/index.d.ts +49 -0
- package/src/memory/index.js +259 -0
- package/src/memory/lifecycle.js +29 -0
- package/src/memory/proposals.js +84 -0
- package/src/memory/skills-cli.js +26 -0
- package/src/memory/sync.js +85 -0
- package/src/memory/validation.js +25 -0
- package/src/runtime/local-cli.js +2 -1
- package/src/studio/agent-ui.css +43 -43
- package/src/studio/agent-ui.js +32 -32
- package/src/studio/browser.js +331 -289
- package/src/studio/export.js +80 -79
- package/src/studio/index.html +37 -16
- package/src/studio/memory-actions.js +37 -0
- package/src/studio/memory-panel.js +200 -0
- package/src/studio/project.js +197 -190
- package/src/studio/pull-agent.js +72 -0
- package/src/studio/push.js +54 -0
- package/src/studio/python-agent.js +47 -47
- package/src/studio/python-agent.py +25 -25
- package/src/studio/server.js +143 -102
- package/src/studio/session.js +83 -0
- package/src/studio/studio.css +10 -7
- package/src/studio/sync.js +42 -39
- package/src/studio/workflow-sync.js +157 -0
package/src/studio/agent-ui.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export function renderAgentCard(h, { name, source, onRun, onOpen, header, details, extraAction, runIcon }) {
|
|
2
|
-
return h("article", { className: "lyra-run-card" + (onOpen ? " lyra-run-card-clickable" : ""), onClick: onOpen },
|
|
3
|
-
header ?? h("div", { className: "lyra-run-card-heading" },
|
|
4
|
-
h("span", { className: "lyra-run-card-source" }, source),
|
|
5
|
-
h("strong", { className: "lyra-run-title", title: name }, name)),
|
|
6
|
-
details,
|
|
7
|
-
h("div", { className: "lyra-run-card-actions" },
|
|
8
|
-
h("button", {
|
|
9
|
-
type: "button", className: "lyra-run-action", disabled: !onRun,
|
|
10
|
-
onClick: event => { event.stopPropagation(); onRun?.(); },
|
|
11
|
-
}, runIcon, "Run now"),
|
|
12
|
-
extraAction));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function renderRunHeader(h, { title, kind, icon, details, actions, onClose, closeIcon, closeId, className, style }) {
|
|
16
|
-
return h("header", { className: ["lyra-run-header", className].filter(Boolean).join(" "), style },
|
|
17
|
-
icon,
|
|
18
|
-
h("div", { className: "lyra-run-heading" },
|
|
19
|
-
title && h("div", { className: "lyra-run-heading-line" },
|
|
20
|
-
h("h2", { className: "lyra-run-title", id: closeId ? "run-title" : undefined }, title),
|
|
21
|
-
kind && h("span", { className: "lyra-run-card-source" }, kind)),
|
|
22
|
-
details),
|
|
23
|
-
actions,
|
|
24
|
-
onClose && renderRunClose(h, { onClose, closeIcon, closeId }));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function renderRunClose(h, { onClose, closeIcon, closeId }) {
|
|
28
|
-
return h("button", {
|
|
29
|
-
type: "button", className: "lyra-run-close", id: closeId,
|
|
30
|
-
onClick: onClose, title: "Close run drawer", "aria-label": "Close run drawer",
|
|
31
|
-
}, closeIcon ?? "Close");
|
|
32
|
-
}
|
|
1
|
+
export function renderAgentCard(h, { name, source, onRun, onOpen, header, details, extraAction, runIcon }) {
|
|
2
|
+
return h("article", { className: "lyra-run-card" + (onOpen ? " lyra-run-card-clickable" : ""), onClick: onOpen },
|
|
3
|
+
header ?? h("div", { className: "lyra-run-card-heading" },
|
|
4
|
+
h("span", { className: "lyra-run-card-source" }, source),
|
|
5
|
+
h("strong", { className: "lyra-run-title", title: name }, name)),
|
|
6
|
+
details,
|
|
7
|
+
h("div", { className: "lyra-run-card-actions" },
|
|
8
|
+
h("button", {
|
|
9
|
+
type: "button", className: "lyra-run-action", disabled: !onRun,
|
|
10
|
+
onClick: event => { event.stopPropagation(); onRun?.(); },
|
|
11
|
+
}, runIcon, "Run now"),
|
|
12
|
+
extraAction));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function renderRunHeader(h, { title, kind, icon, details, actions, onClose, closeIcon, closeId, className, style }) {
|
|
16
|
+
return h("header", { className: ["lyra-run-header", className].filter(Boolean).join(" "), style },
|
|
17
|
+
icon,
|
|
18
|
+
h("div", { className: "lyra-run-heading" },
|
|
19
|
+
title && h("div", { className: "lyra-run-heading-line" },
|
|
20
|
+
h("h2", { className: "lyra-run-title", id: closeId ? "run-title" : undefined }, title),
|
|
21
|
+
kind && h("span", { className: "lyra-run-card-source" }, kind)),
|
|
22
|
+
details),
|
|
23
|
+
actions,
|
|
24
|
+
onClose && renderRunClose(h, { onClose, closeIcon, closeId }));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function renderRunClose(h, { onClose, closeIcon, closeId }) {
|
|
28
|
+
return h("button", {
|
|
29
|
+
type: "button", className: "lyra-run-close", id: closeId,
|
|
30
|
+
onClick: onClose, title: "Close run drawer", "aria-label": "Close run drawer",
|
|
31
|
+
}, closeIcon ?? "Close");
|
|
32
|
+
}
|