@reticlehq/server 3.8.2 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -104
- package/NOTICE +5 -0
- package/README.md +1 -1
- package/bin/launch.js +13 -0
- package/bin/package.json +3 -0
- package/bin/reticle.js +66 -8
- package/dist/chromium-launch-options.d.ts +25 -0
- package/dist/chromium-launch-options.js +21 -1
- package/dist/command/cli/adhoc-verdict.js +34 -7
- package/dist/command/cli/answers/gate-exit.d.ts +6 -2
- package/dist/command/cli/answers/gate-exit.js +12 -2
- package/dist/command/cli/ci-hint.d.ts +44 -0
- package/dist/command/cli/ci-hint.js +72 -0
- package/dist/command/cli/cli-doctor.d.ts +6 -1
- package/dist/command/cli/cli-doctor.js +45 -4
- package/dist/command/cli/cli-flow-commands.d.ts +7 -1
- package/dist/command/cli/cli-flow-commands.js +39 -17
- package/dist/command/cli/cli-kill.d.ts +21 -0
- package/dist/command/cli/cli-kill.js +46 -3
- package/dist/command/cli/cli-parse.d.ts +5 -2
- package/dist/command/cli/cli-parse.js +10 -5
- package/dist/command/cli/cli-usage.js +3 -2
- package/dist/command/cli/cli-verify.d.ts +6 -1
- package/dist/command/cli/cli-verify.js +32 -13
- package/dist/command/cli/doctor/browser/chromium-hint.d.ts +6 -1
- package/dist/command/cli/doctor/browser/chromium-hint.js +11 -5
- package/dist/command/cli/doctor/doctor-fix.d.ts +44 -0
- package/dist/command/cli/doctor/doctor-fix.js +89 -0
- package/dist/command/cli/doctor/doctor-launcher-line.d.ts +23 -0
- package/dist/command/cli/doctor/doctor-launcher-line.js +60 -0
- package/dist/command/cli/doctor/doctor-rows.d.ts +4 -0
- package/dist/command/cli/doctor/doctor-rows.js +4 -0
- package/dist/command/cli/doctor-repairs.d.ts +64 -0
- package/dist/command/cli/doctor-repairs.js +214 -0
- package/dist/command/cli/drive/drive-command.js +3 -7
- package/dist/command/cli/first-use-checks.d.ts +41 -0
- package/dist/command/cli/first-use-checks.js +127 -0
- package/dist/command/cli/first-verdict-node.d.ts +3 -0
- package/dist/command/cli/first-verdict-node.js +189 -0
- package/dist/command/cli/first-verdict.d.ts +126 -0
- package/dist/command/cli/first-verdict.js +267 -0
- package/dist/command/cli/launch/sdk-version-match.d.ts +3 -2
- package/dist/command/cli/launch/sdk-version-match.js +3 -2
- package/dist/command/cli/lifecycle/daemon-lifecycle.js +6 -5
- package/dist/command/cli/mcp-command.js +13 -4
- package/dist/command/cli/ports/port-holder.d.ts +2 -0
- package/dist/command/cli/ports/port-holder.js +11 -3
- package/dist/command/cli/setup-mcp-cli.d.ts +27 -1
- package/dist/command/cli/setup-mcp-cli.js +98 -23
- package/dist/command/cli/status/status-lines.d.ts +1 -0
- package/dist/command/cli/status/status-lines.js +50 -17
- package/dist/command/cli/status-fields.js +17 -3
- package/dist/command/cli/try-command.d.ts +7 -0
- package/dist/command/cli/try-command.js +11 -3
- package/dist/command/cli.js +70 -33
- package/dist/command/daemon/binding/daemon-status-probe.d.ts +3 -1
- package/dist/command/daemon/binding/daemon-status-probe.js +4 -2
- package/dist/command/daemon/daemon-argv.d.ts +9 -0
- package/dist/command/daemon/daemon-argv.js +11 -0
- package/dist/command/daemon/daemon.d.ts +10 -3
- package/dist/command/daemon/daemon.js +17 -6
- package/dist/command/daemon/lifetime/daemon-exit.d.ts +24 -0
- package/dist/command/daemon/lifetime/daemon-exit.js +39 -0
- package/dist/command/daemon/lifetime/death-cause.d.ts +15 -0
- package/dist/command/daemon/lifetime/death-cause.js +130 -0
- package/dist/command/daemon/lifetime/heartbeat.d.ts +7 -15
- package/dist/command/daemon/lifetime/heartbeat.js +4 -13
- package/dist/command/daemon/port-state.d.ts +14 -0
- package/dist/command/daemon/port-state.js +31 -0
- package/dist/command/setup/agent-configs.d.ts +2 -0
- package/dist/command/setup/agent-configs.js +42 -15
- package/dist/command/setup/agent-next-steps.d.ts +77 -0
- package/dist/command/setup/agent-next-steps.js +284 -0
- package/dist/command/setup/agent-writer.js +11 -6
- package/dist/command/setup/init/init-host.js +2 -0
- package/dist/command/setup/init/init-runtime.d.ts +6 -1
- package/dist/command/setup/init/init-runtime.js +57 -21
- package/dist/command/setup/mcp-launcher.d.ts +3 -0
- package/dist/command/setup/mcp-launcher.js +11 -0
- package/dist/command/setup/setup-command.js +30 -12
- package/dist/command/setup/setup-mcp.d.ts +8 -0
- package/dist/command/setup/setup-mcp.js +47 -20
- package/dist/command/setup/start-dev-server.d.ts +8 -0
- package/dist/command/setup/start-dev-server.js +43 -0
- package/dist/command/version/identity/server-version.d.ts +2 -0
- package/dist/command/version/identity/server-version.js +2 -0
- package/dist/command/version/version-skew.d.ts +7 -0
- package/dist/command/version/version-skew.js +13 -2
- package/dist/features/license/license.d.ts +11 -71
- package/dist/features/license/license.js +43 -136
- package/dist/features/visual/desktop-capture.d.ts +33 -0
- package/dist/features/visual/desktop-capture.js +94 -0
- package/dist/features/visual/step-shots.js +139 -35
- package/dist/features/visual/visual-tools.d.ts +0 -18
- package/dist/features/visual/visual-tools.js +2 -81
- package/dist/import-graph.js +5 -6
- package/dist/index.d.ts +3 -1
- package/dist/index.js +14 -5
- package/dist/judgement/runs/run-ledger.d.ts +7 -5
- package/dist/judgement/runs/run-ledger.js +98 -69
- package/dist/judgement/runs/verification-sync.d.ts +6 -3
- package/dist/judgement/runs/verification-sync.js +21 -10
- package/dist/language/flows/flow-store-for-session.js +7 -5
- package/dist/language/flows/recording/tape/recordings.d.ts +2 -13
- package/dist/language/flows/recording/tape/recordings.js +41 -44
- package/dist/language/flows/replay.d.ts +17 -7
- package/dist/language/flows/replay.js +95 -44
- package/dist/launch-chromium.d.ts +1 -0
- package/dist/launch-chromium.js +49 -12
- package/dist/memory/cloud/sync-screenshots.js +6 -1
- package/dist/portal/bridge/bridge.d.ts +13 -4
- package/dist/portal/bridge/bridge.js +10 -9
- package/dist/portal/input/network-mock.js +3 -2
- package/dist/portal/input/real-input.d.ts +15 -0
- package/dist/portal/input/real-input.js +59 -3
- package/dist/portal/input/viewport-tools.js +6 -3
- package/dist/portal/pool/browser-pool.d.ts +5 -1
- package/dist/portal/pool/browser-pool.js +32 -38
- package/dist/portal/pool/context-permissions.d.ts +20 -17
- package/dist/portal/pool/context-permissions.js +63 -1
- package/dist/portal/pool/csp-widen.d.ts +62 -0
- package/dist/portal/pool/csp-widen.js +132 -0
- package/dist/portal/pool/lease-page-error.d.ts +29 -0
- package/dist/portal/pool/lease-page-error.js +18 -0
- package/dist/portal/pool/page-error-journal.d.ts +57 -0
- package/dist/portal/pool/page-error-journal.js +181 -0
- package/dist/portal/pool/playwright-launcher.js +21 -8
- package/dist/portal/pool/pool-contract.d.ts +22 -0
- package/dist/portal/pool/pool-lease.d.ts +35 -2
- package/dist/portal/pool/pool-lease.js +23 -0
- package/dist/portal/pool/zero-install.js +69 -1
- package/dist/portal/session/dev-server/dev-command.d.ts +8 -0
- package/dist/portal/session/dev-server/dev-command.js +56 -8
- package/dist/portal/session/no-session-diagnosis.js +10 -3
- package/dist/portal/session/no-session-next-action.d.ts +12 -0
- package/dist/portal/session/no-session-next-action.js +44 -4
- package/dist/portal/session/no-session-watch.js +3 -1
- package/dist/portal/session/page-commands/undeclared-command.d.ts +9 -3
- package/dist/portal/session/page-commands/undeclared-command.js +16 -7
- package/dist/portal/session/recorded-gaps.d.ts +1 -1
- package/dist/portal/session/recorded-gaps.js +5 -2
- package/dist/portal/session/session-manager.js +40 -21
- package/dist/portal/session/session.js +4 -3
- package/dist/portal/session/zero-install-first-call.d.ts +20 -1
- package/dist/portal/session/zero-install-first-call.js +34 -2
- package/dist/start-wiring.d.ts +29 -2
- package/dist/start-wiring.js +73 -9
- package/dist/surface/mcp/mcp-proxy.js +10 -2
- package/dist/surface/mcp/mcp.js +5 -3
- package/dist/surface/mcp/peer/agents-connected.d.ts +6 -0
- package/dist/surface/mcp/peer/agents-connected.js +58 -0
- package/dist/surface/mcp/proxy/proxy-daemon-probe.js +17 -5
- package/dist/surface/tools/act/act-preflight.js +37 -17
- package/dist/surface/tools/act/act-target.js +3 -1
- package/dist/surface/tools/act/after-match.d.ts +7 -0
- package/dist/surface/tools/act/after-match.js +33 -0
- package/dist/surface/tools/act/resolve-target.d.ts +2 -0
- package/dist/surface/tools/act/resolve-target.js +35 -8
- package/dist/surface/tools/act/sequence-grade.d.ts +3 -1
- package/dist/surface/tools/act/sequence-grade.js +8 -1
- package/dist/surface/tools/act-sequence-tool.js +3 -0
- package/dist/surface/tools/act-tools.js +10 -10
- package/dist/surface/tools/assert/assert-verdict.js +28 -1
- package/dist/surface/tools/browser-tools.js +75 -7
- package/dist/surface/tools/dynamic-tools.js +2 -1
- package/dist/surface/tools/empty-session-list.d.ts +2 -0
- package/dist/surface/tools/empty-session-list.js +4 -2
- package/dist/surface/tools/error-recovery.js +43 -22
- package/dist/surface/tools/invoke-tool.js +27 -20
- package/dist/surface/tools/lease-hint.d.ts +7 -0
- package/dist/surface/tools/lease-hint.js +10 -3
- package/dist/surface/tools/lease-readiness.d.ts +21 -0
- package/dist/surface/tools/lease-readiness.js +47 -0
- package/dist/surface/tools/lease-seed.d.ts +2 -0
- package/dist/surface/tools/lease-seed.js +2 -1
- package/dist/surface/tools/lease-tools.js +43 -15
- package/dist/surface/tools/repeat-hint.d.ts +40 -0
- package/dist/surface/tools/repeat-hint.js +171 -0
- package/dist/surface/tools/run-report.d.ts +2 -2
- package/dist/surface/tools/run-report.js +27 -15
- package/dist/surface/tools/tool-kit.d.ts +12 -0
- package/dist/surface/tools/tool-kit.js +7 -0
- package/dist/surface/tools/tools.js +26 -13
- package/dist/telemetry/argument-shape.js +16 -7
- package/dist/telemetry/cli-telemetry.d.ts +10 -1
- package/dist/telemetry/cli-telemetry.js +15 -0
- package/dist/telemetry/init-telemetry.d.ts +2 -1
- package/dist/telemetry/init-telemetry.js +47 -2
- package/dist/telemetry/install-trace.js +23 -4
- package/dist/telemetry/onboarding-funnel.d.ts +19 -2
- package/dist/telemetry/onboarding-funnel.js +25 -3
- package/dist/telemetry/proxy-telemetry.d.ts +2 -1
- package/dist/telemetry/proxy-telemetry.js +2 -2
- package/dist/telemetry/session-metrics.d.ts +1 -1
- package/dist/telemetry/session-metrics.js +67 -27
- package/dist/telemetry/telemetry.d.ts +3 -1
- package/dist/telemetry/telemetry.js +60 -28
- package/dist/telemetry/tool-refused.d.ts +2 -2
- package/dist/telemetry/tool-refused.js +9 -2
- package/docs/architecture.md +3 -6
- package/docs/cli/doctor.mdx +41 -2
- package/docs/cli/help.mdx +4 -2
- package/docs/cli/license.mdx +4 -5
- package/docs/cli/setup.mdx +13 -2
- package/docs/cli/status.mdx +4 -0
- package/docs/cli.mdx +1 -1
- package/docs/deploy-checks.md +25 -0
- package/docs/desktop.mdx +1 -1
- package/docs/enterprise.md +15 -20
- package/docs/environment.mdx +1 -0
- package/docs/first-drive.md +1 -1
- package/docs/install-manual.mdx +16 -1
- package/docs/packages/engine.mdx +1 -1
- package/docs/packages/server.mdx +1 -1
- package/docs/packages/tauri.mdx +1 -1
- package/docs/packages/test.mdx +1 -1
- package/docs/packages.mdx +1 -1
- package/docs/platform-integration.md +1 -1
- package/docs/skill.md +1 -1
- package/docs/telemetry.md +4 -2
- package/package.json +13 -9
- package/LICENSE-ENTERPRISE +0 -37
- package/dist/features/ee/audit-log.d.ts +0 -14
- package/dist/features/ee/audit-log.js +0 -11
package/LICENSE
CHANGED
|
@@ -1,105 +1,202 @@
|
|
|
1
|
-
# Functional Source License, Version 1.1, ALv2 Future License
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Reticle Labs
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
package/README.md
CHANGED
|
@@ -27,4 +27,4 @@ See the [main README](https://github.com/reticlehq/reticle).
|
|
|
27
27
|
|
|
28
28
|
## License
|
|
29
29
|
|
|
30
|
-
[
|
|
30
|
+
[Apache-2.0](./LICENSE).
|
package/bin/launch.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Loads the CLI. reticle.js checks the Node.js version before it requires this file, because an
|
|
2
|
+
// old Node.js cannot parse `import()`.
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
// The agent hooks run on every prompt and every tool call, and some agents wait for them: answer
|
|
6
|
+
// them before the CLI loads. See src/command/cli/hook/hook-fast.ts.
|
|
7
|
+
if ('hook' === process.argv[2] && ('tool' === process.argv[3] || 'prompt' === process.argv[3])) {
|
|
8
|
+
import('../dist/command/cli/hook/hook-fast.js').then((hook) =>
|
|
9
|
+
hook.mainHookFast(process.argv[3], process.argv.slice(4)),
|
|
10
|
+
);
|
|
11
|
+
} else {
|
|
12
|
+
import('../dist/command/cli.js').then((cli) => cli.main());
|
|
13
|
+
}
|
package/bin/package.json
ADDED
package/bin/reticle.js
CHANGED
|
@@ -1,10 +1,68 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/*
|
|
3
|
+
* The `reticle` command. This file is CommonJS (see package.json in this folder) and uses only old
|
|
4
|
+
* syntax, so that any Node.js can parse it. A Node.js older than the `engines` floor cannot load the
|
|
5
|
+
* CLI's ES modules, so this file checks the version before any of them loads. launch.js loads them.
|
|
6
|
+
*/
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
/** A version such as `18.0.0` in place of this Node.js version. For tests only. */
|
|
10
|
+
var NODE_VERSION_ENV = 'RETICLE_TEST_NODE_VERSION';
|
|
11
|
+
var NODE_DOWNLOAD_URL = 'https://nodejs.org';
|
|
12
|
+
/** Only a plain floor (`>=20.11`) is read, as in src/command/cli/first-use-checks.ts. */
|
|
13
|
+
var NODE_FLOOR = /^>=\s*(\d+(?:\.\d+)*)$/;
|
|
14
|
+
|
|
15
|
+
/** The numbers of a version, or undefined. The same rule as `compareVersions`. */
|
|
16
|
+
function versionParts(version) {
|
|
17
|
+
var nums = version
|
|
18
|
+
.split('-')[0]
|
|
19
|
+
.split('.')
|
|
20
|
+
.map(function (n) {
|
|
21
|
+
return parseInt(n, 10);
|
|
22
|
+
});
|
|
23
|
+
return nums.some(isNaN) ? undefined : nums;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** The line for a Node.js older than `range`, or undefined. The same line as `nodeTooOldLine`. */
|
|
27
|
+
function nodeTooOldLine(version, range) {
|
|
28
|
+
var match = typeof range === 'string' ? NODE_FLOOR.exec(range.trim()) : null;
|
|
29
|
+
if (match === null) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
var floor = match[1];
|
|
33
|
+
var have = versionParts(version);
|
|
34
|
+
var need = versionParts(floor);
|
|
35
|
+
if (have === undefined || need === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
for (var i = 0; i < Math.max(have.length, need.length); i += 1) {
|
|
39
|
+
var diff = (have[i] || 0) - (need[i] || 0);
|
|
40
|
+
if (diff > 0) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (diff < 0) {
|
|
44
|
+
return (
|
|
45
|
+
'Reticle needs Node.js ' +
|
|
46
|
+
floor +
|
|
47
|
+
' or later, and this is Node.js ' +
|
|
48
|
+
version +
|
|
49
|
+
'. Install the current Node.js LTS from ' +
|
|
50
|
+
NODE_DOWNLOAD_URL +
|
|
51
|
+
', then run the command again.'
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
module.exports = { NODE_VERSION_ENV: NODE_VERSION_ENV, nodeTooOldLine: nodeTooOldLine };
|
|
59
|
+
|
|
60
|
+
if (require.main === module) {
|
|
61
|
+
var engines = require('../package.json').engines || {};
|
|
62
|
+
var line = nodeTooOldLine(process.env[NODE_VERSION_ENV] || process.versions.node, engines.node);
|
|
63
|
+
if (line !== undefined) {
|
|
64
|
+
process.stderr.write(line + '\n');
|
|
65
|
+
process.exit(1);
|
|
66
|
+
}
|
|
67
|
+
require('./launch.js');
|
|
10
68
|
}
|
|
@@ -16,6 +16,31 @@
|
|
|
16
16
|
* argument.
|
|
17
17
|
*/
|
|
18
18
|
export declare const CHROMIUM_ANTI_THROTTLING_ARGS: readonly ["--disable-background-timer-throttling", "--disable-backgrounding-occluded-windows", "--disable-renderer-backgrounding"];
|
|
19
|
+
/**
|
|
20
|
+
* The Chromium switch that opens a headed window at the size of the screen. With `viewport: null`
|
|
21
|
+
* the page then takes that window's size and the screen's real pixel ratio.
|
|
22
|
+
*/
|
|
23
|
+
export declare const HEADED_WINDOW_ARGS: readonly ["--start-maximized"];
|
|
24
|
+
/** The page size of a headless page, which has no window and no screen to take a size from. */
|
|
25
|
+
export declare const HEADLESS_VIEWPORT: {
|
|
26
|
+
readonly width: 1440;
|
|
27
|
+
readonly height: 900;
|
|
28
|
+
};
|
|
29
|
+
/** A page size in CSS pixels. */
|
|
30
|
+
export interface ViewportSize {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
}
|
|
34
|
+
/** The viewport option for a context or a page; null is the window's real size. */
|
|
35
|
+
export interface PageViewportOptions {
|
|
36
|
+
viewport: ViewportSize | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The viewport option for every page Reticle opens, at every launch site. Without it, Playwright
|
|
40
|
+
* gives each page a fixed 1280x720 at pixel ratio 1, whatever the window is. A size that a lease
|
|
41
|
+
* asks for always wins; only the default changes.
|
|
42
|
+
*/
|
|
43
|
+
export declare function pageViewportOptions(headless: boolean, requested?: ViewportSize): PageViewportOptions;
|
|
19
44
|
/** The options object handed to `chromium.launch` at both launch sites. */
|
|
20
45
|
export interface ChromiumLaunchOptions {
|
|
21
46
|
headless: boolean;
|
|
@@ -20,6 +20,24 @@ export const CHROMIUM_ANTI_THROTTLING_ARGS = [
|
|
|
20
20
|
'--disable-backgrounding-occluded-windows',
|
|
21
21
|
'--disable-renderer-backgrounding',
|
|
22
22
|
];
|
|
23
|
+
/**
|
|
24
|
+
* The Chromium switch that opens a headed window at the size of the screen. With `viewport: null`
|
|
25
|
+
* the page then takes that window's size and the screen's real pixel ratio.
|
|
26
|
+
*/
|
|
27
|
+
export const HEADED_WINDOW_ARGS = ['--start-maximized'];
|
|
28
|
+
/** The page size of a headless page, which has no window and no screen to take a size from. */
|
|
29
|
+
export const HEADLESS_VIEWPORT = { width: 1440, height: 900 };
|
|
30
|
+
/**
|
|
31
|
+
* The viewport option for every page Reticle opens, at every launch site. Without it, Playwright
|
|
32
|
+
* gives each page a fixed 1280x720 at pixel ratio 1, whatever the window is. A size that a lease
|
|
33
|
+
* asks for always wins; only the default changes.
|
|
34
|
+
*/
|
|
35
|
+
export function pageViewportOptions(headless, requested) {
|
|
36
|
+
if (requested !== undefined) {
|
|
37
|
+
return { viewport: requested };
|
|
38
|
+
}
|
|
39
|
+
return { viewport: headless ? { ...HEADLESS_VIEWPORT } : null };
|
|
40
|
+
}
|
|
23
41
|
/**
|
|
24
42
|
* Build the launch options for a headless or headed Chromium. Pure; returns a fresh mutable array
|
|
25
43
|
* each call so no caller can mutate the constant behind everyone else's back.
|
|
@@ -27,7 +45,9 @@ export const CHROMIUM_ANTI_THROTTLING_ARGS = [
|
|
|
27
45
|
export function chromiumLaunchOptions(headless, channel, executablePath) {
|
|
28
46
|
return {
|
|
29
47
|
headless,
|
|
30
|
-
args:
|
|
48
|
+
args: headless
|
|
49
|
+
? [...CHROMIUM_ANTI_THROTTLING_ARGS]
|
|
50
|
+
: [...CHROMIUM_ANTI_THROTTLING_ARGS, ...HEADED_WINDOW_ARGS],
|
|
31
51
|
...(channel === undefined ? {} : { channel }),
|
|
32
52
|
...(executablePath === undefined ? {} : { executablePath }),
|
|
33
53
|
};
|
|
@@ -5,6 +5,7 @@ import { DEFAULT_ASSERT_TIMEOUT_MS, LOOPBACK_HOST, MCP_SSE_PATH } from '@reticle
|
|
|
5
5
|
import { TOKEN_QUERY_PARAM } from '../../portal/bridge/token-auth.js';
|
|
6
6
|
import { ReticleTool, asString as asText } from '@reticlehq/core';
|
|
7
7
|
import { decideOpen } from './launch/cli-launch.js';
|
|
8
|
+
import { LEASE_KEPT_SENTENCE, LEASE_RELEASED_SENTENCE } from '../../surface/tools/lease-hint.js';
|
|
8
9
|
/** The lease tool is reached through `reticle_run`, the route that works on every tool profile. */
|
|
9
10
|
const LeaseAction = { ACQUIRE: 'acquire', RELEASE: 'release' };
|
|
10
11
|
/**
|
|
@@ -14,6 +15,16 @@ const LeaseAction = { ACQUIRE: 'acquire', RELEASE: 'release' };
|
|
|
14
15
|
*/
|
|
15
16
|
const LEASE_TIMEOUT_MS = 300_000;
|
|
16
17
|
const leaseFailedLine = (url) => `could not open ${url} in a Reticle browser, so nothing was checked:`;
|
|
18
|
+
/**
|
|
19
|
+
* Why a lease's tab is not ready: its `notReadyReason`, then its `hint`, when it gave them. The CLI
|
|
20
|
+
* released the lease, so the hint's kept-lease sentence becomes the released-lease sentence.
|
|
21
|
+
*/
|
|
22
|
+
function notReadyLine(report) {
|
|
23
|
+
const reason = asText(report?.['notReadyReason']);
|
|
24
|
+
const hint = asText(report?.['hint'])?.replace(LEASE_KEPT_SENTENCE, LEASE_RELEASED_SENTENCE);
|
|
25
|
+
const head = reason === undefined ? 'the tab did not connect.' : `the tab did not connect (${reason}).`;
|
|
26
|
+
return hint === undefined ? head : `${head} ${hint}`;
|
|
27
|
+
}
|
|
17
28
|
/**
|
|
18
29
|
* Open `url` in a Reticle-leased browser when the daemon has no tab on its origin.
|
|
19
30
|
*
|
|
@@ -74,29 +85,45 @@ export async function acquireLease(caller, url,
|
|
|
74
85
|
headed,
|
|
75
86
|
/** The `.reticle` the lease's runs belong in: the caller's project, not wherever the page resolves. */
|
|
76
87
|
root) {
|
|
77
|
-
const
|
|
88
|
+
const ask = (withRoot) => caller.call(ReticleTool.RUN, {
|
|
78
89
|
tool: ReticleTool.LEASE,
|
|
79
90
|
args: {
|
|
80
91
|
action: LeaseAction.ACQUIRE,
|
|
81
92
|
url,
|
|
82
93
|
...(true === headed ? { headed } : {}),
|
|
83
|
-
...(root
|
|
94
|
+
...(withRoot && root !== undefined ? { root } : {}),
|
|
84
95
|
},
|
|
85
96
|
}, LEASE_TIMEOUT_MS);
|
|
97
|
+
let acquired = await ask(true);
|
|
98
|
+
// A daemon from an older release does not know `root` and refuses the whole call, so the page
|
|
99
|
+
// was never opened. Ask once more without it: the lease works, only its runs land where that
|
|
100
|
+
// daemon puts them.
|
|
101
|
+
if (root !== undefined && REFUSES_ROOT.test(refusalOf(acquired) ?? '')) {
|
|
102
|
+
acquired = await ask(false);
|
|
103
|
+
}
|
|
86
104
|
const report = verdictOf(acquired, 'sessionId');
|
|
87
105
|
const sessionId = report?.['sessionId'];
|
|
106
|
+
// `ready: false` still carries a sessionId, but no session is registered under it. Driving it
|
|
107
|
+
// answered "names no session" and hid the cause the lease gave. Only an explicit false counts.
|
|
108
|
+
if ('string' === typeof sessionId && false === report?.['ready']) {
|
|
109
|
+
await releaseLease(caller, sessionId);
|
|
110
|
+
return { failed: [leaseFailedLine(url), notReadyLine(report)] };
|
|
111
|
+
}
|
|
88
112
|
// `zeroInstall`: the page never dialled in, so the lease supplied Reticle's own reader.
|
|
89
113
|
if ('string' === typeof sessionId) {
|
|
90
114
|
return { leased: sessionId, zeroInstall: true === report?.['zeroInstall'] };
|
|
91
115
|
}
|
|
92
|
-
const why = verdictOf(acquired, 'error')?.['error'];
|
|
93
116
|
return {
|
|
94
|
-
failed: [
|
|
95
|
-
leaseFailedLine(url),
|
|
96
|
-
'string' === typeof why ? why : (refusalText(acquired) ?? JSON.stringify(acquired)),
|
|
97
|
-
],
|
|
117
|
+
failed: [leaseFailedLine(url), refusalOf(acquired) ?? JSON.stringify(acquired)],
|
|
98
118
|
};
|
|
99
119
|
}
|
|
120
|
+
/** The lease refusal an older daemon answers when it does not know the `root` argument. */
|
|
121
|
+
const REFUSES_ROOT = /unknown parameter[^\n]*\broot\b/i;
|
|
122
|
+
/** What the lease said no with: the `error` of its payload, else the refusal text. */
|
|
123
|
+
function refusalOf(acquired) {
|
|
124
|
+
const why = verdictOf(acquired, 'error')?.['error'];
|
|
125
|
+
return 'string' === typeof why ? why : refusalText(acquired);
|
|
126
|
+
}
|
|
100
127
|
/** Hand back a lease `leaseIfNoTab` opened. Best-effort: an expired lease is already gone. */
|
|
101
128
|
export async function releaseLease(caller, sessionId) {
|
|
102
129
|
await caller
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GateOutcome } from '@reticlehq/core/telemetry';
|
|
1
2
|
/**
|
|
2
3
|
* What `reticle gate` means by its exit code.
|
|
3
4
|
*
|
|
@@ -21,14 +22,17 @@ export declare const GateExit: {
|
|
|
21
22
|
/** The platform knows a flow that passed before and is broken now: `reticle runs regression`'s code. */
|
|
22
23
|
readonly REGRESSION: 3;
|
|
23
24
|
};
|
|
25
|
+
export type GateExit = (typeof GateExit)[keyof typeof GateExit];
|
|
26
|
+
/** The `gate_completed` outcome for each exit code. A gate that throws reports `error` instead. */
|
|
27
|
+
export declare const GATE_OUTCOME: Readonly<Record<GateExit, GateOutcome>>;
|
|
24
28
|
/**
|
|
25
29
|
* The gate's code once the platform has been asked about regressions: a known one fails the build
|
|
26
30
|
* with `reticle runs regression`'s code, whatever the local answer was, so the gate is the one
|
|
27
31
|
* command CI needs. `undefined` (not linked, or the platform did not answer) changes nothing.
|
|
28
32
|
*/
|
|
29
|
-
export declare function gateExitWith(local:
|
|
33
|
+
export declare function gateExitWith(local: GateExit, regressed: number | undefined,
|
|
30
34
|
/** The platform the project is linked to refused its credential: the gate fails closed. */
|
|
31
|
-
refused?: boolean):
|
|
35
|
+
refused?: boolean): GateExit;
|
|
32
36
|
/**
|
|
33
37
|
* Said when the linked platform refused the key. A CI pipeline whose key was revoked stayed green
|
|
34
38
|
* and silent: the gate lost the platform's regression report and the only trace was a log line.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GateOutcome } from '@reticlehq/core/telemetry';
|
|
1
2
|
/**
|
|
2
3
|
* What `reticle gate` means by its exit code.
|
|
3
4
|
*
|
|
@@ -21,6 +22,13 @@ export const GateExit = {
|
|
|
21
22
|
/** The platform knows a flow that passed before and is broken now: `reticle runs regression`'s code. */
|
|
22
23
|
REGRESSION: 3,
|
|
23
24
|
};
|
|
25
|
+
/** The `gate_completed` outcome for each exit code. A gate that throws reports `error` instead. */
|
|
26
|
+
export const GATE_OUTCOME = {
|
|
27
|
+
[GateExit.PASS]: GateOutcome.PASS,
|
|
28
|
+
[GateExit.FAIL]: GateOutcome.FAIL,
|
|
29
|
+
[GateExit.NOTHING_TO_CHECK]: GateOutcome.NOTHING_TO_CHECK,
|
|
30
|
+
[GateExit.REGRESSION]: GateOutcome.REGRESSION,
|
|
31
|
+
};
|
|
24
32
|
/**
|
|
25
33
|
* The gate's code once the platform has been asked about regressions: a known one fails the build
|
|
26
34
|
* with `reticle runs regression`'s code, whatever the local answer was, so the gate is the one
|
|
@@ -29,8 +37,9 @@ export const GateExit = {
|
|
|
29
37
|
export function gateExitWith(local, regressed,
|
|
30
38
|
/** The platform the project is linked to refused its credential: the gate fails closed. */
|
|
31
39
|
refused = false) {
|
|
32
|
-
if (regressed !== undefined && 0 < regressed)
|
|
40
|
+
if (regressed !== undefined && 0 < regressed) {
|
|
33
41
|
return GateExit.REGRESSION;
|
|
42
|
+
}
|
|
34
43
|
return refused && GateExit.PASS === local ? GateExit.FAIL : local;
|
|
35
44
|
}
|
|
36
45
|
/**
|
|
@@ -52,8 +61,9 @@ export const MSG_GATE_NO_FLOWS = 'Reticle gate: no saved flows here, so there wa
|
|
|
52
61
|
*/
|
|
53
62
|
export function msgGateRegression(broken) {
|
|
54
63
|
const names = broken.map((entry) => {
|
|
55
|
-
if ('string' === typeof entry)
|
|
64
|
+
if ('string' === typeof entry) {
|
|
56
65
|
return entry;
|
|
66
|
+
}
|
|
57
67
|
const record = 'object' === typeof entry && null !== entry ? entry : {};
|
|
58
68
|
const name = record['flowName'] ?? record['name'];
|
|
59
69
|
const was = record['previousStatus'];
|