@rosthq/cli 0.5.32 → 0.6.0

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,21 +1,22 @@
1
1
  import type { CommandClient } from "./command-client.js";
2
- export type WrapperIo = {
3
- stdout: Pick<NodeJS.WriteStream, "write">;
4
- stderr: Pick<NodeJS.WriteStream, "write">;
5
- };
6
- export type RunCommand = (client: CommandClient, commandId: string, body: unknown, format?: (output: unknown) => string, options?: {
7
- targetSeatId?: string;
8
- autoConfirm?: boolean;
9
- }) => Promise<number>;
10
- export declare const CLI_MODEL_TIER_MAP: Record<string, {
11
- model: string;
12
- effort: string;
13
- }>;
14
- export declare const OPERATION_GROUPS: readonly ["task", "status", "signal", "goal", "friction", "escalation", "error", "sync", "runner", "notification", "integration", "settings", "member", "agent", "tools", "skills", "model", "compass", "charter", "deliverable", "system", "graph", "seat"];
15
- export type OperationGroup = (typeof OPERATION_GROUPS)[number];
2
+ import { type RunCommand, type WrapperIo } from "./generator/runtime.js";
3
+ export { parseFlags, requireValue, optionalValue, optionalNumber, parseNumber, parseList, withOptional, SECRET_ARGV_GUIDANCE, UsageError, type ParsedFlags, type WrapperIo, type RunCommand, type WrapperContext, type Wrapper, } from "./generator/runtime.js";
4
+ export { CLI_MODEL_TIER_MAP } from "./generator/groups.js";
5
+ export declare const OPERATION_GROUPS: readonly string[];
6
+ export type OperationGroup = string;
16
7
  export declare function isOperationGroup(value: string | undefined): value is OperationGroup;
17
- export declare function operationGroupUsage(group: OperationGroup, bin: string): string;
18
- export declare function runOperation(group: OperationGroup, args: string[], context: {
8
+ export declare function isSecretBlockedCommand(commandId: string | undefined): boolean;
9
+ export declare function isSecretBlockedNamespace(namespace: string | undefined): boolean;
10
+ export declare function operationVerbForCommand(commandId: string): {
11
+ group: string;
12
+ verb: string;
13
+ } | undefined;
14
+ export declare function operationSurfaceExceptions(): {
15
+ skippedNamespaces: readonly string[];
16
+ extraSurfaced: readonly string[];
17
+ };
18
+ export declare function operationGroupUsage(group: string, bin: string): string;
19
+ export declare function runOperation(group: string, args: string[], context: {
19
20
  io: WrapperIo;
20
21
  client: CommandClient;
21
22
  binName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;CAC3C,CAAC;AAKF,MAAM,MAAM,UAAU,GAAG,CACvB,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,OAAO,EACb,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,MAAM,EACpC,OAAO,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,KACvD,OAAO,CAAC,MAAM,CAAC,CAAC;AA4MrB,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAKhF,CAAC;AAm5DF,eAAO,MAAM,gBAAgB,8PAwBnB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AA4B/D,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,KAAK,IAAI,cAAc,CAEnF;AA8BD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED,wBAAsB,YAAY,CAChC,KAAK,EAAE,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CAAA;CAAE,GAAG,SAAS,CAStG;AAKD,wBAAgB,0BAA0B,IAAI;IAAE,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAEvH;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAMtE;AAED,wBAAsB,YAAY,CAChC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE;IAAE,EAAE,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,UAAU,CAAA;CAAE,GAClF,OAAO,CAAC,MAAM,CAAC,CAUjB;AAOD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAwBzD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rosthq/cli",
3
- "version": "0.5.32",
3
+ "version": "0.6.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Command-line adapter for the server-side command surface.",
@@ -36,6 +36,7 @@
36
36
  "build": "node scripts/build.mjs",
37
37
  "build:binary": "node scripts/build-binary.mjs",
38
38
  "dev": "tsx src/index.ts",
39
+ "generate:manifest": "tsx --tsconfig scripts/manifest-codegen.tsconfig.json scripts/generate-command-manifest.mts",
39
40
  "lint": "tsc --noEmit",
40
41
  "pack:dry-run": "npm pack --dry-run",
41
42
  "prepack": "pnpm run build",
@@ -49,6 +50,7 @@
49
50
  "zod": "^4.4.3"
50
51
  },
51
52
  "devDependencies": {
53
+ "@rost/commands": "workspace:*",
52
54
  "@rost/design": "workspace:*",
53
55
  "@rost/prompts": "workspace:*",
54
56
  "@rost/reference": "workspace:*",