@wayai/cli 0.3.282 → 0.3.284
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/index.js +108 -69
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14028,7 +14028,7 @@ var init_chunk_7NQZRSSJ = __esm({
|
|
|
14028
14028
|
}
|
|
14029
14029
|
});
|
|
14030
14030
|
|
|
14031
|
-
// ../../packages/core/dist/chunk-
|
|
14031
|
+
// ../../packages/core/dist/chunk-JJYZUBYV.js
|
|
14032
14032
|
function declaresNoConnection(agent) {
|
|
14033
14033
|
return agent.connection === null && !agent.connection_id;
|
|
14034
14034
|
}
|
|
@@ -14041,14 +14041,21 @@ function customToolConnectionRefusal(agentName, tool) {
|
|
|
14041
14041
|
if (tool.connection || tool.connection_id) return null;
|
|
14042
14042
|
return `Agent "${agentName}", tool "${tool.name}": connection is required. A custom tool calls through one of the hub's connections: name it.`;
|
|
14043
14043
|
}
|
|
14044
|
+
function customToolConfigObject(config) {
|
|
14045
|
+
if (typeof config !== "string") return config;
|
|
14046
|
+
try {
|
|
14047
|
+
return JSON.parse(config);
|
|
14048
|
+
} catch {
|
|
14049
|
+
return config;
|
|
14050
|
+
}
|
|
14051
|
+
}
|
|
14044
14052
|
function customToolDescriptionAfterPush(entry, row, writtenConfig) {
|
|
14045
14053
|
const written = row ? writtenConfig : entry.config;
|
|
14046
14054
|
const stated = toolConfigDescription(written);
|
|
14047
14055
|
if (stated !== void 0 && stated !== toolConfigDescription(row?.tool_config)) return { description: stated };
|
|
14048
14056
|
const keepsNoText = row !== void 0 && offeredToolDescription(row.tool_config, row.tool_description) === void 0;
|
|
14049
14057
|
const sent = entry.description === null ? "" : entry.description;
|
|
14050
|
-
|
|
14051
|
-
if (fieldCanMove && sent !== void 0 && sent !== (row?.tool_description ?? "")) {
|
|
14058
|
+
if (toolConfigDescription(entry.config) === void 0 && sent !== void 0 && sent !== (row?.tool_description ?? "")) {
|
|
14052
14059
|
const text4 = statedToolDescription(sent);
|
|
14053
14060
|
if (text4 !== void 0) return { description: text4 };
|
|
14054
14061
|
return keepsNoText ? {} : { refused: "description" };
|
|
@@ -14776,8 +14783,8 @@ function skillSectionsAsResources(scope) {
|
|
|
14776
14783
|
};
|
|
14777
14784
|
}
|
|
14778
14785
|
var MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS, hubAsCodePagesSchema, MAX_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, HUB_AS_CODE_AGENT_TOOL_KEYS, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, flagEntriesOf, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, MAX_HUB_AS_CODE_DEPTH, NAMED_DEPTH_SEGMENTS, NAMED_DEPTH_KEY_CHARS, fieldName, hubAsCodeConfigSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, ciSyncResponseSchema;
|
|
14779
|
-
var
|
|
14780
|
-
"../../packages/core/dist/chunk-
|
|
14786
|
+
var init_chunk_JJYZUBYV = __esm({
|
|
14787
|
+
"../../packages/core/dist/chunk-JJYZUBYV.js"() {
|
|
14781
14788
|
"use strict";
|
|
14782
14789
|
init_chunk_NEIVT3KL();
|
|
14783
14790
|
init_chunk_HRKVCI5A();
|
|
@@ -15160,10 +15167,10 @@ var init_chunk_BFG4ZWR4 = __esm({
|
|
|
15160
15167
|
}
|
|
15161
15168
|
});
|
|
15162
15169
|
|
|
15163
|
-
// ../../packages/core/dist/chunk-
|
|
15170
|
+
// ../../packages/core/dist/chunk-SAMZLA2A.js
|
|
15164
15171
|
var dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT;
|
|
15165
|
-
var
|
|
15166
|
-
"../../packages/core/dist/chunk-
|
|
15172
|
+
var init_chunk_SAMZLA2A = __esm({
|
|
15173
|
+
"../../packages/core/dist/chunk-SAMZLA2A.js"() {
|
|
15167
15174
|
"use strict";
|
|
15168
15175
|
init_zod();
|
|
15169
15176
|
dataExplorerDebugDoType = external_exports.enum(["hub", "org", "conversation", "user", "platform", "thread", "community", "contact_book", "batch"]);
|
|
@@ -15274,7 +15281,7 @@ var init_chunk_OMPT4ZHR = __esm({
|
|
|
15274
15281
|
}
|
|
15275
15282
|
});
|
|
15276
15283
|
|
|
15277
|
-
// ../../packages/core/dist/chunk-
|
|
15284
|
+
// ../../packages/core/dist/chunk-ZECCDXFH.js
|
|
15278
15285
|
function refineScopedTarget(data, ctx) {
|
|
15279
15286
|
if (data.scope === "org") {
|
|
15280
15287
|
if (!data.org_id) {
|
|
@@ -15300,12 +15307,12 @@ function refineScopedTarget(data, ctx) {
|
|
|
15300
15307
|
}
|
|
15301
15308
|
}
|
|
15302
15309
|
var adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, PRICING_PLAN_ID_RE, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, MAX_VOICE_CALL_MINUTE_OPS, voiceCallMinuteOps, AUTOMATION_GATE_EVALUATIONS_PER_OPERATION_BOUND, automationGateEvaluationsPerOperation, AUTOMATION_RUN_RETENTION_DAYS_MAX, automationRunRetentionDays, turnDeadlineSeconds, updatePlatformConfigBody, updateFreeOrgLimitBody, adminScopedTargetShape, adminScopedTargetBody, adminDryRunByDefaultTargetBody, BRANCHING_ORPHAN_ENTITY_TYPES, BRANCHING_ORPHAN_MAX_TARGETS, adminRepairBranchingOrphansBody, adminRepairLegacyOrgGrantsBody, adminRepairCompedPlansBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysBody, dataExplorerKvKeyBody, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteBody, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, dataExplorerDebugCountsDoType, dataExplorerDebugCountsParam, debugHubConvParam, debugMessageIdQuery;
|
|
15303
|
-
var
|
|
15304
|
-
"../../packages/core/dist/chunk-
|
|
15310
|
+
var init_chunk_ZECCDXFH = __esm({
|
|
15311
|
+
"../../packages/core/dist/chunk-ZECCDXFH.js"() {
|
|
15305
15312
|
"use strict";
|
|
15306
15313
|
init_chunk_FECLIZTY();
|
|
15307
15314
|
init_chunk_BFG4ZWR4();
|
|
15308
|
-
|
|
15315
|
+
init_chunk_SAMZLA2A();
|
|
15309
15316
|
init_chunk_7NQZRSSJ();
|
|
15310
15317
|
init_chunk_OMPT4ZHR();
|
|
15311
15318
|
init_chunk_HZ6CADSY();
|
|
@@ -16385,7 +16392,7 @@ var init_contracts = __esm({
|
|
|
16385
16392
|
init_chunk_E4DIIOOE();
|
|
16386
16393
|
init_chunk_7CYHPF35();
|
|
16387
16394
|
init_chunk_BPCNB5RT();
|
|
16388
|
-
|
|
16395
|
+
init_chunk_JJYZUBYV();
|
|
16389
16396
|
init_chunk_NEIVT3KL();
|
|
16390
16397
|
init_chunk_HRKVCI5A();
|
|
16391
16398
|
init_chunk_IW7D2QOD();
|
|
@@ -16395,10 +16402,10 @@ var init_contracts = __esm({
|
|
|
16395
16402
|
init_chunk_4LXDRTO4();
|
|
16396
16403
|
init_chunk_JDJ4EUOL();
|
|
16397
16404
|
init_chunk_NVKU5PPQ();
|
|
16398
|
-
|
|
16405
|
+
init_chunk_ZECCDXFH();
|
|
16399
16406
|
init_chunk_FECLIZTY();
|
|
16400
16407
|
init_chunk_BFG4ZWR4();
|
|
16401
|
-
|
|
16408
|
+
init_chunk_SAMZLA2A();
|
|
16402
16409
|
init_chunk_7NQZRSSJ();
|
|
16403
16410
|
init_chunk_D3EP4TDU();
|
|
16404
16411
|
init_chunk_X5PZZVTS();
|
|
@@ -16514,10 +16521,13 @@ var init_chunk_RPGBR5IN = __esm({
|
|
|
16514
16521
|
}
|
|
16515
16522
|
});
|
|
16516
16523
|
|
|
16517
|
-
// ../../packages/core/dist/chunk-
|
|
16518
|
-
var
|
|
16519
|
-
|
|
16524
|
+
// ../../packages/core/dist/chunk-OMK3L45Z.js
|
|
16525
|
+
var ENVELOPE_PREFIX, CREDENTIAL_REFERENCE_PREFIX;
|
|
16526
|
+
var init_chunk_OMK3L45Z = __esm({
|
|
16527
|
+
"../../packages/core/dist/chunk-OMK3L45Z.js"() {
|
|
16520
16528
|
"use strict";
|
|
16529
|
+
ENVELOPE_PREFIX = "enc:v1:";
|
|
16530
|
+
CREDENTIAL_REFERENCE_PREFIX = `${ENVELOPE_PREFIX}vault:`;
|
|
16521
16531
|
}
|
|
16522
16532
|
});
|
|
16523
16533
|
|
|
@@ -16591,7 +16601,7 @@ var init_dist = __esm({
|
|
|
16591
16601
|
init_chunk_WEXVYJ5H();
|
|
16592
16602
|
init_chunk_6TSQ5HXC();
|
|
16593
16603
|
init_chunk_HZ6CADSY();
|
|
16594
|
-
|
|
16604
|
+
init_chunk_OMK3L45Z();
|
|
16595
16605
|
init_chunk_J75LDBC2();
|
|
16596
16606
|
init_chunk_VSSZVDBU();
|
|
16597
16607
|
init_chunk_GYSQV2DS();
|
|
@@ -22746,7 +22756,7 @@ var init_hub_materializer = __esm({
|
|
|
22746
22756
|
var init_ci = __esm({
|
|
22747
22757
|
"../../packages/core/dist/contracts/ci.js"() {
|
|
22748
22758
|
"use strict";
|
|
22749
|
-
|
|
22759
|
+
init_chunk_JJYZUBYV();
|
|
22750
22760
|
init_chunk_NEIVT3KL();
|
|
22751
22761
|
init_chunk_HRKVCI5A();
|
|
22752
22762
|
init_chunk_IW7D2QOD();
|
|
@@ -27776,53 +27786,60 @@ async function syncAfterPush(client, hubId, hubFolder, pushed, organizationId) {
|
|
|
27776
27786
|
}
|
|
27777
27787
|
}
|
|
27778
27788
|
async function pushSingleHub(client, hubId, hubFolder, autoConfirm, organizationId, opts) {
|
|
27779
|
-
|
|
27780
|
-
let remoteConfig;
|
|
27789
|
+
let landed = false;
|
|
27781
27790
|
try {
|
|
27782
|
-
|
|
27783
|
-
|
|
27784
|
-
|
|
27785
|
-
|
|
27786
|
-
|
|
27787
|
-
|
|
27788
|
-
|
|
27789
|
-
|
|
27790
|
-
|
|
27791
|
-
|
|
27792
|
-
|
|
27793
|
-
|
|
27794
|
-
|
|
27795
|
-
|
|
27796
|
-
|
|
27797
|
-
|
|
27798
|
-
|
|
27799
|
-
)
|
|
27800
|
-
|
|
27801
|
-
|
|
27802
|
-
|
|
27803
|
-
|
|
27804
|
-
|
|
27805
|
-
|
|
27806
|
-
|
|
27791
|
+
assertSkillsLayout(hubFolder);
|
|
27792
|
+
let remoteConfig;
|
|
27793
|
+
try {
|
|
27794
|
+
remoteConfig = await client.pull(hubId, organizationId);
|
|
27795
|
+
} catch (err) {
|
|
27796
|
+
const fallbackConfig = parseHubFolder(hubFolder);
|
|
27797
|
+
assertResourcePayloadFitsWithoutPruning(fallbackConfig, err);
|
|
27798
|
+
}
|
|
27799
|
+
if (!opts?.skipAgentRename) {
|
|
27800
|
+
await autoRenameAgentFiles(client, hubId, hubFolder, organizationId, remoteConfig);
|
|
27801
|
+
}
|
|
27802
|
+
console.log("Parsing local configuration...");
|
|
27803
|
+
const localConfig = parseHubFolder(hubFolder);
|
|
27804
|
+
const wireConfig = remoteConfig ? prepareResourcePayload(localConfig, remoteConfig) : localConfig;
|
|
27805
|
+
console.log("Computing diff...");
|
|
27806
|
+
const diffResult = await client.diff(hubId, wireConfig, "push", organizationId);
|
|
27807
|
+
printWarnings([...diffResult.warnings, ...pageDesignWarnings(localConfig.pages)]);
|
|
27808
|
+
if (shouldWarnIgnoredPreviewLabel(localConfig.preview_label, diffResult.preview_label)) {
|
|
27809
|
+
console.warn(
|
|
27810
|
+
`Note: preview_label "${localConfig.preview_label}" in hub.yaml is server-owned and ignored on push (server value: ${diffResult.preview_label ?? "none"}). Use \`wayai relabel\` to change it.`
|
|
27811
|
+
);
|
|
27812
|
+
}
|
|
27813
|
+
if (!diffResult.has_changes) {
|
|
27814
|
+
landed = true;
|
|
27815
|
+
const finalFolder = autoRenameHubFolder(hubFolder, localConfig.hub.name, localConfig.hub_environment, hubId, localConfig.preview_label, localConfig.branch_name);
|
|
27816
|
+
if (finalFolder === hubFolder) {
|
|
27817
|
+
console.log("No changes to push.");
|
|
27818
|
+
} else {
|
|
27819
|
+
console.log("No changes to push; folder renamed.");
|
|
27820
|
+
}
|
|
27821
|
+
seedScopeIfEmpty("hubs", hubId);
|
|
27822
|
+
return true;
|
|
27823
|
+
}
|
|
27824
|
+
console.log("\nChanges to push:");
|
|
27825
|
+
printDiff(diffResult.summary);
|
|
27826
|
+
if (!autoConfirm) {
|
|
27827
|
+
const ok = await confirm("Push these changes?");
|
|
27828
|
+
if (!ok) {
|
|
27829
|
+
console.log("Cancelled.");
|
|
27830
|
+
return false;
|
|
27831
|
+
}
|
|
27807
27832
|
}
|
|
27833
|
+
console.log("Pushing changes...");
|
|
27834
|
+
const result = await client.push(hubId, wireConfig, organizationId);
|
|
27835
|
+
printSyncResult(result);
|
|
27836
|
+
landed = true;
|
|
27837
|
+
await syncAfterPush(client, hubId, hubFolder, localConfig, organizationId);
|
|
27808
27838
|
seedScopeIfEmpty("hubs", hubId);
|
|
27809
27839
|
return true;
|
|
27840
|
+
} finally {
|
|
27841
|
+
if (!landed) opts?.onNotPushed?.();
|
|
27810
27842
|
}
|
|
27811
|
-
console.log("\nChanges to push:");
|
|
27812
|
-
printDiff(diffResult.summary);
|
|
27813
|
-
if (!autoConfirm) {
|
|
27814
|
-
const ok = await confirm("Push these changes?");
|
|
27815
|
-
if (!ok) {
|
|
27816
|
-
console.log("Cancelled.");
|
|
27817
|
-
return false;
|
|
27818
|
-
}
|
|
27819
|
-
}
|
|
27820
|
-
console.log("Pushing changes...");
|
|
27821
|
-
const result = await client.push(hubId, wireConfig, organizationId);
|
|
27822
|
-
printSyncResult(result);
|
|
27823
|
-
await syncAfterPush(client, hubId, hubFolder, localConfig, organizationId);
|
|
27824
|
-
seedScopeIfEmpty("hubs", hubId);
|
|
27825
|
-
return true;
|
|
27826
27843
|
}
|
|
27827
27844
|
function selectExistingHub(workspaceDir, allHubs, selector, wsLabel) {
|
|
27828
27845
|
if (selector !== void 0) {
|
|
@@ -27863,7 +27880,11 @@ New hub: "${newHub.hubName}" (${hubType})`);
|
|
|
27863
27880
|
const parsed = parseHubFolder(newHub.hubFolder, { allowNewHub: true });
|
|
27864
27881
|
const refusals = (parsed.agents ?? []).flatMap((agent) => [
|
|
27865
27882
|
agentConnectionRefusal(agent),
|
|
27866
|
-
|
|
27883
|
+
// A config sent as JSON text is read as the object it holds, as the server reads it (gh #5746).
|
|
27884
|
+
...(agent.tools?.custom ?? []).flatMap((tool) => [
|
|
27885
|
+
customToolConnectionRefusal(agent.name, tool),
|
|
27886
|
+
customToolDescriptionRefusal(agent.name, { ...tool, config: customToolConfigObject(tool.config) })
|
|
27887
|
+
])
|
|
27867
27888
|
]).filter((refusal2) => refusal2 !== null);
|
|
27868
27889
|
if (refusals.length > 0) throw expected(refusals.join("\n"));
|
|
27869
27890
|
console.log("Creating hub...");
|
|
@@ -27896,7 +27917,14 @@ ${content}`;
|
|
|
27896
27917
|
}
|
|
27897
27918
|
writeFileNoFollow(newHub.hubFolder, hubYamlPath, Buffer.from(updated, "utf-8"));
|
|
27898
27919
|
seedScopeIfEmpty("hubs", hubId);
|
|
27899
|
-
|
|
27920
|
+
const folder = path30.basename(newHub.hubFolder);
|
|
27921
|
+
await pushSingleHub(client, hubId, newHub.hubFolder, opts.autoConfirm, opts.organizationId, {
|
|
27922
|
+
skipAgentRename: true,
|
|
27923
|
+
onNotPushed: () => console.error(
|
|
27924
|
+
`
|
|
27925
|
+
Hub "${createdHub.hub_name}" (${hubId}) was created and its hub_id written to ${folder}/hub.yaml, but its first push did not land. Once the folder is ready, run \`wayai push --hub ${folder}\` (not \`wayai create\`).`
|
|
27926
|
+
)
|
|
27927
|
+
});
|
|
27900
27928
|
}
|
|
27901
27929
|
function reportUnresolvedPushTarget(reason, existingHubs, newHubs, selector, wsLabel, hint = null) {
|
|
27902
27930
|
if (reason === "none") {
|
|
@@ -28271,7 +28299,8 @@ var init_pull = __esm({
|
|
|
28271
28299
|
var create_exports = {};
|
|
28272
28300
|
__export(create_exports, {
|
|
28273
28301
|
createCommand: () => createCommand,
|
|
28274
|
-
parseArgs: () => parseArgs8
|
|
28302
|
+
parseArgs: () => parseArgs8,
|
|
28303
|
+
reportNoNewHub: () => reportNoNewHub
|
|
28275
28304
|
});
|
|
28276
28305
|
import * as path32 from "path";
|
|
28277
28306
|
import * as fs23 from "fs";
|
|
@@ -28291,6 +28320,19 @@ function parseArgs8(args2) {
|
|
|
28291
28320
|
}
|
|
28292
28321
|
return { autoConfirm, folderSelector, label: label2 };
|
|
28293
28322
|
}
|
|
28323
|
+
function reportNoNewHub(enclosing, existingHubs, wsLabel) {
|
|
28324
|
+
const created = enclosing ? [] : filterPreviewHubs(existingHubs);
|
|
28325
|
+
if (enclosing && isPreviewHub(enclosing)) {
|
|
28326
|
+
const folder = path32.basename(enclosing.hubFolder);
|
|
28327
|
+
console.error(`Hub "${folder}" already exists (${enclosing.hubId}). Use \`wayai push --hub ${folder}\` to update it.`);
|
|
28328
|
+
} else if (created.length > 0) {
|
|
28329
|
+
console.error(`Every hub folder in ${wsLabel}/ is already created. Push one with \`wayai push --hub <folder>\`, or create ${wsLabel}/<hub>/hub.yaml with \`hub: { name: ... }\` for a new hub:`);
|
|
28330
|
+
for (const h of created) console.error(` ${path32.basename(h.hubFolder)} (${h.hubId})`);
|
|
28331
|
+
} else {
|
|
28332
|
+
console.error(`No new (uncreated) hub folders found in ${wsLabel}/. Create ${wsLabel}/<hub>/hub.yaml with \`hub: { name: ... }\` first, then run \`wayai create\`.`);
|
|
28333
|
+
}
|
|
28334
|
+
process.exit(1);
|
|
28335
|
+
}
|
|
28294
28336
|
async function createCommand(args2) {
|
|
28295
28337
|
const { autoConfirm, folderSelector, label: label2 } = parseArgs8(args2);
|
|
28296
28338
|
const repoConfig = requireRepoConfig();
|
|
@@ -28318,10 +28360,7 @@ async function createCommand(args2) {
|
|
|
28318
28360
|
console.error(`No new (uncreated) hub folder "${folderSelector}" found in ${wsLabel}/. A new hub folder needs a hub.yaml with \`hub: { name: ... }\` and no hub_id.`);
|
|
28319
28361
|
process.exit(1);
|
|
28320
28362
|
}
|
|
28321
|
-
if (resolution.reason === "none")
|
|
28322
|
-
console.error(`No new (uncreated) hub folders found in ${wsLabel}/. Create ${wsLabel}/<hub>/hub.yaml with \`hub: { name: ... }\` first, then run \`wayai create\`.`);
|
|
28323
|
-
process.exit(1);
|
|
28324
|
-
}
|
|
28363
|
+
if (resolution.reason === "none") reportNoNewHub(findEnclosingHubFolder(workspaceDir), existingHubs, wsLabel);
|
|
28325
28364
|
console.error(`Multiple new hub folders found in ${wsLabel}/. Pass the folder name (\`wayai create <folder>\`) or run from inside one:`);
|
|
28326
28365
|
for (const h of newHubs) {
|
|
28327
28366
|
console.error(` ${path32.basename(h.hubFolder)} (new \u2014 "${h.hubName}")`);
|