openmates 0.27.0-alpha.31 → 0.27.0-alpha.32
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/{chunk-DOBXL5VD.js → chunk-AT7WS3GY.js} +11 -24
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/fixtures/privacy-runtime/linux-arm64/libggml-base.so +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml-base.so.0 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml-base.so.0.15.1 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml-cpu.so +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml-cpu.so.0 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml-cpu.so.0.15.1 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml.so +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml.so.0 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml.so.0.15.1 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/manifest.json +9 -9
- package/package.json +1 -1
|
@@ -88787,6 +88787,7 @@ function workspaceHint(state) {
|
|
|
88787
88787
|
if (state.focus === "inspiration") return "\u2190/\u2192 inspiration Enter explore Tab focus";
|
|
88788
88788
|
if (state.focus === "sidebar") return "\u2191/\u2193 choose Enter open Ctrl+B close Tab focus";
|
|
88789
88789
|
if (state.screen === "start" || state.screen === "chats") return state.focus === "composer" ? "Enter send Shift+Tab chats Ctrl+N new Ctrl+B sidebar" : "\u2190/\u2192 chat Enter open Tab write \u2191/\u2193 scroll Ctrl+B sidebar";
|
|
88790
|
+
if (state.screen === "embed") return state.embedChoices.length ? "\u2191/\u2193 choose Enter open Esc back" : "\u2191/\u2193 scroll PgUp/PgDn page Esc back";
|
|
88790
88791
|
if (state.workflowEdit) return "Enter save title Esc cancel edit";
|
|
88791
88792
|
if (state.screen === "workflow") return "g template r runs \u2191/\u2193 select Enter expand e title E config x run c cancel";
|
|
88792
88793
|
if (state.screen === "task") return "e edit m status a activity s start d done b block Esc back";
|
|
@@ -88898,7 +88899,7 @@ function renderWorkspaceFrame(state, rawWidth, rawHeight, body, options = {}) {
|
|
|
88898
88899
|
rows2.push(place(rendered, sidebarRow));
|
|
88899
88900
|
}
|
|
88900
88901
|
const placeholder = state.screen === "example" ? "Continue from this example, or ask your own question..." : state.workspace === "chats" ? state.screen === "chat" ? "Ask a follow-up, use @file, or type /help" : "Ask anything..." : state.workspace === "projects" ? "Name a new project \xB7 /search to browse" : state.workspace === "workflows" ? "Describe new workflow \xB7 /search to browse" : state.workspace === "tasks" ? "Add or update tasks \xB7 /search to browse" : "Search apps or type / for actions";
|
|
88901
|
-
const hint = state.status && state.screen !== "status" ? `${state.status} \xB7 ${workspaceHint(state)}` : workspaceHint(state);
|
|
88902
|
+
const hint = state.status && state.screen !== "status" && state.screen !== "embed" ? `${state.status} \xB7 ${workspaceHint(state)}` : workspaceHint(state);
|
|
88902
88903
|
const hintColor = state.focus === "composer" ? "#a0a0a0" : "#ff553b";
|
|
88903
88904
|
const composer = [];
|
|
88904
88905
|
if (showComposer) {
|
|
@@ -90514,7 +90515,7 @@ function rankExamples(examples, interests) {
|
|
|
90514
90515
|
function renderTuiFrame(state, width, height, options = {}) {
|
|
90515
90516
|
if (state.startup || state.privacyOffer) return renderStartupFrame(state, width, height, options.colorMode ?? "none");
|
|
90516
90517
|
const bodyWidth = workspaceGeometry(state, width).contentWidth;
|
|
90517
|
-
const stickyRows = state.screen === "project" && state.activeProject ? renderProjectIdentity(state.activeProject, { width: bodyWidth }).length + renderProjectTabs(state.projectTab, bodyWidth).length : state.screen === "app" && state.activeApp ? renderTuiAppIdentity(state.activeApp, bodyWidth).length + renderTuiAppTabs(state.appTab, bodyWidth).length : state.screen === "app-skill" && state.activeAppSkill ? renderTuiAppsSkillIdentity(state.activeAppSkill, bodyWidth).length + renderTuiAppsSkillTabs(state.appSkillTab, bodyWidth).length : state.screen === "workflow" && state.activeWorkflow ? renderWorkflowIdentity(state.activeWorkflow, { width: bodyWidth, run: state.workflowTab === "runs" ? state.workflowRuns[state.selectedWorkflowRunIndex] : void 0 }).length + (bodyWidth < 36 ? 7 : 4) : 0;
|
|
90518
|
+
const stickyRows = state.screen === "embed" ? 3 : state.screen === "project" && state.activeProject ? renderProjectIdentity(state.activeProject, { width: bodyWidth }).length + renderProjectTabs(state.projectTab, bodyWidth).length : state.screen === "app" && state.activeApp ? renderTuiAppIdentity(state.activeApp, bodyWidth).length + renderTuiAppTabs(state.appTab, bodyWidth).length : state.screen === "app-skill" && state.activeAppSkill ? renderTuiAppsSkillIdentity(state.activeAppSkill, bodyWidth).length + renderTuiAppsSkillTabs(state.appSkillTab, bodyWidth).length : state.screen === "workflow" && state.activeWorkflow ? renderWorkflowIdentity(state.activeWorkflow, { width: bodyWidth, run: state.workflowTab === "runs" ? state.workflowRuns[state.selectedWorkflowRunIndex] : void 0 }).length + (bodyWidth < 36 ? 7 : 4) : 0;
|
|
90518
90519
|
return renderWorkspaceFrame(state, width, height, renderBody(state, bodyWidth, height), { ...options, stickyRows, headerRows: state.screen === "chat" || state.screen === "example" ? renderChatHeader(state, bodyWidth).length : void 0 });
|
|
90519
90520
|
}
|
|
90520
90521
|
function renderStartupFrame(state, width, height, colorMode) {
|
|
@@ -90627,7 +90628,7 @@ function renderScreenBody(state, width, height) {
|
|
|
90627
90628
|
const app = state.detailEmbed?.appId ?? "", gradient = APP_GRADIENTS[app] ?? PRIMARY_GRADIENT;
|
|
90628
90629
|
const title = state.detailTitle || "Embed";
|
|
90629
90630
|
const header2 = [title, state.detailEmbed ? `${state.detailEmbed.type?.replaceAll("-", " ") ?? "Saved item"} \xB7 ${state.detailEmbed.embedId.slice(0, 8)}` : "Saved embeds"];
|
|
90630
|
-
return [...coloredHero(header2, header2.length, gradient), "", ...(state.embedChoices.length ? state.embedChoices.map((id, index) => `${index === state.selectedIndex ? ">" : " "} Embed ${index + 1} \xB7 ${id.slice(0, 8)} \xB7 Enter open`) : state.detailLines).flatMap((line) => wrap(line, width))
|
|
90631
|
+
return [...coloredHero(header2, header2.length, gradient), "", ...(state.embedChoices.length ? state.embedChoices.map((id, index) => `${index === state.selectedIndex ? ">" : " "} Embed ${index + 1} \xB7 ${id.slice(0, 8)} \xB7 Enter open`) : state.detailLines).flatMap((line) => wrap(line, width))];
|
|
90631
90632
|
}
|
|
90632
90633
|
case "workflows":
|
|
90633
90634
|
return [...homeHeader(state, width, height), ...homeCards(state.workflows.filter((w) => w.title.toLowerCase().includes(state.filter.toLowerCase())).flatMap((w, i) => [...renderWorkflowPreviewCard(w, { width: Math.min(width, 88), selected: state.focus === "content" && i === state.selectedIndex }), ""]), width, []), "Show my workflows \xB7 /search Search"];
|
|
@@ -92620,32 +92621,18 @@ async function runTui(client2, terminal = new TuiTerminal(), startupServices) {
|
|
|
92620
92621
|
});
|
|
92621
92622
|
terminal.enter();
|
|
92622
92623
|
terminal.onResize(render);
|
|
92623
|
-
let keyQueue = Promise.resolve();
|
|
92624
|
-
let inputEpoch = 0;
|
|
92625
|
-
const keyError = (error) => {
|
|
92626
|
-
state.status = error instanceof Error ? error.message : String(error);
|
|
92627
|
-
render();
|
|
92628
|
-
};
|
|
92629
|
-
const dispatchKey = async (chunk, key, epoch) => {
|
|
92630
|
-
if (closed || epoch !== inputEpoch) return;
|
|
92631
|
-
if (await startup.handleKey(chunk, key)) return;
|
|
92632
|
-
const action = handleKey({ chunk, key, state, client: client2, terminal, render, finish });
|
|
92633
|
-
if (key.name === "return" && !key.meta) void action.catch(keyError);
|
|
92634
|
-
else await action;
|
|
92635
|
-
};
|
|
92636
92624
|
terminal.onKey((chunk, key) => {
|
|
92637
92625
|
if (key.ctrl && key.name === "c") {
|
|
92638
92626
|
finish({ action: "exit" });
|
|
92639
92627
|
return;
|
|
92640
92628
|
}
|
|
92641
|
-
|
|
92642
|
-
|
|
92643
|
-
|
|
92644
|
-
|
|
92645
|
-
|
|
92646
|
-
|
|
92647
|
-
|
|
92648
|
-
keyQueue = keyQueue.then(() => dispatchKey(chunk, key, epoch)).catch(keyError);
|
|
92629
|
+
void (async () => {
|
|
92630
|
+
if (await startup.handleKey(chunk, key)) return;
|
|
92631
|
+
await handleKey({ chunk, key, state, client: client2, terminal, render, finish });
|
|
92632
|
+
})().catch((error) => {
|
|
92633
|
+
state.status = error instanceof Error ? error.message : String(error);
|
|
92634
|
+
render();
|
|
92635
|
+
});
|
|
92649
92636
|
});
|
|
92650
92637
|
void startup.start();
|
|
92651
92638
|
return result;
|
package/dist/cli.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
shouldRequireTrustedAccountGuard,
|
|
22
22
|
waitForSafeE2ETotpWindow,
|
|
23
23
|
waitForWorkflowRun
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-AT7WS3GY.js";
|
|
25
25
|
import "./chunk-USORGU2X.js";
|
|
26
26
|
import "./chunk-IWKP55ZB.js";
|
|
27
27
|
import "./chunk-4IRYB3YN.js";
|
package/dist/index.js
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -17,47 +17,47 @@
|
|
|
17
17
|
{
|
|
18
18
|
"name": "libggml-base.so",
|
|
19
19
|
"bytes": 1110088,
|
|
20
|
-
"sha256": "
|
|
20
|
+
"sha256": "16d77a654b4e2250602eec01d51bce8c3a363a727d450c82335db041c24ca795"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "libggml-base.so.0",
|
|
24
24
|
"bytes": 1110088,
|
|
25
|
-
"sha256": "
|
|
25
|
+
"sha256": "16d77a654b4e2250602eec01d51bce8c3a363a727d450c82335db041c24ca795"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"name": "libggml-base.so.0.15.1",
|
|
29
29
|
"bytes": 1110088,
|
|
30
|
-
"sha256": "
|
|
30
|
+
"sha256": "16d77a654b4e2250602eec01d51bce8c3a363a727d450c82335db041c24ca795"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "libggml-cpu.so",
|
|
34
34
|
"bytes": 869800,
|
|
35
|
-
"sha256": "
|
|
35
|
+
"sha256": "bfd2b33f81e2b0f0a44665017a37f719ab2a25679e0bc75a18916ab94759c802"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "libggml-cpu.so.0",
|
|
39
39
|
"bytes": 869800,
|
|
40
|
-
"sha256": "
|
|
40
|
+
"sha256": "bfd2b33f81e2b0f0a44665017a37f719ab2a25679e0bc75a18916ab94759c802"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"name": "libggml-cpu.so.0.15.1",
|
|
44
44
|
"bytes": 869800,
|
|
45
|
-
"sha256": "
|
|
45
|
+
"sha256": "bfd2b33f81e2b0f0a44665017a37f719ab2a25679e0bc75a18916ab94759c802"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"name": "libggml.so",
|
|
49
49
|
"bytes": 1899104,
|
|
50
|
-
"sha256": "
|
|
50
|
+
"sha256": "2ebdeb5f296be02e84368478193c8f7f4e01c991e791360ed00fbed34b94d29b"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"name": "libggml.so.0",
|
|
54
54
|
"bytes": 1899104,
|
|
55
|
-
"sha256": "
|
|
55
|
+
"sha256": "2ebdeb5f296be02e84368478193c8f7f4e01c991e791360ed00fbed34b94d29b"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"name": "libggml.so.0.15.1",
|
|
59
59
|
"bytes": 1899104,
|
|
60
|
-
"sha256": "
|
|
60
|
+
"sha256": "2ebdeb5f296be02e84368478193c8f7f4e01c991e791360ed00fbed34b94d29b"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"name": "openmates-pii-worker",
|