@software-dlc/cli 0.204.4 → 0.204.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @software-dlc/cli
2
2
 
3
+ ## 0.204.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 5f7b83c: Graph: `sdlc org root-v1-use --organization <id> [--days 1..90] [--json]` shows an organization's owner or admin, by day, project and client, how often graph sync still served root version 1 to clients that do not offer version 2, built a version 1 root for them, or refused a build. It reads the owner route with an `audit:read` API key in `SDLC_API_KEY`, created by you for that organization only.
8
+
3
9
  ## 0.204.4
4
10
 
5
11
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  export declare const RESET_USAGE = "Usage: sdlc reset --discard-proposal";
2
2
  export declare const SDLC_CLI_USAGE = "Usage: sdlc connection add <name> --url <origin> --credential-env <ENV_NAME> | connection list | env add <profile> --connection <name> --repository-id <uuid> | env migrate --connection <name> | env use <profile> | env recover | env current | env list | init --connection <name> --repository-id <uuid> [--profile <name>] | reconnect --expected-project-id <uuid> --project-id <uuid> --branch-id <uuid> --adopt-projection | context [--health] | task-context --task-id <id> [--execution-id <id>] [--registry-id <expected-id>] | branches | branch bind --branch-id <uuid> [--worktree-id <uuid>] | session start --revision <n> | checkout [--force] [--work-dir <path>] [--upgrade-evidence] | refresh [--force] [--work-dir <path>] [--upgrade-evidence] | status [--health] | diff | compare [--include-entities] [--no-fields] [--entity-id=<id>] [--require-auto-merge-clean] [--scope-recipes-file <path>] [--target-graph-file <path> [--source-graph-file <path>] [--merge-base-graph-file <path>]] [--base-url <url>] | snapshot inspect --snapshot-id <uuid> [--timeout-ms <1000..600000>] | scope-impact (--impact-node-id <id> | --impact-edge-id <id>) [--path-id <id>] [--path-tree-root-id <id>] [--node-id <id>] [--edge-id <id>] | compare-subgraph --seed-entity-id <id> [--require-unchanged] [--connection-hops <0..3>] [--connection-direction <incoming|outgoing|both>] [--descendants <none|direct|all>] [--related-path-hops <0..1>] [--no-intersecting-paths] [--max-nodes <1..240>] [--max-edges <0..480>] [--max-paths <0..240>] [--max-path-relations <0..240>] | validate | rebuild [--node <uuid>] [--without-projection] | reset --discard-proposal | rm <entity-relative-path> | media upload <image-path> | save [--graph-file <path> [--save-mode patch|replace]] [--base-url <url>] | sync [--base-url <url>] [--recover-stale-pending [--discard-unapplied-pending] --expected-remote-revision <n> --expected-remote-sync-revision <n> --expected-remote-sync-root-hash <sha256>] | branch commit --message <text> --expected-head <commit-uuid|none> [--branch-id <uuid>] [--idempotency-key <key>] | branch apply --idempotency-key <key> [--expected-workspace-revision <n>] ... | pr review|approve|merge --pr-id <uuid> ...";
3
3
  /** Top-level help: the local-first commands, then the hosted ones. */
4
- export declare const SDLC_CLI_HELP = "Local graph (start here; no account needed):\n sdlc workspace init start a local graph in this repository\n sdlc workspace ... create, commit and inspect local plan workspaces\n sdlc integrate ... merge child workspaces into a coordinator\n sdlc handoff ... hand a child's changes back to its source\n sdlc topology ... inspect, move, export or clone local graph state\n sdlc workspace attach join another repository to an existing local graph\n sdlc org ... plan the local org: teams, job functions, posts and who holds them\n sdlc viewer serve a local web page of this repository's coordination pages\n sdlc branch list|create|select local graph branches\n sdlc merge ... merge a local branch's fetched upstream into it\n sdlc resolver ... set the program that proposes conflict resolutions\n sdlc remote ... send and fetch the local graph to and from a hosted project (needs an account)\n sdlc portable ... turn local history into commits a remote accepts\nRun sdlc <command> --help for a command's subcommands and flags. Local only: no SoftwareDLC account or credential, and no network unless --allow-network-resolver is given. sdlc/ and .sdlc/ must be ignored by Git; list them in .git/info/exclude to leave tracked files unchanged. Graph state lives under the Git common directory unless the global --repository-state-dir <path> (with --graph-repository-id <id>) or SDLC_REPOSITORY_STATE_DIR names another.\n\nPublic graph packages (no account needed):\n sdlc packages list|show|diff browse the bundled and downloaded packages, offline\n sdlc packages use|preview|resolve|upgrade use packages in this workspace's local graph, offline\n sdlc packages fetch download newer versions of public packages\n sdlc packages lock ... pin, update or remove the public packages a build bundles (for maintainers of the sdlc and plugin builds)\n\nPlugin:\n sdlc allow-mcp let the SoftwareDLC plugin run this repository's own install (--revoke, --list)\n\nSign-in (macOS; for hosted Tasks and queues):\n sdlc login sign this machine in to SoftwareDLC through the browser\n sdlc auth token|status print a current access token, or the sign-in's state\n sdlc logout revoke and remove the sign-in\n\nDeployments (CI, with an API key in SDLC_API_KEY):\n sdlc deploy record record that a project's Environment began running a revision\n\nHosted project (needs a SoftwareDLC connection):\nUsage: sdlc connection add <name> --url <origin> --credential-env <ENV_NAME> | connection list | env add <profile> --connection <name> --repository-id <uuid> | env migrate --connection <name> | env use <profile> | env recover | env current | env list | init --connection <name> --repository-id <uuid> [--profile <name>] | reconnect --expected-project-id <uuid> --project-id <uuid> --branch-id <uuid> --adopt-projection | context [--health] | task-context --task-id <id> [--execution-id <id>] [--registry-id <expected-id>] | branches | branch bind --branch-id <uuid> [--worktree-id <uuid>] | session start --revision <n> | checkout [--force] [--work-dir <path>] [--upgrade-evidence] | refresh [--force] [--work-dir <path>] [--upgrade-evidence] | status [--health] | diff | compare [--include-entities] [--no-fields] [--entity-id=<id>] [--require-auto-merge-clean] [--scope-recipes-file <path>] [--target-graph-file <path> [--source-graph-file <path>] [--merge-base-graph-file <path>]] [--base-url <url>] | snapshot inspect --snapshot-id <uuid> [--timeout-ms <1000..600000>] | scope-impact (--impact-node-id <id> | --impact-edge-id <id>) [--path-id <id>] [--path-tree-root-id <id>] [--node-id <id>] [--edge-id <id>] | compare-subgraph --seed-entity-id <id> [--require-unchanged] [--connection-hops <0..3>] [--connection-direction <incoming|outgoing|both>] [--descendants <none|direct|all>] [--related-path-hops <0..1>] [--no-intersecting-paths] [--max-nodes <1..240>] [--max-edges <0..480>] [--max-paths <0..240>] [--max-path-relations <0..240>] | validate | rebuild [--node <uuid>] [--without-projection] | reset --discard-proposal | rm <entity-relative-path> | media upload <image-path> | save [--graph-file <path> [--save-mode patch|replace]] [--base-url <url>] | sync [--base-url <url>] [--recover-stale-pending [--discard-unapplied-pending] --expected-remote-revision <n> --expected-remote-sync-revision <n> --expected-remote-sync-root-hash <sha256>] | branch commit --message <text> --expected-head <commit-uuid|none> [--branch-id <uuid>] [--idempotency-key <key>] | branch apply --idempotency-key <key> [--expected-workspace-revision <n>] ... | pr review|approve|merge --pr-id <uuid> ...";
4
+ export declare const SDLC_CLI_HELP = "Local graph (start here; no account needed):\n sdlc workspace init start a local graph in this repository\n sdlc workspace ... create, commit and inspect local plan workspaces\n sdlc integrate ... merge child workspaces into a coordinator\n sdlc handoff ... hand a child's changes back to its source\n sdlc topology ... inspect, move, export or clone local graph state\n sdlc workspace attach join another repository to an existing local graph\n sdlc org ... plan the local org: teams, job functions, posts and who holds them\n sdlc viewer serve a local web page of this repository's coordination pages\n sdlc branch list|create|select local graph branches\n sdlc merge ... merge a local branch's fetched upstream into it\n sdlc resolver ... set the program that proposes conflict resolutions\n sdlc remote ... send and fetch the local graph to and from a hosted project (needs an account)\n sdlc portable ... turn local history into commits a remote accepts\nRun sdlc <command> --help for a command's subcommands and flags. Local only: no SoftwareDLC account or credential, and no network unless --allow-network-resolver is given. sdlc/ and .sdlc/ must be ignored by Git; list them in .git/info/exclude to leave tracked files unchanged. Graph state lives under the Git common directory unless the global --repository-state-dir <path> (with --graph-repository-id <id>) or SDLC_REPOSITORY_STATE_DIR names another.\n\nPublic graph packages (no account needed):\n sdlc packages list|show|diff browse the bundled and downloaded packages, offline\n sdlc packages use|preview|resolve|upgrade use packages in this workspace's local graph, offline\n sdlc packages fetch download newer versions of public packages\n sdlc packages lock ... pin, update or remove the public packages a build bundles (for maintainers of the sdlc and plugin builds)\n\nPlugin:\n sdlc allow-mcp let the SoftwareDLC plugin run this repository's own install (--revoke, --list)\n\nSign-in (macOS; for hosted Tasks and queues):\n sdlc login sign this machine in to SoftwareDLC through the browser\n sdlc auth token|status print a current access token, or the sign-in's state\n sdlc logout revoke and remove the sign-in\n\nDeployments (CI, with an API key in SDLC_API_KEY):\n sdlc deploy record record that a project's Environment began running a revision\n\nOrganization owners and admins (with an API key in SDLC_API_KEY):\n sdlc org root-v1-use see which clients graph sync still serves root version 1\n\nHosted project (needs a SoftwareDLC connection):\nUsage: sdlc connection add <name> --url <origin> --credential-env <ENV_NAME> | connection list | env add <profile> --connection <name> --repository-id <uuid> | env migrate --connection <name> | env use <profile> | env recover | env current | env list | init --connection <name> --repository-id <uuid> [--profile <name>] | reconnect --expected-project-id <uuid> --project-id <uuid> --branch-id <uuid> --adopt-projection | context [--health] | task-context --task-id <id> [--execution-id <id>] [--registry-id <expected-id>] | branches | branch bind --branch-id <uuid> [--worktree-id <uuid>] | session start --revision <n> | checkout [--force] [--work-dir <path>] [--upgrade-evidence] | refresh [--force] [--work-dir <path>] [--upgrade-evidence] | status [--health] | diff | compare [--include-entities] [--no-fields] [--entity-id=<id>] [--require-auto-merge-clean] [--scope-recipes-file <path>] [--target-graph-file <path> [--source-graph-file <path>] [--merge-base-graph-file <path>]] [--base-url <url>] | snapshot inspect --snapshot-id <uuid> [--timeout-ms <1000..600000>] | scope-impact (--impact-node-id <id> | --impact-edge-id <id>) [--path-id <id>] [--path-tree-root-id <id>] [--node-id <id>] [--edge-id <id>] | compare-subgraph --seed-entity-id <id> [--require-unchanged] [--connection-hops <0..3>] [--connection-direction <incoming|outgoing|both>] [--descendants <none|direct|all>] [--related-path-hops <0..1>] [--no-intersecting-paths] [--max-nodes <1..240>] [--max-edges <0..480>] [--max-paths <0..240>] [--max-path-relations <0..240>] | validate | rebuild [--node <uuid>] [--without-projection] | reset --discard-proposal | rm <entity-relative-path> | media upload <image-path> | save [--graph-file <path> [--save-mode patch|replace]] [--base-url <url>] | sync [--base-url <url>] [--recover-stale-pending [--discard-unapplied-pending] --expected-remote-revision <n> --expected-remote-sync-revision <n> --expected-remote-sync-root-hash <sha256>] | branch commit --message <text> --expected-head <commit-uuid|none> [--branch-id <uuid>] [--idempotency-key <key>] | branch apply --idempotency-key <key> [--expected-workspace-revision <n>] ... | pr review|approve|merge --pr-id <uuid> ...";
5
5
  export declare const BRANCH_APPLY_USAGE = "Usage: sdlc branch apply --idempotency-key <key> [--expected-workspace-revision <n>] [--expected-workspace-id <uuid>] [--expected-branch-revision <n>] [--branch-id <uuid>]";
6
6
  export declare const BRANCH_COMMIT_USAGE = "Usage: sdlc branch commit --message <text> --expected-head <commit-uuid|none> [--branch-id <uuid>] [--idempotency-key <key>]\nA large commit runs as a background job the command follows to its answer; it prints the job's key, and running the command again with --idempotency-key <that key> follows the same job.";
7
7
  export declare const PULL_REQUEST_USAGE = "Usage: sdlc pr review --pr-id <uuid> [--comparison-diff-id <uuid> --comparison-manifest-hash <sha256:hex> --expected-source <commit-uuid> --expected-target <commit-uuid>] | pr approve --pr-id <uuid> --expected-source <commit-uuid> --expected-target <commit-uuid> --review-hash <hash> | pr merge --pr-id <uuid>";
@@ -1 +1 @@
1
- {"version":3,"file":"cli-help.d.ts","sourceRoot":"","sources":["../src/cli-help.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW,yCAAyC,CAAC;AAkDlE,eAAO,MAAM,cAAc,qpEACynE,CAAC;AAyBrpE,sEAAsE;AACtE,eAAO,MAAM,aAAa,8lJAA8mE,CAAC;AAEzoE,eAAO,MAAM,kBAAkB,gLACgJ,CAAC;AAChL,eAAO,MAAM,mBAAmB,4TAC4R,CAAC;AAC7T,eAAO,MAAM,kBAAkB,0TAC0R,CAAC;AAI1T;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC/B,OAAO,GAAG,SAAS,CAKrB;AA+ED,eAAO,MAAM,gBAAgB,QAAmC,CAAC;AAMjE,gGAAgG;AAChG,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAKzD;AAED,2GAA2G;AAC3G,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EAAE,EACd,EAAE,SAAS,EAAE,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GACzC,OAAO,CA0CT"}
1
+ {"version":3,"file":"cli-help.d.ts","sourceRoot":"","sources":["../src/cli-help.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW,yCAAyC,CAAC;AAkDlE,eAAO,MAAM,cAAc,qpEACynE,CAAC;AAyBrpE,sEAAsE;AACtE,eAAO,MAAM,aAAa,svJAAswE,CAAC;AAEjyE,eAAO,MAAM,kBAAkB,gLACgJ,CAAC;AAChL,eAAO,MAAM,mBAAmB,4TAC4R,CAAC;AAC7T,eAAO,MAAM,kBAAkB,0TAC0R,CAAC;AAI1T;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC/B,OAAO,GAAG,SAAS,CAKrB;AAgFD,eAAO,MAAM,gBAAgB,QAAmC,CAAC;AAMjE,gGAAgG;AAChG,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAKzD;AAED,2GAA2G;AAC3G,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EAAE,EACd,EAAE,SAAS,EAAE,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GACzC,OAAO,CA0CT"}
package/dist/cli-help.js CHANGED
@@ -3,6 +3,7 @@ import { SDLC_DEPLOY_HELP } from './cli-deploy.js';
3
3
  import { SDLC_LOGIN_HELP } from './cli-login.js';
4
4
  import { SDLC_VIEW_PUBLIC_USAGE } from './view-seam.js';
5
5
  import { ORG_USAGE } from './cli-org.js';
6
+ import { ROOT_V1_USE_HELP } from './cli-org-root-v1-use.js';
6
7
  import { ALLOW_MCP_USAGE } from './local/allow-mcp.js';
7
8
  import { DOCUMENT_HELP } from './local/document-commands.js';
8
9
  import { PACKAGES_USAGE } from './packages-cli.js';
@@ -66,7 +67,7 @@ const MERGE_USAGE = 'Usage: sdlc merge upstream [--resolve-conflicts] [--allow-n
66
67
  const PORTABLE_USAGE = 'Usage: sdlc portable plan [--commit <local-commit-id>] | convert [--commit <local-commit-id>] [--identity-file <json-file>] [--base-remote <name> --base-ref refs/heads/<branch>]\nplan shows how the local graph\'s history up to a commit (by default the current head) becomes portable commits a remote accepts; convert writes them, with author identities from --identity-file and, with --base-remote and --base-ref, on top of that remote branch. sdlc remote push sends them.';
67
68
  const RESOLVER_USAGE = 'Usage: sdlc resolver configure --file <json-file> | status | clear\nSets, shows or removes the repository\'s conflict resolver: a local program that integrate, handoff and merge run with --resolve-conflicts to propose resolutions, which are validated before anything is committed. It runs as you, with your access; it reaches the network only when the command also has --allow-network-resolver.';
68
69
  /** Top-level help: the local-first commands, then the hosted ones. */
69
- export const SDLC_CLI_HELP = `Local graph (start here; no account needed):\n sdlc workspace init start a local graph in this repository\n sdlc workspace ... create, commit and inspect local plan workspaces\n sdlc integrate ... merge child workspaces into a coordinator\n sdlc handoff ... hand a child's changes back to its source\n sdlc topology ... inspect, move, export or clone local graph state\n sdlc workspace attach join another repository to an existing local graph\n sdlc org ... plan the local org: teams, job functions, posts and who holds them\n sdlc viewer serve a local web page of this repository's coordination pages\n sdlc branch list|create|select local graph branches\n sdlc merge ... merge a local branch's fetched upstream into it\n sdlc resolver ... set the program that proposes conflict resolutions\n sdlc remote ... send and fetch the local graph to and from a hosted project (needs an account)\n sdlc portable ... turn local history into commits a remote accepts\nRun sdlc <command> --help for a command's subcommands and flags. ${LOCAL_ONLY_NOTE}\n\nPublic graph packages (no account needed):\n sdlc packages list|show|diff browse the bundled and downloaded packages, offline\n sdlc packages use|preview|resolve|upgrade use packages in this workspace's local graph, offline\n sdlc packages fetch download newer versions of public packages\n sdlc packages lock ... pin, update or remove the public packages a build bundles (for maintainers of the sdlc and plugin builds)\n\nPlugin:\n sdlc allow-mcp let the SoftwareDLC plugin run this repository's own install (--revoke, --list)\n\nSign-in (macOS; for hosted Tasks and queues):\n sdlc login sign this machine in to SoftwareDLC through the browser\n sdlc auth token|status print a current access token, or the sign-in's state\n sdlc logout revoke and remove the sign-in\n\nDeployments (CI, with an API key in SDLC_API_KEY):\n sdlc deploy record record that a project's Environment began running a revision\n\nHosted project (needs a SoftwareDLC connection):\n${SDLC_CLI_USAGE}`;
70
+ export const SDLC_CLI_HELP = `Local graph (start here; no account needed):\n sdlc workspace init start a local graph in this repository\n sdlc workspace ... create, commit and inspect local plan workspaces\n sdlc integrate ... merge child workspaces into a coordinator\n sdlc handoff ... hand a child's changes back to its source\n sdlc topology ... inspect, move, export or clone local graph state\n sdlc workspace attach join another repository to an existing local graph\n sdlc org ... plan the local org: teams, job functions, posts and who holds them\n sdlc viewer serve a local web page of this repository's coordination pages\n sdlc branch list|create|select local graph branches\n sdlc merge ... merge a local branch's fetched upstream into it\n sdlc resolver ... set the program that proposes conflict resolutions\n sdlc remote ... send and fetch the local graph to and from a hosted project (needs an account)\n sdlc portable ... turn local history into commits a remote accepts\nRun sdlc <command> --help for a command's subcommands and flags. ${LOCAL_ONLY_NOTE}\n\nPublic graph packages (no account needed):\n sdlc packages list|show|diff browse the bundled and downloaded packages, offline\n sdlc packages use|preview|resolve|upgrade use packages in this workspace's local graph, offline\n sdlc packages fetch download newer versions of public packages\n sdlc packages lock ... pin, update or remove the public packages a build bundles (for maintainers of the sdlc and plugin builds)\n\nPlugin:\n sdlc allow-mcp let the SoftwareDLC plugin run this repository's own install (--revoke, --list)\n\nSign-in (macOS; for hosted Tasks and queues):\n sdlc login sign this machine in to SoftwareDLC through the browser\n sdlc auth token|status print a current access token, or the sign-in's state\n sdlc logout revoke and remove the sign-in\n\nDeployments (CI, with an API key in SDLC_API_KEY):\n sdlc deploy record record that a project's Environment began running a revision\n\nOrganization owners and admins (with an API key in SDLC_API_KEY):\n sdlc org root-v1-use see which clients graph sync still serves root version 1\n\nHosted project (needs a SoftwareDLC connection):\n${SDLC_CLI_USAGE}`;
70
71
  export const BRANCH_APPLY_USAGE = 'Usage: sdlc branch apply --idempotency-key <key> [--expected-workspace-revision <n>] [--expected-workspace-id <uuid>] [--expected-branch-revision <n>] [--branch-id <uuid>]';
71
72
  export const BRANCH_COMMIT_USAGE = 'Usage: sdlc branch commit --message <text> --expected-head <commit-uuid|none> [--branch-id <uuid>] [--idempotency-key <key>]\nA large commit runs as a background job the command follows to its answer; it prints the job\'s key, and running the command again with --idempotency-key <that key> follows the same job.';
72
73
  export const PULL_REQUEST_USAGE = 'Usage: sdlc pr review --pr-id <uuid> [--comparison-diff-id <uuid> --comparison-manifest-hash <sha256:hex> --expected-source <commit-uuid> --expected-target <commit-uuid>] | pr approve --pr-id <uuid> --expected-source <commit-uuid> --expected-target <commit-uuid> --review-hash <hash> | pr merge --pr-id <uuid>';
@@ -90,6 +91,8 @@ function commandUsage(command, subcommand, viewUsage) {
90
91
  return viewUsage ?? SDLC_VIEW_PUBLIC_USAGE;
91
92
  if (command === 'packages')
92
93
  return PACKAGES_USAGE;
94
+ if (command === 'org' && subcommand === 'root-v1-use')
95
+ return ROOT_V1_USE_HELP;
93
96
  if (command === 'org')
94
97
  return ORG_USAGE;
95
98
  if (command === 'login' || command === 'logout' || command === 'auth')
@@ -1 +1 @@
1
- {"version":3,"file":"cli-help.js","sourceRoot":"","sources":["../src/cli-help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,sCAAsC,CAAC;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QACvB,UAAU,KAAK,KAAK;QACpB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,EAC9B,CAAC;QACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,aAAa,IAAI,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,cAAc,IAAI,YAAY,IAAI,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;QACrE,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,GAAG,YAAY,CAAC,YAAY,EAAE,eAAe,EAAE,SAAS,CAAC,IAAI,CAC9D,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,30 @@
1
+ export declare const ROOT_V1_USE_USAGE = "Usage: sdlc org root-v1-use --organization <id> [--days 1..90] [--json] [--origin <origin>]";
2
+ export declare const ROOT_V1_USE_HELP = "Usage: sdlc org root-v1-use --organization <id> [--days 1..90] [--json] [--origin <origin>]\nShows, by day, project and client, how often graph sync served root version 1 to clients that do not offer root version 2 (selected), built a version 1 root on demand for them (built), and refused a build the organization's limit had no room for (refused), over the last --days days (default 30). Run it as the organization's owner or an admin, with an API key in SDLC_API_KEY that has the audit:read scope (\"Read the audit trail and version 1 graph root use\" under Developers \u2192 API keys), created by you for this organization only, with no project or branch. It reads https://www.softwaredlc.com unless --origin names another; no redirect is followed. --json prints the answer as the API returns it. Exit 0: read; 1: invalid or refused, with the reason on stderr (a server refusal on stdout as {code, error} with --json).";
3
+ export type RootV1UseRow = {
4
+ day: string;
5
+ project_id: string;
6
+ client_kind: string;
7
+ client_release: string | null;
8
+ selected: number;
9
+ built: number;
10
+ refused: number;
11
+ last_at: string;
12
+ };
13
+ export type RootV1UseAnswer = {
14
+ organization_id: string;
15
+ since: string;
16
+ truncated: boolean;
17
+ rows: RootV1UseRow[];
18
+ };
19
+ export type RootV1UseDeps = {
20
+ fetch: typeof fetch;
21
+ environment: Readonly<Record<string, string | undefined>>;
22
+ out: (text: string) => void;
23
+ err: (text: string) => void;
24
+ };
25
+ /**
26
+ * Runs `sdlc org root-v1-use <args>`: 0 when the use is read, 1 when the
27
+ * command is invalid or the server refused it.
28
+ */
29
+ export declare function runOrgRootV1Use(args: string[], overrides?: Partial<RootV1UseDeps>): Promise<number>;
30
+ //# sourceMappingURL=cli-org-root-v1-use.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-org-root-v1-use.d.ts","sourceRoot":"","sources":["../src/cli-org-root-v1-use.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,iBAAiB,gGACiE,CAAC;AAChG,eAAO,MAAM,gBAAgB,+5BAAk1B,CAAC;AAOh3B,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,YAAY,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAC1D,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B,CAAC;AAiBF;;;GAGG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,MAAM,EAAE,EACd,SAAS,GAAE,OAAO,CAAC,aAAa,CAAM,GACrC,OAAO,CAAC,MAAM,CAAC,CAcjB"}
@@ -0,0 +1,255 @@
1
+ import { ApiVersionRefusedError } from '@software-dlc/graph/client/api-version';
2
+ import { SDLC_LOGIN_DEFAULT_ORIGIN } from './cli-login.js';
3
+ import { normalizeServiceOrigin } from './local/environment-sidecar.js';
4
+ import { BranchDeletedError, ProjectDeletedError, sdlcPlatformFetch } from './local/api-client.js';
5
+ // sdlc org root-v1-use: an organization's owner or admin reads how often graph
6
+ // sync served root version 1 to clients that do not offer version 2, through
7
+ // GET /api/v1/organizations/{organization_id}/graph-sync/root-v1-use with an
8
+ // audit:read key (plan 3120b7fe, slice clients-count-command).
9
+ export const ROOT_V1_USE_USAGE = 'Usage: sdlc org root-v1-use --organization <id> [--days 1..90] [--json] [--origin <origin>]';
10
+ export const ROOT_V1_USE_HELP = `${ROOT_V1_USE_USAGE}\nShows, by day, project and client, how often graph sync served root version 1 to clients that do not offer root version 2 (selected), built a version 1 root on demand for them (built), and refused a build the organization's limit had no room for (refused), over the last --days days (default 30). Run it as the organization's owner or an admin, with an API key in SDLC_API_KEY that has the audit:read scope ("Read the audit trail and version 1 graph root use" under Developers → API keys), created by you for this organization only, with no project or branch. It reads ${SDLC_LOGIN_DEFAULT_ORIGIN} unless --origin names another; no redirect is followed. --json prints the answer as the API returns it. Exit 0: read; 1: invalid or refused, with the reason on stderr (a server refusal on stdout as {code, error} with --json).`;
11
+ const KEY_VARIABLE = 'SDLC_API_KEY';
12
+ const REQUEST_TIMEOUT_MS = 30_000;
13
+ const KEY_ADVICE = 'an API key with the audit:read scope that you created for this organization only, with no project or branch';
14
+ class RootV1UseError extends Error {
15
+ }
16
+ const VALUE_OPTIONS = {
17
+ '--organization': 'organization',
18
+ '--days': 'days',
19
+ '--origin': 'origin'
20
+ };
21
+ /**
22
+ * Runs `sdlc org root-v1-use <args>`: 0 when the use is read, 1 when the
23
+ * command is invalid or the server refused it.
24
+ */
25
+ export async function runOrgRootV1Use(args, overrides = {}) {
26
+ const deps = { ...defaultDeps(), ...overrides };
27
+ if (args.includes('--help') || args.includes('-h')) {
28
+ deps.out(`${ROOT_V1_USE_HELP}\n`);
29
+ return 0;
30
+ }
31
+ // An invalid command, a missing key and a server that cannot be reached go
32
+ // to stderr; only the server's refusals print {code, error} with --json.
33
+ try {
34
+ return await read(parseOptions(args), deps);
35
+ }
36
+ catch (error) {
37
+ deps.err(`${error instanceof Error ? error.message : String(error)}\n`);
38
+ return 1;
39
+ }
40
+ }
41
+ async function read(options, deps) {
42
+ if (!options.organization) {
43
+ throw new RootV1UseError(`Missing --organization.\n${ROOT_V1_USE_USAGE}`);
44
+ }
45
+ if (options.days !== undefined && !/^(?:[1-9]|[1-8][0-9]|90)$/.test(options.days)) {
46
+ throw new RootV1UseError('--days must be a whole number from 1 to 90.');
47
+ }
48
+ const key = deps.environment[KEY_VARIABLE]?.trim();
49
+ if (!key) {
50
+ throw new RootV1UseError(`Set ${KEY_VARIABLE} to ${KEY_ADVICE}.`);
51
+ }
52
+ // A header refuses a control character with an error quoting the value, so
53
+ // refuse it here, without the key.
54
+ if (!/^[\x21-\x7e]+$/.test(key)) {
55
+ throw new RootV1UseError(`${KEY_VARIABLE} holds spaces, line breaks or other characters an API key never has.`);
56
+ }
57
+ const origin = readOrigin(options.origin);
58
+ const url = new URL(`/api/v1/organizations/${encodeURIComponent(options.organization)}/graph-sync/root-v1-use`, origin);
59
+ if (options.days !== undefined)
60
+ url.searchParams.set('days', options.days);
61
+ const send = sdlcPlatformFetch({
62
+ fetch_impl: deps.fetch,
63
+ environment: deps.environment
64
+ });
65
+ let response;
66
+ try {
67
+ response = await send(url, {
68
+ method: 'GET',
69
+ headers: { authorization: `Bearer ${key}` },
70
+ redirect: 'manual',
71
+ signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
72
+ });
73
+ }
74
+ catch (error) {
75
+ // The server answered, refusing this CLI's API version: a refusal like any other.
76
+ if (error instanceof ApiVersionRefusedError) {
77
+ return refuse(options, deps, error.refusal.code, error.message);
78
+ }
79
+ // So is the route's 410: the key was bound to a project or branch whose
80
+ // deletion revoked it. This command binds no checkout, so it names the key
81
+ // rather than the checkout's reconnect or branch bind advice.
82
+ if (error instanceof ProjectDeletedError || error instanceof BranchDeletedError) {
83
+ const code = error instanceof ProjectDeletedError ? 'project_deleted' : 'branch_deleted';
84
+ return refuse(options, deps, code, deletedKeyMessage(code));
85
+ }
86
+ // A header error quotes the value it refused, which may be a secret.
87
+ let message = error instanceof Error ? error.message : String(error);
88
+ for (const secret of [key, deps.environment.SDLC_PROTECTION_BYPASS?.trim()]) {
89
+ if (secret)
90
+ message = message.split(secret).join('[redacted]');
91
+ }
92
+ throw new RootV1UseError(`Could not reach ${origin}: ${message}.`);
93
+ }
94
+ const body = await response.json().catch(() => null);
95
+ if (response.status === 200) {
96
+ const answer = readAnswer(body);
97
+ if (!answer) {
98
+ return refuse(options, deps, 'unreadable_answer', `${origin} answered with a body that is not the version 1 use.`);
99
+ }
100
+ deps.out(options.json ? format(answer) : table(answer));
101
+ return 0;
102
+ }
103
+ const { code, error } = refusal(response, body, origin);
104
+ return refuse(options, deps, code, error);
105
+ }
106
+ function refuse(options, deps, code, error) {
107
+ if (options.json)
108
+ deps.out(format({ code, error }));
109
+ else
110
+ deps.err(`${error}\n`);
111
+ return 1;
112
+ }
113
+ function parseOptions(args) {
114
+ const options = { json: false };
115
+ for (let index = 0; index < args.length; index++) {
116
+ const arg = args[index];
117
+ if (arg === '--json') {
118
+ if (options.json)
119
+ throw new RootV1UseError(ROOT_V1_USE_USAGE);
120
+ options.json = true;
121
+ continue;
122
+ }
123
+ const match = /^(--[a-z-]+)(?:=(.*))?$/.exec(arg);
124
+ const name = match
125
+ ? VALUE_OPTIONS[match[1]]
126
+ : undefined;
127
+ if (!name || options[name] !== undefined) {
128
+ throw new RootV1UseError(ROOT_V1_USE_USAGE);
129
+ }
130
+ const value = match[2] ?? args[++index];
131
+ // A dot segment would move the request to another route.
132
+ if (!value || value.startsWith('--') || value === '.' || value === '..') {
133
+ throw new RootV1UseError(`${match[1]} needs a value.\n${ROOT_V1_USE_USAGE}`);
134
+ }
135
+ options[name] = value;
136
+ }
137
+ return options;
138
+ }
139
+ // An origin only: a path would let a flag send the key to a page of a host.
140
+ function readOrigin(value) {
141
+ const origin = normalizeServiceOrigin(value ?? SDLC_LOGIN_DEFAULT_ORIGIN);
142
+ if (new URL(origin).pathname !== '/') {
143
+ throw new RootV1UseError('--origin must be an origin like https://host[:port].');
144
+ }
145
+ return origin;
146
+ }
147
+ function readAnswer(body) {
148
+ if (!body || typeof body !== 'object')
149
+ return null;
150
+ const answer = body;
151
+ if (typeof answer.organization_id !== 'string' ||
152
+ typeof answer.since !== 'string' ||
153
+ typeof answer.truncated !== 'boolean' ||
154
+ !Array.isArray(answer.rows)) {
155
+ return null;
156
+ }
157
+ const rows_ok = answer.rows.every((row) => row &&
158
+ typeof row === 'object' &&
159
+ typeof row.day === 'string' &&
160
+ typeof row.project_id === 'string' &&
161
+ typeof row.client_kind === 'string' &&
162
+ (row.client_release === null || typeof row.client_release === 'string') &&
163
+ Number.isInteger(row.selected) &&
164
+ Number.isInteger(row.built) &&
165
+ Number.isInteger(row.refused));
166
+ return rows_ok ? answer : null;
167
+ }
168
+ /** The plain message for each refusal the route answers, naming the key it needs. */
169
+ function refusal(response, body, origin) {
170
+ const server = body &&
171
+ typeof body === 'object' &&
172
+ typeof body.code === 'string' &&
173
+ typeof body.error === 'string'
174
+ ? body
175
+ : null;
176
+ switch (response.status) {
177
+ case 401:
178
+ return {
179
+ code: server?.code ?? 'unauthorized',
180
+ error: `The key in ${KEY_VARIABLE} was not accepted or lacks the audit:read scope. Use ${KEY_ADVICE}.`
181
+ };
182
+ case 403:
183
+ return {
184
+ code: server?.code ?? 'forbidden',
185
+ error: `The key in ${KEY_VARIABLE} cannot read this organization. Use ${KEY_ADVICE}.`
186
+ };
187
+ case 404:
188
+ return {
189
+ code: server?.code ?? 'not_found_or_forbidden',
190
+ error: 'Not found: the organization does not exist, or you are not its owner or an admin. The owner or an admin can read its version 1 use.'
191
+ };
192
+ case 410:
193
+ return {
194
+ code: server?.code ?? 'gone',
195
+ error: deletedKeyMessage(server?.code)
196
+ };
197
+ }
198
+ if (server)
199
+ return server;
200
+ if (response.status >= 300 && response.status < 400) {
201
+ return {
202
+ code: 'redirected',
203
+ error: `${origin} answered with a redirect, which sdlc org root-v1-use does not follow; pass the origin it serves the API from with --origin.`
204
+ };
205
+ }
206
+ return {
207
+ code: `http_${response.status}`,
208
+ error: `${origin} answered HTTP ${response.status}.`
209
+ };
210
+ }
211
+ function deletedKeyMessage(code) {
212
+ const what = code === 'project_deleted'
213
+ ? 'the project it was created for was deleted'
214
+ : code === 'branch_deleted'
215
+ ? 'the branch it was created for was deleted'
216
+ : 'it was revoked';
217
+ return `The key in ${KEY_VARIABLE} no longer works: ${what}. Use ${KEY_ADVICE}.`;
218
+ }
219
+ function table(answer) {
220
+ if (answer.rows.length === 0) {
221
+ return `No root version 1 use since ${answer.since.slice(0, 10)}.\n`;
222
+ }
223
+ const header = ['day', 'project', 'client', 'selected', 'built', 'refused'];
224
+ const lines = answer.rows.map((row) => [
225
+ row.day.slice(0, 10),
226
+ row.project_id,
227
+ row.client_release ? `${row.client_kind}/${row.client_release}` : row.client_kind,
228
+ String(row.selected),
229
+ String(row.built),
230
+ String(row.refused)
231
+ ]);
232
+ const widths = header.map((title, column) => Math.max(title.length, ...lines.map((line) => line[column].length)));
233
+ // Text columns align left, counts right.
234
+ const render = (cells) => cells
235
+ .map((cell, column) => column < 3 ? cell.padEnd(widths[column]) : cell.padStart(widths[column]))
236
+ .join(' ')
237
+ .trimEnd();
238
+ const out = [render(header), ...lines.map(render)];
239
+ if (answer.truncated) {
240
+ out.push(`Truncated: the answer holds the newest ${answer.rows.length} rows; older days are left out.`);
241
+ }
242
+ return `${out.join('\n')}\n`;
243
+ }
244
+ function format(value) {
245
+ return `${JSON.stringify(value, null, 2)}\n`;
246
+ }
247
+ function defaultDeps() {
248
+ return {
249
+ fetch: globalThis.fetch,
250
+ environment: process.env,
251
+ out: (text) => process.stdout.write(text),
252
+ err: (text) => process.stderr.write(text)
253
+ };
254
+ }
255
+ //# sourceMappingURL=cli-org-root-v1-use.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-org-root-v1-use.js","sourceRoot":"","sources":["../src/cli-org-root-v1-use.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B,+EAA+E;AAC/E,6EAA6E;AAC7E,6EAA6E;AAC7E,+DAA+D;AAE/D,MAAM,CAAC,MAAM,iBAAiB,GAC5B,6FAA6F,CAAC;AAChG,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,iBAAiB,8jBAA8jB,yBAAyB,oOAAoO,CAAC;AAEh3B,MAAM,YAAY,GAAG,cAAc,CAAC;AACpC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAClC,MAAM,UAAU,GACd,6GAA6G,CAAC;AA2BhH,MAAM,cAAe,SAAQ,KAAK;CAAG;AASrC,MAAM,aAAa,GAAG;IACpB,gBAAgB,EAAE,cAAc;IAChC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,QAAQ;CACZ,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,IAAc,EACd,YAAoC,EAAE;IAEtC,MAAM,IAAI,GAAkB,EAAE,GAAG,WAAW,EAAE,EAAE,GAAG,SAAS,EAAE,CAAC;IAC/D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AAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;AAC/C,CAAC;AAED,SAAS,WAAW;IAClB,OAAO;QACL,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,WAAW,EAAE,OAAO,CAAC,GAAG;QACxB,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;QACzC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;KAC1C,CAAC;AACJ,CAAC"}
package/dist/cli-org.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { type RootV1UseDeps } from './cli-org-root-v1-use.js';
1
2
  export declare const ORG_USAGE: string;
2
3
  type OrgCommandContext = {
3
4
  cwd?: string;
@@ -5,6 +6,8 @@ type OrgCommandContext = {
5
6
  stderr?: Pick<NodeJS.WriteStream, 'write'>;
6
7
  /** Tests point it at a temporary repository store. */
7
8
  state_dir?: string;
9
+ /** Tests give root-v1-use a fake server and environment. */
10
+ root_v1_use?: Partial<RootV1UseDeps>;
8
11
  };
9
12
  /** `sdlc org …`: the local org (org-structure-and-access.md, osa-local-org). */
10
13
  export declare function runOrgCommand(args: string[], context?: OrgCommandContext): Promise<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"cli-org.d.ts","sourceRoot":"","sources":["../src/cli-org.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,SAAS,QAiCkC,CAAC;AAEzD,KAAK,iBAAiB,GAAG;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3C,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AA6UF,gFAAgF;AAChF,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,MAAM,CAAC,CAuBjB"}
1
+ {"version":3,"file":"cli-org.d.ts","sourceRoot":"","sources":["../src/cli-org.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAS/E,eAAO,MAAM,SAAS,QAmCkC,CAAC;AAEzD,KAAK,iBAAiB,GAAG;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3C,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC,CAAC;AA6UF,gFAAgF;AAChF,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,MAAM,CAAC,CA+BjB"}
package/dist/cli-org.js CHANGED
@@ -2,6 +2,7 @@ import { resolve } from 'node:path';
2
2
  import { argumentValue, argumentValues, hasArgument } from './cli-arguments.js';
3
3
  import { changeLocalHolder, changeLocalOrg, defaultWorkflowPath, describeLocalOrg, describeLocalProject, escalateLocalSlot, LOCAL_PERSON, localOrgMissing, localOrgSeedable, localOrgRules, openLocalOrgRepository, parseMember, readLocalOrg, readWorkflowRoles, resolveLocalSlots, seedLocalOrg, setLocalProjectTeam } from './local/local-org.js';
4
4
  import { applyOrgChange } from './local/org-change.js';
5
+ import { runOrgRootV1Use } from './cli-org-root-v1-use.js';
5
6
  /** The fields an edit names, leaving out those it keeps. */
6
7
  function withoutUndefined(value) {
7
8
  return Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== undefined));
@@ -25,6 +26,7 @@ export const ORG_USAGE = 'Usage: sdlc org [show] [--workflow <file>]\n' +
25
26
  ' sdlc org bind <slot> <team>/<function>... --reason <text> [--as <member>] [--workflow <file>]\n' +
26
27
  ' sdlc org unbind <slot> [--as <member>] [--workflow <file>]\n' +
27
28
  ' sdlc org escalate <slot> [--absent <member>]... [--author <member>] [--workflow <file>]\n' +
29
+ ' sdlc org root-v1-use --organization <id> [--days 1..90] [--json] [--origin <origin>]\n' +
28
30
  "The local org of a repository with no org connection: its teams, job functions, workflow slots and posts, held by you (the person user) and your local agent definitions. It is kept in the repository's local graph store, not in any project graph, and needs no account or network. " +
29
31
  "show prints the org as JSON: definitions, each post with its holders and reporting line, each member's primary and dotted lines (and an agent's accountable person), and how each slot resolves. " +
30
32
  "seed plans an org from a workflow file's roles (--workflow <file>; without a workflow, start one with sdlc org add team <key>): a root team, an org lead function you hold, under it a slot and a job function for each role, a post for each function, and the workflow's people and agents as holders; a role held only by people or teams requires a person. It is refused once the org exists. " +
@@ -38,6 +40,7 @@ export const ORG_USAGE = 'Usage: sdlc org [show] [--workflow <file>]\n' +
38
40
  "slots shows each slot's binding in that project: by default the posts whose function fills it in the owning team, or else the nearest parent team that has one (baseline); bind overrides that with the posts named and a reason, marking a post whose function does not fill the slot off-description, and unbind returns the slot to its baseline. " +
39
41
  "A slot whose gate needs a person cannot be bound to posts only agents hold, and a post bound to it keeps a person. own, bind and unbind govern the project: the member acting (--as person:<id> or agent:<id>; default person:user) must hold the owning team's lead post (its post highest in the function tree) or the lead post of a team above it, and own also the new team's. " +
40
42
  'escalate names who decides a slot: its holders, less those --absent and the --author; else the first eligible holder up the reporting line, to the top; a person when the gate needs one. A job function that is not escalable waits for its own holder instead. Bindings grant nothing. ' +
43
+ 'root-v1-use is the one hosted command: it reads, for a SoftwareDLC organization you own or administer, how often graph sync served root version 1 to clients that do not offer version 2, with an audit:read API key in SDLC_API_KEY (sdlc org root-v1-use --help). ' +
41
44
  'Exit 0: done; 1: refused, with the reason on stderr.';
42
45
  function memberOf(args) {
43
46
  const person = argumentValue(args, '--person');
@@ -319,6 +322,14 @@ async function run(args, repository, cwd) {
319
322
  export async function runOrgCommand(args, context = {}) {
320
323
  const stdout = context.stdout ?? process.stdout;
321
324
  const stderr = context.stderr ?? process.stderr;
325
+ // The hosted read needs no local org or repository.
326
+ if (args[0] === 'root-v1-use') {
327
+ return runOrgRootV1Use(args.slice(1), {
328
+ out: (text) => void stdout.write(text),
329
+ err: (text) => void stderr.write(text),
330
+ ...context.root_v1_use
331
+ });
332
+ }
322
333
  if (args[0] === '--help' || args[0] === '-h' || args[0] === 'help') {
323
334
  stdout.write(`${ORG_USAGE}\n`);
324
335
  return 0;
@@ -1 +1 @@
1
- {"version":3,"file":"cli-org.js","sourceRoot":"","sources":["../src/cli-org.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EAEpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAEvE,4DAA4D;AAC5D,SAAS,gBAAgB,CAAoC,KAAQ;IACnE,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CACnD,CAA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,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;QACrD,OAAO,CAAC,CAAC;IACX,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5E,OAAO,CAAC,CAAC;IACX,CAAC;YAAS,CAAC;QACT,UAAU,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;IAC5B,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@software-dlc/cli",
3
- "version": "0.204.4",
3
+ "version": "0.204.5",
4
4
  "description": "(Beta) The sdlc command and its local MCP servers: build, commit and read an SDLC graph of your code on your own machine.",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-ALv2",