@rosthq/cli 0.7.83 → 0.7.84

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.
@@ -1,2 +1,2 @@
1
- export declare function readCliVersion(): Promise<string | null>;
1
+ export declare function readCliVersion(embeddedVersion?: string | undefined): Promise<string | null>;
2
2
  //# sourceMappingURL=cli-version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli-version.d.ts","sourceRoot":"","sources":["../src/cli-version.ts"],"names":[],"mappings":"AAgBA,wBAAsB,cAAc,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQ7D"}
1
+ {"version":3,"file":"cli-version.d.ts","sourceRoot":"","sources":["../src/cli-version.ts"],"names":[],"mappings":"AA0BA,wBAAsB,cAAc,CAClC,eAAe,GAAE,MAAM,GAAG,SAAuF,GAChH,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAWxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAAoB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAwBrE,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAK1C,WAAW,CAAC,EAAE,OAAO,CAAC;IAOtB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAClD,CAAC;AAcF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,EAAE,CAAC,EAAE,K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AAC,MAAM,CAAC,CAkSnG;AA0hBD,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAUxF"}
package/dist/index.js CHANGED
@@ -37796,10 +37796,30 @@ function windowsClearScript(target) {
37796
37796
  ].join("\n");
37797
37797
  }
37798
37798
 
37799
+ // src/cli-version.ts
37800
+ import { readFile as readFile2 } from "node:fs/promises";
37801
+ import { dirname, resolve } from "node:path";
37802
+ import { fileURLToPath } from "node:url";
37803
+ var packageMetadataSchema = external_exports.object({
37804
+ version: external_exports.string()
37805
+ });
37806
+ async function readCliVersion(embeddedVersion = typeof __ROST_CLI_VERSION__ === "string" ? __ROST_CLI_VERSION__ : void 0) {
37807
+ if (embeddedVersion !== void 0) {
37808
+ return embeddedVersion;
37809
+ }
37810
+ const packageJsonPath = resolve(dirname(fileURLToPath(import.meta.url)), "../package.json");
37811
+ try {
37812
+ const metadata = packageMetadataSchema.parse(JSON.parse(await readFile2(packageJsonPath, "utf8")));
37813
+ return metadata.version;
37814
+ } catch {
37815
+ return null;
37816
+ }
37817
+ }
37818
+
37799
37819
  // ../../packages/prompts/src/index.ts
37800
37820
  import { readFileSync } from "node:fs";
37801
- import { dirname, join } from "node:path";
37802
- import { fileURLToPath } from "node:url";
37821
+ import { dirname as dirname2, join } from "node:path";
37822
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
37803
37823
 
37804
37824
  // ../../packages/protocol/src/cron.ts
37805
37825
  var uintPattern = /^\d+$/;
@@ -44876,6 +44896,30 @@ var softwareTaskSummarySchema = external_exports.object({
44876
44896
  completed_at: external_exports.string().nullable(),
44877
44897
  created_at: external_exports.string()
44878
44898
  });
44899
+ var softwarePlanArtifactTaskSummarySchema = external_exports.object({
44900
+ task_key: external_exports.string(),
44901
+ title: external_exports.string(),
44902
+ depends_on: external_exports.array(external_exports.string()).default([]),
44903
+ parallelizable: external_exports.boolean().default(false),
44904
+ est_turns: external_exports.number().int().nullable().default(null),
44905
+ files_likely: external_exports.array(external_exports.string()).default([]),
44906
+ verification: external_exports.array(external_exports.string()).default([])
44907
+ });
44908
+ var softwarePlanArtifactChangesetSummarySchema = external_exports.object({
44909
+ ordinal: external_exports.number().int(),
44910
+ title: external_exports.string(),
44911
+ split_criterion: external_exports.string(),
44912
+ task_keys: external_exports.array(external_exports.string()).default([])
44913
+ });
44914
+ var softwarePlanArtifactSummarySchema = external_exports.object({
44915
+ scope: external_exports.string(),
44916
+ plan_steps: external_exports.array(external_exports.string()).default([]),
44917
+ files_or_systems: external_exports.array(external_exports.string()).default([]),
44918
+ verification: external_exports.array(external_exports.string()).default([]),
44919
+ risks: external_exports.array(external_exports.string()).default([]),
44920
+ tasks: external_exports.array(softwarePlanArtifactTaskSummarySchema).default([]),
44921
+ changesets: external_exports.array(softwarePlanArtifactChangesetSummarySchema).default([])
44922
+ });
44879
44923
  var softwarePlanVersionSummarySchema = external_exports.object({
44880
44924
  id: uuid11,
44881
44925
  build_request_id: uuid11,
@@ -44888,6 +44932,7 @@ var softwarePlanVersionSummarySchema = external_exports.object({
44888
44932
  question: external_exports.string(),
44889
44933
  answer: external_exports.string()
44890
44934
  })).default([]),
44935
+ planning_artifact: softwarePlanArtifactSummarySchema.nullable(),
44891
44936
  created_by_seat_id: uuid11.nullable(),
44892
44937
  created_at: external_exports.string()
44893
44938
  });
@@ -46717,7 +46762,7 @@ var eventEnvelopeReaderSchema = external_exports.discriminatedUnion("type", [
46717
46762
  ]);
46718
46763
 
46719
46764
  // ../../packages/prompts/src/index.ts
46720
- var promptRoot = join(dirname(fileURLToPath(import.meta.url)), "..", "prompts");
46765
+ var promptRoot = join(dirname2(fileURLToPath2(import.meta.url)), "..", "prompts");
46721
46766
  function loadPromptBody(filename) {
46722
46767
  const raw = readFileSync(join(promptRoot, filename), "utf8");
46723
46768
  return raw.replace(/^---\n[\s\S]*?\n---\n?/, "").trim();
@@ -47078,7 +47123,7 @@ Treat AICOS as a coordinator over the operating system. It can become more usefu
47078
47123
  order: 20,
47079
47124
  title: "Responsibility Graph playbook",
47080
47125
  summary: "How to build a functions-first graph with seats, owners, Stewards, vacancies, and clean authority.",
47081
- version: "2026-07-14.1",
47126
+ version: "2026-07-14.2",
47082
47127
  public: true,
47083
47128
  audiences: ["human", "cli", "mcp", "in_app_agent"],
47084
47129
  stages: ["graph_design", "staffing"],
@@ -47126,7 +47171,7 @@ Seats that do not reach the single root through the resolved parent chain are li
47126
47171
 
47127
47172
  ## Forge Developer Team seats are pinned
47128
47173
 
47129
- Seats under \`forge.developer_team\` are resolved by Forge build dispatch using their exact path, so they cannot be reparented or merged from the graph, CLI, or MCP \u2014 moving a seat (or an ancestor whose subtree holds them) would eject them from dispatch, and no command can restore the path. To change who is accountable for one of these seats, update its steward with \`agent_setup.update\`; the reporting path stays fixed. To stand the team down, use the governed Forge team teardown flow, not a merge or decommission.
47174
+ Seats under \`forge.developer_team\` are resolved by Forge build dispatch using their exact path, so they cannot be reparented or merged from the graph, CLI, or MCP \u2014 moving a seat (or an ancestor whose subtree holds them) would eject them from dispatch, and no command can restore the path. To change who is accountable for one of these seats, update its steward with \`agent_setup.update\`; the reporting path stays fixed. To stand the team down, use the governed Forge team teardown flow, not a merge or decommission. The web canvas surfaces this pin visibly: a lock badge on the seat card (Responsibility Chart and Cascade views) and in the seat inspector panel, with a tooltip explaining the seat can't be moved, merged, or reparented \u2014 so the restriction is visible before a user hits the guard, not only as an error after the fact.
47130
47175
 
47131
47176
  ## Add an agent from the graph
47132
47177
 
@@ -47904,7 +47949,7 @@ External connectors are being rolled out provider by provider, conservatively (r
47904
47949
  order: 48,
47905
47950
  title: "CLI and MCP installation guide",
47906
47951
  summary: "Install the public CLI, register remote token-backed MCP clients, and find the full command and tool catalog.",
47907
- version: "2026-07-15.3",
47952
+ version: "2026-07-15.4",
47908
47953
  public: true,
47909
47954
  audiences: ["human", "cli", "mcp", "in_app_agent"],
47910
47955
  stages: ["company_setup", "staffing"],
@@ -48424,6 +48469,7 @@ Skills wrapper help:
48424
48469
  | \`{{cli}} mcp install --client cursor --scope tenant-admin\` | Mint a tenant-admin MCP token and print Cursor JSON. | Tenant | \`{{cli}} mcp install --client cursor --scope tenant-admin\` |
48425
48470
  | \`{{cli}} mcp install --client <client> --scope seat --seat-id <seat-id>\` | Mint a token limited to one seat (the narrowest scope \u2014 prefer for day-to-day). | Seat | \`{{cli}} mcp install --client codex --scope seat --seat-id <seat-id>\` |
48426
48471
  | \`{{cli}} --help\` | Print top-level CLI help. | Public help | \`{{cli}} --help\` |
48472
+ | \`{{cli}} --version\` / \`{{cli}} -v\` | Print the installed CLI's own version and exit \u2014 no usage text, no auth. | Public help | \`{{cli}} --version\` |
48427
48473
 
48428
48474
  ## MCP tool and resource catalog
48429
48475
 
@@ -51810,25 +51856,6 @@ function helpText() {
51810
51856
  import { mkdir as mkdir2, readFile as readFile3, writeFile as writeFile2 } from "node:fs/promises";
51811
51857
  import { homedir as homedir2 } from "node:os";
51812
51858
  import path2 from "node:path";
51813
-
51814
- // src/cli-version.ts
51815
- import { readFile as readFile2 } from "node:fs/promises";
51816
- import { dirname as dirname2, resolve } from "node:path";
51817
- import { fileURLToPath as fileURLToPath2 } from "node:url";
51818
- var packageMetadataSchema = external_exports.object({
51819
- version: external_exports.string()
51820
- });
51821
- async function readCliVersion() {
51822
- const packageJsonPath = resolve(dirname2(fileURLToPath2(import.meta.url)), "../package.json");
51823
- try {
51824
- const metadata = packageMetadataSchema.parse(JSON.parse(await readFile2(packageJsonPath, "utf8")));
51825
- return metadata.version;
51826
- } catch {
51827
- return null;
51828
- }
51829
- }
51830
-
51831
- // src/update-check.ts
51832
51859
  var latestPackageSchema = external_exports.object({
51833
51860
  version: external_exports.string()
51834
51861
  });
@@ -58395,6 +58422,12 @@ async function main(argv = process.argv.slice(2), options = {}) {
58395
58422
  const deviceLogin = options.deviceLogin ?? loginWithDeviceCode;
58396
58423
  const refreshSession = options.refreshSession ?? refreshCliSessionIfNeeded;
58397
58424
  const [rawCommand, ...args] = argv;
58425
+ if (rawCommand === "--version" || rawCommand === "-v") {
58426
+ const version4 = await readCliVersion();
58427
+ io.stdout.write(`${version4 ?? "unknown"}
58428
+ `);
58429
+ return 0;
58430
+ }
58398
58431
  const command = rawCommand === "--help" || rawCommand === "-h" ? "help" : rawCommand;
58399
58432
  if (isSecretBlockedNamespace(command) || isSecretBlockedCommand(args[0] === void 0 ? void 0 : `${command}.${args[0]}`)) {
58400
58433
  io.stderr.write(`${SECRET_ARGV_GUIDANCE}