@skrr-ai/cli 0.1.194 → 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.
- package/dist/commands/harnesses/list.d.ts +2 -0
- package/dist/commands/harnesses/list.js +7 -5
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +3 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.js +4 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +3 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +4 -1
- package/dist/node_modules/@skrr-ai/data-provider/index.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
|
@@ -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
|
-
//
|
|
262
|
-
//
|
|
263
|
-
harnesses:
|
|
264
|
-
|
|
265
|
-
:
|
|
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);
|
|
@@ -66523,7 +66523,7 @@ function Xue(e11, t10) {
|
|
|
66523
66523
|
return 429 === e12 ? "rate" === o11 : Vue.includes(e12);
|
|
66524
66524
|
})(t10, o10, e11.refusals) ? 429 === t10 ? { kind: "rejected", retryable: true, reason: "rate_limited" } : { kind: "rejected", retryable: false, reason: "refused" } : n10(429 === t10 ? "throttled" : t10 >= 500 ? "server_error" : "unproven_refusal");
|
|
66525
66525
|
}
|
|
66526
|
-
var Que = [{ method: "POST", path: "/api/agentic/sessions/:param/task-completion" }, { method: "PUT", path: "/api/daemon-maintenance/:param" }, { method: "POST", path: "/api/daemon-maintenance/:param/attestation" }, { method: "POST", path: "/api/daemon-maintenance/:param/progress" }, { method: "PUT", path: "/api/daemon-maintenance/:param/updater" }, { method: "PATCH", path: "/api/duties/:param" }, { method: "POST", path: "/api/harnesses/prune" }, { method: "POST", path: "/api/referral/invites/:param/resend" }, { method: "POST", path: "/api/referral/invites/:param/revoke" }, { method: "POST", path: "/api/referral/invites/accept" }, { method: "POST", path: "/api/referral/invites/decline" }, { method: "POST", path: "/api/share/:param/continue" }, { method: "POST", path: "/api/spaces" }, { method: "POST", path: "/api/tasks" }, { method: "PATCH", path: "/api/tasks/:param" }, { method: "POST", path: "/api/tasks/:param/comments" }, { method: "POST", path: "/api/tasks/:param/complete" }, { method: "POST", path: "/api/tasks/:param/copy" }, { method: "POST", path: "/api/tasks/:param/deliverables" }, { method: "POST", path: "/api/tasks/:param/deliverables/confirm" }, { method: "POST", path: "/api/tasks/:param/dri-review-retry" }, { method: "POST", path: "/api/tasks/:param/events" }, { method: "POST", path: "/api/tasks/:param/expectations/:param/assess" }, { method: "POST", path: "/api/tasks/:param/judge" }, { method: "POST", path: "/api/tasks/:param/lifecycle/transition" }, { method: "POST", path: "/api/tasks/:param/lifecycle/transitions" }, { method: "POST", path: "/api/tasks/:param/mark-duplicate" }, { method: "POST", path: "/api/tasks/:param/resources" }, { method: "POST", path: "/api/tasks/:param/results" }, { method: "POST", path: "/api/tasks/:param/resume-points" }, { method: "POST", path: "/api/tasks/:param/retry" }, { method: "POST", path: "/api/tasks/:param/reviews" }, { method: "POST", path: "/api/tasks/:param/runs/:param/fork" }, { method: "POST", path: "/api/tasks/:param/runs/:param/handover" }, { method: "POST", path: "/api/tasks/:param/runs/:param/promote" }, { method: "POST", path: "/api/tasks/:param/start" }, { method: "POST", path: "/api/tasks/:param/trust" }, { method: "POST", path: "/api/tasks/:param/updates" }, { method: "POST", path: "/api/tasks/:param/waive" }, { method: "PATCH", path: "/api/tasks/batch" }, { method: "POST", path: "/api/tasks/batch" }, { method: "POST", path: "/api/tasks/create-and-start" }, { method: "DELETE", path: "/api/waitlist/codes/:param" }, { method: "POST", path: "/api/waitlist/delivery-ambiguities/:param/resolve" }, { method: "POST", path: "/api/waitlist/invitation-keys/rotate-signing" }, { method: "PATCH", path: "/api/waitlist/invitation-policy" }, { method: "POST", path: "/api/waitlist/invitation-policy/rollback" }, { method: "PUT", path: "/api/waitlist/invitation-policy/rules/:param/:param" }, { method: "POST", path: "/api/waitlist/invitation-policy/rules/:param/:param/reset" }, { method: "POST", path: "/api/waitlist/invitation-policy/rules/:param/:param/rollback" }, { method: "PATCH", path: "/api/waitlist/invite-quotas/:param" }, { method: "POST", path: "/api/waitlist/invite-quotas/bulk" }, { method: "POST", path: "/api/work-sync/commands" }, { method: "DELETE", path: "/api/workspaces/:param/invites/:param" }, { method: "POST", path: "/api/workspaces/:param/invites/:param/resend" }, { method: "POST", path: "/api/workspaces/invites/decline" }];
|
|
66526
|
+
var Que = [{ method: "POST", path: "/api/agentic/sessions/:param/task-completion" }, { method: "PUT", path: "/api/daemon-maintenance/:param" }, { method: "POST", path: "/api/daemon-maintenance/:param/attestation" }, { method: "POST", path: "/api/daemon-maintenance/:param/progress" }, { method: "PUT", path: "/api/daemon-maintenance/:param/updater" }, { method: "POST", path: "/api/duties" }, { method: "PATCH", path: "/api/duties/:param" }, { method: "POST", path: "/api/harnesses/prune" }, { method: "POST", path: "/api/referral/invites/:param/resend" }, { method: "POST", path: "/api/referral/invites/:param/revoke" }, { method: "POST", path: "/api/referral/invites/accept" }, { method: "POST", path: "/api/referral/invites/decline" }, { method: "POST", path: "/api/share/:param/continue" }, { method: "POST", path: "/api/spaces" }, { method: "POST", path: "/api/tasks" }, { method: "PATCH", path: "/api/tasks/:param" }, { method: "POST", path: "/api/tasks/:param/comments" }, { method: "POST", path: "/api/tasks/:param/complete" }, { method: "POST", path: "/api/tasks/:param/copy" }, { method: "POST", path: "/api/tasks/:param/deliverables" }, { method: "POST", path: "/api/tasks/:param/deliverables/confirm" }, { method: "POST", path: "/api/tasks/:param/dri-review-retry" }, { method: "POST", path: "/api/tasks/:param/events" }, { method: "POST", path: "/api/tasks/:param/expectations/:param/assess" }, { method: "POST", path: "/api/tasks/:param/judge" }, { method: "POST", path: "/api/tasks/:param/lifecycle/transition" }, { method: "POST", path: "/api/tasks/:param/lifecycle/transitions" }, { method: "POST", path: "/api/tasks/:param/mark-duplicate" }, { method: "POST", path: "/api/tasks/:param/resources" }, { method: "POST", path: "/api/tasks/:param/results" }, { method: "POST", path: "/api/tasks/:param/resume-points" }, { method: "POST", path: "/api/tasks/:param/retry" }, { method: "POST", path: "/api/tasks/:param/reviews" }, { method: "POST", path: "/api/tasks/:param/runs/:param/fork" }, { method: "POST", path: "/api/tasks/:param/runs/:param/handover" }, { method: "POST", path: "/api/tasks/:param/runs/:param/promote" }, { method: "POST", path: "/api/tasks/:param/start" }, { method: "POST", path: "/api/tasks/:param/trust" }, { method: "POST", path: "/api/tasks/:param/updates" }, { method: "POST", path: "/api/tasks/:param/waive" }, { method: "PATCH", path: "/api/tasks/batch" }, { method: "POST", path: "/api/tasks/batch" }, { method: "POST", path: "/api/tasks/create-and-start" }, { method: "DELETE", path: "/api/waitlist/codes/:param" }, { method: "POST", path: "/api/waitlist/delivery-ambiguities/:param/resolve" }, { method: "POST", path: "/api/waitlist/invitation-keys/rotate-signing" }, { method: "PATCH", path: "/api/waitlist/invitation-policy" }, { method: "POST", path: "/api/waitlist/invitation-policy/rollback" }, { method: "PUT", path: "/api/waitlist/invitation-policy/rules/:param/:param" }, { method: "POST", path: "/api/waitlist/invitation-policy/rules/:param/:param/reset" }, { method: "POST", path: "/api/waitlist/invitation-policy/rules/:param/:param/rollback" }, { method: "PATCH", path: "/api/waitlist/invite-quotas/:param" }, { method: "POST", path: "/api/waitlist/invite-quotas/bulk" }, { method: "POST", path: "/api/work-sync/commands" }, { method: "DELETE", path: "/api/workspaces/:param/invites/:param" }, { method: "POST", path: "/api/workspaces/:param/invites/:param/resend" }, { method: "POST", path: "/api/workspaces/invites/decline" }];
|
|
66527
66527
|
var Jue = ["POST", "PUT", "PATCH", "DELETE"];
|
|
66528
66528
|
function Zue(e11) {
|
|
66529
66529
|
if ("string" != typeof e11 || 0 === e11.length) return null;
|
package/oclif.manifest.json
CHANGED
|
@@ -151533,5 +151533,5 @@
|
|
|
151533
151533
|
]
|
|
151534
151534
|
}
|
|
151535
151535
|
},
|
|
151536
|
-
"version": "0.1.
|
|
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.
|
|
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": "
|
|
710
|
+
"gitHead": "c0dd0f3e4462fe1775184356a8d1bb9e4681fadb"
|
|
711
711
|
}
|