bpmax-cli 0.2.1-beta.72 → 0.2.1-beta.74
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/README.md +10 -0
- package/dist/bin.js +23 -5
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-role-editor/SKILL.md +4 -0
package/README.md
CHANGED
|
@@ -454,3 +454,13 @@ Publish a BBS:
|
|
|
454
454
|
bpmax-cli bbs create --name "预算查询" --scene "预算分析" --zip ./skill.zip --profile yuanrong --format json
|
|
455
455
|
bpmax-cli bbs upgrade <skill-key> --zip ./skill.zip --release-note "..." --profile yuanrong --format json
|
|
456
456
|
```
|
|
457
|
+
|
|
458
|
+
### 列出所有角色
|
|
459
|
+
|
|
460
|
+
```bash
|
|
461
|
+
bpmax-cli role list --profile <profile> --format json
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
返回当前 profile 所属组织的全部未删除角色(JSON 数组),不受列表分页上限限制。
|
|
465
|
+
使用现有 `config.role.export` capability,需 API Key 已授权配置读取能力;不要求本地配置工作区。
|
|
466
|
+
支持通用 `--format` 输出选项,例如 `table`、`json`、`ndjson`。
|
package/dist/bin.js
CHANGED
|
@@ -501,7 +501,7 @@ function pluginAgentCapabilityForRequest(method, normalizedPath) {
|
|
|
501
501
|
// package.json
|
|
502
502
|
var package_default = {
|
|
503
503
|
name: "bpmax-cli",
|
|
504
|
-
version: "0.2.1-beta.
|
|
504
|
+
version: "0.2.1-beta.74",
|
|
505
505
|
description: "CLI for BPMAX environments with multi-profile config and local login callback flow",
|
|
506
506
|
type: "module",
|
|
507
507
|
bin: {
|
|
@@ -20424,6 +20424,7 @@ var schemaEntries = [
|
|
|
20424
20424
|
{ name: "auth.logout", description: "Clear the saved API key for the selected profile.", bootstrap: true },
|
|
20425
20425
|
{ name: "auth.device.start", description: "Start device authorization.", method: "POST", path: "/api/cli/device_authorizations", bootstrap: true },
|
|
20426
20426
|
{ name: "auth.device.complete", description: "Complete device authorization.", method: "POST", path: "/api/cli/device_token", bootstrap: true },
|
|
20427
|
+
{ name: "role.list", description: "List all non-deleted organization roles using config.role.export capability.", method: "GET", path: "/api/role/all" },
|
|
20427
20428
|
{ name: "user.current", description: "Get current user.", method: "GET", path: "/api/user/current" },
|
|
20428
20429
|
{ name: "user.search", description: "Search organization users with privacy-safe typed output.", method: "GET", path: "/api/user" },
|
|
20429
20430
|
{ name: "user.readback", description: "Read exact BPMAX identity and active status.", method: "GET", path: "/api/user?ids=:ids" },
|
|
@@ -37731,7 +37732,7 @@ var SECRET_PATTERNS = [
|
|
|
37731
37732
|
},
|
|
37732
37733
|
{
|
|
37733
37734
|
code: "secret.token_like",
|
|
37734
|
-
pattern: /(
|
|
37735
|
+
pattern: /(?<![A-Za-z0-9_-])-[A-Za-z0-9_][A-Za-z0-9_-]{15,}\b/,
|
|
37735
37736
|
message: "Issue draft contains a token-like value; replace it with a redacted placeholder."
|
|
37736
37737
|
}
|
|
37737
37738
|
];
|
|
@@ -41558,7 +41559,8 @@ var CONFIG_TASK_RULES = [
|
|
|
41558
41559
|
writeEvidence: [/bpmax-cli config dataset lint/, /bpmax-cli config dataset build/, /bpmax-cli config dataset submit/, /bpmax-cli config dataset verify/],
|
|
41559
41560
|
readonlyEvidence: [/bpmax-cli config dataset export|数据集.*回读|readback/i],
|
|
41560
41561
|
constraintEvidence: /字段关联|relationFields|publish|refresh|数据集约束/i,
|
|
41561
|
-
|
|
41562
|
+
// Match domain tokens, not source_dataset_field or other mapping metadata.
|
|
41563
|
+
mentionPattern: /数据集(?!字段)|(?<![A-Za-z0-9_-])(?:dataset|data_set)(?![A-Za-z0-9_-])/
|
|
41562
41564
|
},
|
|
41563
41565
|
{
|
|
41564
41566
|
domain: "dataset-field",
|
|
@@ -41567,7 +41569,7 @@ var CONFIG_TASK_RULES = [
|
|
|
41567
41569
|
writeEvidence: [/bpmax-cli config dataset-field lint/, /bpmax-cli config dataset-field build/, /bpmax-cli config dataset-field submit/, /bpmax-cli config dataset-field verify/],
|
|
41568
41570
|
readonlyEvidence: [/bpmax-cli config dataset-field export|数据集字段.*回读|readback/i],
|
|
41569
41571
|
constraintEvidence: /source_table|source_field|source_fk|source mapping|字段映射|来源表|数据集字段约束/i,
|
|
41570
|
-
mentionPattern: /数据集字段|dataset-field|data_set_field/
|
|
41572
|
+
mentionPattern: /数据集字段|(?<![A-Za-z0-9_-])(?:dataset-field|data_set_field)(?![A-Za-z0-9_-])/
|
|
41571
41573
|
},
|
|
41572
41574
|
{
|
|
41573
41575
|
domain: "api-platform",
|
|
@@ -41603,7 +41605,7 @@ var CONFIG_TASK_RULES = [
|
|
|
41603
41605
|
writeEvidence: [/bpmax-cli config workspace lint/, /bpmax-cli config workspace build/, /bpmax-cli config workspace submit/, /bpmax-cli config workspace verify/],
|
|
41604
41606
|
readonlyEvidence: [/bpmax-cli config workspace export|工作区.*回读|readback/i],
|
|
41605
41607
|
constraintEvidence: /workspace key|entry_path|工作区约束|workspace lint/i,
|
|
41606
|
-
mentionPattern: /创建工作区|编辑工作区|工作区配置|config
|
|
41608
|
+
mentionPattern: /创建工作区|编辑工作区|工作区配置|(?<![A-Za-z0-9_-])config\s+workspace(?![A-Za-z0-9_-])|workspace config/
|
|
41607
41609
|
},
|
|
41608
41610
|
{
|
|
41609
41611
|
domain: "workspace-flow",
|
|
@@ -44528,6 +44530,21 @@ function registerUrlCommands(program2, deps = {}) {
|
|
|
44528
44530
|
);
|
|
44529
44531
|
}
|
|
44530
44532
|
|
|
44533
|
+
// src/commands/role.ts
|
|
44534
|
+
function registerRoleCommands(program2) {
|
|
44535
|
+
const role = program2.command("role").description("Organization role queries");
|
|
44536
|
+
role.command("list").description("List all non-deleted roles in the current organization (requires config.role.export)").option("--profile <profile>", "Profile name").option("--format <format>", "Output format", "json").action(async (options) => {
|
|
44537
|
+
const profile = resolveProfile(await loadConfig(), options.profile);
|
|
44538
|
+
const roles = await apiRequest(createApiClient(profile), "GET", "/role/all", {
|
|
44539
|
+
capability: "config.role.export"
|
|
44540
|
+
});
|
|
44541
|
+
if (!Array.isArray(roles) || roles.some((role2) => !role2 || typeof role2 !== "object" || Array.isArray(role2))) {
|
|
44542
|
+
throw new Error("role.list.invalid_response: Expected an array of roles from /role/all.");
|
|
44543
|
+
}
|
|
44544
|
+
printResult(options.format, roles);
|
|
44545
|
+
});
|
|
44546
|
+
}
|
|
44547
|
+
|
|
44531
44548
|
// src/commands/user.ts
|
|
44532
44549
|
import { readFile as readFile27 } from "fs/promises";
|
|
44533
44550
|
async function parseJsonInput3(value) {
|
|
@@ -45014,6 +45031,7 @@ registerBbsCommands(program);
|
|
|
45014
45031
|
registerApiCommands(program);
|
|
45015
45032
|
registerSchemaCommands(program);
|
|
45016
45033
|
registerUserCommands(program);
|
|
45034
|
+
registerRoleCommands(program);
|
|
45017
45035
|
registerEsCommands(program);
|
|
45018
45036
|
registerFlowCommands(program);
|
|
45019
45037
|
registerIssueCommands(program);
|