@phren/cli 0.2.15 → 0.2.16
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 +2 -2
- package/dist/agent-instructions.d.ts +12 -0
- package/dist/agent-instructions.js +52 -0
- package/dist/bridge/agent-hook-stores.d.ts +32 -0
- package/dist/bridge/agent-hook-stores.js +67 -0
- package/dist/bridge/agent-hooks.d.ts +193 -2
- package/dist/bridge/agent-hooks.js +1045 -38
- package/dist/bridge/canary.d.ts +27 -0
- package/dist/bridge/canary.js +189 -0
- package/dist/bridge/changes.d.ts +57 -0
- package/dist/bridge/changes.js +403 -0
- package/dist/bridge/client.d.ts +3 -0
- package/dist/bridge/client.js +36 -0
- package/dist/bridge/code-note.d.ts +22 -0
- package/dist/bridge/code-note.js +42 -0
- package/dist/bridge/code-routes.d.ts +133 -0
- package/dist/bridge/code-routes.js +319 -0
- package/dist/bridge/codex-threads.d.ts +27 -0
- package/dist/bridge/codex-threads.js +442 -0
- package/dist/bridge/command.d.ts +7 -0
- package/dist/bridge/command.js +50 -5
- package/dist/bridge/computer-names.d.ts +4 -0
- package/dist/bridge/computer-names.js +16 -0
- package/dist/bridge/computers.d.ts +9 -0
- package/dist/bridge/computers.js +111 -0
- package/dist/bridge/context.d.ts +14 -0
- package/dist/bridge/context.js +149 -0
- package/dist/bridge/dispatch-command.d.ts +3 -0
- package/dist/bridge/dispatch-command.js +93 -0
- package/dist/bridge/dispatch-hosts.d.ts +23 -0
- package/dist/bridge/dispatch-hosts.js +25 -0
- package/dist/bridge/dispatch-returns.d.ts +123 -0
- package/dist/bridge/dispatch-returns.js +279 -0
- package/dist/bridge/dispatch-tree.d.ts +54 -0
- package/dist/bridge/dispatch-tree.js +198 -0
- package/dist/bridge/dispatch.d.ts +207 -0
- package/dist/bridge/dispatch.js +261 -0
- package/dist/bridge/enroll.d.ts +31 -0
- package/dist/bridge/enroll.js +236 -0
- package/dist/bridge/fanout-messages.d.ts +74 -0
- package/dist/bridge/fanout-messages.js +230 -0
- package/dist/bridge/fanouts.d.ts +160 -0
- package/dist/bridge/fanouts.js +702 -0
- package/dist/bridge/file-range.d.ts +16 -0
- package/dist/bridge/file-range.js +90 -0
- package/dist/bridge/files.d.ts +20 -0
- package/dist/bridge/files.js +54 -0
- package/dist/bridge/git-publish.d.ts +23 -0
- package/dist/bridge/git-publish.js +145 -0
- package/dist/bridge/git-worktrees.d.ts +21 -0
- package/dist/bridge/git-worktrees.js +150 -0
- package/dist/bridge/git.d.ts +54 -0
- package/dist/bridge/git.js +552 -0
- package/dist/bridge/grants.d.ts +31 -0
- package/dist/bridge/grants.js +181 -0
- package/dist/bridge/hand-off.d.ts +79 -0
- package/dist/bridge/hand-off.js +151 -0
- package/dist/bridge/health.d.ts +128 -0
- package/dist/bridge/health.js +260 -0
- package/dist/bridge/herdr.d.ts +79 -6
- package/dist/bridge/herdr.js +292 -27
- package/dist/bridge/hook-main.js +2 -0
- package/dist/bridge/install.d.ts +32 -1
- package/dist/bridge/install.js +225 -38
- package/dist/bridge/launch-worktree.d.ts +21 -0
- package/dist/bridge/launch-worktree.js +70 -0
- package/dist/bridge/limits.d.ts +20 -0
- package/dist/bridge/limits.js +65 -0
- package/dist/bridge/locate.d.ts +16 -0
- package/dist/bridge/locate.js +75 -0
- package/dist/bridge/metrics.d.ts +29 -0
- package/dist/bridge/metrics.js +71 -0
- package/dist/bridge/model-switch.d.ts +35 -0
- package/dist/bridge/model-switch.js +250 -0
- package/dist/bridge/models.d.ts +46 -0
- package/dist/bridge/models.js +257 -0
- package/dist/bridge/opencode-approvals.d.ts +6 -0
- package/dist/bridge/opencode-approvals.js +60 -0
- package/dist/bridge/pane-text.d.ts +15 -0
- package/dist/bridge/pane-text.js +23 -0
- package/dist/bridge/peers.d.ts +27 -0
- package/dist/bridge/peers.js +130 -0
- package/dist/bridge/projects.d.ts +12 -1
- package/dist/bridge/projects.js +268 -20
- package/dist/bridge/protocol.d.ts +35 -2
- package/dist/bridge/protocol.js +42 -7
- package/dist/bridge/push.d.ts +83 -0
- package/dist/bridge/push.js +199 -0
- package/dist/bridge/questions.d.ts +38 -0
- package/dist/bridge/questions.js +205 -0
- package/dist/bridge/schedule-format.d.ts +103 -0
- package/dist/bridge/schedule-format.js +266 -0
- package/dist/bridge/schedule-launch.d.ts +11 -0
- package/dist/bridge/schedule-launch.js +169 -0
- package/dist/bridge/schedule-watch.d.ts +52 -0
- package/dist/bridge/schedule-watch.js +242 -0
- package/dist/bridge/schedules.d.ts +48 -0
- package/dist/bridge/schedules.js +205 -0
- package/dist/bridge/server-launch.d.ts +14 -0
- package/dist/bridge/server-launch.js +218 -0
- package/dist/bridge/server-overview.d.ts +45 -0
- package/dist/bridge/server-overview.js +102 -0
- package/dist/bridge/server-pane-routes.d.ts +29 -0
- package/dist/bridge/server-pane-routes.js +400 -0
- package/dist/bridge/server-routes.d.ts +106 -0
- package/dist/bridge/server-routes.js +538 -0
- package/dist/bridge/server-stream.d.ts +46 -0
- package/dist/bridge/server-stream.js +253 -0
- package/dist/bridge/server.d.ts +3 -15
- package/dist/bridge/server.js +162 -264
- package/dist/bridge/session-servers.d.ts +24 -0
- package/dist/bridge/session-servers.js +136 -0
- package/dist/bridge/side-questions.d.ts +74 -0
- package/dist/bridge/side-questions.js +252 -0
- package/dist/bridge/simulators.d.ts +28 -0
- package/dist/bridge/simulators.js +198 -0
- package/dist/bridge/speech-transcribe.d.ts +24 -0
- package/dist/bridge/speech-transcribe.js +124 -0
- package/dist/bridge/speech.d.ts +35 -0
- package/dist/bridge/speech.js +98 -0
- package/dist/bridge/steps.d.ts +13 -0
- package/dist/bridge/steps.js +222 -0
- package/dist/bridge/tab-activity.d.ts +18 -0
- package/dist/bridge/tab-activity.js +99 -0
- package/dist/bridge/terminal-choice.d.ts +64 -0
- package/dist/bridge/terminal-choice.js +281 -0
- package/dist/bridge/transcript-claude.d.ts +22 -0
- package/dist/bridge/transcript-claude.js +353 -0
- package/dist/bridge/transcript-codex.d.ts +30 -0
- package/dist/bridge/transcript-codex.js +282 -0
- package/dist/bridge/transcript-copilot.d.ts +4 -0
- package/dist/bridge/transcript-copilot.js +14 -0
- package/dist/bridge/transcript-opencode.d.ts +5 -0
- package/dist/bridge/transcript-opencode.js +26 -0
- package/dist/bridge/transcript-preview.d.ts +94 -0
- package/dist/bridge/transcript-preview.js +476 -0
- package/dist/bridge/transcripts.d.ts +81 -4
- package/dist/bridge/transcripts.js +332 -67
- package/dist/bridge/transport.d.ts +3 -0
- package/dist/bridge/transport.js +96 -15
- package/dist/bridge/uploads.d.ts +15 -0
- package/dist/bridge/uploads.js +44 -2
- package/dist/bridge/usage.d.ts +124 -0
- package/dist/bridge/usage.js +859 -0
- package/dist/bridge-hook.mjs +41246 -21385
- package/dist/cli/actions.js +14 -1
- package/dist/cli/config-proactivity.d.ts +3 -1
- package/dist/cli/config-proactivity.js +35 -3
- package/dist/cli/config.js +4 -1
- package/dist/cli/extract.js +3 -6
- package/dist/cli/govern.js +5 -2
- package/dist/cli/hooks-globs.js +1 -1
- package/dist/cli/hooks.d.ts +1 -1
- package/dist/cli/hooks.js +9 -7
- package/dist/cli/namespaces-projects.js +12 -6
- package/dist/cli/namespaces-store.js +37 -6
- package/dist/cli/namespaces-tasks.js +1 -1
- package/dist/cli/schedules.d.ts +1 -0
- package/dist/cli/schedules.js +164 -0
- package/dist/cli/session-background.js +1 -1
- package/dist/cli/session-git.d.ts +8 -5
- package/dist/cli/session-git.js +45 -120
- package/dist/cli/session-start.js +3 -1
- package/dist/cli/session-stop.js +19 -8
- package/dist/cli/team.js +13 -10
- package/dist/cli-handlers.d.ts +1 -1
- package/dist/cli-handlers.js +8 -4
- package/dist/cli-help.d.ts +5 -4
- package/dist/cli-help.js +15 -15
- package/dist/cli-registry.d.ts +4 -1
- package/dist/cli-registry.js +119 -6
- package/dist/content/archive.js +2 -2
- package/dist/content/citation.d.ts +11 -0
- package/dist/content/citation.js +18 -0
- package/dist/content/learning.js +2 -0
- package/dist/content/summarize.d.ts +14 -15
- package/dist/content/summarize.js +60 -5
- package/dist/content/validate.d.ts +3 -1
- package/dist/content/validate.js +26 -8
- package/dist/core/project-registry.d.ts +26 -0
- package/dist/core/project-registry.js +573 -0
- package/dist/core/project.js +2 -3
- package/dist/data/access.d.ts +7 -1
- package/dist/data/access.js +13 -3
- package/dist/data/tasks.d.ts +18 -3
- package/dist/data/tasks.js +8 -7
- package/dist/entrypoint.js +44 -10
- package/dist/fanout/adapters/claude.d.ts +2 -0
- package/dist/fanout/adapters/claude.js +7 -0
- package/dist/fanout/adapters/codex.d.ts +2 -0
- package/dist/fanout/adapters/codex.js +9 -0
- package/dist/fanout/adapters/opencode.d.ts +4 -0
- package/dist/fanout/adapters/opencode.js +9 -0
- package/dist/fanout/adapters/types.d.ts +21 -0
- package/dist/fanout/adapters/types.js +3 -0
- package/dist/fanout/command.d.ts +2 -0
- package/dist/fanout/command.js +78 -0
- package/dist/fanout/launcher.d.ts +27 -0
- package/dist/fanout/launcher.js +156 -0
- package/dist/fanout/opencode-serve.d.ts +24 -0
- package/dist/fanout/opencode-serve.js +191 -0
- package/dist/fanout/picker.d.ts +91 -0
- package/dist/fanout/picker.js +51 -0
- package/dist/fanout/usage.d.ts +5 -0
- package/dist/fanout/usage.js +51 -0
- package/dist/fanout/watchdog.d.ts +10 -0
- package/dist/fanout/watchdog.js +27 -0
- package/dist/filenames.d.ts +9 -0
- package/dist/filenames.js +11 -0
- package/dist/finding/context.js +4 -22
- package/dist/generated/memory-ui-graph.browser.js +279 -283
- package/dist/governance/policy-constants.d.ts +11 -0
- package/dist/governance/policy-constants.js +9 -0
- package/dist/governance/policy.d.ts +5 -8
- package/dist/governance/policy.js +7 -5
- package/dist/graph-core/camera.d.ts +24 -0
- package/dist/graph-core/camera.js +18 -0
- package/dist/graph-core/index.d.ts +2 -0
- package/dist/graph-core/index.js +2 -0
- package/dist/graph-core/labels.d.ts +77 -0
- package/dist/graph-core/labels.js +124 -0
- package/dist/graph-core/model.d.ts +13 -0
- package/dist/graph-core/model.js +33 -0
- package/dist/graph-core/types.d.ts +2 -0
- package/dist/home-paths.d.ts +7 -0
- package/dist/home-paths.js +21 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.js +13 -0
- package/dist/index.js +24 -2
- package/dist/init/guard-globals.d.ts +1 -1
- package/dist/init/guard-globals.js +4 -4
- package/dist/init/init-configure.js +3 -3
- package/dist/init/init-uninstall.js +2 -2
- package/dist/init/init-walkthrough.js +1 -1
- package/dist/init/init.js +26 -6
- package/dist/init/management-preset.d.ts +1 -1
- package/dist/init/management-preset.js +2 -2
- package/dist/init/preferences.js +1 -1
- package/dist/init/self-wiring.js +1 -1
- package/dist/init/setup.d.ts +3 -26
- package/dist/init/setup.js +49 -588
- package/dist/init/shared.js +2 -0
- package/dist/init/store-gitignore.d.ts +1 -1
- package/dist/init/store-gitignore.js +2 -0
- package/dist/init/teardown.d.ts +1 -1
- package/dist/init/teardown.js +2 -2
- package/dist/link/context.js +1 -1
- package/dist/link/doctor.d.ts +22 -1
- package/dist/link/doctor.js +100 -54
- package/dist/link/link.js +29 -61
- package/dist/link/refresh.js +2 -2
- package/dist/link/skills.js +26 -5
- package/dist/machine-identity.d.ts +3 -0
- package/dist/machine-identity.js +6 -0
- package/dist/mcp/profile.d.ts +2 -15
- package/dist/mcp/profile.js +64 -9
- package/dist/memory-ui-graph.runtime.js +279 -283
- package/dist/modules/code-package.d.ts +16 -0
- package/dist/modules/code-package.js +152 -0
- package/dist/modules/command.d.ts +2 -0
- package/dist/modules/command.js +67 -0
- package/dist/modules/config.d.ts +4 -0
- package/dist/modules/config.js +70 -0
- package/dist/modules/manifest.d.ts +41 -0
- package/dist/modules/manifest.js +1 -0
- package/dist/modules/provision.d.ts +3 -0
- package/dist/modules/provision.js +84 -0
- package/dist/modules/registry.d.ts +16 -0
- package/dist/modules/registry.js +250 -0
- package/dist/modules/runtime.d.ts +15 -0
- package/dist/modules/runtime.js +59 -0
- package/dist/package-metadata.js +10 -2
- package/dist/phren-dotenv.js +4 -2
- package/dist/phren-paths.d.ts +3 -2
- package/dist/phren-paths.js +4 -5
- package/dist/profile-store.js +4 -5
- package/dist/project-config.d.ts +19 -1
- package/dist/project-config.js +29 -3
- package/dist/project-topics.js +4 -4
- package/dist/provider-adapters.js +1 -4
- package/dist/query-correlation.js +6 -6
- package/dist/session/artifacts.js +5 -5
- package/dist/session/checkpoints.js +5 -0
- package/dist/session/utils.d.ts +2 -2
- package/dist/session/utils.js +6 -6
- package/dist/shared/content.d.ts +1 -1
- package/dist/shared/content.js +1 -1
- package/dist/shared/data-utils.js +1 -1
- package/dist/shared/fragment-graph.d.ts +1 -1
- package/dist/shared/fragment-graph.js +5 -5
- package/dist/shared/index.js +48 -7
- package/dist/shared/retrieval.d.ts +18 -1
- package/dist/shared/retrieval.js +100 -11
- package/dist/shared/search-fallback.js +4 -6
- package/dist/shared/sqljs.d.ts +2 -0
- package/dist/shared/sqljs.js +4 -2
- package/dist/shared.d.ts +0 -1
- package/dist/shared.js +0 -1
- package/dist/shell/input.d.ts +1 -5
- package/dist/shell/input.js +16 -10
- package/dist/shell/palette.d.ts +2 -2
- package/dist/shell/palette.js +3 -7
- package/dist/shell/render.d.ts +3 -1
- package/dist/shell/render.js +4 -4
- package/dist/shell/shell.js +4 -1
- package/dist/shell/types.d.ts +1 -0
- package/dist/shell/types.js +4 -0
- package/dist/shell/view.d.ts +0 -4
- package/dist/shell/view.js +19 -27
- package/dist/skill/registry.js +25 -17
- package/dist/skill/state.d.ts +3 -0
- package/dist/skill/state.js +13 -7
- package/dist/status.js +38 -17
- package/dist/store-registry.d.ts +44 -18
- package/dist/store-registry.js +169 -60
- package/dist/store-weight.d.ts +1 -6
- package/dist/store-weight.js +4 -2
- package/dist/sync/auth-doctor.d.ts +8 -0
- package/dist/sync/auth-doctor.js +27 -0
- package/dist/sync/auth.d.ts +27 -0
- package/dist/sync/auth.js +114 -0
- package/dist/sync/conflict-resolve.d.ts +9 -0
- package/dist/sync/conflict-resolve.js +146 -0
- package/dist/sync/git-state.d.ts +4 -0
- package/dist/sync/git-state.js +49 -0
- package/dist/sync/outcome.d.ts +34 -0
- package/dist/sync/outcome.js +57 -0
- package/dist/sync/pull.d.ts +15 -7
- package/dist/sync/pull.js +84 -35
- package/dist/sync/store-merge.d.ts +29 -0
- package/dist/sync/store-merge.js +137 -0
- package/dist/sync/task-merge.d.ts +22 -0
- package/dist/sync/task-merge.js +158 -0
- package/dist/task/github.js +1 -1
- package/dist/task/lifecycle.d.ts +5 -0
- package/dist/task/lifecycle.js +67 -23
- package/dist/terminal-text.d.ts +5 -0
- package/dist/terminal-text.js +11 -0
- package/dist/test-global-setup.js +7 -0
- package/dist/tool-registry.d.ts +1 -1
- package/dist/tool-registry.js +3 -1
- package/dist/tools/code.d.ts +3 -0
- package/dist/tools/code.js +178 -0
- package/dist/tools/config.js +5 -0
- package/dist/tools/data.js +14 -7
- package/dist/tools/dispatch.d.ts +2 -0
- package/dist/tools/dispatch.js +66 -0
- package/dist/tools/finding.js +43 -41
- package/dist/tools/ops.js +5 -2
- package/dist/tools/search.js +21 -8
- package/dist/tools/session.js +21 -22
- package/dist/tools/tasks.js +8 -2
- package/dist/tools/types.d.ts +2 -2
- package/dist/tools/types.js +2 -2
- package/dist/ui/assets.js +1 -1
- package/dist/ui/data.js +14 -15
- package/dist/ui/deep-void.d.ts +1 -1
- package/dist/ui/deep-void.js +0 -1
- package/dist/ui/graph-chrome.d.ts +1 -1
- package/dist/ui/graph-chrome.js +51 -0
- package/dist/ui/page.js +5 -5
- package/dist/ui/scripts.js +67 -30
- package/dist/ui/server.js +34 -6
- package/dist/update.js +1 -1
- package/dist/utils-fts.js +1 -0
- package/dist/utils-helpers.d.ts +7 -0
- package/dist/utils-helpers.js +17 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +45 -3
- package/plugins/opencode/phren-transcript.js +340 -0
- package/starter/README.md +4 -4
- package/starter/global/{CLAUDE.md → AGENTS.md} +2 -2
- package/starter/global/skills/conductor/SKILL.md +106 -0
- package/starter/global/skills/fanout/SKILL.md +20 -0
- package/starter/global/skills/phren-discover/SKILL.md +6 -6
- package/starter/global/skills/phren-init/SKILL.md +4 -4
- package/starter/global/skills/phren-sync/SKILL.md +3 -3
- package/starter/templates/frontend/reference/README.md +1 -1
- package/starter/templates/library/reference/README.md +1 -1
- package/starter/templates/monorepo/reference/README.md +1 -1
- package/starter/templates/python-project/reference/README.md +1 -1
- /package/starter/templates/frontend/{CLAUDE.md → AGENTS.md} +0 -0
- /package/starter/templates/library/{CLAUDE.md → AGENTS.md} +0 -0
- /package/starter/templates/monorepo/{CLAUDE.md → AGENTS.md} +0 -0
- /package/starter/templates/python-project/{CLAUDE.md → AGENTS.md} +0 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { createReadStream } from "node:fs";
|
|
2
|
+
import { stat } from "node:fs/promises";
|
|
3
|
+
import { object, objects, sessionId } from "./protocol.js";
|
|
4
|
+
import { visibleCodexExecEvent } from "./fanouts.js";
|
|
5
|
+
import { harnessPreamble } from "./transcript-claude.js";
|
|
6
|
+
const childRelationCache = new Map();
|
|
7
|
+
function addChildRelation(line, found) {
|
|
8
|
+
if (!line.includes("SubAgentActivity"))
|
|
9
|
+
return;
|
|
10
|
+
try {
|
|
11
|
+
const raw = object(JSON.parse(line)), payload = object(raw.payload), item = object(payload.item);
|
|
12
|
+
if (raw.type !== "event_msg" || payload.type !== "item_completed" || item.type !== "SubAgentActivity")
|
|
13
|
+
return;
|
|
14
|
+
const kind = String(item.kind), child = String(item.agent_thread_id ?? ""), agentPath = String(item.agent_path ?? "");
|
|
15
|
+
const callId = String(item.id ?? "");
|
|
16
|
+
// Codex 0.155 also reports "interacted" between start and completion;
|
|
17
|
+
// it proves the child exists without changing its state.
|
|
18
|
+
if (!["started", "interacted", "completed"].includes(kind) || !sessionId.safeParse(child).success || !callId || agentPath.length > 512)
|
|
19
|
+
return;
|
|
20
|
+
const previous = found.get(child);
|
|
21
|
+
found.set(child, { session: child, path: agentPath, callId: previous?.callId || callId,
|
|
22
|
+
state: kind === "completed" ? "completed" : previous?.state ?? "running" });
|
|
23
|
+
}
|
|
24
|
+
catch { /* Ignore malformed/private rows. */ }
|
|
25
|
+
}
|
|
26
|
+
export async function directChildAgents(file) {
|
|
27
|
+
const metadata = await stat(file), cached = childRelationCache.get(file);
|
|
28
|
+
if (cached && cached.dev === metadata.dev && cached.ino === metadata.ino
|
|
29
|
+
&& cached.fileSize === metadata.size && cached.mtimeMs === metadata.mtimeMs)
|
|
30
|
+
return [...cached.relations.values()];
|
|
31
|
+
// Codex rollouts are append-only. Keep the byte position of the last full
|
|
32
|
+
// JSONL row so a live transcript only scans new rows as its chat advances.
|
|
33
|
+
// A truncate, replacement, or in-place rewrite starts from zero.
|
|
34
|
+
const append = cached && cached.dev === metadata.dev && cached.ino === metadata.ino && metadata.size > cached.fileSize;
|
|
35
|
+
const start = append ? cached.completeOffset : 0;
|
|
36
|
+
const found = append ? new Map(cached.relations) : new Map();
|
|
37
|
+
let pending = Buffer.alloc(0), completeOffset = start;
|
|
38
|
+
const input = metadata.size > start ? createReadStream(file, { start, end: metadata.size - 1 }) : undefined;
|
|
39
|
+
for await (const chunk of input ?? []) {
|
|
40
|
+
pending = Buffer.concat([pending, Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk)]);
|
|
41
|
+
let newline;
|
|
42
|
+
while ((newline = pending.indexOf(0x0a)) >= 0) {
|
|
43
|
+
addChildRelation(pending.subarray(0, newline).toString("utf8"), found);
|
|
44
|
+
completeOffset += newline + 1;
|
|
45
|
+
pending = pending.subarray(newline + 1);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const entry = { dev: metadata.dev, ino: metadata.ino, fileSize: metadata.size, completeOffset,
|
|
49
|
+
mtimeMs: metadata.mtimeMs, relations: found };
|
|
50
|
+
childRelationCache.set(file, entry);
|
|
51
|
+
while (childRelationCache.size > 64)
|
|
52
|
+
childRelationCache.delete(childRelationCache.keys().next().value);
|
|
53
|
+
return [...found.values()];
|
|
54
|
+
}
|
|
55
|
+
export async function childTranscriptBelongsTo(file, parent) {
|
|
56
|
+
let bytes = Buffer.alloc(0);
|
|
57
|
+
for await (const chunk of createReadStream(file, { start: 0, end: 1_048_575 })) {
|
|
58
|
+
bytes = Buffer.concat([bytes, Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk)]);
|
|
59
|
+
const newline = bytes.indexOf(0x0a);
|
|
60
|
+
if (newline >= 0) {
|
|
61
|
+
bytes = bytes.subarray(0, newline);
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
try {
|
|
66
|
+
const raw = object(JSON.parse(bytes.toString("utf8"))), payload = object(raw.payload), source = object(payload.source);
|
|
67
|
+
const subagent = object(source.subagent), spawn = object(subagent.thread_spawn);
|
|
68
|
+
return raw.type === "session_meta" && String(spawn.parent_thread_id ?? payload.parent_thread_id ?? "") === parent;
|
|
69
|
+
}
|
|
70
|
+
catch {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/** Codex rows the phone may see: public messages, tool calls and their
|
|
75
|
+
* outputs, the answering model, and turn/usage events. */
|
|
76
|
+
export function visibleCodexEvent(raw) {
|
|
77
|
+
if (raw.type === "phren_queue_consumed" && typeof raw.key === "string" && /^[a-f0-9]{64}$/.test(raw.key)) {
|
|
78
|
+
return { type: raw.type, key: raw.key };
|
|
79
|
+
}
|
|
80
|
+
const execEvent = visibleCodexExecEvent(raw);
|
|
81
|
+
if (execEvent)
|
|
82
|
+
return execEvent;
|
|
83
|
+
const p = object(raw.payload);
|
|
84
|
+
// The model answering this turn is the only field of turn_context the
|
|
85
|
+
// phone shows; its policies and instructions stay on the computer.
|
|
86
|
+
if (raw.type === "turn_context")
|
|
87
|
+
return typeof p.model === "string" ? { type: "turn_context", timestamp: raw.timestamp, payload: { model: p.model } } : undefined;
|
|
88
|
+
if (raw.type === "event_msg" && p.type === "error")
|
|
89
|
+
return { type: raw.type, timestamp: raw.timestamp,
|
|
90
|
+
payload: { type: "error", ...(typeof p.message === "string" ? { message: p.message } : {}) } };
|
|
91
|
+
if (raw.type === "event_msg" && ["token_count", "task_started", "task_complete", "task_completed", "turn_aborted", "task_aborted", "error"].includes(String(p.type)))
|
|
92
|
+
return raw;
|
|
93
|
+
if (raw.type !== "response_item")
|
|
94
|
+
return undefined;
|
|
95
|
+
if (p.type === "message" && ["user", "assistant"].includes(String(p.role)) && p.channel !== "analysis") {
|
|
96
|
+
const text = typeof p.content === "string" ? p.content : objects(p.content).map(b => typeof b.text === "string" ? b.text : "").join("\n");
|
|
97
|
+
return p.role === "user" && harnessPreamble(text) ? undefined : raw;
|
|
98
|
+
}
|
|
99
|
+
if (["function_call", "custom_tool_call", "function_call_output", "custom_tool_call_output"].includes(String(p.type)))
|
|
100
|
+
return raw;
|
|
101
|
+
return undefined;
|
|
102
|
+
}
|
|
103
|
+
const CODE_TOOL_CALL = /\btools\s*\.\s*(apply_patch|shell|read)\s*\(/g;
|
|
104
|
+
const JS_ESCAPES = { n: "\n", r: "\r", t: "\t", b: "\b", f: "\f", v: "\v", "0": "\0", "'": "'", '"': '"', "\\": "\\", "/": "/" };
|
|
105
|
+
function unescapeJs(value) {
|
|
106
|
+
return value.replace(/\\(u\{[0-9a-fA-F]{1,6}\}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{2}|[\s\S])/g, (_match, escape) => {
|
|
107
|
+
if (escape[0] === "u") {
|
|
108
|
+
const code = parseInt(escape[1] === "{" ? escape.slice(2, -1) : escape.slice(1), 16);
|
|
109
|
+
return Number.isSafeInteger(code) && code <= 0x10ffff ? String.fromCodePoint(code) : "";
|
|
110
|
+
}
|
|
111
|
+
if (escape[0] === "x") {
|
|
112
|
+
const code = parseInt(escape.slice(1), 16);
|
|
113
|
+
return Number.isFinite(code) ? String.fromCharCode(code) : "";
|
|
114
|
+
}
|
|
115
|
+
return JS_ESCAPES[escape] ?? escape;
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/** The value of a string literal, or undefined when the expression is not one. */
|
|
119
|
+
function literalValue(expression) {
|
|
120
|
+
const text = expression.trim(), quote = text[0];
|
|
121
|
+
if (!["'", '"', "`"].includes(quote) || text.length < 2 || text[text.length - 1] !== quote)
|
|
122
|
+
return undefined;
|
|
123
|
+
for (let index = 1; index < text.length - 1; index++) {
|
|
124
|
+
if (text[index] === "\\") {
|
|
125
|
+
index++;
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
if (text[index] === quote)
|
|
129
|
+
return undefined;
|
|
130
|
+
}
|
|
131
|
+
return unescapeJs(text.slice(1, -1));
|
|
132
|
+
}
|
|
133
|
+
/** Resolve a call argument: an inline literal, or an identifier assigned a
|
|
134
|
+
* string literal in the same source. Computed values stay unresolved. */
|
|
135
|
+
function resolveString(expression, source) {
|
|
136
|
+
const literal = literalValue(expression);
|
|
137
|
+
if (literal !== undefined)
|
|
138
|
+
return literal;
|
|
139
|
+
const identifier = expression.trim();
|
|
140
|
+
if (!/^[A-Za-z_$][\w$]*$/.test(identifier))
|
|
141
|
+
return undefined;
|
|
142
|
+
const declaration = new RegExp(`\\b(?:const|let|var)\\s+${identifier}\\s*=\\s*("(?:\\\\.|[^"\\\\])*"|'(?:\\\\.|[^'\\\\])*'|\`(?:\\\\.|[^\`\\\\])*\`)`).exec(source);
|
|
143
|
+
return declaration ? unescapeJs(declaration[1].slice(1, -1)) : undefined;
|
|
144
|
+
}
|
|
145
|
+
/** The `(…)` text of a call, skipping parentheses inside string literals. */
|
|
146
|
+
function callArguments(source, open) {
|
|
147
|
+
let depth = 0, quote = "";
|
|
148
|
+
for (let index = open; index < source.length; index++) {
|
|
149
|
+
const character = source[index];
|
|
150
|
+
if (quote) {
|
|
151
|
+
if (character === "\\")
|
|
152
|
+
index++;
|
|
153
|
+
else if (character === quote)
|
|
154
|
+
quote = "";
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
if (character === '"' || character === "'" || character === "`") {
|
|
158
|
+
quote = character;
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
if (character === "(" || character === "{" || character === "[")
|
|
162
|
+
depth++;
|
|
163
|
+
else if (character === ")" || character === "}" || character === "]") {
|
|
164
|
+
if (--depth === 0)
|
|
165
|
+
return source.slice(open + 1, index);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return undefined;
|
|
169
|
+
}
|
|
170
|
+
function shellCommand(expression, source) {
|
|
171
|
+
const inline = resolveString(expression, source);
|
|
172
|
+
if (inline !== undefined)
|
|
173
|
+
return inline;
|
|
174
|
+
const inner = /^\{([\s\S]*)\}$/.exec(expression.trim())?.[1];
|
|
175
|
+
if (inner === undefined)
|
|
176
|
+
return undefined;
|
|
177
|
+
const body = inner.trim();
|
|
178
|
+
if (/^[A-Za-z_$][\w$]*$/.test(body))
|
|
179
|
+
return resolveString(body, source);
|
|
180
|
+
const property = /(?:^|[,{])\s*(?:command|cmd)\s*:\s*("(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`|[A-Za-z_$][\w$]*)/.exec(body);
|
|
181
|
+
return property ? resolveString(property[1], source) : undefined;
|
|
182
|
+
}
|
|
183
|
+
/** Every recognized invocation in a code-mode source, in the order written. */
|
|
184
|
+
export function codeToolCalls(source) {
|
|
185
|
+
const calls = [], original = source.slice(0, 262_144);
|
|
186
|
+
for (const match of source.matchAll(CODE_TOOL_CALL)) {
|
|
187
|
+
const args = callArguments(source, (match.index ?? 0) + match[0].length - 1);
|
|
188
|
+
if (args === undefined)
|
|
189
|
+
continue;
|
|
190
|
+
if (match[1] === "apply_patch") {
|
|
191
|
+
const patch = resolveString(args, source);
|
|
192
|
+
if (patch?.startsWith("*** Begin Patch"))
|
|
193
|
+
calls.push({ name: "apply_patch", input: { patch, source: original } });
|
|
194
|
+
}
|
|
195
|
+
else if (match[1] === "shell") {
|
|
196
|
+
const command = shellCommand(args, source);
|
|
197
|
+
if (command !== undefined)
|
|
198
|
+
calls.push({ name: "shell", input: { command, source: original } });
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
const file = resolveString(args, source);
|
|
202
|
+
if (file !== undefined)
|
|
203
|
+
calls.push({ name: "read", input: { file_path: file, source: original } });
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return calls.length ? calls : undefined;
|
|
207
|
+
}
|
|
208
|
+
/** The JS source behind a code-mode input: a raw string, or an object carrying
|
|
209
|
+
* it under a code/source/script field. JSON tool arguments are not source. */
|
|
210
|
+
function codeToolSource(input) {
|
|
211
|
+
if (typeof input === "string") {
|
|
212
|
+
const trimmed = input.trimStart();
|
|
213
|
+
if (trimmed.startsWith("{")) {
|
|
214
|
+
try {
|
|
215
|
+
const parsed = object(JSON.parse(input));
|
|
216
|
+
// A resolved call (our own projection, or ordinary JSON arguments such
|
|
217
|
+
// as `command`) is not source, even when it also carries `source`.
|
|
218
|
+
if (["patch", "command", "cmd", "file_path", "files"].some(key => parsed[key] !== undefined))
|
|
219
|
+
return undefined;
|
|
220
|
+
for (const key of ["code", "source", "script", "input"])
|
|
221
|
+
if (typeof parsed[key] === "string")
|
|
222
|
+
return parsed[key];
|
|
223
|
+
return undefined;
|
|
224
|
+
}
|
|
225
|
+
catch {
|
|
226
|
+
return input;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return input;
|
|
230
|
+
}
|
|
231
|
+
const fields = object(input);
|
|
232
|
+
for (const key of ["code", "source", "script", "input"])
|
|
233
|
+
if (typeof fields[key] === "string")
|
|
234
|
+
return fields[key];
|
|
235
|
+
return undefined;
|
|
236
|
+
}
|
|
237
|
+
const projectedCodeCalls = new Set();
|
|
238
|
+
function rememberProjectedCodeCall(callId) {
|
|
239
|
+
projectedCodeCalls.delete(callId);
|
|
240
|
+
projectedCodeCalls.add(callId);
|
|
241
|
+
while (projectedCodeCalls.size > 4096)
|
|
242
|
+
projectedCodeCalls.delete(projectedCodeCalls.values().next().value);
|
|
243
|
+
}
|
|
244
|
+
function renameProjectedChanges(raw, base) {
|
|
245
|
+
const changes = object(raw.phren_changes);
|
|
246
|
+
if (!Object.keys(changes).length)
|
|
247
|
+
return raw;
|
|
248
|
+
return { ...raw, phren_changes: Object.fromEntries(Object.entries(changes).map(([key, value]) => [key === base ? `${base}:1` : key, value])) };
|
|
249
|
+
}
|
|
250
|
+
/** Expand one Codex row: a code-mode call becomes one ordinary call per
|
|
251
|
+
* invocation, each carrying the original source under `input.source`, and the
|
|
252
|
+
* matching result follows the first. Other rows pass through unchanged. */
|
|
253
|
+
export function projectCodexRow(raw) {
|
|
254
|
+
if (raw.type !== "response_item")
|
|
255
|
+
return { rows: [raw] };
|
|
256
|
+
const payload = object(raw.payload), type = String(payload.type), callId = typeof payload.call_id === "string" ? payload.call_id : "";
|
|
257
|
+
if (type === "custom_tool_call" || type === "function_call") {
|
|
258
|
+
const source = codeToolSource(payload.input ?? payload.arguments);
|
|
259
|
+
const calls = source === undefined ? undefined : codeToolCalls(source);
|
|
260
|
+
if (!calls)
|
|
261
|
+
return { rows: [raw] };
|
|
262
|
+
const rows = calls.map((call, index) => ({ type: "response_item", payload: { type: "function_call",
|
|
263
|
+
name: call.name, call_id: `${callId}:${index + 1}`, arguments: JSON.stringify(call.input) } }));
|
|
264
|
+
if (callId)
|
|
265
|
+
rememberProjectedCodeCall(callId);
|
|
266
|
+
return { rows, ...(callId ? { base: callId } : {}) };
|
|
267
|
+
}
|
|
268
|
+
if ((type === "custom_tool_call_output" || type === "function_call_output") && callId && projectedCodeCalls.has(callId)) {
|
|
269
|
+
return { rows: [{ ...renameProjectedChanges(raw, callId), payload: { ...payload, call_id: `${callId}:1` } }], base: callId };
|
|
270
|
+
}
|
|
271
|
+
return { rows: [raw] };
|
|
272
|
+
}
|
|
273
|
+
/** The output row for a projected call is read before its call (newest row
|
|
274
|
+
* first), so an output already collected in this page follows the first. */
|
|
275
|
+
export function rewriteProjectedOutput(entries, base) {
|
|
276
|
+
for (const entry of entries) {
|
|
277
|
+
const payload = object(entry.raw.payload);
|
|
278
|
+
if (payload.call_id !== base)
|
|
279
|
+
continue;
|
|
280
|
+
entry.raw = { ...renameProjectedChanges(entry.raw, base), payload: { ...payload, call_id: `${base}:1` } };
|
|
281
|
+
}
|
|
282
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { object } from "./protocol.js";
|
|
2
|
+
/** Copilot's transcript reader: public message, tool and usage events, with
|
|
3
|
+
* optional reasoning fields dropped. */
|
|
4
|
+
export function visibleCopilotEvent(raw) {
|
|
5
|
+
if (raw.agentId || raw.ephemeral || !["user.message", "assistant.message", "assistant.message_delta", "tool.execution_start", "tool.execution_complete", "assistant.turn_start", "assistant.turn_end", "session.idle", "abort", "session.error", "session.usage_info", "assistant.usage"].includes(String(raw.type)))
|
|
6
|
+
return undefined;
|
|
7
|
+
const data = object(raw.data);
|
|
8
|
+
// Copilot includes optional reasoning beside the public message in some
|
|
9
|
+
// versions. Export only the fields used by public text/tool/usage readers.
|
|
10
|
+
// `phase` marks Copilot 1.0.87's final answer (it writes no session.idle);
|
|
11
|
+
// `success` is false on a failed tool run.
|
|
12
|
+
const allowed = ["content", "source", "messageId", "deltaContent", "toolName", "toolCallId", "arguments", "result", "error", "success", "phase", "aborted", "inputTokens", "outputTokens", "cacheReadTokens"];
|
|
13
|
+
return { type: raw.type, timestamp: raw.timestamp, data: Object.fromEntries(Object.entries(data).filter(([key]) => allowed.includes(key))) };
|
|
14
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Json } from "./protocol.js";
|
|
2
|
+
/** OpenCode's transcript reader, shared with phren-agent's event log: an
|
|
3
|
+
* OpenCode run's own events first, then the three message events that make
|
|
4
|
+
* up the conversation. */
|
|
5
|
+
export declare function visibleOpencodeEvent(raw: Json, source: "phren" | "opencode", cwd?: string): Json | undefined;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { object, objects } from "./protocol.js";
|
|
2
|
+
import { visibleOpenCodeRunEvent } from "./fanouts.js";
|
|
3
|
+
/** OpenCode's transcript reader, shared with phren-agent's event log: an
|
|
4
|
+
* OpenCode run's own events first, then the three message events that make
|
|
5
|
+
* up the conversation. */
|
|
6
|
+
export function visibleOpencodeEvent(raw, source, cwd) {
|
|
7
|
+
if (source === "opencode") {
|
|
8
|
+
const runEvent = visibleOpenCodeRunEvent(raw, cwd);
|
|
9
|
+
if (runEvent)
|
|
10
|
+
return runEvent;
|
|
11
|
+
}
|
|
12
|
+
// phren-agent's event log (experimental/agent/src/session/log.ts): the
|
|
13
|
+
// header and log/replace splices are bookkeeping; the three message
|
|
14
|
+
// events are the conversation. Reasoning blocks stay on the computer.
|
|
15
|
+
if (!["user/message", "assistant/message", "tool/results"].includes(String(raw.type)))
|
|
16
|
+
return undefined;
|
|
17
|
+
const data = object(raw.data), message = object(data.message);
|
|
18
|
+
const content = Array.isArray(message.content)
|
|
19
|
+
? objects(message.content).map(b => ["text", "image", "tool_use", "tool_result"].includes(String(b.type)) ? b : { type: "redacted" })
|
|
20
|
+
: message.content;
|
|
21
|
+
const exported = { message: { role: message.role, content } };
|
|
22
|
+
for (const key of ["source", "turn", "stop_reason", "usage"])
|
|
23
|
+
if (data[key] !== undefined)
|
|
24
|
+
exported[key] = data[key];
|
|
25
|
+
return { seq: raw.seq, time: raw.time, type: raw.type, data: exported };
|
|
26
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { type Target } from "./protocol.js";
|
|
2
|
+
import type { Entry } from "./transcripts.js";
|
|
3
|
+
export interface TranscriptPreview {
|
|
4
|
+
turnStartedAt: string;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const PREVIEW_INTERVAL_MS = 500;
|
|
8
|
+
/** Only the last Claude reply after the current prompt is eligible. A missing
|
|
9
|
+
* prompt anchor is deliberately silent: scrollback could belong to an old turn. */
|
|
10
|
+
export declare function claudePanePreview(rendered: string, prompt: string, previous?: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Claude Code's own screen text, never part of a reply: the update and
|
|
13
|
+
* restart notices, status lines it marks ✔ / ✗ / ⚠ / ※, tips, and the
|
|
14
|
+
* context and auto-accept hints drawn around the input box.
|
|
15
|
+
*/
|
|
16
|
+
export declare function claudeChrome(line: string): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Undoes the terminal's word wrap. Claude draws a paragraph wrapped to the
|
|
19
|
+
* pane's width, so the phone would show each wrap as a hard break. A line is
|
|
20
|
+
* joined to the next when the next line's first word would not have fitted
|
|
21
|
+
* on it, which is exactly what a soft wrap looks like; the widest line
|
|
22
|
+
* stands in for the pane width, and below 40 columns nothing is joined. Blank lines, block starts and fenced code
|
|
23
|
+
* keep their breaks. `display` is what is joined, line for line: the text
|
|
24
|
+
* with Markdown put back, measured by its plain twin.
|
|
25
|
+
*/
|
|
26
|
+
export declare function unwrapTerminalLines(lines: readonly string[], display?: readonly string[]): string;
|
|
27
|
+
/** Claude's spinner line, as structured fields: the verb, the turn's elapsed
|
|
28
|
+
* seconds, the token count and its direction, and whether it is thinking.
|
|
29
|
+
* "✻ Whirlpooling… (27s · ↓ 2.3k tokens · thinking)". */
|
|
30
|
+
export interface ClaudeSpinner {
|
|
31
|
+
verb: string;
|
|
32
|
+
elapsed?: number;
|
|
33
|
+
tokens?: {
|
|
34
|
+
count: number;
|
|
35
|
+
direction: "up" | "down";
|
|
36
|
+
};
|
|
37
|
+
thinking: boolean;
|
|
38
|
+
/** "thought for 4s": how long the finished thinking took. */
|
|
39
|
+
thoughtFor?: number;
|
|
40
|
+
}
|
|
41
|
+
/** One spinner line, or undefined for anything else. The parenthesis must
|
|
42
|
+
* start with a time or say "esc to interrupt", as Claude's does. */
|
|
43
|
+
export declare function parseClaudeSpinnerLine(line: string): ClaudeSpinner | undefined;
|
|
44
|
+
/** The newest spinner line on screen. */
|
|
45
|
+
export declare function claudeSpinner(rendered: string): ClaudeSpinner | undefined;
|
|
46
|
+
/** The word Claude's own spinner shows ("✻ Pondering… (12s · esc to interrupt)"). */
|
|
47
|
+
export declare function claudeSpinnerVerb(rendered: string): string | undefined;
|
|
48
|
+
export declare function readPreviewPane(target: Target): Promise<string>;
|
|
49
|
+
/**
|
|
50
|
+
* One pane line as Markdown bold. Claude draws a reply's **bold** with SGR 1
|
|
51
|
+
* and drops the asterisks, so a plain read loses it and the phone's preview
|
|
52
|
+
* would gain it only when the reply lands. Whitespace stays outside the
|
|
53
|
+
* markers (Markdown does not close `**a **`); other styles are dropped.
|
|
54
|
+
*/
|
|
55
|
+
export declare function claudeBoldMarkdown(line: string): string;
|
|
56
|
+
/** Older Codex rollouts may carry public text deltas between response items.
|
|
57
|
+
* Keep a bounded raw cursor, since history intentionally filters these out. */
|
|
58
|
+
export declare class CodexRolloutPreview {
|
|
59
|
+
private revision?;
|
|
60
|
+
private cursor;
|
|
61
|
+
private startedAt?;
|
|
62
|
+
private text;
|
|
63
|
+
read(file: string): Promise<TranscriptPreview | null>;
|
|
64
|
+
}
|
|
65
|
+
export declare function readDeltaPreview(target: Target, file?: string, rollout?: CodexRolloutPreview): Promise<TranscriptPreview | null>;
|
|
66
|
+
/** Socket-local, ephemeral state. It never writes transcript rows or advances
|
|
67
|
+
* the history cursor. Final rows bypass the text throttle and clear atomically. */
|
|
68
|
+
export declare class TranscriptPreviewStream {
|
|
69
|
+
private readonly target;
|
|
70
|
+
private readonly pane;
|
|
71
|
+
private readonly delta;
|
|
72
|
+
private startedAt?;
|
|
73
|
+
private prompt;
|
|
74
|
+
private landed;
|
|
75
|
+
private ended;
|
|
76
|
+
/** Claude's own spinner word for the running turn, sent beside frames as
|
|
77
|
+
* `activityVerb` for older phones. */
|
|
78
|
+
verb: string | undefined;
|
|
79
|
+
/** The whole spinner line for the running turn, sent as `activity`;
|
|
80
|
+
* phones without it ignore the field. */
|
|
81
|
+
activity: ClaudeSpinner | undefined;
|
|
82
|
+
private sentActivity;
|
|
83
|
+
private lastRead;
|
|
84
|
+
private lastSent;
|
|
85
|
+
private current;
|
|
86
|
+
private observedLine;
|
|
87
|
+
private wasWorking;
|
|
88
|
+
private readonly rollout;
|
|
89
|
+
constructor(target: Target, pane?: () => Promise<string>, delta?: (file?: string) => Promise<TranscriptPreview | null>);
|
|
90
|
+
observe(entries: Entry[], reset?: boolean): void;
|
|
91
|
+
update(status: unknown, file?: string, now?: number): Promise<{
|
|
92
|
+
preview: TranscriptPreview | null;
|
|
93
|
+
} | undefined>;
|
|
94
|
+
}
|