agent-yes 1.303.1 → 1.304.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 +54 -0
- package/default.config.yaml +5 -5
- package/dist/{JsonlStore-BpYZZTap.js → JsonlStore-CB_0sfdT.js} +5 -4
- package/dist/{SUPPORTED_CLIS-Dq9Lq9WJ.js → SUPPORTED_CLIS-C_1IiOj3.js} +2 -2
- package/dist/SUPPORTED_CLIS-Do3GHAY1.js +12 -0
- package/dist/{agentShare-suB6yPgO.js → agentShare-BvpEm-Fr.js} +10 -9
- package/dist/{askCli-BU3CNCLU.js → askCli-KmMf-3wA.js} +6 -6
- package/dist/{browser-BmxN1Ur9.js → browser-BAFPmEvN.js} +2 -2
- package/dist/{callback-Ctj3_Wxp.js → callback-BiSUhjw7.js} +6 -6
- package/dist/callback-SqLD2mMX.js +17 -0
- package/dist/{callbackCore-DSJWhqAe.js → callbackCore-BZ_10zyc.js} +1 -1
- package/dist/{callbackCore-BesbQ6-Z.js → callbackCore-Deve5pv3.js} +1 -1
- package/dist/{channels-j5nWuzlQ.js → channels-Y36S0ccW.js} +2 -2
- package/dist/cli.js +118 -13
- package/dist/{cmdDsh-2LP0grim.js → cmdDsh-DZ8bLsH7.js} +1 -1
- package/dist/cmdKill-CzSBfWmx.js +116 -0
- package/dist/{cmdPs-wc1j85fi.js → cmdPs-DBt23Qz0.js} +11 -10
- package/dist/{cwdConflictWarn-skQSMwEh.js → cwdConflictWarn-y-epQyOj.js} +21 -5
- package/dist/{cwdPassthroughHint-BUbWMoz0.js → cwdPassthroughHint-CzWh0hrw.js} +1 -1
- package/dist/{expose-Dawq1LxC.js → expose-Bhsn5yUz.js} +2 -2
- package/dist/forceKill-BDqxx4uQ.js +44 -0
- package/dist/{forkNested-CavHyWzA.js → forkNested-3heLs5XC.js} +45 -5
- package/dist/{globalPidIndex-CRB5KtyL.js → globalPidIndex-BsjlId-h.js} +6 -5
- package/dist/{globalPidIndex-BftWlg2V.js → globalPidIndex-uoz8Esqz.js} +2 -2
- package/dist/{hist-Cs0KFSUW.js → hist-DY16wm7g.js} +1 -1
- package/dist/{identity-DA7YI9km.js → identity-C0MxfwI2.js} +1 -1
- package/dist/{identity-Bk-aG_xl.js → identity-Ckav3-Up.js} +1 -1
- package/dist/index.js +7 -7
- package/dist/{initMsg-CcTqFtsp.js → initMsg-BEVDWYnv.js} +1 -1
- package/dist/{initMsg-D9KJnfgC.js → initMsg-GPU52N-j.js} +1 -1
- package/dist/liagent/box-BSIrRRc_.js +2320 -0
- package/dist/liagent/box-DloywR57.d.ts +409 -0
- package/dist/liagent/box.d.ts +3 -0
- package/dist/liagent/box.js +3 -0
- package/dist/liagent/cli.d.ts +1 -0
- package/dist/liagent/cli.js +908 -0
- package/dist/liagent/client.d.ts +28 -0
- package/dist/liagent/client.js +240 -0
- package/dist/liagent/echo-BvzPSI0x.js +86 -0
- package/dist/liagent/echo-W2RcMEny.d.ts +38 -0
- package/dist/liagent/hub.d.ts +405 -0
- package/dist/liagent/hub.js +1831 -0
- package/dist/liagent/index.d.ts +14 -0
- package/dist/liagent/index.js +10 -0
- package/dist/liagent/liagent.js +339 -0
- package/dist/liagent/mic-audio-C3Shud_F.js +754 -0
- package/dist/liagent/mic-audio-DMCWtEI-.d.ts +317 -0
- package/dist/liagent/mic-button-CtZHFBSG.js +651 -0
- package/dist/liagent/mic-button-Y0ioPetQ.d.ts +248 -0
- package/dist/liagent/mic.d.ts +3 -0
- package/dist/liagent/mic.js +4 -0
- package/dist/liagent/progress-CJs08bXb.js +473 -0
- package/dist/liagent/progress-CfE-meHr.d.ts +205 -0
- package/dist/liagent/progress.d.ts +2 -0
- package/dist/liagent/progress.js +3 -0
- package/dist/liagent/protocol.d.ts +324 -0
- package/dist/liagent/protocol.js +504 -0
- package/dist/liagent/speech-rate-DXeJjRTc.js +42 -0
- package/dist/liagent/state-tree-BZCmAknI.js +353 -0
- package/dist/liagent/tree-BrR7NwMf.js +710 -0
- package/dist/liagent/tree-HB9RhX_H.d.ts +295 -0
- package/dist/liagent/tree.d.ts +2 -0
- package/dist/liagent/tree.js +4 -0
- package/dist/liagent/ui-strings-B03le3fh.d.ts +27 -0
- package/dist/liagent/ui-strings-CJIwW5Gf.js +794 -0
- package/dist/liagent/ui.d.ts +394 -0
- package/dist/liagent/ui.js +5 -0
- package/dist/liagent/voice-D7yeS9VM.js +802 -0
- package/dist/liagent/voice-Qo7SCgi8.d.ts +308 -0
- package/dist/liagent/voice.d.ts +3 -0
- package/dist/liagent/voice.js +4 -0
- package/dist/{notifyDaemon-C7GlfJ1E.js → notifyDaemon-DkUB7GV2.js} +10 -9
- package/dist/{openBrowser-1cIo4dJL.js → openBrowser-CQAOIrD6.js} +1 -1
- package/dist/oxmgrService-DlYHmqyI.js +37 -0
- package/dist/oxmgrService-o9L3I6FX.js +3 -0
- package/dist/{parentLink-DoEWVGld.js → parentLink-BcAYcO9L.js} +2 -2
- package/dist/{parentLink-B58V1RVd.js → parentLink-MBUD3oY2.js} +2 -2
- package/dist/{parentPingLoop-C73bbmCE.js → parentPingLoop-DDO592Wh.js} +5 -5
- package/dist/{pidStore-433kvh9D.js → pidStore-C50VPk3E.js} +3 -3
- package/dist/pidStore-COkPjpW8.js +6 -0
- package/dist/{procStats-BvmrBrOs.js → procStats-DwTxj3rs.js} +1 -1
- package/dist/{remotes-MfdV9M8u.js → remotes-BqLoB5GR.js} +2 -2
- package/dist/{remotes-DevcBeLl.js → remotes-BsMGvAay.js} +3 -3
- package/dist/{roomReplyAlias-DFqg_6IU.js → roomReplyAlias-B-v76TA8.js} +3 -3
- package/dist/roomReplyAlias-BzWUBkQy.js +6 -0
- package/dist/{rustBinary-7VK7oLlW.js → rustBinary-BrJ2p8wy.js} +2 -2
- package/dist/{rustBinary-BV4LxMMn.js → rustBinary-vpfpWj1q.js} +2 -2
- package/dist/{schedule-Dp0qkNO1.js → schedule-Bzjhl6-h.js} +15 -44
- package/dist/schedulesCli-CLqieyQZ.js +784 -0
- package/dist/senderAncestry-CVHeKk1Y.js +173 -0
- package/dist/senderAncestry-KhAUPCQs.js +3 -0
- package/dist/{serve-BpOIIOVc.js → serve-XwFYE0cE.js} +67 -69
- package/dist/{serveRust-CbBrcUrg.js → serveRust-BfWkeL6T.js} +31 -4
- package/dist/{setup-DdIBk6Iv.js → setup-D4-s2VZw.js} +5 -5
- package/dist/{share-w5oRbvlj.js → share-CbFetL5H.js} +1 -1
- package/dist/{share-DrS3LYqf.js → share-_TPYAGWC.js} +1 -1
- package/dist/{shareCmd-DDENkBW2.js → shareCmd-DUBsVI3e.js} +10 -10
- package/dist/spawnGate-Dfj9V76w.js +5 -0
- package/dist/{spawnGate-lr3tvA6U.js → spawnGate-Dj_WaS29.js} +3 -3
- package/dist/{subcommands-DxgvDmZX.js → subcommands-B7YZJL8n.js} +471 -307
- package/dist/subcommands-BZPxFgkT.js +15 -0
- package/dist/{systemPathLink-SjUzgSiq.js → systemPathLink-Y3iC7bYV.js} +1 -1
- package/dist/{terminal-C2h7tpe0.js → terminal-13cGj3h6.js} +2 -2
- package/dist/terminal.js +1 -1
- package/dist/{todoAutomation-TTp_Qz9G.js → todoAutomation-CKlrxuZv.js} +2 -2
- package/dist/{todoCli-BWm5nZE0.js → todoCli-CU9vSJSJ.js} +6 -6
- package/dist/{todoIdentity-BvXZKWJI.js → todoIdentity-CzS1e7VL.js} +2 -2
- package/dist/{todoStore-C9RTz0Vs.js → todoStore-msRCEUi1.js} +2 -2
- package/dist/{tray-BeRSozJz.js → tray-CLktEN3G.js} +1 -1
- package/dist/{trayApp-QQjqhDv1.js → trayApp-5_OlvQcz.js} +2 -2
- package/dist/trayApp-DkAPo0m6.js +5 -0
- package/dist/{ts-6LF7f4fx.js → ts-njuddXQz.js} +126 -57
- package/dist/{versionChecker-Bc62HNf6.js → versionChecker-BJycAanp.js} +2 -2
- package/dist/{webrtcLink-va_gAR77.js → webrtcLink-DcvacEci.js} +1 -1
- package/dist/{webrtcLink-SsInrVHU.js → webrtcLink-WxS1nTIs.js} +1 -1
- package/dist/{webrtcRemote-BlGyNZDC.js → webrtcRemote-C3xQyf3u.js} +2 -2
- package/dist/{widget-Crb5zeHL.js → widget-DmRwOlco.js} +3 -3
- package/dist/widgets.js +1 -1
- package/dist/{workspaceConfig-BLWB5Wu9.js → workspaceConfig-DBgsu81B.js} +1 -1
- package/dist/{ws-DIbwNz8Z.js → ws-ByO6JO6m.js} +3 -3
- package/dist/{ws-BRhPG1Vy.js → ws-D0-Jg88z.js} +9 -8
- package/lab/ui/index.html +1 -1
- package/lab/ui/lab/posts/2026-08-11-slack-term-safe-writes.md +1 -1
- package/package.json +73 -8
- package/ts/JsonlStore.ts +10 -3
- package/ts/cli-idle.bun.spec.ts +1 -1
- package/ts/cli-idle.spec.ts +1 -1
- package/ts/cli.ts +35 -0
- package/ts/cmdKill.bun.spec.ts +155 -0
- package/ts/cmdKill.spec.ts +155 -0
- package/ts/cmdKill.ts +183 -0
- package/ts/composerGuard.edges.spec.ts +91 -0
- package/ts/composerGuard.spec.ts +53 -6
- package/ts/composerGuard.ts +42 -13
- package/ts/conptyModeFilter.spec.ts +30 -0
- package/ts/conptyModeFilter.ts +53 -0
- package/ts/copyLiagent.ts +42 -0
- package/ts/cwdConflictWarn.io.spec.ts +50 -0
- package/ts/cwdConflictWarn.spec.ts +34 -1
- package/ts/cwdConflictWarn.ts +43 -5
- package/ts/cwdGuard.spec.ts +110 -0
- package/ts/cwdGuard.ts +118 -0
- package/ts/forceKill.ts +52 -0
- package/ts/forkNested.bun.spec.ts +41 -0
- package/ts/forkNested.spec.ts +41 -0
- package/ts/forkNested.ts +48 -1
- package/ts/globalPidIndex.edges.spec.ts +125 -0
- package/ts/globalPidIndex.ts +6 -2
- package/ts/index.ts +13 -1
- package/ts/interruptSend.bun.spec.ts +99 -0
- package/ts/interruptSend.spec.ts +99 -0
- package/ts/interruptSend.ts +51 -0
- package/ts/lockRegistry.spec.ts +49 -0
- package/ts/lsRenderCache.spec.ts +58 -0
- package/ts/needsInput.edges.spec.ts +23 -0
- package/ts/parseCliArgs.ts +7 -0
- package/ts/pushGatePlan.spec.ts +147 -0
- package/ts/roomReplyAlias.io.spec.ts +81 -0
- package/ts/schedule.ts +5 -1
- package/ts/schedules.bun.spec.ts +397 -0
- package/ts/schedules.spec.ts +397 -0
- package/ts/schedules.ts +517 -0
- package/ts/schedulesCli.ts +386 -0
- package/ts/sendControl.bun.spec.ts +12 -0
- package/ts/senderAncestry.ts +1 -3
- package/ts/serve.ts +22 -33
- package/ts/serveRust.spec.ts +29 -2
- package/ts/serveRust.ts +27 -2
- package/ts/sizeNego.bun.spec.ts +9 -2
- package/ts/sizeNego.spec.ts +9 -2
- package/ts/sizeNego.ts +10 -5
- package/ts/subcommands.spec.ts +348 -9
- package/ts/subcommands.ts +513 -93
- package/ts/suggestAgents.spec.ts +33 -0
- package/ts/terminal/browser.ts +1 -1
- package/ts/todoParse.spec.ts +22 -1
- package/ts/todoParse.ts +19 -0
- package/dist/SUPPORTED_CLIS-ByO5twge.js +0 -12
- package/dist/callback-D7qfh_7p.js +0 -16
- package/dist/pidStore-BRlKRHXY.js +0 -6
- package/dist/roomReplyAlias-DuEkSSDI.js +0 -6
- package/dist/spawnGate-DeQBTX-o.js +0 -5
- package/dist/subcommands-DmiswRy4.js +0 -14
- package/dist/trayApp-C4TAvRvU.js +0 -5
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { i as EchoScore } from "./echo-W2RcMEny.js";
|
|
2
|
+
|
|
3
|
+
//#region src/voice-out.d.ts
|
|
4
|
+
declare const VOICE_OUT_KEY = "liagent:voice-out";
|
|
5
|
+
declare const VOICE_AEC_KEY = "liagent:voice-aec";
|
|
6
|
+
type OutMode = "speech" | "cloud";
|
|
7
|
+
/** A clip resumed after an interruption starts this much before where it stopped. */
|
|
8
|
+
declare const RESUME_REWIND_S = 0.3;
|
|
9
|
+
/** The output asked for on this device: "cloud" only when set so. */
|
|
10
|
+
declare const outMode: () => OutMode;
|
|
11
|
+
/** Echo-cancelled barge-in (default on; "0" = capture held while the agent speaks). */
|
|
12
|
+
declare const aecOn: () => boolean;
|
|
13
|
+
/** The slice of an HTMLAudioElement the cloud output uses. */
|
|
14
|
+
type ElementLike = {
|
|
15
|
+
src: string;
|
|
16
|
+
currentTime: number;
|
|
17
|
+
volume: number;
|
|
18
|
+
preload: string;
|
|
19
|
+
paused: boolean; /** The reading speed; load() resets it to defaultPlaybackRate, so both are set. */
|
|
20
|
+
playbackRate?: number;
|
|
21
|
+
defaultPlaybackRate?: number; /** Keep the voice's pitch at any speed (and Safari's prefixed name). */
|
|
22
|
+
preservesPitch?: boolean;
|
|
23
|
+
webkitPreservesPitch?: boolean;
|
|
24
|
+
onended: (() => void) | null;
|
|
25
|
+
onerror: (() => void) | null;
|
|
26
|
+
onloadedmetadata: (() => void) | null;
|
|
27
|
+
play(): Promise<void>;
|
|
28
|
+
pause(): void;
|
|
29
|
+
load(): void;
|
|
30
|
+
};
|
|
31
|
+
type GainLike = {
|
|
32
|
+
gain: {
|
|
33
|
+
value: number;
|
|
34
|
+
cancelScheduledValues(t: number): unknown;
|
|
35
|
+
setValueAtTime(v: number, t: number): unknown;
|
|
36
|
+
linearRampToValueAtTime(v: number, t: number): unknown;
|
|
37
|
+
};
|
|
38
|
+
connect(n: unknown): unknown;
|
|
39
|
+
};
|
|
40
|
+
type CtxLike = {
|
|
41
|
+
currentTime: number;
|
|
42
|
+
destination: unknown;
|
|
43
|
+
state?: string;
|
|
44
|
+
resume?(): Promise<void>;
|
|
45
|
+
createGain(): GainLike;
|
|
46
|
+
createMediaElementSource(el: unknown): {
|
|
47
|
+
connect(n: unknown): unknown;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
type FetchLike = (url: string) => Promise<{
|
|
51
|
+
ok: boolean;
|
|
52
|
+
status: number;
|
|
53
|
+
headers: {
|
|
54
|
+
get(k: string): string | null;
|
|
55
|
+
};
|
|
56
|
+
blob(): Promise<Blob>;
|
|
57
|
+
}>;
|
|
58
|
+
/** The URL of one sentence's audio, from its text and language (e.g. "ja-JP"). */
|
|
59
|
+
type TtsUrl = (text: string, lang: string) => string;
|
|
60
|
+
/**
|
|
61
|
+
* The host's TTS endpoint: a function building each sentence's URL, or a
|
|
62
|
+
* base URL that gets `lang` (the base language, "ja") and `text` added to its
|
|
63
|
+
* query: GET <base>?lang=ja&text=… answering audio (audio/mpeg, audio/wav…).
|
|
64
|
+
*/
|
|
65
|
+
type TtsSource = string | TtsUrl;
|
|
66
|
+
/** A base URL as a TtsUrl: `?lang=<base language>&text=<text>` added to its query. */
|
|
67
|
+
declare function ttsUrlFrom(src: TtsSource): TtsUrl;
|
|
68
|
+
/** What the endpoint can voice: languages (base codes; none = any) and a text length cap. */
|
|
69
|
+
type TtsLimits = {
|
|
70
|
+
langs?: ReadonlySet<string> | readonly string[];
|
|
71
|
+
maxText?: number;
|
|
72
|
+
};
|
|
73
|
+
/** Why a sentence cannot be fetched at all (null: try the endpoint). */
|
|
74
|
+
declare function cloudSkip(text: string, lang: string, lim?: TtsLimits): string | null;
|
|
75
|
+
/**
|
|
76
|
+
* Cloud replies: one `<audio>` element for the whole page (unlocked once in
|
|
77
|
+
* a gesture, so iOS lets later sentences play), routed through the
|
|
78
|
+
* AudioContext and one GainNode. A sentence that cannot be fetched or played
|
|
79
|
+
* calls `onfail` (the session reads it with speechSynthesis instead).
|
|
80
|
+
*/
|
|
81
|
+
declare function createCloudOut(d: {
|
|
82
|
+
/** Each sentence's URL; read for every fetch, so it may change. */url: () => TtsUrl | null;
|
|
83
|
+
fetch: FetchLike;
|
|
84
|
+
element: () => ElementLike;
|
|
85
|
+
ctx: () => CtxLike | null;
|
|
86
|
+
toUrl?: (b: Blob) => string;
|
|
87
|
+
revoke?: (u: string) => void;
|
|
88
|
+
} & TtsLimits): CloudOut & {
|
|
89
|
+
unlock(): void;
|
|
90
|
+
gain(): GainLike | null;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* The page's cloud output (null outside a browser), on fetch, new Audio()
|
|
94
|
+
* and the page's AudioContext. `tts` (and `limits`) set the endpoint; a
|
|
95
|
+
* later call with another one switches to it.
|
|
96
|
+
*/
|
|
97
|
+
declare function cloudOut(tts?: TtsSource | null, limits?: TtsLimits): (CloudOut & {
|
|
98
|
+
unlock(): void;
|
|
99
|
+
gain(): GainLike | null;
|
|
100
|
+
}) | null;
|
|
101
|
+
/** The cloud output has an endpoint to fetch from. */
|
|
102
|
+
declare const cloudReady: () => boolean;
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/voice.d.ts
|
|
105
|
+
/** Capture resumes this long after the last utterance ends (the room's echo; hold mode). */
|
|
106
|
+
declare const RESUME_TAIL_MS = 400;
|
|
107
|
+
/** An interruption with nothing said (or nothing more) resumes the reading after this. */
|
|
108
|
+
declare const IDLE_RESUME_MS = 1500;
|
|
109
|
+
/** While the user talks over the agent, the agent plays this loud… */
|
|
110
|
+
declare const DUCK_LEVEL = 0.25;
|
|
111
|
+
/** …reached over this long (cloud; speechSynthesis takes it from its next sentence)… */
|
|
112
|
+
declare const DUCK_ATTACK_MS = 80;
|
|
113
|
+
/** …and back to full over this long once the user stops. */
|
|
114
|
+
declare const DUCK_RELEASE_MS = 200;
|
|
115
|
+
/** The user talking over the agent this long is a barge-in: the reading pauses. */
|
|
116
|
+
declare const BARGE_IN_MS = 1500;
|
|
117
|
+
/**
|
|
118
|
+
* …and only if it sounds like speech: the VAD's mean speech probability over
|
|
119
|
+
* that window reaches this (above Silero's own 0.5 start threshold, since the
|
|
120
|
+
* echo that leaks through tends to score lower). Weaker speech keeps the
|
|
121
|
+
* agent ducked and is judged again after another BARGE_IN_MS.
|
|
122
|
+
*/
|
|
123
|
+
declare const BARGE_IN_PROB = 0.7;
|
|
124
|
+
/** Sentences are cut to at most this many characters (a TTS endpoint's usual limit). */
|
|
125
|
+
declare const CHUNK_MAX = 200;
|
|
126
|
+
/** localStorage: the read-aloud toggle ("0" = replies silent), the box's own key. */
|
|
127
|
+
declare const SPEAK_KEY = "liagent:speak";
|
|
128
|
+
/** globalThis key of the shared session. */
|
|
129
|
+
declare const VOICE_SESSION_KEY = "__liagentVoice";
|
|
130
|
+
/**
|
|
131
|
+
* A reply as sentences: cut after 。.!? (with any closing quotes or
|
|
132
|
+
* brackets), after . ! ? followed by a space or the end (so 3.14 and e.g.
|
|
133
|
+
* mid-word stay whole), and at every newline. Blank pieces are dropped.
|
|
134
|
+
*/
|
|
135
|
+
declare function sentences(text: string): string[];
|
|
136
|
+
/** A sentence in pieces of at most `max` chars: after the last clause mark, else a space, else hard. */
|
|
137
|
+
declare function chunk(s: string, max?: number): string[];
|
|
138
|
+
/** A barge-in, by the VAD's speech probabilities over the window (none known, as with the energy VAD: yes). */
|
|
139
|
+
declare function isBargeIn(probs: readonly number[], min?: number): boolean;
|
|
140
|
+
/**
|
|
141
|
+
* How natural a voice sounds, higher is better. iOS lists its Eloquence
|
|
142
|
+
* voices (Eddy, Flo, Grandma, …) and the novelty ones (Bahh, Bubbles,
|
|
143
|
+
* Zarvox, …) first for most languages, and marks every voice `default`, so
|
|
144
|
+
* "the first voice of the language" sounds robotic or silly there. Prefer
|
|
145
|
+
* Premium/Enhanced (and Siri), then the regular named voice.
|
|
146
|
+
*/
|
|
147
|
+
declare function voiceQuality(v: {
|
|
148
|
+
voiceURI?: string;
|
|
149
|
+
name?: string;
|
|
150
|
+
}): number;
|
|
151
|
+
/**
|
|
152
|
+
* An installed voice for `lang`: the exact locale first, then the same
|
|
153
|
+
* language; among those the most natural (voiceQuality), the default first.
|
|
154
|
+
*/
|
|
155
|
+
declare function pickNaturalVoice<T extends {
|
|
156
|
+
lang: string;
|
|
157
|
+
default?: boolean;
|
|
158
|
+
voiceURI?: string;
|
|
159
|
+
name?: string;
|
|
160
|
+
}>(voices: readonly T[], lang: string): T | undefined;
|
|
161
|
+
type UtterLike = {
|
|
162
|
+
text: string;
|
|
163
|
+
volume?: number; /** The reading speed (speech-rate.ts). */
|
|
164
|
+
rate?: number;
|
|
165
|
+
onend: ((e?: unknown) => void) | null;
|
|
166
|
+
onerror: ((e?: unknown) => void) | null;
|
|
167
|
+
onboundary: ((e: {
|
|
168
|
+
charIndex: number;
|
|
169
|
+
name?: string;
|
|
170
|
+
}) => void) | null;
|
|
171
|
+
};
|
|
172
|
+
type SynthLike = {
|
|
173
|
+
speak(u: UtterLike): void;
|
|
174
|
+
cancel(): void;
|
|
175
|
+
};
|
|
176
|
+
/** One sentence playing, on either route. */
|
|
177
|
+
type Playback = {
|
|
178
|
+
route: "audio" | "speech"; /** Stop now; the place to resume from (seconds into the clip). */
|
|
179
|
+
stop(): {
|
|
180
|
+
at?: number;
|
|
181
|
+
}; /** Ramp the volume (audio route; speechSynthesis cannot change mid-utterance). */
|
|
182
|
+
volume(level: number, ms: number): void;
|
|
183
|
+
};
|
|
184
|
+
type PlayEvents = {
|
|
185
|
+
onend(): void;
|
|
186
|
+
onerror(): void; /** The cloud could not voice it (fetch, language, length, play refused): read it with speech. */
|
|
187
|
+
onfail?(reason: string): void;
|
|
188
|
+
};
|
|
189
|
+
/** The cloud output (voice-out.ts createCloudOut). */
|
|
190
|
+
type CloudOut = {
|
|
191
|
+
prepare?(text: string, lang: string): void;
|
|
192
|
+
play(s: {
|
|
193
|
+
text: string;
|
|
194
|
+
lang: string;
|
|
195
|
+
at: number;
|
|
196
|
+
volume: number;
|
|
197
|
+
rate?: number;
|
|
198
|
+
}, ev: PlayEvents): Playback;
|
|
199
|
+
};
|
|
200
|
+
type VoiceState = {
|
|
201
|
+
/** The mic is on (listening, loading or capturing). */mic: boolean; /** An utterance is playing, or just ended (the tail). */
|
|
202
|
+
speaking: boolean; /** The mic holds its capture: speaking, with echo cancellation off. */
|
|
203
|
+
hold: boolean; /** The agent is ducked under the user's voice. */
|
|
204
|
+
ducked: boolean; /** Sentences still to read, the current one included. */
|
|
205
|
+
queued: number; /** The reading waits for an interruption to end. */
|
|
206
|
+
paused: boolean;
|
|
207
|
+
};
|
|
208
|
+
/** An interruption: the user talking, a tap on the mic, or typing. */
|
|
209
|
+
type Why = "speech" | "tap" | "typing";
|
|
210
|
+
/** What the echo check says about one transcript. */
|
|
211
|
+
type EchoCheck = EchoScore & {
|
|
212
|
+
/** The agent was audible at some point during the utterance. */during: boolean;
|
|
213
|
+
};
|
|
214
|
+
/** A debug event (voice-out, voice-duck, voice-barge-in…), for a host's log. */
|
|
215
|
+
type VoiceLog = (ev: Record<string, unknown>) => void;
|
|
216
|
+
declare function createVoice(d: {
|
|
217
|
+
synth: () => SynthLike | null; /** A new utterance for `text` in `lang` (with a voice picked for it). */
|
|
218
|
+
utter: (text: string, lang: string) => UtterLike; /** The read-aloud toggle. */
|
|
219
|
+
enabled: () => boolean; /** Whether a reply arriving now, with the mic off, is for this page (default: yes). */
|
|
220
|
+
here?: () => boolean; /** The cloud output, for `mode() === "cloud"`. */
|
|
221
|
+
cloud?: () => CloudOut | null;
|
|
222
|
+
mode?: () => OutMode; /** Echo-cancelled barge-in (else capture is held while the agent speaks). */
|
|
223
|
+
aec?: () => boolean; /** The reading speed, read for each utterance (speech-rate.ts; 1 if absent). */
|
|
224
|
+
rate?: () => number; /** In a gesture (the mic's tap): unlock the outputs for later, as iOS needs. */
|
|
225
|
+
unlock?: () => void;
|
|
226
|
+
now?: () => number;
|
|
227
|
+
log?: VoiceLog;
|
|
228
|
+
setTimer?: (f: () => void, ms: number) => unknown;
|
|
229
|
+
clearTimer?: (t: unknown) => void;
|
|
230
|
+
}): {
|
|
231
|
+
v: number;
|
|
232
|
+
state: () => VoiceState;
|
|
233
|
+
subscribe(f: (s: VoiceState) => void): () => undefined; /** Where the debug events go. */
|
|
234
|
+
setLog(f: VoiceLog): void;
|
|
235
|
+
log: (ev: Record<string, unknown>) => void; /** The output in use: "speech" or "cloud". */
|
|
236
|
+
mode: () => OutMode;
|
|
237
|
+
aec: () => boolean; /** Whether a reply arriving now is read: always with the mic on, else by the toggle and here(). */
|
|
238
|
+
shouldSpeak: () => boolean; /** The read-aloud toggle as it applies now (forced on while the mic is on). */
|
|
239
|
+
readAloud: () => boolean; /** The mic turned on or off. Off: what the focus rule would not read stops. */
|
|
240
|
+
setMic(on: boolean): void; /** A reply arrived live: queue its sentences (if it should be read). */
|
|
241
|
+
reply(text: string): boolean;
|
|
242
|
+
/**
|
|
243
|
+
* The box's hook: read a live reply (once per message id). The same as
|
|
244
|
+
* reply(), without its answer.
|
|
245
|
+
*/
|
|
246
|
+
speak(text: string, id?: string): void;
|
|
247
|
+
/**
|
|
248
|
+
* The box's hook: `stop("typing")` (or "tap", "speech") pauses the
|
|
249
|
+
* reading where it is, until resume(); `stop()` with no reason (or any
|
|
250
|
+
* other) clears the queue ("Stop reading").
|
|
251
|
+
*/
|
|
252
|
+
stop(why?: string): void; /** In a gesture: unlock the outputs (the mic's tap calls it). */
|
|
253
|
+
unlock(): void;
|
|
254
|
+
/**
|
|
255
|
+
* The VAD heard the user start. Over the agent with echo cancellation on:
|
|
256
|
+
* duck it, and pause the reading only if they keep going (BARGE_IN_MS).
|
|
257
|
+
* Otherwise as interrupt("speech").
|
|
258
|
+
*/
|
|
259
|
+
userSpeech(): void; /** One VAD frame's speech probability while the user is heard (judges a barge-in). */
|
|
260
|
+
userFrame(prob: number): void;
|
|
261
|
+
/**
|
|
262
|
+
* The user cut in: `speech` (a barge-in), `tap` (the mic button while the
|
|
263
|
+
* agent speaks) or `typing`. Only when there is something to interrupt.
|
|
264
|
+
* Speech and taps resume after IDLE_RESUME_MS unless more happens;
|
|
265
|
+
* typing waits for resume().
|
|
266
|
+
*/
|
|
267
|
+
interrupt(why: Why): void; /** The user's utterance ended (or misfired): unduck, or read on after a short quiet. */
|
|
268
|
+
userIdle(): void; /** The interruption is over (a line was sent, or the input lost focus): read on. */
|
|
269
|
+
resume: () => void;
|
|
270
|
+
/**
|
|
271
|
+
* Was `transcript` (an utterance `durationMs` long, just ended) the agent's
|
|
272
|
+
* own voice? Checked against what it said in the last ECHO_WINDOW_MS.
|
|
273
|
+
*/
|
|
274
|
+
echoCheck(transcript: string, durationMs?: number): EchoCheck;
|
|
275
|
+
/**
|
|
276
|
+
* A transcript was the agent's own echo (echoCheck): a barge-in it caused
|
|
277
|
+
* was no barge-in, so the reading goes on now rather than after the idle.
|
|
278
|
+
*/
|
|
279
|
+
echoDropped(): void;
|
|
280
|
+
};
|
|
281
|
+
type Voice = ReturnType<typeof createVoice>;
|
|
282
|
+
/** What the box needs of a voice: read a live reply, and stop (or pause) reading. */
|
|
283
|
+
interface VoiceHook {
|
|
284
|
+
speak(text: string, id?: string): void;
|
|
285
|
+
stop(why?: string): void;
|
|
286
|
+
}
|
|
287
|
+
/** Whether agent replies are read aloud on this device (on unless turned off; the box's toggle). */
|
|
288
|
+
declare const speechEnabled: (key?: string) => boolean;
|
|
289
|
+
/** The default `here`: this tab is visible. */
|
|
290
|
+
declare function speakHere(): boolean;
|
|
291
|
+
/** The page session's settings; each may be changed by a later voice(opts). */
|
|
292
|
+
type VoiceOptions = {
|
|
293
|
+
/** The host's TTS endpoint, for the "cloud" output (none: speech only). */tts?: TtsSource | null; /** What it can voice: languages (base codes) and a length cap. */
|
|
294
|
+
ttsLimits?: TtsLimits; /** The output (default: `liagent:voice-out`, "cloud" only with a tts endpoint). */
|
|
295
|
+
mode?: () => OutMode; /** The read-aloud toggle (default: `liagent:speak` is not "0"). */
|
|
296
|
+
enabled?: () => boolean; /** Whether a reply is for this page while the mic is off (default: the tab is visible). */
|
|
297
|
+
here?: () => boolean; /** Echo-cancelled barge-in (default: `liagent:voice-aec` is not "0"). */
|
|
298
|
+
aec?: () => boolean; /** The reading speed (default: `liagent:speech-rate`). */
|
|
299
|
+
rate?: () => number;
|
|
300
|
+
log?: VoiceLog;
|
|
301
|
+
};
|
|
302
|
+
/** The page's voice session, shared by every copy of this module; `opts` (re)configure it. */
|
|
303
|
+
declare function voice(opts?: VoiceOptions): Voice & {
|
|
304
|
+
configure(o: VoiceOptions): void;
|
|
305
|
+
};
|
|
306
|
+
//#endregion
|
|
307
|
+
export { voice as A, TtsUrl as B, chunk as C, sentences as D, pickNaturalVoice as E, GainLike as F, cloudReady as G, VOICE_OUT_KEY as H, OutMode as I, outMode as J, cloudSkip as K, RESUME_REWIND_S as L, CtxLike as M, ElementLike as N, speakHere as O, FetchLike as P, TtsLimits as R, Why as S, isBargeIn as T, aecOn as U, VOICE_AEC_KEY as V, cloudOut as W, ttsUrlFrom as Y, Voice as _, DUCK_ATTACK_MS as a, VoiceOptions as b, EchoCheck as c, Playback as d, RESUME_TAIL_MS as f, VOICE_SESSION_KEY as g, UtterLike as h, CloudOut as i, voiceQuality as j, speechEnabled as k, IDLE_RESUME_MS as l, SynthLike as m, BARGE_IN_PROB as n, DUCK_LEVEL as o, SPEAK_KEY as p, createCloudOut as q, CHUNK_MAX as r, DUCK_RELEASE_MS as s, BARGE_IN_MS as t, PlayEvents as u, VoiceHook as v, createVoice as w, VoiceState as x, VoiceLog as y, TtsSource as z };
|
|
308
|
+
//# sourceMappingURL=voice-Qo7SCgi8.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { c as appliedSettings, f as existingCtx, h as noteTrack, l as audioCtx, n as LEGACY_CONSTRAINTS, p as micConstraints, t as AEC_CONSTRAINTS } from "./mic-audio-DMCWtEI-.js";
|
|
2
|
+
import { A as voice, B as TtsUrl, C as chunk, D as sentences, E as pickNaturalVoice, F as GainLike, G as cloudReady, H as VOICE_OUT_KEY, I as OutMode, J as outMode, K as cloudSkip, L as RESUME_REWIND_S, M as CtxLike, N as ElementLike, O as speakHere, P as FetchLike, R as TtsLimits, S as Why, T as isBargeIn, U as aecOn, V as VOICE_AEC_KEY, W as cloudOut, Y as ttsUrlFrom, _ as Voice, a as DUCK_ATTACK_MS, b as VoiceOptions, c as EchoCheck, d as Playback, f as RESUME_TAIL_MS, g as VOICE_SESSION_KEY, h as UtterLike, i as CloudOut, j as voiceQuality, k as speechEnabled, l as IDLE_RESUME_MS, m as SynthLike, n as BARGE_IN_PROB, o as DUCK_LEVEL, p as SPEAK_KEY, q as createCloudOut, r as CHUNK_MAX, s as DUCK_RELEASE_MS, t as BARGE_IN_MS, u as PlayEvents, v as VoiceHook, w as createVoice, x as VoiceState, y as VoiceLog, z as TtsSource } from "./voice-Qo7SCgi8.js";
|
|
3
|
+
export { AEC_CONSTRAINTS, BARGE_IN_MS, BARGE_IN_PROB, CHUNK_MAX, CloudOut, CtxLike, DUCK_ATTACK_MS, DUCK_LEVEL, DUCK_RELEASE_MS, EchoCheck, ElementLike, FetchLike, GainLike, IDLE_RESUME_MS, LEGACY_CONSTRAINTS, OutMode, PlayEvents, Playback, RESUME_REWIND_S, RESUME_TAIL_MS, SPEAK_KEY, SynthLike, TtsLimits, TtsSource, TtsUrl, UtterLike, VOICE_AEC_KEY, VOICE_OUT_KEY, VOICE_SESSION_KEY, Voice, VoiceHook, VoiceLog, VoiceOptions, VoiceState, Why, aecOn, appliedSettings, audioCtx, chunk, cloudOut, cloudReady, cloudSkip, createCloudOut, createVoice, existingCtx, isBargeIn, micConstraints, noteTrack, outMode, pickNaturalVoice, sentences, speakHere, speechEnabled, ttsUrlFrom, voice, voiceQuality };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { c as micConstraints, i as audioCtx, n as LEGACY_CONSTRAINTS, r as appliedSettings, s as existingCtx, t as AEC_CONSTRAINTS, u as noteTrack } from "./mic-audio-C3Shud_F.js";
|
|
2
|
+
import { C as aecOn, D as createCloudOut, E as cloudSkip, O as outMode, S as VOICE_OUT_KEY, T as cloudReady, _ as speechEnabled, a as DUCK_LEVEL, b as RESUME_REWIND_S, c as RESUME_TAIL_MS, d as chunk, f as createVoice, g as speakHere, h as sentences, i as DUCK_ATTACK_MS, k as ttsUrlFrom, l as SPEAK_KEY, m as pickNaturalVoice, n as BARGE_IN_PROB, o as DUCK_RELEASE_MS, p as isBargeIn, r as CHUNK_MAX, s as IDLE_RESUME_MS, t as BARGE_IN_MS, u as VOICE_SESSION_KEY, v as voice, w as cloudOut, x as VOICE_AEC_KEY, y as voiceQuality } from "./voice-D7yeS9VM.js";
|
|
3
|
+
|
|
4
|
+
export { AEC_CONSTRAINTS, BARGE_IN_MS, BARGE_IN_PROB, CHUNK_MAX, DUCK_ATTACK_MS, DUCK_LEVEL, DUCK_RELEASE_MS, IDLE_RESUME_MS, LEGACY_CONSTRAINTS, RESUME_REWIND_S, RESUME_TAIL_MS, SPEAK_KEY, VOICE_AEC_KEY, VOICE_OUT_KEY, VOICE_SESSION_KEY, aecOn, appliedSettings, audioCtx, chunk, cloudOut, cloudReady, cloudSkip, createCloudOut, createVoice, existingCtx, isBargeIn, micConstraints, noteTrack, outMode, pickNaturalVoice, sentences, speakHere, speechEnabled, ttsUrlFrom, voice, voiceQuality };
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./JsonlStore-
|
|
3
|
-
import "./globalPidIndex-
|
|
4
|
-
import "./pidStore-
|
|
2
|
+
import "./JsonlStore-CB_0sfdT.js";
|
|
3
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
4
|
+
import "./pidStore-C50VPk3E.js";
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import
|
|
8
|
+
import { G as listRecords, I as isPidAlive, rt as renderLogTailLines, y as deriveLiveState } from "./subcommands-B7YZJL8n.js";
|
|
9
|
+
import "./webrtcLink-DcvacEci.js";
|
|
10
|
+
import "./remotes-BsMGvAay.js";
|
|
11
|
+
import "./roomReplyAlias-B-v76TA8.js";
|
|
12
12
|
import { f as readInbox, g as daemonLockOwnerPath, h as daemonLockDir, i as gcInboxes, l as listInboxParents, m as shouldStealLock, n as appendEvent, s as hostId, u as liveWatchers, x as notifyDir } from "./notifyStore-DIfkfKB2.js";
|
|
13
|
+
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
|
+
import { readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
13
15
|
import { mkdir, readFile, rename, rm, stat, writeFile } from "fs/promises";
|
|
14
16
|
import { randomUUID } from "node:crypto";
|
|
15
17
|
import { execFile, execFileSync } from "node:child_process";
|
|
16
|
-
import { readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
17
18
|
import { Worker } from "node:worker_threads";
|
|
18
19
|
|
|
19
20
|
//#region ts/notifyRouter.ts
|
|
@@ -880,4 +881,4 @@ async function ensureDaemon() {
|
|
|
880
881
|
|
|
881
882
|
//#endregion
|
|
882
883
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
883
|
-
//# sourceMappingURL=notifyDaemon-
|
|
884
|
+
//# sourceMappingURL=notifyDaemon-DkUB7GV2.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { n as liveEnv } from "./nodeRuntime-DGMQRTGT.js";
|
|
2
|
+
|
|
3
|
+
//#region ts/oxmgrService.ts
|
|
4
|
+
async function ensureBootAutostart(oxmgrBin) {
|
|
5
|
+
try {
|
|
6
|
+
if (await Bun.spawn([
|
|
7
|
+
oxmgrBin,
|
|
8
|
+
"service",
|
|
9
|
+
"status"
|
|
10
|
+
], {
|
|
11
|
+
stdio: [
|
|
12
|
+
"ignore",
|
|
13
|
+
"ignore",
|
|
14
|
+
"ignore"
|
|
15
|
+
],
|
|
16
|
+
env: liveEnv()
|
|
17
|
+
}).exited === 0) return true;
|
|
18
|
+
return await Bun.spawn([
|
|
19
|
+
oxmgrBin,
|
|
20
|
+
"service",
|
|
21
|
+
"install"
|
|
22
|
+
], {
|
|
23
|
+
stdio: [
|
|
24
|
+
"ignore",
|
|
25
|
+
"ignore",
|
|
26
|
+
"ignore"
|
|
27
|
+
],
|
|
28
|
+
env: liveEnv()
|
|
29
|
+
}).exited === 0;
|
|
30
|
+
} catch {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { ensureBootAutostart as t };
|
|
37
|
+
//# sourceMappingURL=oxmgrService-DlYHmqyI.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as readGlobalPids } from "./globalPidIndex-
|
|
1
|
+
import { a as readGlobalPids } from "./globalPidIndex-BsjlId-h.js";
|
|
2
2
|
|
|
3
3
|
//#region ts/parentLink.ts
|
|
4
4
|
/**
|
|
@@ -50,4 +50,4 @@ function spawnerFromRecords(records, parentPid) {
|
|
|
50
50
|
|
|
51
51
|
//#endregion
|
|
52
52
|
export { spawnerFromRecords as n, resolveSpawner as t };
|
|
53
|
-
//# sourceMappingURL=parentLink-
|
|
53
|
+
//# sourceMappingURL=parentLink-BcAYcO9L.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./globalPidIndex-
|
|
3
|
-
import { n as spawnerFromRecords, t as resolveSpawner } from "./parentLink-
|
|
2
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
3
|
+
import { n as spawnerFromRecords, t as resolveSpawner } from "./parentLink-BcAYcO9L.js";
|
|
4
4
|
|
|
5
5
|
export { resolveSpawner };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./globalPidIndex-
|
|
2
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
3
3
|
import { t as classifyNeedsInput } from "./needsInput-hRiWFjGy.js";
|
|
4
|
-
import { n as replyTargetOf, r as shortenHome } from "./initMsg-
|
|
5
|
-
import { t as resolveSpawner } from "./parentLink-
|
|
4
|
+
import { n as replyTargetOf, r as shortenHome } from "./initMsg-BEVDWYnv.js";
|
|
5
|
+
import { t as resolveSpawner } from "./parentLink-BcAYcO9L.js";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
|
|
8
8
|
//#region ts/parentPing.ts
|
|
@@ -338,7 +338,7 @@ async function isParentWatching(parentWrapperPid, parentAgentPid, selfAgentPid,
|
|
|
338
338
|
logger.debug("[parent-ping] watcher lookup failed:", error);
|
|
339
339
|
}
|
|
340
340
|
try {
|
|
341
|
-
const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-
|
|
341
|
+
const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-BZPxFgkT.js");
|
|
342
342
|
const last = await lastReadAt(`agent:${parentAgentPid}`, selfAgentPid);
|
|
343
343
|
if (last !== null && now - last <= READ_WINDOW_MS) return true;
|
|
344
344
|
} catch (error) {
|
|
@@ -466,4 +466,4 @@ function startParentPingLoop(opts) {
|
|
|
466
466
|
|
|
467
467
|
//#endregion
|
|
468
468
|
export { startParentPingLoop };
|
|
469
|
-
//# sourceMappingURL=parentPingLoop-
|
|
469
|
+
//# sourceMappingURL=parentPingLoop-DDO592Wh.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
2
2
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
3
|
-
import { t as JsonlStore } from "./JsonlStore-
|
|
4
|
-
import { i as pruneOldLogs, r as maybeCompactGlobalPids, s as updateGlobalPidStatus, t as appendGlobalPid } from "./globalPidIndex-
|
|
3
|
+
import { t as JsonlStore } from "./JsonlStore-CB_0sfdT.js";
|
|
4
|
+
import { i as pruneOldLogs, r as maybeCompactGlobalPids, s as updateGlobalPidStatus, t as appendGlobalPid } from "./globalPidIndex-BsjlId-h.js";
|
|
5
5
|
import { mkdir, writeFile } from "fs/promises";
|
|
6
6
|
import path from "path";
|
|
7
7
|
import { randomBytes } from "node:crypto";
|
|
@@ -197,4 +197,4 @@ pid-db/
|
|
|
197
197
|
|
|
198
198
|
//#endregion
|
|
199
199
|
export { PidStore as t };
|
|
200
|
-
//# sourceMappingURL=pidStore-
|
|
200
|
+
//# sourceMappingURL=pidStore-C50VPk3E.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./e2e-BdLf8DvY.js";
|
|
2
|
-
import "./webrtcLink-
|
|
3
|
-
import { a as deleteRemoteAlias, c as parseShareUrl, d as writeRemoteAlias, i as defaultConnectAlias, l as readRemotes, n as cmdConnect, o as maskRemoteUrl, r as cmdRemote, s as parseDirectRemoteSpec, t as MASK, u as resolveRemoteSpec } from "./remotes-
|
|
2
|
+
import "./webrtcLink-DcvacEci.js";
|
|
3
|
+
import { a as deleteRemoteAlias, c as parseShareUrl, d as writeRemoteAlias, i as defaultConnectAlias, l as readRemotes, n as cmdConnect, o as maskRemoteUrl, r as cmdRemote, s as parseDirectRemoteSpec, t as MASK, u as resolveRemoteSpec } from "./remotes-BsMGvAay.js";
|
|
4
4
|
|
|
5
5
|
export { cmdConnect, cmdRemote };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as parseWebrtcLink, i as isWebrtcSpec, o as toWebrtcUrl, r as hasJoinSecret } from "./webrtcLink-
|
|
1
|
+
import { a as parseWebrtcLink, i as isWebrtcSpec, o as toWebrtcUrl, r as hasJoinSecret } from "./webrtcLink-DcvacEci.js";
|
|
2
2
|
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
3
3
|
import { homedir } from "os";
|
|
4
4
|
import path from "path";
|
|
@@ -136,7 +136,7 @@ async function resolveRemoteSpec(spec) {
|
|
|
136
136
|
* The bridge lives for the rest of the process (torn down on `process.exit`).
|
|
137
137
|
*/
|
|
138
138
|
async function resolveWebrtc(link, keyword, label) {
|
|
139
|
-
const { startWebrtcBridge } = await import("./webrtcRemote-
|
|
139
|
+
const { startWebrtcBridge } = await import("./webrtcRemote-C3xQyf3u.js");
|
|
140
140
|
const bridge = await startWebrtcBridge(link, { keyword });
|
|
141
141
|
return {
|
|
142
142
|
url: bridge.baseUrl,
|
|
@@ -322,4 +322,4 @@ async function cmdConnect(rest) {
|
|
|
322
322
|
|
|
323
323
|
//#endregion
|
|
324
324
|
export { deleteRemoteAlias as a, parseShareUrl as c, writeRemoteAlias as d, defaultConnectAlias as i, readRemotes as l, cmdConnect as n, maskRemoteUrl as o, cmdRemote as r, parseDirectRemoteSpec as s, MASK as t, resolveRemoteSpec as u };
|
|
325
|
-
//# sourceMappingURL=remotes-
|
|
325
|
+
//# sourceMappingURL=remotes-BsMGvAay.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
2
|
-
import { a as parseWebrtcLink } from "./webrtcLink-
|
|
3
|
-
import { l as readRemotes } from "./remotes-
|
|
2
|
+
import { a as parseWebrtcLink } from "./webrtcLink-DcvacEci.js";
|
|
3
|
+
import { l as readRemotes } from "./remotes-BsMGvAay.js";
|
|
4
4
|
import { readFile } from "fs/promises";
|
|
5
5
|
import { hostname } from "os";
|
|
6
6
|
import path from "path";
|
|
@@ -55,4 +55,4 @@ async function hostedRoomMember(room) {
|
|
|
55
55
|
|
|
56
56
|
//#endregion
|
|
57
57
|
export { roomAliases as i, hostedRoomMember as n, roomAliasPlaceholder as r, fillRoomAlias as t };
|
|
58
|
-
//# sourceMappingURL=roomReplyAlias-
|
|
58
|
+
//# sourceMappingURL=roomReplyAlias-B-v76TA8.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "./e2e-BdLf8DvY.js";
|
|
2
|
+
import "./webrtcLink-DcvacEci.js";
|
|
3
|
+
import "./remotes-BsMGvAay.js";
|
|
4
|
+
import { i as roomAliases, n as hostedRoomMember, r as roomAliasPlaceholder, t as fillRoomAlias } from "./roomReplyAlias-B-v76TA8.js";
|
|
5
|
+
|
|
6
|
+
export { fillRoomAlias, roomAliases };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-
|
|
1
|
+
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-BJycAanp.js";
|
|
2
2
|
import { execFileSync } from "child_process";
|
|
3
3
|
import { accessSync, chmodSync, constants, existsSync, mkdirSync, readdirSync, rmSync, statSync, unlinkSync } from "fs";
|
|
4
4
|
import { chmod, copyFile } from "fs/promises";
|
|
@@ -435,4 +435,4 @@ async function getRustBinary(options = {}) {
|
|
|
435
435
|
|
|
436
436
|
//#endregion
|
|
437
437
|
export { ensureExecutable as a, findSpawnHiddenLauncher as c, getBinDir as d, getBinaryName as f, hasValidMacSignature as h, ensureAyrsBinary as i, findTrayLauncher as l, getRustBinary as m, devBuildInfo as n, findAyrsBinary as o, getDownloadUrl as p, downloadBinary as r, findRustBinary as s, chmodExtractedBinaries as t, gcOldBinaryDirs as u };
|
|
438
|
-
//# sourceMappingURL=rustBinary-
|
|
438
|
+
//# sourceMappingURL=rustBinary-BrJ2p8wy.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./versionChecker-
|
|
2
|
-
import { a as ensureExecutable, c as findSpawnHiddenLauncher, d as getBinDir, f as getBinaryName, h as hasValidMacSignature, i as ensureAyrsBinary, l as findTrayLauncher, m as getRustBinary, n as devBuildInfo, o as findAyrsBinary, p as getDownloadUrl, r as downloadBinary, s as findRustBinary, t as chmodExtractedBinaries, u as gcOldBinaryDirs } from "./rustBinary-
|
|
1
|
+
import "./versionChecker-BJycAanp.js";
|
|
2
|
+
import { a as ensureExecutable, c as findSpawnHiddenLauncher, d as getBinDir, f as getBinaryName, h as hasValidMacSignature, i as ensureAyrsBinary, l as findTrayLauncher, m as getRustBinary, n as devBuildInfo, o as findAyrsBinary, p as getDownloadUrl, r as downloadBinary, s as findRustBinary, t as chmodExtractedBinaries, u as gcOldBinaryDirs } from "./rustBinary-BrJ2p8wy.js";
|
|
3
3
|
|
|
4
4
|
export { ensureAyrsBinary, findAyrsBinary, gcOldBinaryDirs };
|
|
@@ -1,50 +1,18 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
4
|
-
import "./todoAutomation-
|
|
5
|
-
import "./JsonlStore-
|
|
6
|
-
import "./globalPidIndex-
|
|
7
|
-
import "./pidStore-
|
|
2
|
+
import "./versionChecker-BJycAanp.js";
|
|
3
|
+
import "./ts-njuddXQz.js";
|
|
4
|
+
import "./todoAutomation-CKlrxuZv.js";
|
|
5
|
+
import "./JsonlStore-CB_0sfdT.js";
|
|
6
|
+
import "./globalPidIndex-BsjlId-h.js";
|
|
7
|
+
import "./pidStore-C50VPk3E.js";
|
|
8
8
|
import "./messageLog-Dq_ka-Bt.js";
|
|
9
|
-
import "./todoStore-
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
11
|
-
import { f as resolveSpawnCwd } from "./workspaceConfig-BLWB5Wu9.js";
|
|
9
|
+
import "./todoStore-msRCEUi1.js";
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-C_1IiOj3.js";
|
|
12
11
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-DGMQRTGT.js";
|
|
12
|
+
import { t as ensureBootAutostart } from "./oxmgrService-DlYHmqyI.js";
|
|
13
|
+
import { f as resolveSpawnCwd } from "./workspaceConfig-DBgsu81B.js";
|
|
13
14
|
import { createHash } from "node:crypto";
|
|
14
15
|
|
|
15
|
-
//#region ts/oxmgrService.ts
|
|
16
|
-
async function ensureBootAutostart(oxmgrBin) {
|
|
17
|
-
try {
|
|
18
|
-
if (await Bun.spawn([
|
|
19
|
-
oxmgrBin,
|
|
20
|
-
"service",
|
|
21
|
-
"status"
|
|
22
|
-
], {
|
|
23
|
-
stdio: [
|
|
24
|
-
"ignore",
|
|
25
|
-
"ignore",
|
|
26
|
-
"ignore"
|
|
27
|
-
],
|
|
28
|
-
env: liveEnv()
|
|
29
|
-
}).exited === 0) return true;
|
|
30
|
-
return await Bun.spawn([
|
|
31
|
-
oxmgrBin,
|
|
32
|
-
"service",
|
|
33
|
-
"install"
|
|
34
|
-
], {
|
|
35
|
-
stdio: [
|
|
36
|
-
"ignore",
|
|
37
|
-
"ignore",
|
|
38
|
-
"ignore"
|
|
39
|
-
],
|
|
40
|
-
env: liveEnv()
|
|
41
|
-
}).exited === 0;
|
|
42
|
-
} catch {
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
16
|
//#region ts/schedule.ts
|
|
49
17
|
const SCHED_PREFIX = "agent-yes-cron-";
|
|
50
18
|
/** `HH:MM` → a daily cron; otherwise a raw 5-field cron passes through. null if neither. */
|
|
@@ -92,7 +60,10 @@ async function cmdSchedule(rest) {
|
|
|
92
60
|
}
|
|
93
61
|
if (sub === "list" || sub === "ls") {
|
|
94
62
|
process.stdout.write(`scheduled agents are named '${SCHED_PREFIX}*':\n`);
|
|
95
|
-
|
|
63
|
+
const code = (await run([oxmgrBin, "list"])).code;
|
|
64
|
+
process.stdout.write(`\nay cron reminders (fired by the scheduler daemon):\n`);
|
|
65
|
+
await (await import("./schedulesCli-CLqieyQZ.js")).cmdCron(["ls"]);
|
|
66
|
+
return code;
|
|
96
67
|
}
|
|
97
68
|
if (sub === "remove" || sub === "rm" || sub === "delete") {
|
|
98
69
|
const name = rest[1];
|
|
@@ -154,4 +125,4 @@ async function cmdSchedule(rest) {
|
|
|
154
125
|
|
|
155
126
|
//#endregion
|
|
156
127
|
export { cmdSchedule };
|
|
157
|
-
//# sourceMappingURL=schedule-
|
|
128
|
+
//# sourceMappingURL=schedule-Bzjhl6-h.js.map
|