bpmax-cli 0.2.1-beta.45 → 0.2.1-beta.46
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/bin.js +28 -4
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -496,7 +496,7 @@ function pluginAgentCapabilityForRequest(method, normalizedPath) {
|
|
|
496
496
|
// package.json
|
|
497
497
|
var package_default = {
|
|
498
498
|
name: "bpmax-cli",
|
|
499
|
-
version: "0.2.1-beta.
|
|
499
|
+
version: "0.2.1-beta.46",
|
|
500
500
|
description: "CLI for BPMAX environments with multi-profile config and local login callback flow",
|
|
501
501
|
type: "module",
|
|
502
502
|
bin: {
|
|
@@ -12683,6 +12683,10 @@ async function exportConfigDomain(config, profile, domain, id, outDir, options =
|
|
|
12683
12683
|
id,
|
|
12684
12684
|
profile: profile.name,
|
|
12685
12685
|
workspace: profile.config.workspace,
|
|
12686
|
+
...domain === "workspace-flow" ? {
|
|
12687
|
+
transport_workspace: profile.config.workspace,
|
|
12688
|
+
target_workspace: normalizeWorkspaceKey(id)
|
|
12689
|
+
} : {},
|
|
12686
12690
|
exported_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
12687
12691
|
base_hash: baseHash,
|
|
12688
12692
|
raw_file: rawFile,
|
|
@@ -13050,9 +13054,9 @@ async function submitConfigDomain(config, profile, domain, id, submitFile, confi
|
|
|
13050
13054
|
}
|
|
13051
13055
|
await ensureConfigCapability(profile, `${definition.capability}.${createMode ? "create" : "submit"}`);
|
|
13052
13056
|
const workspace = normalizeWorkspaceKey(String(submit2.payload.workspace || id));
|
|
13053
|
-
const
|
|
13054
|
-
if (
|
|
13055
|
-
throw new Error(`Config submit
|
|
13057
|
+
const expectedTargetWorkspace = normalizeWorkspaceKey(String(meta2.target_workspace || meta2.id || ""));
|
|
13058
|
+
if (expectedTargetWorkspace && expectedTargetWorkspace !== workspace) {
|
|
13059
|
+
throw new Error(`Config submit target workspace mismatch. Expected ${expectedTargetWorkspace}, got ${workspace}.`);
|
|
13056
13060
|
}
|
|
13057
13061
|
const endpoint2 = "/workspace/workspace_flow";
|
|
13058
13062
|
const normalizedWorkspaceFlow = normalizeWorkspaceFlowItems(submit2.payload.workspace_flow);
|
|
@@ -14484,6 +14488,26 @@ function nextStepForDomain(domain) {
|
|
|
14484
14488
|
}
|
|
14485
14489
|
async function analyzeConfigImpact(options) {
|
|
14486
14490
|
const workspaceRoot = path6.resolve(options.workspaceRoot);
|
|
14491
|
+
if (JSON.stringify(options.raw) === JSON.stringify(options.work)) {
|
|
14492
|
+
return {
|
|
14493
|
+
ok: true,
|
|
14494
|
+
domain: options.domain,
|
|
14495
|
+
impact_status: "no_identifier_changes",
|
|
14496
|
+
changed_identifiers: [],
|
|
14497
|
+
references_found: [],
|
|
14498
|
+
impacted_config_domains: [],
|
|
14499
|
+
required_collateral_candidates: [],
|
|
14500
|
+
recommended_next_steps: [],
|
|
14501
|
+
unverified_surfaces: [],
|
|
14502
|
+
scan: {
|
|
14503
|
+
workspace_root: workspaceRoot,
|
|
14504
|
+
scanned_directories: [],
|
|
14505
|
+
scanned_files: 0,
|
|
14506
|
+
skipped_large_files: 0,
|
|
14507
|
+
reference_limit_reached: false
|
|
14508
|
+
}
|
|
14509
|
+
};
|
|
14510
|
+
}
|
|
14487
14511
|
const changedIdentifiers = collectChangedIdentifiers(options.raw, options.work);
|
|
14488
14512
|
const { directories, files } = await collectConfigFiles(workspaceRoot);
|
|
14489
14513
|
const references = [];
|