@skrr-ai/cli 0.1.195 → 0.1.196

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.
@@ -7,6 +7,7 @@ import { type ProviderReadiness } from '../../lib/cli-installers';
7
7
  */
8
8
  export type HarnessRow = {
9
9
  _id: string;
10
+ id?: string;
10
11
  provider: string;
11
12
  daemonId?: string;
12
13
  machineUuid?: string;
@@ -226,6 +227,7 @@ export type HarnessDefaults = {
226
227
  };
227
228
  export type HarnessesJson = {
228
229
  harnesses: Array<HarnessRow & {
230
+ id: string;
229
231
  readiness?: ProviderReadiness | null;
230
232
  }>;
231
233
  filters: HarnessesFilters;
@@ -258,11 +258,13 @@ function selectHarnessRows(rows, options) {
258
258
  */
259
259
  function buildHarnessesJson(selection, filters, defaults = {}, readiness) {
260
260
  return {
261
- // `readiness` is the per-provider answer the READINESS column prints —
262
- // `null` where no daemon answered for that row, never a guess (OSK-10100).
263
- harnesses: readiness
264
- ? selection.visible.map((row) => ({ ...row, readiness: readiness(row) ?? null }))
265
- : selection.visible,
261
+ // Legacy harness rows identify themselves by Mongo _id. The serializer
262
+ // keeps that field only for --raw once the public id is present.
263
+ harnesses: selection.visible.map((row) => ({
264
+ ...row,
265
+ id: row.id || row._id,
266
+ ...(readiness ? { readiness: readiness(row) ?? null } : {}),
267
+ })),
266
268
  filters,
267
269
  defaults: {
268
270
  effectiveDefaultHarnessId: defaults.effectiveDefaultHarnessId ?? null,
@@ -28,9 +28,10 @@ export declare const WORKSPACE_ISOLATION_PROBE_METHOD: "daemon:workspace:isolati
28
28
  * - `sandbox` — the daemon's own bare scratch workspace: an empty
29
29
  * private sandbox is used instead;
30
30
  * - `not_a_repository` — refused: not inside a git repository;
31
- * - `no_initial_commit` — refused: a repository with an unborn HEAD.
31
+ * - `no_initial_commit` — refused: a repository with an unborn HEAD;
32
+ * - `inaccessible` — refused: the runtime could not read the Git workspace.
32
33
  */
33
- export declare const WORKTREE_BASE_VERDICTS: readonly ["worktree", "sandbox", "not_a_repository", "no_initial_commit"];
34
+ export declare const WORKTREE_BASE_VERDICTS: readonly ["worktree", "sandbox", "not_a_repository", "no_initial_commit", "inaccessible"];
34
35
  export type WorktreeBaseVerdict = (typeof WORKTREE_BASE_VERDICTS)[number];
35
36
  /** The verdicts on which the daemon refuses an isolated Run before any tool. */
36
37
  export declare const REFUSING_WORKTREE_BASE_VERDICTS: ReadonlySet<WorktreeBaseVerdict>;
@@ -31,11 +31,13 @@ const WORKTREE_BASE_VERDICTS = Object.freeze([
31
31
  "worktree",
32
32
  "sandbox",
33
33
  "not_a_repository",
34
- "no_initial_commit"
34
+ "no_initial_commit",
35
+ "inaccessible"
35
36
  ]);
36
37
  const REFUSING_WORKTREE_BASE_VERDICTS = /* @__PURE__ */ new Set([
37
38
  "not_a_repository",
38
- "no_initial_commit"
39
+ "no_initial_commit",
40
+ "inaccessible"
39
41
  ]);
40
42
  function isWorktreeBaseVerdict(value) {
41
43
  return typeof value === "string" && WORKTREE_BASE_VERDICTS.includes(value);
@@ -28,9 +28,10 @@ export declare const WORKSPACE_ISOLATION_PROBE_METHOD: "daemon:workspace:isolati
28
28
  * - `sandbox` — the daemon's own bare scratch workspace: an empty
29
29
  * private sandbox is used instead;
30
30
  * - `not_a_repository` — refused: not inside a git repository;
31
- * - `no_initial_commit` — refused: a repository with an unborn HEAD.
31
+ * - `no_initial_commit` — refused: a repository with an unborn HEAD;
32
+ * - `inaccessible` — refused: the runtime could not read the Git workspace.
32
33
  */
33
- export declare const WORKTREE_BASE_VERDICTS: readonly ["worktree", "sandbox", "not_a_repository", "no_initial_commit"];
34
+ export declare const WORKTREE_BASE_VERDICTS: readonly ["worktree", "sandbox", "not_a_repository", "no_initial_commit", "inaccessible"];
34
35
  export type WorktreeBaseVerdict = (typeof WORKTREE_BASE_VERDICTS)[number];
35
36
  /** The verdicts on which the daemon refuses an isolated Run before any tool. */
36
37
  export declare const REFUSING_WORKTREE_BASE_VERDICTS: ReadonlySet<WorktreeBaseVerdict>;
@@ -28,18 +28,21 @@ export const WORKSPACE_ISOLATION_PROBE_METHOD = 'daemon:workspace:isolation-prob
28
28
  * - `sandbox` — the daemon's own bare scratch workspace: an empty
29
29
  * private sandbox is used instead;
30
30
  * - `not_a_repository` — refused: not inside a git repository;
31
- * - `no_initial_commit` — refused: a repository with an unborn HEAD.
31
+ * - `no_initial_commit` — refused: a repository with an unborn HEAD;
32
+ * - `inaccessible` — refused: the runtime could not read the Git workspace.
32
33
  */
33
34
  export const WORKTREE_BASE_VERDICTS = Object.freeze([
34
35
  'worktree',
35
36
  'sandbox',
36
37
  'not_a_repository',
37
38
  'no_initial_commit',
39
+ 'inaccessible',
38
40
  ]);
39
41
  /** The verdicts on which the daemon refuses an isolated Run before any tool. */
40
42
  export const REFUSING_WORKTREE_BASE_VERDICTS = new Set([
41
43
  'not_a_repository',
42
44
  'no_initial_commit',
45
+ 'inaccessible',
43
46
  ]);
44
47
  export function isWorktreeBaseVerdict(value) {
45
48
  return typeof value === 'string' && WORKTREE_BASE_VERDICTS.includes(value);
@@ -151533,5 +151533,5 @@
151533
151533
  ]
151534
151534
  }
151535
151535
  },
151536
- "version": "0.1.195"
151536
+ "version": "0.1.196"
151537
151537
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skrr-ai/cli",
3
- "version": "0.1.195",
3
+ "version": "0.1.196",
4
4
  "description": "Command-line interface for skrr",
5
5
  "license": "ISC",
6
6
  "author": "skrr",
@@ -707,5 +707,5 @@
707
707
  "engines": {
708
708
  "node": ">=20.0.0"
709
709
  },
710
- "gitHead": "e48300818cc5865e637505be048c5926d915a5e4"
710
+ "gitHead": "c0dd0f3e4462fe1775184356a8d1bb9e4681fadb"
711
711
  }