opensip-cli 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap/admit-tool-package.d.ts +15 -1
- package/dist/bootstrap/admit-tool-package.d.ts.map +1 -1
- package/dist/bootstrap/admit-tool-package.js +30 -5
- package/dist/bootstrap/admit-tool-package.js.map +1 -1
- package/dist/bootstrap/bind-tool-context.d.ts.map +1 -1
- package/dist/bootstrap/bind-tool-context.js +5 -3
- package/dist/bootstrap/bind-tool-context.js.map +1 -1
- package/dist/bootstrap/build-command-registration-input.d.ts +7 -0
- package/dist/bootstrap/build-command-registration-input.d.ts.map +1 -1
- package/dist/bootstrap/build-command-registration-input.js +11 -4
- package/dist/bootstrap/build-command-registration-input.js.map +1 -1
- package/dist/bootstrap/build-per-run-scope.d.ts +12 -0
- package/dist/bootstrap/build-per-run-scope.d.ts.map +1 -1
- package/dist/bootstrap/build-per-run-scope.js +84 -9
- package/dist/bootstrap/build-per-run-scope.js.map +1 -1
- package/dist/bootstrap/bundled-manifest.d.ts +5 -0
- package/dist/bootstrap/bundled-manifest.d.ts.map +1 -0
- package/dist/bootstrap/bundled-manifest.js +13 -0
- package/dist/bootstrap/bundled-manifest.js.map +1 -0
- package/dist/bootstrap/bundled-tools.manifest.json +19 -1
- package/dist/bootstrap/config-and-capabilities.d.ts +5 -3
- package/dist/bootstrap/config-and-capabilities.d.ts.map +1 -1
- package/dist/bootstrap/config-and-capabilities.js +10 -7
- package/dist/bootstrap/config-and-capabilities.js.map +1 -1
- package/dist/bootstrap/constants.d.ts +3 -0
- package/dist/bootstrap/constants.d.ts.map +1 -0
- package/dist/bootstrap/constants.js +3 -0
- package/dist/bootstrap/constants.js.map +1 -0
- package/dist/bootstrap/decorate-tool-primary.d.ts +50 -0
- package/dist/bootstrap/decorate-tool-primary.d.ts.map +1 -0
- package/dist/bootstrap/decorate-tool-primary.js +111 -0
- package/dist/bootstrap/decorate-tool-primary.js.map +1 -0
- package/dist/bootstrap/execute-post-bailout-bootstrap.d.ts +1 -0
- package/dist/bootstrap/execute-post-bailout-bootstrap.d.ts.map +1 -1
- package/dist/bootstrap/execute-post-bailout-bootstrap.js +12 -1
- package/dist/bootstrap/execute-post-bailout-bootstrap.js.map +1 -1
- package/dist/bootstrap/index.d.ts +1 -1
- package/dist/bootstrap/index.d.ts.map +1 -1
- package/dist/bootstrap/index.js +1 -4
- package/dist/bootstrap/index.js.map +1 -1
- package/dist/bootstrap/io-plane.d.ts +47 -0
- package/dist/bootstrap/io-plane.d.ts.map +1 -0
- package/dist/bootstrap/io-plane.js +73 -0
- package/dist/bootstrap/io-plane.js.map +1 -0
- package/dist/bootstrap/load-tool-capabilities.d.ts.map +1 -1
- package/dist/bootstrap/load-tool-capabilities.js +18 -2
- package/dist/bootstrap/load-tool-capabilities.js.map +1 -1
- package/dist/bootstrap/owning-tool-init.d.ts.map +1 -1
- package/dist/bootstrap/owning-tool-init.js +7 -4
- package/dist/bootstrap/owning-tool-init.js.map +1 -1
- package/dist/bootstrap/phase-map.d.ts +20 -0
- package/dist/bootstrap/phase-map.d.ts.map +1 -0
- package/dist/bootstrap/phase-map.js +108 -0
- package/dist/bootstrap/phase-map.js.map +1 -0
- package/dist/bootstrap/plan-pre-action-bootstrap.d.ts +5 -5
- package/dist/bootstrap/plan-pre-action-bootstrap.d.ts.map +1 -1
- package/dist/bootstrap/plan-pre-action-bootstrap.js +3 -19
- package/dist/bootstrap/plan-pre-action-bootstrap.js.map +1 -1
- package/dist/bootstrap/pre-action-guards.d.ts +2 -1
- package/dist/bootstrap/pre-action-guards.d.ts.map +1 -1
- package/dist/bootstrap/pre-action-guards.js +3 -27
- package/dist/bootstrap/pre-action-guards.js.map +1 -1
- package/dist/bootstrap/pre-action-hook.d.ts +2 -1
- package/dist/bootstrap/pre-action-hook.d.ts.map +1 -1
- package/dist/bootstrap/pre-action-hook.js +23 -4
- package/dist/bootstrap/pre-action-hook.js.map +1 -1
- package/dist/bootstrap/register-tools-discovery.d.ts +38 -39
- package/dist/bootstrap/register-tools-discovery.d.ts.map +1 -1
- package/dist/bootstrap/register-tools-discovery.js +134 -85
- package/dist/bootstrap/register-tools-discovery.js.map +1 -1
- package/dist/bootstrap/register-tools-mount.d.ts +18 -1
- package/dist/bootstrap/register-tools-mount.d.ts.map +1 -1
- package/dist/bootstrap/register-tools-mount.js +118 -18
- package/dist/bootstrap/register-tools-mount.js.map +1 -1
- package/dist/bootstrap/register-tools.d.ts +58 -14
- package/dist/bootstrap/register-tools.d.ts.map +1 -1
- package/dist/bootstrap/register-tools.js +185 -14
- package/dist/bootstrap/register-tools.js.map +1 -1
- package/dist/bootstrap/root-version.d.ts +26 -0
- package/dist/bootstrap/root-version.d.ts.map +1 -0
- package/dist/bootstrap/root-version.js +36 -0
- package/dist/bootstrap/root-version.js.map +1 -0
- package/dist/bootstrap/scope-access.d.ts +11 -0
- package/dist/bootstrap/scope-access.d.ts.map +1 -1
- package/dist/bootstrap/scope-access.js +26 -0
- package/dist/bootstrap/scope-access.js.map +1 -1
- package/dist/bootstrap/tool-lifecycle.d.ts +0 -22
- package/dist/bootstrap/tool-lifecycle.d.ts.map +1 -1
- package/dist/bootstrap/tool-lifecycle.js +0 -23
- package/dist/bootstrap/tool-lifecycle.js.map +1 -1
- package/dist/bootstrap/validate-tool.d.ts +10 -4
- package/dist/bootstrap/validate-tool.d.ts.map +1 -1
- package/dist/bootstrap/validate-tool.js +76 -22
- package/dist/bootstrap/validate-tool.js.map +1 -1
- package/dist/cli-context.d.ts +2 -2
- package/dist/cli-context.d.ts.map +1 -1
- package/dist/cli-context.js +20 -35
- package/dist/cli-context.js.map +1 -1
- package/dist/commands/agent-catalog.d.ts +29 -0
- package/dist/commands/agent-catalog.d.ts.map +1 -1
- package/dist/commands/agent-catalog.js +77 -36
- package/dist/commands/agent-catalog.js.map +1 -1
- package/dist/commands/clear.d.ts.map +1 -1
- package/dist/commands/clear.js +0 -1
- package/dist/commands/clear.js.map +1 -1
- package/dist/commands/command-scope-index.d.ts +45 -0
- package/dist/commands/command-scope-index.d.ts.map +1 -0
- package/dist/commands/command-scope-index.js +51 -0
- package/dist/commands/command-scope-index.js.map +1 -0
- package/dist/commands/completion.d.ts +67 -6
- package/dist/commands/completion.d.ts.map +1 -1
- package/dist/commands/completion.js +84 -12
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/configure.d.ts.map +1 -1
- package/dist/commands/configure.js +0 -1
- package/dist/commands/configure.js.map +1 -1
- package/dist/commands/host-command-specs.d.ts +16 -9
- package/dist/commands/host-command-specs.d.ts.map +1 -1
- package/dist/commands/host-command-specs.js +47 -21
- package/dist/commands/host-command-specs.js.map +1 -1
- package/dist/commands/host-config-flag.d.ts +21 -0
- package/dist/commands/host-config-flag.d.ts.map +1 -0
- package/dist/commands/host-config-flag.js +21 -0
- package/dist/commands/host-config-flag.js.map +1 -0
- package/dist/commands/host-subcommand-groups.d.ts +46 -5
- package/dist/commands/host-subcommand-groups.d.ts.map +1 -1
- package/dist/commands/host-subcommand-groups.js +97 -65
- package/dist/commands/host-subcommand-groups.js.map +1 -1
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/index.js +1 -1
- package/dist/commands/internal-command-visibility.d.ts +42 -0
- package/dist/commands/internal-command-visibility.d.ts.map +1 -0
- package/dist/commands/internal-command-visibility.js +54 -0
- package/dist/commands/internal-command-visibility.js.map +1 -0
- package/dist/commands/mount-command-action.d.ts +24 -0
- package/dist/commands/mount-command-action.d.ts.map +1 -0
- package/dist/commands/mount-command-action.js +78 -0
- package/dist/commands/mount-command-action.js.map +1 -0
- package/dist/commands/mount-command-spec-wiring.d.ts +24 -0
- package/dist/commands/mount-command-spec-wiring.d.ts.map +1 -0
- package/dist/commands/mount-command-spec-wiring.js +71 -0
- package/dist/commands/mount-command-spec-wiring.js.map +1 -0
- package/dist/commands/mount-command-spec.d.ts +9 -2
- package/dist/commands/mount-command-spec.d.ts.map +1 -1
- package/dist/commands/mount-command-spec.js +11 -135
- package/dist/commands/mount-command-spec.js.map +1 -1
- package/dist/commands/plugin/domain-resolution.d.ts +12 -13
- package/dist/commands/plugin/domain-resolution.d.ts.map +1 -1
- package/dist/commands/plugin/domain-resolution.js +12 -58
- package/dist/commands/plugin/domain-resolution.js.map +1 -1
- package/dist/commands/plugin/host-dir.d.ts +0 -1
- package/dist/commands/plugin/host-dir.d.ts.map +1 -1
- package/dist/commands/plugin/host-dir.js +1 -1
- package/dist/commands/plugin/host-dir.js.map +1 -1
- package/dist/commands/plugin.d.ts +20 -14
- package/dist/commands/plugin.d.ts.map +1 -1
- package/dist/commands/plugin.js +39 -47
- package/dist/commands/plugin.js.map +1 -1
- package/dist/commands/render-outcome.d.ts.map +1 -1
- package/dist/commands/render-outcome.js.map +1 -1
- package/dist/commands/shared.d.ts +9 -0
- package/dist/commands/shared.d.ts.map +1 -1
- package/dist/commands/tools/create.d.ts +11 -0
- package/dist/commands/tools/create.d.ts.map +1 -0
- package/dist/commands/tools/create.js +84 -0
- package/dist/commands/tools/create.js.map +1 -0
- package/dist/commands/tools/index.d.ts.map +1 -1
- package/dist/commands/tools/index.js +31 -0
- package/dist/commands/tools/index.js.map +1 -1
- package/dist/commands/tools/runtime-probe-entry.d.ts.map +1 -1
- package/dist/commands/tools/runtime-probe-entry.js +4 -2
- package/dist/commands/tools/runtime-probe-entry.js.map +1 -1
- package/dist/commands/tools/validate.d.ts.map +1 -1
- package/dist/commands/tools/validate.js +12 -5
- package/dist/commands/tools/validate.js.map +1 -1
- package/dist/commands/uninstall.d.ts.map +1 -1
- package/dist/commands/uninstall.js +0 -1
- package/dist/commands/uninstall.js.map +1 -1
- package/dist/env/host-env-specs.d.ts +18 -0
- package/dist/env/host-env-specs.d.ts.map +1 -1
- package/dist/env/host-env-specs.js +36 -2
- package/dist/env/host-env-specs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -21
- package/dist/index.js.map +1 -1
- package/dist/report-compose.d.ts.map +1 -1
- package/dist/report-compose.js +2 -2
- package/dist/report-compose.js.map +1 -1
- package/dist/session-replay-registry.d.ts +1 -1
- package/dist/session-replay-registry.d.ts.map +1 -1
- package/dist/session-replay-registry.js +3 -1
- package/dist/session-replay-registry.js.map +1 -1
- package/dist/ui/result-to-view.d.ts +27 -7
- package/dist/ui/result-to-view.d.ts.map +1 -1
- package/dist/ui/result-to-view.js +68 -75
- package/dist/ui/result-to-view.js.map +1 -1
- package/dist/ui/views/misc-views.d.ts.map +1 -1
- package/dist/ui/views/misc-views.js +3 -1
- package/dist/ui/views/misc-views.js.map +1 -1
- package/dist/ui/views/tools-views.d.ts +2 -1
- package/dist/ui/views/tools-views.d.ts.map +1 -1
- package/dist/ui/views/tools-views.js +21 -0
- package/dist/ui/views/tools-views.js.map +1 -1
- package/package.json +32 -32
- package/dist/bootstrap/authored-tool-admission.d.ts +0 -23
- package/dist/bootstrap/authored-tool-admission.d.ts.map +0 -1
- package/dist/bootstrap/authored-tool-admission.js +0 -54
- package/dist/bootstrap/authored-tool-admission.js.map +0 -1
- package/dist/bootstrap/egress-plane.d.ts +0 -22
- package/dist/bootstrap/egress-plane.d.ts.map +0 -1
- package/dist/bootstrap/egress-plane.js +0 -37
- package/dist/bootstrap/egress-plane.js.map +0 -1
- package/dist/bootstrap/installed-tool-admission.d.ts +0 -20
- package/dist/bootstrap/installed-tool-admission.d.ts.map +0 -1
- package/dist/bootstrap/installed-tool-admission.js +0 -60
- package/dist/bootstrap/installed-tool-admission.js.map +0 -1
- package/dist/bootstrap/live-plane.d.ts +0 -51
- package/dist/bootstrap/live-plane.d.ts.map +0 -1
- package/dist/bootstrap/live-plane.js +0 -72
- package/dist/bootstrap/live-plane.js.map +0 -1
- package/dist/bootstrap/register-tools-bundled.d.ts +0 -28
- package/dist/bootstrap/register-tools-bundled.d.ts.map +0 -1
- package/dist/bootstrap/register-tools-bundled.js +0 -107
- package/dist/bootstrap/register-tools-bundled.js.map +0 -1
- package/dist/bootstrap/register-tools-shared.d.ts +0 -40
- package/dist/bootstrap/register-tools-shared.d.ts.map +0 -1
- package/dist/bootstrap/register-tools-shared.js +0 -98
- package/dist/bootstrap/register-tools-shared.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../src/commands/uninstall.ts"],"names":[],"mappings":"AAAA,sVAAsV;AACtV
|
|
1
|
+
{"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../src/commands/uninstall.ts"],"names":[],"mappings":"AAAA,sVAAsV;AACtV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,GAGrB,MAAM,wBAAwB,CAAC;AAsChC,MAAM,iBAAiB,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,CAAC,CAAC;AAE1D,KAAK,UAAU,OAAO,CACpB,MAA6C,EAC7C,OAAe;IAEf,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC;IAClC,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACxC,OAAO,MAAM,KAAK,GAAG,IAAI,MAAM,KAAK,KAAK,CAAC;AAC5C,CAAC;AAED,SAAS,aAAa,CAAC,QAAgB;IACrC,MAAM,EAAE,GAAG,eAAe,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE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AK,CAAC,aAAa,CAAC,EAAE,CAAC;QACpC,IAAI,CAAC;YACH,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAChE,CAAC;QAAC,MAAM,CAAC;YACP,YAAY;QACd,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -21,6 +21,24 @@
|
|
|
21
21
|
*/
|
|
22
22
|
import { EnvRegistry, type EnvVarSpec } from '@opensip-cli/core';
|
|
23
23
|
/** CLI-layer infra variables: OpenTelemetry + the update-notifier opt-outs. */
|
|
24
|
+
export declare const CLI_INFRA_ENV_SPECS: readonly EnvVarSpec<unknown>[];
|
|
25
|
+
/**
|
|
26
|
+
* The full CLI env surface = infra vars + the ten subprocess-correlation vars.
|
|
27
|
+
*
|
|
28
|
+
* The canonical names + docs for the ten `OPENSIP_*` correlation vars
|
|
29
|
+
* (`OPENSIP_RUN_ID`, `OPENSIP_TOOL`, `OPENSIP_PARENT_COMMAND`, `OPENSIP_TRACE_ID`,
|
|
30
|
+
* `OPENSIP_SHARD_ID`, `OPENSIP_WORKER_KIND`, `OPENSIP_REPO`, `OPENSIP_REPO_ID`,
|
|
31
|
+
* `OPENSIP_TENANT_ID`, `OPENSIP_CHILD_INVOCATION_ID`) are OWNED by
|
|
32
|
+
* `@opensip-cli/core`'s `run-correlation.ts` (`CORRELATION_ENV_SPECS`) — the single
|
|
33
|
+
* source of truth that `correlationFromEnv()` also reads through. The host SURFACES
|
|
34
|
+
* them here (for the env-surface reference doc + governance) by SPREADING the core
|
|
35
|
+
* table; it never re-declares them. The `...CORRELATION_ENV_SPECS` spread — not this
|
|
36
|
+
* comment — is what keeps the codec and the governed env surface in lockstep.
|
|
37
|
+
*
|
|
38
|
+
* `OPENSIP_API_KEY` is deliberately NOT part of this set — it lives in
|
|
39
|
+
* `CONFIG_ENV_SPECS` (`global-config.ts`) and must never be conflated with
|
|
40
|
+
* correlation.
|
|
41
|
+
*/
|
|
24
42
|
export declare const CLI_ENV_SPECS: readonly EnvVarSpec<unknown>[];
|
|
25
43
|
/** The composed CLI-layer registry. Telemetry + update-notifier read through it. */
|
|
26
44
|
export declare const hostEnv: EnvRegistry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-env-specs.d.ts","sourceRoot":"","sources":["../../src/env/host-env-specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"host-env-specs.d.ts","sourceRoot":"","sources":["../../src/env/host-env-specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,EAAyB,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAExF,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB,EAAE,SAAS,UAAU,CAAC,OAAO,CAAC,EAsE7D,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,UAAU,CAAC,OAAO,CAAC,EAGvD,CAAC;AAEF,oFAAoF;AAEpF,eAAO,MAAM,OAAO,aAAiC,CAAC;AAEtD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,UAAU,CAAC,OAAO,CAAC,EAKhE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,UAAU,CAAC,OAAO,CAAC,EAoB7D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,eAAe,IAAI,SAAS,UAAU,CAAC,OAAO,CAAC,EAAE,CAEhE"}
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
* `env-via-registry` guardrail.
|
|
21
21
|
*/
|
|
22
22
|
import { CONFIG_ENV_SPECS } from '@opensip-cli/config';
|
|
23
|
-
import { EnvRegistry } from '@opensip-cli/core';
|
|
23
|
+
import { CORRELATION_ENV_SPECS, EnvRegistry } from '@opensip-cli/core';
|
|
24
24
|
/** CLI-layer infra variables: OpenTelemetry + the update-notifier opt-outs. */
|
|
25
|
-
export const
|
|
25
|
+
export const CLI_INFRA_ENV_SPECS = [
|
|
26
26
|
{
|
|
27
27
|
canonical: 'OTEL_EXPORTER_OTLP_ENDPOINT',
|
|
28
28
|
docs: 'OTLP/HTTP endpoint. When set, the CLI enables OpenTelemetry tracing; unset is a hard no-op.',
|
|
@@ -47,6 +47,19 @@ export const CLI_ENV_SPECS = [
|
|
|
47
47
|
default: false,
|
|
48
48
|
docs: 'npm-convention update-notifier opt-out; honoured as an equivalent of OPENSIP_NO_UPDATE.',
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
canonical: 'OPENSIP_CLI_SHOW_INTERNAL',
|
|
52
|
+
// Strict `=1` gate (tool-command-surface-taxonomy Tier-3 reveal): only the
|
|
53
|
+
// exact value `'1'` reveals internal commands. The coerce returns a boolean
|
|
54
|
+
// so `hostEnv.get<boolean>('OPENSIP_CLI_SHOW_INTERNAL')` is the single
|
|
55
|
+
// predicate help + completion share (see showInternalCommands).
|
|
56
|
+
coerce: (raw) => raw === '1',
|
|
57
|
+
default: false,
|
|
58
|
+
docs: 'Set to 1 to reveal Tier-3 internal commands (*-run-worker, *-shard-worker, ' +
|
|
59
|
+
'graph-equivalence-check) in `--help` and shell completion. They stay directly ' +
|
|
60
|
+
'invocable regardless of this flag; it only un-hides them from the public surface. ' +
|
|
61
|
+
'The agent-catalog (a curated machine surface) is intentionally NOT affected.',
|
|
62
|
+
},
|
|
50
63
|
{
|
|
51
64
|
canonical: 'OPENSIP_CLI_SKIP_BUNDLED',
|
|
52
65
|
coerce: (raw) => raw
|
|
@@ -75,6 +88,27 @@ export const CLI_ENV_SPECS = [
|
|
|
75
88
|
'(~/.opensip-cli/tools/) are trusted-by-default and ignore this list.',
|
|
76
89
|
},
|
|
77
90
|
];
|
|
91
|
+
/**
|
|
92
|
+
* The full CLI env surface = infra vars + the ten subprocess-correlation vars.
|
|
93
|
+
*
|
|
94
|
+
* The canonical names + docs for the ten `OPENSIP_*` correlation vars
|
|
95
|
+
* (`OPENSIP_RUN_ID`, `OPENSIP_TOOL`, `OPENSIP_PARENT_COMMAND`, `OPENSIP_TRACE_ID`,
|
|
96
|
+
* `OPENSIP_SHARD_ID`, `OPENSIP_WORKER_KIND`, `OPENSIP_REPO`, `OPENSIP_REPO_ID`,
|
|
97
|
+
* `OPENSIP_TENANT_ID`, `OPENSIP_CHILD_INVOCATION_ID`) are OWNED by
|
|
98
|
+
* `@opensip-cli/core`'s `run-correlation.ts` (`CORRELATION_ENV_SPECS`) — the single
|
|
99
|
+
* source of truth that `correlationFromEnv()` also reads through. The host SURFACES
|
|
100
|
+
* them here (for the env-surface reference doc + governance) by SPREADING the core
|
|
101
|
+
* table; it never re-declares them. The `...CORRELATION_ENV_SPECS` spread — not this
|
|
102
|
+
* comment — is what keeps the codec and the governed env surface in lockstep.
|
|
103
|
+
*
|
|
104
|
+
* `OPENSIP_API_KEY` is deliberately NOT part of this set — it lives in
|
|
105
|
+
* `CONFIG_ENV_SPECS` (`global-config.ts`) and must never be conflated with
|
|
106
|
+
* correlation.
|
|
107
|
+
*/
|
|
108
|
+
export const CLI_ENV_SPECS = [
|
|
109
|
+
...CLI_INFRA_ENV_SPECS,
|
|
110
|
+
...CORRELATION_ENV_SPECS,
|
|
111
|
+
];
|
|
78
112
|
/** The composed CLI-layer registry. Telemetry + update-notifier read through it. */
|
|
79
113
|
// @allow-module-singleton EnvRegistry is IMMUTABLE — a constant spec table + on-demand process.env reads; it holds no per-run mutable state, so it is not the scope-isolation hazard no-module-singleton targets (spec §5.12 resolved decision: the env definition table is a permitted module constant).
|
|
80
114
|
export const hostEnv = new EnvRegistry(CLI_ENV_SPECS);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-env-specs.js","sourceRoot":"","sources":["../../src/env/host-env-specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;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8E;KACrF;IACD,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,uDAAuD,EAAE;IAC3F,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,mDAAmD,EAAE;IACrF,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,8CAA8C,EAAE;IAC3E;QACE,SAAS,EAAE,cAAc;QACzB,IAAI,EAAE,kEAAkE;KACzE;IACD;QACE,SAAS,EAAE,cAAc;QACzB,IAAI,EAAE,uFAAuF;KAC9F;IACD;QACE,SAAS,EAAE,uBAAuB;QAClC,IAAI,EAAE,2GAA2G;KAClH;CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO,CAAC,GAAG,gBAAgB,EAAE,GAAG,sBAAsB,EAAE,GAAG,aAAa,EAAE,GAAG,mBAAmB,CAAC,CAAC;AACpG,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* The canonical ordered description of the full tool + host lifecycle lives in
|
|
6
6
|
* `bootstrap/tool-lifecycle.ts` (the 10 named steps, two phases: STARTUP in
|
|
7
|
-
* bootstrapCli +
|
|
7
|
+
* bootstrapCli + mountAllToolCommands, PER-RUN in the preAction hook + builders).
|
|
8
8
|
* This file wires the major seams (fresh registries per invocation, bootstrap,
|
|
9
9
|
* pre-action hook install, ToolCliContext construction, command mounting,
|
|
10
10
|
* host command registration, telemetry, top-level error paths) and then
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAGA;;;;;;;;;;;;;;;;;GAiBG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAGA;;;;;;;;;;;;;;;;;GAiBG;AAmCH,cAAc,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* The canonical ordered description of the full tool + host lifecycle lives in
|
|
7
7
|
* `bootstrap/tool-lifecycle.ts` (the 10 named steps, two phases: STARTUP in
|
|
8
|
-
* bootstrapCli +
|
|
8
|
+
* bootstrapCli + mountAllToolCommands, PER-RUN in the preAction hook + builders).
|
|
9
9
|
* This file wires the major seams (fresh registries per invocation, bootstrap,
|
|
10
10
|
* pre-action hook install, ToolCliContext construction, command mounting,
|
|
11
11
|
* host command registration, telemetry, top-level error paths) and then
|
|
@@ -22,8 +22,11 @@ import { dirname } from 'node:path';
|
|
|
22
22
|
import { fileURLToPath } from 'node:url';
|
|
23
23
|
import { LanguageRegistry, ToolRegistry, logger, readPackageVersion, getMeter, } from '@opensip-cli/core';
|
|
24
24
|
import { Command } from 'commander';
|
|
25
|
-
import { bootstrapCli, installPreActionHook, maybeOpenReport,
|
|
25
|
+
import { bootstrapCli, installPreActionHook, isRootVersionRequest, maybeOpenReport, mountAllToolCommands, renderResult, buildCommandRegistrationInput, } from './bootstrap/index.js';
|
|
26
26
|
import { buildToolCliContext, createLiveViewRegistry, getOrOpenDatastore } from './cli-context.js';
|
|
27
|
+
import { buildCommandScopeIndex } from './commands/command-scope-index.js';
|
|
28
|
+
import { buildTopLevelHostSpecs } from './commands/host-command-specs.js';
|
|
29
|
+
import { buildHostSubcommandGroups, buildToolPluginGroups, } from './commands/host-subcommand-groups.js';
|
|
27
30
|
import { registerCliCommands } from './commands/index.js';
|
|
28
31
|
import { handleFatalBootstrapError, handleParseError } from './error-handler.js';
|
|
29
32
|
import { runWithTelemetryContext, shutdownTelemetry } from './telemetry/sdk-init.js';
|
|
@@ -35,7 +38,14 @@ const program = new Command('opensip')
|
|
|
35
38
|
// ADR-0008: per-run opt-out of OpenSIP Cloud signal sync. `--no-cloud` sets
|
|
36
39
|
// `cloud` to false; the pre-action hook reads it via optsWithGlobals().
|
|
37
40
|
.option('--no-cloud', 'Disable OpenSIP Cloud signal sync for this run')
|
|
38
|
-
|
|
41
|
+
// NOTE: the root program does NOT register a Commander `.version()` option.
|
|
42
|
+
// A Commander version option on the root is a GLOBAL option that intercepts
|
|
43
|
+
// `--version` even after a known subcommand, so `opensip fit --version` would
|
|
44
|
+
// print the CLI version instead of the tool's. The per-tool `--version`
|
|
45
|
+
// (decorateToolPrimary) is a subcommand-local Commander version option, and
|
|
46
|
+
// the bare `opensip --version` (CLI version) is handled by the host argv
|
|
47
|
+
// pre-scan (`isRootVersionRequest`) below — before Commander parses — so the
|
|
48
|
+
// two never collide. See decorate-tool-primary.ts and the version phase spec.
|
|
39
49
|
// Route Commander's own parse failures through `parseAsync().catch` →
|
|
40
50
|
// `handleParseError` instead of letting Commander call `process.exit(N)`
|
|
41
51
|
// directly. This restores the project's typed-error → exit-code contract for
|
|
@@ -49,6 +59,13 @@ const program = new Command('opensip')
|
|
|
49
59
|
// handler renders nothing extra for a CommanderError (no duplicate output).
|
|
50
60
|
.exitOverride();
|
|
51
61
|
async function main() {
|
|
62
|
+
// Bare `opensip --version` / `-V` → the CLI version (host-owned), printed
|
|
63
|
+
// before any bootstrap. A `--version` AFTER a subcommand is that tool's own
|
|
64
|
+
// (handled by decorateToolPrimary's subcommand-local version option).
|
|
65
|
+
if (isRootVersionRequest(process.argv.slice(2))) {
|
|
66
|
+
process.stdout.write(`${cliVersion}\n`);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
52
69
|
// Fresh registries per CLI invocation. Tools read these via
|
|
53
70
|
// `cli.scope.languages` / `cli.scope.tools`; bootstrap populates them here.
|
|
54
71
|
const langRegistry = new LanguageRegistry();
|
|
@@ -63,33 +80,17 @@ async function main() {
|
|
|
63
80
|
cwd: process.cwd(),
|
|
64
81
|
cliEntryUrl: import.meta.url,
|
|
65
82
|
});
|
|
66
|
-
// Install the pre-action hook AFTER bootstrap so the populated registries +
|
|
67
|
-
// admitted-tool manifests/provenance are captured directly in the hook
|
|
68
|
-
// closure — no module-global handoff bag. The hook builds + enters the
|
|
69
|
-
// per-run RunScope (stamping manifests/provenance onto it); from there every
|
|
70
|
-
// per-run read goes through `currentScope()`.
|
|
71
|
-
installPreActionHook(program, cliVersion, {
|
|
72
|
-
languages: langRegistry,
|
|
73
|
-
tools: toolRegistry,
|
|
74
|
-
manifests,
|
|
75
|
-
provenance,
|
|
76
|
-
});
|
|
77
83
|
const { ctx } = buildToolCliContext({
|
|
78
84
|
render: renderResult,
|
|
79
85
|
liveViews: createLiveViewRegistry(logger),
|
|
80
86
|
maybeOpenReport,
|
|
81
87
|
logger,
|
|
82
88
|
});
|
|
83
|
-
// Step 8 of the tool lifecycle (§5.4): mount each registered tool's commands
|
|
84
|
-
// through the named sequencer seam. The host owns `program` and passes it in
|
|
85
|
-
// (launch — the tool context no longer carries a raw-Commander handle, §8); the
|
|
86
|
-
// one command surface is each tool's declarative commandSpecs.
|
|
87
|
-
mountToolCommands(toolRegistry, program, ctx);
|
|
88
89
|
// Extracted into a thin dedicated builder (roadmap item 2) to keep the
|
|
89
90
|
// top-level composition root focused on sequencing. The builder returns the
|
|
90
91
|
// exact shape consumed by `registerCliCommands`.
|
|
91
92
|
const registrationInput = buildCommandRegistrationInput(toolRegistry);
|
|
92
|
-
|
|
93
|
+
const commandCtx = {
|
|
93
94
|
setExitCode: ctx.setExitCode,
|
|
94
95
|
render: renderResult,
|
|
95
96
|
emitJson: ctx.emitJson,
|
|
@@ -97,7 +98,28 @@ async function main() {
|
|
|
97
98
|
emitError: ctx.emitError,
|
|
98
99
|
datastore: () => getOrOpenDatastore(logger),
|
|
99
100
|
...registrationInput,
|
|
101
|
+
};
|
|
102
|
+
const commandScopes = buildCommandScopeIndex({
|
|
103
|
+
toolSpecs: registrationInput.toolCommandSpecs,
|
|
104
|
+
hostSpecs: buildTopLevelHostSpecs(commandCtx),
|
|
105
|
+
hostGroups: buildHostSubcommandGroups(commandCtx),
|
|
106
|
+
toolPluginGroups: buildToolPluginGroups(commandCtx),
|
|
100
107
|
});
|
|
108
|
+
// Install the pre-action hook AFTER bootstrap + command-scope indexing so the
|
|
109
|
+
// populated registries, admitted-tool manifests/provenance, and live
|
|
110
|
+
// CommandSpec.scope declarations are captured directly in the hook closure.
|
|
111
|
+
installPreActionHook(program, cliVersion, {
|
|
112
|
+
languages: langRegistry,
|
|
113
|
+
tools: toolRegistry,
|
|
114
|
+
manifests,
|
|
115
|
+
provenance,
|
|
116
|
+
}, commandScopes);
|
|
117
|
+
// Step 8 of the tool lifecycle (§5.4): mount each registered tool's commands
|
|
118
|
+
// through the named sequencer seam. The host owns `program` and passes it in
|
|
119
|
+
// (launch — the tool context no longer carries a raw-Commander handle, §8); the
|
|
120
|
+
// one command surface is each tool's declarative commandSpecs.
|
|
121
|
+
mountAllToolCommands(toolRegistry, program, ctx);
|
|
122
|
+
registerCliCommands(program, commandCtx);
|
|
101
123
|
// Bare `opensip` → welcome screen. The update check is owned by the
|
|
102
124
|
// pre-action hook (which only runs for actual subcommands), so it naturally
|
|
103
125
|
// skips zero-arg runs without a guard here.
|
|
@@ -105,7 +127,10 @@ async function main() {
|
|
|
105
127
|
// telemetry shutdown flush — consistent with this file's exitCode-over-
|
|
106
128
|
// exit() principle below. Exit code defaults to 0.
|
|
107
129
|
if (process.argv.length <= 2) {
|
|
108
|
-
|
|
130
|
+
// The root program no longer carries a Commander version option, so read the
|
|
131
|
+
// CLI version directly from the package (the same value the root `--version`
|
|
132
|
+
// pre-scan prints) rather than `program.version()`.
|
|
133
|
+
printWelcome({ version: cliVersion });
|
|
109
134
|
return;
|
|
110
135
|
}
|
|
111
136
|
// Dispatch inside the telemetry parent context so spans emitted during the
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,qNAAqN;AACrN;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,M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ACf,yBAAyB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC;QAAS,CAAC;IACT,uEAAuE;IACvE,wEAAwE;IACxE,wEAAwE;IACxE,uEAAuE;IACvE,kDAAkD;IAClD,MAAM,iBAAiB,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-compose.d.ts","sourceRoot":"","sources":["../src/report-compose.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;
|
|
1
|
+
{"version":3,"file":"report-compose.d.ts","sourceRoot":"","sources":["../src/report-compose.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAqBH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAkE3D;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAY1F"}
|
package/dist/report-compose.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*/
|
|
23
23
|
import { mkdirSync, writeFileSync } from 'node:fs';
|
|
24
24
|
import { join } from 'node:path';
|
|
25
|
-
import { currentScope, resolveProjectPaths, SystemError, logger as defaultLogger, } from '@opensip-cli/core';
|
|
25
|
+
import { currentScope, resolveProjectPaths, resolveToolHooks, SystemError, logger as defaultLogger, } from '@opensip-cli/core';
|
|
26
26
|
import { generateDashboardHtml, } from '@opensip-cli/dashboard';
|
|
27
27
|
import { SessionRepo } from '@opensip-cli/session-store';
|
|
28
28
|
import { getCurrentProjectRoot } from './cli-context.js';
|
|
@@ -60,7 +60,7 @@ async function composeReportInput() {
|
|
|
60
60
|
const sessions = repo ? [...repo.list({ limit: 20 })] : [];
|
|
61
61
|
const input = { sessions };
|
|
62
62
|
for (const tool of scope.tools.list()) {
|
|
63
|
-
const contribution = await tool.collectReportData?.(scope);
|
|
63
|
+
const contribution = await resolveToolHooks(tool).collectReportData?.(scope);
|
|
64
64
|
if (contribution) {
|
|
65
65
|
// Guardrail (spec §8): tools must never clobber the host-owned `sessions`
|
|
66
66
|
// run history. Ignore with a warning (best-effort, like other contribution
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-compose.js","sourceRoot":"","sources":["../src/report-compose.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,MAAM,IAAI,aAAa,GACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,qBAAqB,GAEtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKhD;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AAEtD;;;;;;;;;;;;;GAaG;AACH,KAAK,UAAU,kBAAkB;IAC/B,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,sEAAsE;QACtE,8DAA8D;QAC9D,MAAM,IAAI,WAAW,CACnB,iFAAiF,EACjF,EAAE,IAAI,EAAE,0BAA0B,EAAE,CACrC,CAAC;IACJ,CAAC;IAED,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,IAAI,aAAa,CAAC;IAC1C,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,EAA2B,CAAC;IAC7D,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI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,CAAC,IAAI,QAAQ;oBAAE,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;YACnD,CAAC;YACD,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,IAAuB;IACjE,MAAM,KAAK,GAAG,MAAM,kBAAkB,EAAE,CAAC;IACzC,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAE1C,MAAM,KAAK,GAAG,mBAAmB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC3D,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACjD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACzD,aAAa,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAExC,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAElE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;AACtD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type ToolRegistry, type ToolSessionRecord, type ToolShortId } from '@opensip-cli/core';
|
|
1
2
|
import type { CommandResult, ToolSessionReplay } from '@opensip-cli/contracts';
|
|
2
|
-
import type { ToolRegistry, ToolSessionRecord, ToolShortId } from '@opensip-cli/core';
|
|
3
3
|
export interface CliSessionReplayContribution {
|
|
4
4
|
readonly tool: ToolShortId;
|
|
5
5
|
readonly replaySession: (stored: ToolSessionRecord) => ToolSessionReplay<CommandResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-replay-registry.d.ts","sourceRoot":"","sources":["../src/session-replay-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"session-replay-registry.d.ts","sourceRoot":"","sources":["../src/session-replay-registry.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEtB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE/E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,iBAAiB,CAAC,aAAa,CAAC,CAAC;CACzF;AAED,qBAAa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,MAAM;IADzB,OAAO;IAIP,MAAM,CAAC,KAAK,IAAI,qBAAqB;IAIrC;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,GAAG,qBAAqB;IAa/D,GAAG,CAAC,IAAI,EAAE,WAAW,GAAG,4BAA4B,GAAG,SAAS;CAGjE"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// @fitness-ignore-file batch-operation-limits -- fromTools iterates the bounded, in-process tool registry (a handful of first-party + plugin tools registered for the run), not an unbounded external collection.
|
|
2
|
+
import { resolveToolHooks, } from '@opensip-cli/core';
|
|
1
3
|
export class SessionReplayRegistry {
|
|
2
4
|
byTool;
|
|
3
5
|
constructor(byTool) {
|
|
@@ -15,7 +17,7 @@ export class SessionReplayRegistry {
|
|
|
15
17
|
static fromTools(registry) {
|
|
16
18
|
const byTool = new Map();
|
|
17
19
|
for (const tool of registry.list()) {
|
|
18
|
-
const contribution = tool.sessionReplay;
|
|
20
|
+
const contribution = resolveToolHooks(tool).sessionReplay;
|
|
19
21
|
if (contribution === undefined)
|
|
20
22
|
continue;
|
|
21
23
|
if (byTool.has(contribution.tool)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-replay-registry.js","sourceRoot":"","sources":["../src/session-replay-registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-replay-registry.js","sourceRoot":"","sources":["../src/session-replay-registry.ts"],"names":[],"mappings":"AAAA,kNAAkN;AAClN,OAAO,EACL,gBAAgB,GAKjB,MAAM,mBAAmB,CAAC;AAS3B,MAAM,OAAO,qBAAqB;IAEb;IADnB,YACmB,MAA8D;QAA9D,WAAM,GAAN,MAAM,CAAwD;IAC9E,CAAC;IAEJ,MAAM,CAAC,KAAK;QACV,OAAO,IAAI,qBAAqB,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,QAAsB;QACrC,MAAM,MAAM,GAAG,IAAI,GAAG,EAA6C,CAAC;QACpE,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;YACnC,MAAM,YAAY,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC;YAC1D,IAAI,YAAY,KAAK,SAAS;gBAAE,SAAS;YACzC,IAAI,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;gBAClC,MAAM,IAAI,KAAK,CAAC,mDAAmD,YAAY,CAAC,IAAI,GAAG,CAAC,CAAC;YAC3F,CAAC;YACD,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,qBAAqB,CAAC,YAAY,CAAC,CAAC,CAAC;QACrE,CAAC;QACD,OAAO,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;IAED,GAAG,CAAC,IAAiB;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF;AAED,SAAS,qBAAqB,CAC5B,YAA2C;IAE3C,OAAO;QACL,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CACxB,YAAY,CAAC,aAAa,CAAC,MAAM,CAAqC;KACzE,CAAC;AACJ,CAAC"}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* only forbids the reverse — cli-ui must never import contracts.
|
|
17
17
|
*/
|
|
18
18
|
import { type ViewNode } from '@opensip-cli/cli-ui';
|
|
19
|
-
import type { CommandResult, SignalEnvelope, VerboseDetail } from '@opensip-cli/contracts';
|
|
19
|
+
import type { CommandResult, RunPresentation, SignalEnvelope, VerboseDetail } from '@opensip-cli/contracts';
|
|
20
20
|
/**
|
|
21
21
|
* Render a tool's verbose detail body (ADR-0021) as a `ViewNode`, switching on
|
|
22
22
|
* the union `kind`. `lines` → verbatim text (graph's catalog/findings dump);
|
|
@@ -26,15 +26,35 @@ import type { CommandResult, SignalEnvelope, VerboseDetail } from '@opensip-cli/
|
|
|
26
26
|
*/
|
|
27
27
|
export declare function renderVerboseDetail(detail: VerboseDetail): ViewNode;
|
|
28
28
|
/**
|
|
29
|
-
* The shared envelope → terminal
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* Phase 7 (ADR-0011).
|
|
29
|
+
* The shared envelope → terminal view. Used by every migrated tool's
|
|
30
|
+
* RunPresentation. The per-tool `rows`/`reportLines` legacy derivations it once
|
|
31
|
+
* fell back to were retired in Phase 7 (ADR-0011).
|
|
33
32
|
*
|
|
34
33
|
* When `verboseDetail` is present (a `--verbose` run), its rendered body is
|
|
35
|
-
* prepended above the per-unit table (ADR-0021).
|
|
34
|
+
* prepended above the per-unit table (ADR-0021). Without verbose detail, callers
|
|
35
|
+
* can suppress the table for the compact default run surface.
|
|
36
|
+
*
|
|
37
|
+
* `durationOverride` is the host-owned display duration (ADR-0051), threaded by
|
|
38
|
+
* `presentationToView` from `RunPresentation.durationMs`. It WINS over the
|
|
39
|
+
* envelope unit-sum: tools whose units carry no per-unit duration (graph stamps
|
|
40
|
+
* `durationMs: 0`) would otherwise render a `0ms` summary. fit/sim units carry
|
|
41
|
+
* real durations, so they are unaffected when no override is supplied (the
|
|
42
|
+
* unit-sum fallback stays exact).
|
|
43
|
+
*/
|
|
44
|
+
export declare function envelopeToTableView(envelope: SignalEnvelope, verboseDetail?: VerboseDetail, durationOverride?: number, showTable?: boolean): ViewNode;
|
|
45
|
+
/**
|
|
46
|
+
* The single render path for a {@link RunPresentation} (envelope-first-presentation
|
|
47
|
+
* plan). Renders `p.banners` as muted lines above the run body (graph's
|
|
48
|
+
* resolution caveat), delegates the verbose table+summary or default summary to
|
|
49
|
+
* `envelopeToTableView` (threading `p.durationMs` as the host-owned duration
|
|
50
|
+
* override), and applies the shared default footer when platform policy says the
|
|
51
|
+
* run is compact — preserving the live default surface: summary only, no
|
|
52
|
+
* per-unit table.
|
|
53
|
+
*
|
|
54
|
+
* This is the sole `resultToView` `case 'run-presentation'` target; it superseded
|
|
55
|
+
* the three per-tool `*DoneResult` render cases (hard-removed in RP-3).
|
|
36
56
|
*/
|
|
37
|
-
export declare function
|
|
57
|
+
export declare function presentationToView(p: RunPresentation): ViewNode;
|
|
38
58
|
/** Map any CommandResult to its view-model node (total — every variant covered). */
|
|
39
59
|
export declare function resultToView(result: CommandResult): ViewNode;
|
|
40
60
|
//# sourceMappingURL=result-to-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result-to-view.d.ts","sourceRoot":"","sources":["../../src/ui/result-to-view.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"result-to-view.d.ts","sourceRoot":"","sources":["../../src/ui/result-to-view.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAeL,KAAK,QAAQ,EACd,MAAM,qBAAqB,CAAC;AA6B7B,OAAO,KAAK,EACV,aAAa,EAEb,eAAe,EAEf,cAAc,EACd,aAAa,EACd,MAAM,wBAAwB,CAAC;AA6LhC;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,QAAQ,CAInE;AAYD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,cAAc,EACxB,aAAa,CAAC,EAAE,aAAa,EAC7B,gBAAgB,CAAC,EAAE,MAAM,EACzB,SAAS,UAAO,GACf,QAAQ,CAsBV;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,eAAe,GAAG,QAAQ,CAmB/D;AAED,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,QAAQ,CAoF5D"}
|