@swmansion/argent 0.29.1-next.13 → 0.29.1-next.14
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/cli-cmds.mjs +1 -1
- package/dist/installer.mjs +47 -47
- package/dist/tool-server.cjs +4 -46
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -35301,7 +35301,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
35301
35301
|
var SESSION_ID2 = randomUUID5();
|
|
35302
35302
|
function readCliVersion() {
|
|
35303
35303
|
if (true) {
|
|
35304
|
-
return "0.29.1-next.
|
|
35304
|
+
return "0.29.1-next.14";
|
|
35305
35305
|
}
|
|
35306
35306
|
return "0.0.0";
|
|
35307
35307
|
}
|
package/dist/installer.mjs
CHANGED
|
@@ -16774,7 +16774,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16774
16774
|
var SESSION_ID = randomUUID4();
|
|
16775
16775
|
function readCliVersion() {
|
|
16776
16776
|
if (true) {
|
|
16777
|
-
return "0.29.1-next.
|
|
16777
|
+
return "0.29.1-next.14";
|
|
16778
16778
|
}
|
|
16779
16779
|
return "0.0.0";
|
|
16780
16780
|
}
|
|
@@ -20093,52 +20093,6 @@ function resolveInstallModeFromFlags(opts) {
|
|
|
20093
20093
|
return null;
|
|
20094
20094
|
}
|
|
20095
20095
|
|
|
20096
|
-
// ../argent-installer/src/install-targets.ts
|
|
20097
|
-
function parseTargetFlags(args) {
|
|
20098
|
-
return { global: args.includes("--global"), local: args.includes("--local") };
|
|
20099
|
-
}
|
|
20100
|
-
function decideInstallTargets(ctx) {
|
|
20101
|
-
const { flags } = ctx;
|
|
20102
|
-
if (flags.global || flags.local) {
|
|
20103
|
-
const targets = [];
|
|
20104
|
-
if (flags.global) targets.push("global");
|
|
20105
|
-
if (flags.local) targets.push("local");
|
|
20106
|
-
return { kind: "targets", targets, reason: "flags" };
|
|
20107
|
-
}
|
|
20108
|
-
if (ctx.globalPresent && ctx.localPresent) {
|
|
20109
|
-
if (ctx.nonInteractive) {
|
|
20110
|
-
return {
|
|
20111
|
-
kind: "targets",
|
|
20112
|
-
targets: ctx.nonInteractiveBothDefault,
|
|
20113
|
-
reason: "noninteractive-both"
|
|
20114
|
-
};
|
|
20115
|
-
}
|
|
20116
|
-
return { kind: "prompt" };
|
|
20117
|
-
}
|
|
20118
|
-
return { kind: "targets", targets: [ctx.defaultTarget], reason: "single" };
|
|
20119
|
-
}
|
|
20120
|
-
async function promptInstallTargets(verb) {
|
|
20121
|
-
const selected = await multiselect({
|
|
20122
|
-
message: `argent is installed both globally and in this project. Which should ${verb === "update" ? "update" : "removal"} affect?`,
|
|
20123
|
-
options: [
|
|
20124
|
-
{
|
|
20125
|
-
value: "global",
|
|
20126
|
-
label: "Global install",
|
|
20127
|
-
hint: "the argent command on your PATH"
|
|
20128
|
-
},
|
|
20129
|
-
{
|
|
20130
|
-
value: "local",
|
|
20131
|
-
label: "This project's devDependency",
|
|
20132
|
-
hint: `${PACKAGE_NAME} in this project's node_modules`
|
|
20133
|
-
}
|
|
20134
|
-
],
|
|
20135
|
-
initialValues: verb === "update" ? ["global", "local"] : ["local"],
|
|
20136
|
-
required: true
|
|
20137
|
-
});
|
|
20138
|
-
if (isCancel(selected)) return "cancel";
|
|
20139
|
-
return selected;
|
|
20140
|
-
}
|
|
20141
|
-
|
|
20142
20096
|
// ../argent-installer/src/utils.ts
|
|
20143
20097
|
var PACKAGE_ROOT = resolvePackageRoot(import.meta.dirname);
|
|
20144
20098
|
function resolveBundledDir(dirName) {
|
|
@@ -23289,6 +23243,52 @@ var import_picocolors11 = __toESM(require_picocolors(), 1);
|
|
|
23289
23243
|
var import_semver5 = __toESM(require_semver2(), 1);
|
|
23290
23244
|
import * as path24 from "node:path";
|
|
23291
23245
|
|
|
23246
|
+
// ../argent-installer/src/install-targets.ts
|
|
23247
|
+
function parseTargetFlags(args) {
|
|
23248
|
+
return { global: args.includes("--global"), local: args.includes("--local") };
|
|
23249
|
+
}
|
|
23250
|
+
function decideInstallTargets(ctx) {
|
|
23251
|
+
const { flags } = ctx;
|
|
23252
|
+
if (flags.global || flags.local) {
|
|
23253
|
+
const targets = [];
|
|
23254
|
+
if (flags.global) targets.push("global");
|
|
23255
|
+
if (flags.local) targets.push("local");
|
|
23256
|
+
return { kind: "targets", targets, reason: "flags" };
|
|
23257
|
+
}
|
|
23258
|
+
if (ctx.globalPresent && ctx.localPresent) {
|
|
23259
|
+
if (ctx.nonInteractive) {
|
|
23260
|
+
return {
|
|
23261
|
+
kind: "targets",
|
|
23262
|
+
targets: ctx.nonInteractiveBothDefault,
|
|
23263
|
+
reason: "noninteractive-both"
|
|
23264
|
+
};
|
|
23265
|
+
}
|
|
23266
|
+
return { kind: "prompt" };
|
|
23267
|
+
}
|
|
23268
|
+
return { kind: "targets", targets: [ctx.defaultTarget], reason: "single" };
|
|
23269
|
+
}
|
|
23270
|
+
async function promptInstallTargets(verb) {
|
|
23271
|
+
const selected = await multiselect({
|
|
23272
|
+
message: `argent is installed both globally and in this project. Which should ${verb === "update" ? "update" : "removal"} affect?`,
|
|
23273
|
+
options: [
|
|
23274
|
+
{
|
|
23275
|
+
value: "global",
|
|
23276
|
+
label: "Global install",
|
|
23277
|
+
hint: "the argent command on your PATH"
|
|
23278
|
+
},
|
|
23279
|
+
{
|
|
23280
|
+
value: "local",
|
|
23281
|
+
label: "This project's devDependency",
|
|
23282
|
+
hint: `${PACKAGE_NAME} in this project's node_modules`
|
|
23283
|
+
}
|
|
23284
|
+
],
|
|
23285
|
+
initialValues: verb === "update" ? ["global", "local"] : ["local"],
|
|
23286
|
+
required: true
|
|
23287
|
+
});
|
|
23288
|
+
if (isCancel(selected)) return "cancel";
|
|
23289
|
+
return selected;
|
|
23290
|
+
}
|
|
23291
|
+
|
|
23292
23292
|
// ../argent-installer/src/update-target.ts
|
|
23293
23293
|
var import_update_core = __toESM(require_dist2(), 1);
|
|
23294
23294
|
async function resolveInstallableUpdateTarget(pm, current) {
|
package/dist/tool-server.cjs
CHANGED
|
@@ -957,18 +957,6 @@ var init_event_emitter = __esm({
|
|
|
957
957
|
this.listeners.get(event2).add(listener);
|
|
958
958
|
return this;
|
|
959
959
|
}
|
|
960
|
-
/**
|
|
961
|
-
* @public
|
|
962
|
-
* Every caller is in another workspace — tool-server (the variant-proposal
|
|
963
|
-
* store, the chromium server's frame/fps and network listeners, both
|
|
964
|
-
* js-runtime-debugger blueprints) and telemetry (`registry-listener`, which
|
|
965
|
-
* detaches from `Registry.events`) — and the dead-code gate runs against an
|
|
966
|
-
* unbuilt tree, where a cross-workspace edge cannot form. See `knip.jsonc`.
|
|
967
|
-
*
|
|
968
|
-
* To re-audit whether this tag is still earned, rename the member and read
|
|
969
|
-
* the `Property 'off' does not exist` errors `tsc` reports. Do not grep
|
|
970
|
-
* `.off(`: most hits in this repo are Node `EventEmitter`s.
|
|
971
|
-
*/
|
|
972
960
|
off(event2, listener) {
|
|
973
961
|
this.listeners.get(event2)?.delete(listener);
|
|
974
962
|
return this;
|
|
@@ -1034,19 +1022,6 @@ var init_artifacts = __esm({
|
|
|
1034
1022
|
};
|
|
1035
1023
|
ArtifactStore = class {
|
|
1036
1024
|
entries = /* @__PURE__ */ new Map();
|
|
1037
|
-
/**
|
|
1038
|
-
* @public
|
|
1039
|
-
* Every caller is in tool-server — `tools/flows/flow-visual`,
|
|
1040
|
-
* `tools/screenshot`, `tools/screenshot-diff`, `tools/screen-recording-stop`,
|
|
1041
|
-
* both `tools/profiler/native-profiler` stop/analyze handlers and
|
|
1042
|
-
* `tools/profiler/react/react-profiler-analyze` — and the dead-code gate runs
|
|
1043
|
-
* against an unbuilt tree, where a cross-workspace edge cannot form. See
|
|
1044
|
-
* `knip.jsonc`.
|
|
1045
|
-
*
|
|
1046
|
-
* To re-audit whether this tag is still earned, rename the member and read
|
|
1047
|
-
* the `Property 'register' does not exist` errors `tsc --build` reports. Do
|
|
1048
|
-
* not grep `.register(`: `registerTool` / `registerBlueprint` swamp the hits.
|
|
1049
|
-
*/
|
|
1050
1025
|
async register(opts) {
|
|
1051
1026
|
const { hostPath, kind } = opts;
|
|
1052
1027
|
const filename = opts.filename ?? (0, import_node_path2.basename)(hostPath);
|
|
@@ -1077,21 +1052,9 @@ var init_artifacts = __esm({
|
|
|
1077
1052
|
if (opts.saveDir) handle.saveDir = opts.saveDir;
|
|
1078
1053
|
return handle;
|
|
1079
1054
|
}
|
|
1080
|
-
/**
|
|
1081
|
-
* @public
|
|
1082
|
-
* The only caller is the tool-server `GET /artifacts/:id` route, and the
|
|
1083
|
-
* dead-code gate runs against an unbuilt tree, where a cross-workspace edge
|
|
1084
|
-
* cannot form. See `knip.jsonc`.
|
|
1085
|
-
*/
|
|
1086
1055
|
get(id) {
|
|
1087
1056
|
return this.entries.get(id);
|
|
1088
1057
|
}
|
|
1089
|
-
/**
|
|
1090
|
-
* @public
|
|
1091
|
-
* The only caller is the tool-server `/artifacts` route, and the dead-code
|
|
1092
|
-
* gate runs against an unbuilt tree, where a cross-workspace edge cannot
|
|
1093
|
-
* form. See `knip.jsonc`.
|
|
1094
|
-
*/
|
|
1095
1058
|
list() {
|
|
1096
1059
|
return [...this.entries.entries()].map(([id, entry]) => ({
|
|
1097
1060
|
id,
|
|
@@ -1690,13 +1653,6 @@ var init_errors = __esm({
|
|
|
1690
1653
|
}
|
|
1691
1654
|
};
|
|
1692
1655
|
ToolNotFoundError = class extends Error {
|
|
1693
|
-
/**
|
|
1694
|
-
* @public
|
|
1695
|
-
* Knip's `classMembers` pass is workspace-local, so it cannot see the caller:
|
|
1696
|
-
* `flow-add-step` keys `isToolNotFound` on this alongside the error identity,
|
|
1697
|
-
* so a tool that ran and reported its own "not found" is not read as the
|
|
1698
|
-
* command being absent.
|
|
1699
|
-
*/
|
|
1700
1656
|
toolId;
|
|
1701
1657
|
constructor(toolId) {
|
|
1702
1658
|
super(`Tool "${toolId}" not found`);
|
|
@@ -100257,7 +100213,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
100257
100213
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
100258
100214
|
function readCliVersion() {
|
|
100259
100215
|
if (true) {
|
|
100260
|
-
return "0.29.1-next.
|
|
100216
|
+
return "0.29.1-next.14";
|
|
100261
100217
|
}
|
|
100262
100218
|
return "0.0.0";
|
|
100263
100219
|
}
|
|
@@ -154755,6 +154711,9 @@ async function runIosProfilerPipeline(files, options = {}) {
|
|
|
154755
154711
|
return { bottlenecks, cpuSamples, uiHangs, cpuHotspots, memoryLeaks };
|
|
154756
154712
|
}
|
|
154757
154713
|
|
|
154714
|
+
// ../tool-server/src/utils/ios-profiler/capture-strategy/select.ts
|
|
154715
|
+
var import_child_process3 = require("child_process");
|
|
154716
|
+
|
|
154758
154717
|
// ../tool-server/src/utils/ios-profiler/capture-strategy/device.ts
|
|
154759
154718
|
var deviceStrategy = {
|
|
154760
154719
|
name: "device",
|
|
@@ -154810,7 +154769,6 @@ var allProcessesStrategy = {
|
|
|
154810
154769
|
};
|
|
154811
154770
|
|
|
154812
154771
|
// ../tool-server/src/utils/ios-profiler/capture-strategy/select.ts
|
|
154813
|
-
var import_child_process3 = require("child_process");
|
|
154814
154772
|
var ENV_OVERRIDE = "ARGENT_IOS_CAPTURE";
|
|
154815
154773
|
function parseEnvOverride() {
|
|
154816
154774
|
const original = process.env[ENV_OVERRIDE]?.trim();
|
package/package.json
CHANGED