@zergai/ztc 0.26.2-dev.202611210149 → 0.26.4-dev.202611231953
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 +590 -28
- package/bin/zmux-darwin-arm64 +0 -0
- package/bin/zmux-linux-x64 +0 -0
- package/bin/ztc-audio-darwin-arm64 +0 -0
- package/bin/ztc-capture-darwin-arm64 +0 -0
- package/bin/ztc-tui-darwin-arm64 +0 -0
- package/bin/ztc-tui-linux-x64 +0 -0
- package/bin/zterm-darwin-arm64 +2 -2
- package/dist/App.js +18 -1
- package/dist/agent/agent.d.ts +25 -1
- package/dist/agent/agent.js +26 -1
- package/dist/agent/attached_images.d.ts +58 -0
- package/dist/agent/attached_images.js +145 -0
- package/dist/agent/backends/anthropic.d.ts +14 -0
- package/dist/agent/backends/anthropic.js +49 -2
- package/dist/agent/backends/codex_app_server.d.ts +3 -1
- package/dist/agent/backends/codex_app_server.js +9 -6
- package/dist/agent/backends/codex_auth.js +3 -0
- package/dist/agent/backends/gemini.js +3 -0
- package/dist/agent/backends/host_effort_policy.js +14 -2
- package/dist/agent/backends/http_error.d.ts +17 -0
- package/dist/agent/backends/http_error.js +50 -1
- package/dist/agent/backends/index.js +2 -1
- package/dist/agent/backends/model_redirect.d.ts +47 -0
- package/dist/agent/backends/model_redirect.js +97 -0
- package/dist/agent/backends/openai_compatible.js +5 -0
- package/dist/agent/backends/openai_responses.d.ts +9 -1
- package/dist/agent/backends/openai_responses.js +21 -12
- package/dist/agent/backends/prompt_cache.d.ts +8 -0
- package/dist/agent/backends/prompt_cache.js +10 -0
- package/dist/agent/backends/provider_ids.d.ts +1 -1
- package/dist/agent/backends/provider_ids.js +1 -1
- package/dist/agent/backends/types.d.ts +8 -0
- package/dist/agent/backends/zerg-api.js +5 -1
- package/dist/agent/backends/zrouter_stream.d.ts +75 -9
- package/dist/agent/backends/zrouter_stream.js +250 -49
- package/dist/agent/commands/config.js +51 -4
- package/dist/agent/commands/connect.js +20 -0
- package/dist/agent/commands/credential_status.js +5 -3
- package/dist/agent/commands/debug.js +3 -0
- package/dist/agent/commands/diff.js +9 -5
- package/dist/agent/commands/emulation.js +7 -1
- package/dist/agent/commands/inbox.js +4 -3
- package/dist/agent/commands/mcp.js +3 -0
- package/dist/agent/commands/models.js +20 -3
- package/dist/agent/commands/permissions.js +16 -2
- package/dist/agent/commands/provider_selection.js +13 -6
- package/dist/agent/commands/settings.js +15 -4
- package/dist/agent/commands/status.js +23 -1
- package/dist/agent/commands/types.d.ts +34 -3
- package/dist/agent/commands/update.d.ts +2 -1
- package/dist/agent/commands/update.js +8 -3
- package/dist/agent/commands/zerg.d.ts +6 -0
- package/dist/agent/commands/zerg.js +152 -28
- package/dist/agent/commands/ztc_pane.js +8 -5
- package/dist/agent/factory.js +22 -4
- package/dist/agent/request_encoder.js +11 -2
- package/dist/agent/runtime/command_jobs.js +16 -1
- package/dist/agent/runtime/command_panes.js +4 -1
- package/dist/agent/runtime/execution_context.d.ts +8 -1
- package/dist/agent/runtime/execution_context.js +8 -2
- package/dist/agent/runtime/policy.d.ts +66 -5
- package/dist/agent/runtime/policy.js +161 -33
- package/dist/agent/runtime/remote_broker_transport.d.ts +7 -0
- package/dist/agent/runtime/remote_broker_transport.js +33 -3
- package/dist/agent/runtime/remote_resource_errors.d.ts +7 -0
- package/dist/agent/runtime/remote_resource_errors.js +10 -0
- package/dist/agent/runtime/remote_resources.d.ts +1 -1
- package/dist/agent/runtime/remote_resources.js +7 -3
- package/dist/agent/runtime/source_verification.js +15 -12
- package/dist/agent/runtime/tool_runtime.js +165 -58
- package/dist/agent/runtime/verifier_capture.d.ts +1 -1
- package/dist/agent/runtime/verifier_capture.js +6 -0
- package/dist/agent/runtime/work_base.js +46 -14
- package/dist/agent/tools/adaptation.js +29 -12
- package/dist/agent/tools/apply_patch.js +62 -5
- package/dist/agent/tools/background.js +2 -0
- package/dist/agent/tools/benchmark_cpu.js +2 -0
- package/dist/agent/tools/bus_message.d.ts +4 -2
- package/dist/agent/tools/bus_message.js +21 -3
- package/dist/agent/tools/delegate.js +2 -0
- package/dist/agent/tools/file.d.ts +12 -1
- package/dist/agent/tools/file.js +92 -11
- package/dist/agent/tools/lsp.d.ts +12 -0
- package/dist/agent/tools/lsp.js +61 -5
- package/dist/agent/tools/pane.js +20 -45
- package/dist/agent/tools/project_context.js +5 -2
- package/dist/agent/tools/routine.js +20 -4
- package/dist/agent/tools/screenshot.d.ts +8 -0
- package/dist/agent/tools/screenshot.js +39 -25
- package/dist/agent/tools/search.js +31 -3
- package/dist/agent/tools/shell.js +7 -1
- package/dist/agent/tools/supervision.js +6 -0
- package/dist/agent/tools/types.d.ts +18 -0
- package/dist/agent/tools/zerg.js +15 -19
- package/dist/agent/tools/ztc_command.d.ts +15 -4
- package/dist/agent/tools/ztc_command.js +48 -34
- package/dist/app/agent_runner.js +8 -6
- package/dist/app/conversation_compaction.d.ts +6 -3
- package/dist/app/conversation_compaction.js +6 -3
- package/dist/app/tool_callbacks.js +1 -0
- package/dist/audio/sfx.js +6 -0
- package/dist/batch/worktree.js +22 -10
- package/dist/board/client.js +2 -1
- package/dist/cli_main.d.ts +1 -0
- package/dist/cli_main.js +141 -45
- package/dist/cli_ratatui.d.ts +49 -4
- package/dist/cli_ratatui.js +355 -79
- package/dist/conductor_branch.js +4 -1
- package/dist/config/host_credentials.d.ts +157 -0
- package/dist/config/host_credentials.js +589 -0
- package/dist/config/model_pin.d.ts +111 -0
- package/dist/config/model_pin.js +182 -0
- package/dist/config/own_state_files.d.ts +35 -0
- package/dist/config/own_state_files.js +161 -0
- package/dist/config/permission_pin.d.ts +148 -0
- package/dist/config/permission_pin.js +203 -0
- package/dist/config/permissions.d.ts +9 -2
- package/dist/config/permissions.js +14 -3
- package/dist/config/platform_login.d.ts +72 -0
- package/dist/config/platform_login.js +111 -0
- package/dist/config/profile_limits.d.ts +34 -0
- package/dist/config/profile_limits.js +66 -0
- package/dist/config/provider_api_key_env.js +3 -2
- package/dist/config/provider_models.d.ts +6 -1
- package/dist/config/provider_models.js +38 -11
- package/dist/config/repo_config.d.ts +22 -0
- package/dist/config/repo_config.js +77 -3
- package/dist/config/router_runtime_grant.d.ts +53 -0
- package/dist/config/router_runtime_grant.js +131 -0
- package/dist/config/settings_merge.d.ts +22 -0
- package/dist/config/settings_merge.js +75 -0
- package/dist/config/types.d.ts +8 -0
- package/dist/config.d.ts +334 -4
- package/dist/config.js +1024 -41
- package/dist/context/project_intelligence.d.ts +11 -2
- package/dist/context/project_intelligence.js +38 -15
- package/dist/desktop/daily/desktop_wiring.js +8 -6
- package/dist/desktop/daily/native_pane_launcher.js +2 -1
- package/dist/desktop/daily/native_tool.d.ts +1 -1
- package/dist/desktop/daily/native_tool.js +4 -3
- package/dist/desktop/daily/process_identity.js +10 -2
- package/dist/desktop/daily/source_baseline.js +4 -3
- package/dist/diagnostics/native_terminal_benchmark.js +3 -2
- package/dist/diagnostics/session_export.js +27 -14
- package/dist/embedded/anempa_runtime.js +3 -3
- package/dist/embedded/gameboy_runtime.js +5 -4
- package/dist/embedded/zergpod_runtime.js +5 -4
- package/dist/emulation/catalog.js +6 -1
- package/dist/emulation/tool_adapters.js +13 -3
- package/dist/environment/store.js +5 -4
- package/dist/extension_discovery.d.ts +12 -2
- package/dist/extension_discovery.js +52 -7
- package/dist/headless.d.ts +8 -0
- package/dist/headless.js +52 -13
- package/dist/headless_cli.js +16 -1
- package/dist/headless_workflow_trigger.js +1 -1
- package/dist/hooks/dispatcher.d.ts +8 -0
- package/dist/hooks/dispatcher.js +22 -2
- package/dist/hooks/lifecycle.d.ts +6 -0
- package/dist/hooks/lifecycle.js +1 -0
- package/dist/hooks/program_files.d.ts +10 -0
- package/dist/hooks/program_files.js +175 -0
- package/dist/hooks/runner.d.ts +11 -1
- package/dist/hooks/runner.js +112 -11
- package/dist/hooks/types.d.ts +2 -0
- package/dist/host_credentials_startup.d.ts +6 -0
- package/dist/host_credentials_startup.js +17 -0
- package/dist/instance_registry.d.ts +6 -2
- package/dist/instance_registry.js +9 -15
- package/dist/intake/format.d.ts +6 -0
- package/dist/intake/format.js +9 -0
- package/dist/intake/notifications.js +2 -1
- package/dist/lsp/manager.d.ts +1 -1
- package/dist/lsp/manager.js +4 -5
- package/dist/mcp/client.d.ts +2 -0
- package/dist/mcp/client.js +116 -18
- package/dist/mcp/registry.d.ts +12 -0
- package/dist/mcp/registry.js +15 -1
- package/dist/modes/handlers.js +14 -5
- package/dist/panes/agent_cli.d.ts +23 -1
- package/dist/panes/agent_cli.js +96 -1
- package/dist/panes/agent_panes.d.ts +27 -4
- package/dist/panes/agent_panes.js +73 -11
- package/dist/panes/editor_program.d.ts +8 -0
- package/dist/panes/editor_program.js +25 -0
- package/dist/panes/motsi.d.ts +11 -1
- package/dist/panes/motsi.js +14 -1
- package/dist/panes/pane_registry.d.ts +28 -1
- package/dist/panes/pane_registry.js +25 -0
- package/dist/panes/worker_route.js +5 -3
- package/dist/panes/ztc_launch.d.ts +8 -0
- package/dist/panes/ztc_launch.js +26 -1
- package/dist/profile_baseline.js +2 -0
- package/dist/router_auth.d.ts +8 -3
- package/dist/router_auth.js +34 -2
- package/dist/runtime_info.js +56 -38
- package/dist/session.js +12 -2
- package/dist/shannon/runtime.js +13 -1
- package/dist/simulation/domains/loader.d.ts +2 -1
- package/dist/simulation/domains/loader.js +19 -2
- package/dist/simulation/living/context.d.ts +8 -8
- package/dist/simulation/living/types.d.ts +2 -2
- package/dist/simulation/memory/embedding.d.ts +2 -1
- package/dist/simulation/memory/embedding.js +25 -6
- package/dist/terminal_attach.js +2 -1
- package/dist/types.d.ts +21 -0
- package/dist/ui/ratatui/headless_pane_manager.d.ts +12 -6
- package/dist/ui/ratatui/headless_pane_manager.js +65 -21
- package/dist/ui/ratatui/ipc_path.d.ts +41 -2
- package/dist/ui/ratatui/ipc_path.js +164 -5
- package/dist/ui/ratatui/pane_credential_broker.d.ts +17 -4
- package/dist/ui/ratatui/pane_credential_broker.js +23 -5
- package/dist/ui/ratatui/pane_relay.d.ts +74 -0
- package/dist/ui/ratatui/pane_relay.js +188 -13
- package/dist/ui/ratatui/process.d.ts +15 -1
- package/dist/ui/ratatui/process.js +129 -163
- package/dist/ui/ratatui/protocol.d.ts +11 -1
- package/dist/ui/ratatui/protocol.js +6 -0
- package/dist/ui/ratatui/ztc_launch_trust.d.ts +87 -0
- package/dist/ui/ratatui/ztc_launch_trust.js +249 -0
- package/dist/utils/admitted_open.d.ts +40 -0
- package/dist/utils/admitted_open.js +111 -0
- package/dist/utils/clipboard.js +2 -1
- package/dist/utils/computer_native.js +12 -56
- package/dist/utils/dictation.js +15 -12
- package/dist/utils/dictation_native.js +17 -60
- package/dist/utils/git_probe_options.d.ts +28 -0
- package/dist/utils/git_probe_options.js +30 -0
- package/dist/utils/git_program_files.d.ts +145 -0
- package/dist/utils/git_program_files.js +1282 -0
- package/dist/utils/git_repository_programs.d.ts +13 -0
- package/dist/utils/git_repository_programs.js +38 -0
- package/dist/utils/host_shell.js +2 -1
- package/dist/utils/idle_compaction.js +8 -1
- package/dist/utils/image_fit.d.ts +4 -1
- package/dist/utils/image_fit.js +6 -2
- package/dist/utils/image_preview.js +3 -2
- package/dist/utils/mirror_media.d.ts +22 -4
- package/dist/utils/mirror_media.js +87 -86
- package/dist/utils/ml_native.js +11 -56
- package/dist/utils/native_install.d.ts +55 -0
- package/dist/utils/native_install.js +107 -0
- package/dist/utils/open_url.js +2 -0
- package/dist/utils/process_end.d.ts +16 -0
- package/dist/utils/process_end.js +73 -0
- package/dist/utils/router_catalog.js +9 -2
- package/dist/utils/sandbox.d.ts +64 -1
- package/dist/utils/sandbox.js +397 -89
- package/dist/utils/shell.js +31 -12
- package/dist/utils/subprocess_env.d.ts +218 -2
- package/dist/utils/subprocess_env.js +429 -11
- package/dist/utils/system_ps.d.ts +5 -0
- package/dist/utils/system_ps.js +30 -0
- package/dist/utils/tts.js +5 -0
- package/dist/utils/tts_native.js +13 -60
- package/dist/utils/zlicky_overlay.js +17 -50
- package/dist/utils/ztc_own_state.d.ts +58 -0
- package/dist/utils/ztc_own_state.js +236 -0
- package/dist/web/mirror_authenticator.d.ts +67 -6
- package/dist/web/mirror_authenticator.js +131 -22
- package/dist/web/mirror_stream.d.ts +54 -10
- package/dist/web/mirror_stream.js +379 -92
- package/dist/web/observer_query_redaction.js +53 -13
- package/dist/web/observer_secret_redaction.d.ts +59 -0
- package/dist/web/observer_secret_redaction.js +714 -0
- package/dist/web/pane_credentials.d.ts +20 -2
- package/dist/web/pane_credentials.js +58 -5
- package/dist/worker/executor.js +3 -1
- package/dist/workspace_collision.js +19 -15
- package/dist/zerg/local_zerg_launches.d.ts +27 -0
- package/dist/zerg/local_zerg_launches.js +198 -0
- package/dist/zlm-embed.mjs +6257 -2791
- package/npm-shrinkwrap.json +1 -1
- package/package.json +42 -15
|
@@ -1,3 +1,55 @@
|
|
|
1
|
+
/** The rest of a parameter's name from where it is read: anything but =, &, a blank, a quote or an angle bracket. */
|
|
2
|
+
const NAME = /[^=&\s"'<>]*/y;
|
|
3
|
+
/** What ends a parameter's value: &, a blank, a quote or an angle bracket. */
|
|
4
|
+
const VALUE_END = /[&\s"'<>]/g;
|
|
5
|
+
const TOKEN_NAME = /^(?:ztc_mirror_token|token)$/i;
|
|
6
|
+
const QUESTION = 0x3f;
|
|
7
|
+
const AMPERSAND = 0x26;
|
|
8
|
+
const EQUALS = 0x3d;
|
|
9
|
+
/**
|
|
10
|
+
* Where TEXT holds a token parameter's value, as [start, end) pairs. A parameter is what /([?&]([^=&\s"'<>]+)=)/g finds:
|
|
11
|
+
* a ? or & that a name and = follow, the scan going on after the =; a value runs to the next &, blank, quote or angle
|
|
12
|
+
* bracket, or to TEXT's end. A name may hold "?", so each "?" of a run of them starts a name that runs to the same
|
|
13
|
+
* place, and each value of a run of token parameters ends at the same place: each place is found once and kept, so a
|
|
14
|
+
* long run is read once rather than again from each of its positions.
|
|
15
|
+
*/
|
|
16
|
+
function tokenValues(text) {
|
|
17
|
+
const values = [];
|
|
18
|
+
// Where the run of name characters (or the value) the last search read ends: none of those before it end a name
|
|
19
|
+
// (or a value), so a name (or value) that starts inside that run ends there too.
|
|
20
|
+
let nameEnd = -1;
|
|
21
|
+
let valueEnd = -1;
|
|
22
|
+
for (let index = 0; index < text.length; index++) {
|
|
23
|
+
const code = text.charCodeAt(index);
|
|
24
|
+
if (code !== QUESTION && code !== AMPERSAND)
|
|
25
|
+
continue;
|
|
26
|
+
const nameStart = index + 1;
|
|
27
|
+
if (nameEnd < nameStart) {
|
|
28
|
+
NAME.lastIndex = nameStart;
|
|
29
|
+
NAME.exec(text);
|
|
30
|
+
nameEnd = NAME.lastIndex;
|
|
31
|
+
}
|
|
32
|
+
if (nameEnd === nameStart || text.charCodeAt(nameEnd) !== EQUALS)
|
|
33
|
+
continue;
|
|
34
|
+
index = nameEnd;
|
|
35
|
+
let name;
|
|
36
|
+
try {
|
|
37
|
+
name = decodeURIComponent(text.slice(nameStart, nameEnd));
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (!TOKEN_NAME.test(name))
|
|
43
|
+
continue;
|
|
44
|
+
const start = nameEnd + 1;
|
|
45
|
+
if (valueEnd < start) {
|
|
46
|
+
VALUE_END.lastIndex = start;
|
|
47
|
+
valueEnd = VALUE_END.exec(text)?.index ?? text.length;
|
|
48
|
+
}
|
|
49
|
+
values.push([start, valueEnd]);
|
|
50
|
+
}
|
|
51
|
+
return values;
|
|
52
|
+
}
|
|
1
53
|
/** Retain only enough URL context to redact a token split across output chunks. */
|
|
2
54
|
export class ObserverQueryRedaction {
|
|
3
55
|
contexts = new Map();
|
|
@@ -25,19 +77,7 @@ export class ObserverQueryRedaction {
|
|
|
25
77
|
ranges.push([0, end]);
|
|
26
78
|
continuation = delimiter < 0;
|
|
27
79
|
}
|
|
28
|
-
for (const
|
|
29
|
-
let name;
|
|
30
|
-
try {
|
|
31
|
-
name = decodeURIComponent(match[2]);
|
|
32
|
-
}
|
|
33
|
-
catch {
|
|
34
|
-
continue;
|
|
35
|
-
}
|
|
36
|
-
if (!/^(?:ztc_mirror_token|token)$/i.test(name))
|
|
37
|
-
continue;
|
|
38
|
-
const start = match.index + match[1].length;
|
|
39
|
-
const delimiter = combined.slice(start).search(/[&\s"'<>]/);
|
|
40
|
-
const end = delimiter < 0 ? combined.length : start + delimiter;
|
|
80
|
+
for (const [start, end] of tokenValues(combined)) {
|
|
41
81
|
if (end > Math.max(offset, start))
|
|
42
82
|
ranges.push([Math.max(0, start - offset), end - offset]);
|
|
43
83
|
if (end === combined.length)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Withholds credentials from what a read-only observation link is sent, by what they are rather than where they sit
|
|
3
|
+
* (review VS-2): the live value of each of ZTC's credential variables and each credential its profile holds (the keys
|
|
4
|
+
* it saved or a variable it names holds, its logins), mirror tokens wherever they appear, and the credential that
|
|
5
|
+
* follows `Authorization: Bearer`. Only the observer projection (MirrorStreamServer.observerEvent)
|
|
6
|
+
* applies it; the owner and controllers see output as it is.
|
|
7
|
+
*
|
|
8
|
+
* Streamed text arrives in pieces that can split a credential, so a stream keeps the end of what it has shown, as
|
|
9
|
+
* ObserverQueryRedaction does: a credential a later piece completes is withheld in that piece, and a piece that ends
|
|
10
|
+
* with what may be the start of one withholds that end. When it cannot tell, it withholds.
|
|
11
|
+
*/
|
|
12
|
+
/** A value shorter than this is too likely to occur in ordinary output to be withheld wherever it appears. */
|
|
13
|
+
export declare const OBSERVER_SECRET_MIN_LENGTH = 12;
|
|
14
|
+
/**
|
|
15
|
+
* The variables whose values an observer is never shown: ZTC's own credentials, as every user subprocess loses them
|
|
16
|
+
* (ZTC_CREDENTIAL_ENV, the host's Router runtime grant among them), so a credential added there is withheld here too;
|
|
17
|
+
* ZERG_API_TOKEN, which holds a resident's Router grant; and every model-route credential.
|
|
18
|
+
*/
|
|
19
|
+
export declare const OBSERVER_SECRET_ENV: readonly string[];
|
|
20
|
+
/**
|
|
21
|
+
* The values to withhold now, each of OBSERVER_SECRET_MIN_LENGTH characters or more: what each of OBSERVER_SECRET_ENV
|
|
22
|
+
* holds, and each of the variables the host has reserved for credentials since (userSubprocessCredentialEnv: a remote
|
|
23
|
+
* resource's broker token, the key a profile names), read through the host-credential store, which took ZTC's own and
|
|
24
|
+
* every copy of one under another name out of process.env at startup or minted them there (config/host_credentials.ts
|
|
25
|
+
* liveCredentialValues: every value it holds, named or not), so the process.env it emptied can't switch this off; and
|
|
26
|
+
* HELD, every credential ZTC's profile holds (ConfigStore.listHeldCredentials: what a variable it names holds, the keys
|
|
27
|
+
* it saved, its logins), whether or not a headless run reserved them, so the desktop withholds the keys it infers with
|
|
28
|
+
* too.
|
|
29
|
+
*/
|
|
30
|
+
export declare function liveObserverSecrets(env?: NodeJS.ProcessEnv, held?: readonly string[]): string[];
|
|
31
|
+
/**
|
|
32
|
+
* TEXT (a message, a tool call's argument, a title) with each credential it shows withheld. Text that says with a mark
|
|
33
|
+
* where it was cut short (CUT_MARKS), at its end or within it, was cut wherever its limit fell, perhaps through a
|
|
34
|
+
* credential: what may be the start of one just before each mark is withheld too.
|
|
35
|
+
*/
|
|
36
|
+
export declare function redactObserverSecrets(text: string, secrets: readonly string[]): string;
|
|
37
|
+
/**
|
|
38
|
+
* TEXT, which may have been cut short anywhere without saying so (a tool's result past its cap, a running command's
|
|
39
|
+
* latest line), with each credential it shows withheld and what may be the start of one at its end. When it cannot
|
|
40
|
+
* tell, it withholds.
|
|
41
|
+
*/
|
|
42
|
+
export declare function redactCutObserverSecrets(text: string, secrets: readonly string[]): string;
|
|
43
|
+
/** The pieces of each stream (a pane's output, a turn's streamed text), each with the credentials it shows withheld. */
|
|
44
|
+
export declare class ObserverSecretRedaction {
|
|
45
|
+
private contexts;
|
|
46
|
+
reset(key: string): void;
|
|
47
|
+
/**
|
|
48
|
+
* FRAGMENT, the stream KEY's next piece (its first when RESET), with each credential among SECRETS (its live
|
|
49
|
+
* values, liveObserverSecrets), each mirror token and each Bearer credential it shows withheld: whole, the rest of
|
|
50
|
+
* one an earlier piece began, or the start of one it ends with.
|
|
51
|
+
*
|
|
52
|
+
* A TERMINAL's output is also read as the terminal shows it, without its escape sequences, which colour a match
|
|
53
|
+
* inside a value (grep --color, rg) or a word a shell highlights, so a credential they split is found too. What is
|
|
54
|
+
* withheld then runs from the credential's first character to its last, the escape sequences inside it too. A
|
|
55
|
+
* terminal's piece that RESETs it is a whole frame (zmux's viewport, whose rows a long line wraps across), also read
|
|
56
|
+
* with its row breaks taken out (frameRanges): each part of a credential they split is withheld on its row.
|
|
57
|
+
*/
|
|
58
|
+
redact(key: string, fragment: string, secrets: readonly string[], reset?: boolean, terminal?: boolean): string;
|
|
59
|
+
}
|