@north-light/crouter 0.3.181 → 0.3.183
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/build-root.js +10 -3
- package/dist/builtin-memory/internal/memory-loading.md +3 -1
- package/dist/clients/attach/__tests__/group-activity.test.js +2 -2
- package/dist/clients/attach/__tests__/titled-editor-paste.test.d.ts +1 -0
- package/dist/clients/attach/__tests__/titled-editor-paste.test.js +114 -0
- package/dist/clients/attach/__tests__/titled-editor-preview.test.js +4 -1
- package/dist/clients/attach/input/titled-editor.d.ts +18 -0
- package/dist/clients/attach/input/titled-editor.js +62 -0
- package/dist/clients/attach/render/chat-view.d.ts +3 -0
- package/dist/clients/attach/render/chat-view.js +15 -6
- package/dist/clients/attach/render/context-message.js +2 -2
- package/dist/clients/attach/render/group-activity.d.ts +18 -1
- package/dist/clients/attach/render/group-activity.js +54 -6
- package/dist/clients/attach/render/group-recap.js +13 -2
- package/dist/clients/attach/render/{markdown-headings.d.ts → markdown-source.d.ts} +4 -4
- package/dist/clients/attach/render/markdown-source.js +165 -0
- package/dist/clients/attach/session/bindings.js +5 -2
- package/dist/clients/attach/viewer.js +396 -394
- package/dist/clients/inbox/review/keys.js +2 -9
- package/dist/clients/inbox/tui/keys.js +2 -9
- package/dist/commands/cron.js +1 -1
- package/dist/commands/memory/delete.js +1 -1
- package/dist/commands/memory/find.js +1 -1
- package/dist/commands/memory/lint.js +28 -3
- package/dist/commands/memory/list.js +1 -1
- package/dist/commands/memory/origin.js +1 -1
- package/dist/commands/memory/read.js +4 -4
- package/dist/commands/memory/write.js +1 -1
- package/dist/commands/sys/settings-shell.d.ts +0 -3
- package/dist/commands/sys/settings-shell.js +1 -38
- package/dist/commands/sys/settings.js +2 -3
- package/dist/commands/sys/setup-core.d.ts +2 -17
- package/dist/commands/sys/setup-core.js +9 -33
- package/dist/commands/sys/setup-wizard.d.ts +1 -3
- package/dist/commands/sys/setup-wizard.js +9 -39
- package/dist/commands/sys/setup.js +6 -6
- package/dist/commands/sys/sync-project-guidance.js +62 -12
- package/dist/core/__tests__/fault-classifier.test.js +20 -0
- package/dist/core/__tests__/nested-store-discovery.test.d.ts +1 -0
- package/dist/core/__tests__/nested-store-discovery.test.js +89 -0
- package/dist/core/__tests__/on-read-nested-store.test.d.ts +1 -0
- package/dist/core/__tests__/on-read-nested-store.test.js +117 -0
- package/dist/core/__tests__/plugin-link-symlinked-scope-root.test.d.ts +1 -0
- package/dist/core/__tests__/plugin-link-symlinked-scope-root.test.js +38 -0
- package/dist/core/__tests__/serial/tmux-surface.test.js +8 -5
- package/dist/core/__tests__/watchdog-abort-arms-retry.test.js +34 -1
- package/dist/core/command.js +5 -3
- package/dist/core/fault-classifier.d.ts +1 -1
- package/dist/core/fault-classifier.js +7 -0
- package/dist/core/fs-utils.js +6 -1
- package/dist/core/keybindings/index.d.ts +1 -1
- package/dist/core/keybindings/index.js +1 -1
- package/dist/core/keybindings/match.d.ts +11 -0
- package/dist/core/keybindings/match.js +22 -0
- package/dist/core/memory/doc-link-grammar.js +3 -7
- package/dist/core/memory/inline-ref-guidance.js +1 -1
- package/dist/core/memory-resolver.d.ts +7 -1
- package/dist/core/memory-resolver.js +20 -7
- package/dist/core/nested-stores.d.ts +12 -0
- package/dist/core/nested-stores.js +146 -0
- package/dist/core/preview-registry.js +4 -2
- package/dist/core/runtime/bearings.d.ts +1 -1
- package/dist/core/runtime/bearings.js +2 -2
- package/dist/core/runtime/broker/fault-retry.js +23 -4
- package/dist/core/runtime/broker/inbox.d.ts +4 -0
- package/dist/core/runtime/broker/inbox.js +17 -8
- package/dist/core/runtime/broker-extension-render.d.ts +1 -1
- package/dist/core/runtime/broker-extension-render.js +2 -2
- package/dist/core/runtime/broker-protocol.d.ts +1 -1
- package/dist/core/runtime/deliver-live.js +11 -1
- package/dist/core/runtime/fault.js +1 -1
- package/dist/core/runtime/tmux-bindings.js +42 -20
- package/dist/core/runtime/tool-group-summary.js +2 -6
- package/dist/core/substrate/injected-store.d.ts +6 -0
- package/dist/core/substrate/injected-store.js +19 -0
- package/dist/core/substrate/on-read-node.d.ts +4 -2
- package/dist/core/substrate/on-read-node.js +5 -3
- package/dist/core/substrate/on-read.d.ts +4 -2
- package/dist/core/substrate/on-read.js +27 -5
- package/dist/pi-extensions/canvas-context-intro.d.ts +1 -1
- package/dist/pi-extensions/canvas-context-intro.js +14 -3
- package/dist/pi-extensions/canvas-doc-substrate.js +13 -2
- package/dist/pi-extensions/canvas-inbox-watcher.js +34 -1
- package/dist/shared/generated-context.d.ts +4 -0
- package/dist/shared/generated-context.js +20 -1
- package/dist/shared/tool-groups.d.ts +3 -3
- package/dist/shared/tool-groups.js +1 -4
- package/package.json +1 -1
- package/runtime.lock.json +2 -2
- package/scripts/postinstall.mjs +1 -1
- package/dist/clients/attach/render/markdown-headings.js +0 -93
- package/dist/commands/search/answer.d.ts +0 -1
- package/dist/commands/search/answer.js +0 -50
- package/dist/commands/search/contents.d.ts +0 -1
- package/dist/commands/search/contents.js +0 -96
- package/dist/commands/search/exa.d.ts +0 -53
- package/dist/commands/search/exa.js +0 -157
- package/dist/commands/search/puremd.d.ts +0 -11
- package/dist/commands/search/puremd.js +0 -53
- package/dist/commands/search/web.d.ts +0 -1
- package/dist/commands/search/web.js +0 -65
- package/dist/commands/search.d.ts +0 -2
- package/dist/commands/search.js +0 -24
- package/dist/commands/sys/panels/keys-panel.d.ts +0 -16
- package/dist/commands/sys/panels/keys-panel.js +0 -60
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Input, truncateToWidth } from "@earendil-works/pi-tui";
|
|
2
|
-
import { detectExaKey, resolveExaKeyPath } from "../setup-core.js";
|
|
3
|
-
import { framed, theme } from "./panel.js";
|
|
4
|
-
export class KeysPanel {
|
|
5
|
-
input = new Input();
|
|
6
|
-
_focused = false;
|
|
7
|
-
notice = "";
|
|
8
|
-
onSubmit;
|
|
9
|
-
onCancel;
|
|
10
|
-
constructor() {
|
|
11
|
-
this.input.onSubmit = () => this.onSubmit?.();
|
|
12
|
-
this.input.onEscape = () => this.onCancel?.();
|
|
13
|
-
}
|
|
14
|
-
set focused(value) {
|
|
15
|
-
this._focused = value;
|
|
16
|
-
this.input.focused = value;
|
|
17
|
-
}
|
|
18
|
-
get focused() {
|
|
19
|
-
return this._focused;
|
|
20
|
-
}
|
|
21
|
-
get value() {
|
|
22
|
-
return this.input.getValue().trim();
|
|
23
|
-
}
|
|
24
|
-
setNotice(notice, clearValue = false) {
|
|
25
|
-
this.notice = notice;
|
|
26
|
-
if (clearValue)
|
|
27
|
-
this.input.setValue("");
|
|
28
|
-
}
|
|
29
|
-
badge() {
|
|
30
|
-
return detectExaKey().present ? "\u2713" : "not set";
|
|
31
|
-
}
|
|
32
|
-
handleInput(data) {
|
|
33
|
-
this.notice = "";
|
|
34
|
-
this.input.handleInput(data);
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
render(width) {
|
|
38
|
-
const presence = detectExaKey();
|
|
39
|
-
const status = presence.present
|
|
40
|
-
? theme.fg("success", ` ✓ configured (${presence.source === "env" ? "EXA_API_KEY env" : "saved"})`)
|
|
41
|
-
: theme.fg("dim", " · not set");
|
|
42
|
-
return [
|
|
43
|
-
truncateToWidth(`${theme.fg("accent", theme.bold("Exa key"))}${theme.fg("dim", " optional")}${status}`, width),
|
|
44
|
-
truncateToWidth(`${theme.fg("mdLink", "Create a key: ")}${theme.fg("mdLinkUrl", "https://dashboard.exa.ai/api-keys")}`, width),
|
|
45
|
-
truncateToWidth(theme.fg("dim", `Will write to: ${resolveExaKeyPath()}`), width),
|
|
46
|
-
...framed([
|
|
47
|
-
theme.fg("accent", theme.bold("Paste EXA_API_KEY here")),
|
|
48
|
-
theme.fg("dim", presence.present
|
|
49
|
-
? "Leave blank to keep the existing key; paste to replace it."
|
|
50
|
-
: "Leave blank to skip."),
|
|
51
|
-
...this.input.render(Math.max(1, width - 4)),
|
|
52
|
-
], width),
|
|
53
|
-
...(this.notice
|
|
54
|
-
? [
|
|
55
|
-
truncateToWidth(theme.fg(this.notice.startsWith("Saved") ? "success" : "warning", this.notice), width),
|
|
56
|
-
]
|
|
57
|
-
: []),
|
|
58
|
-
];
|
|
59
|
-
}
|
|
60
|
-
}
|