@oxagen/cli 3.0.1-713 → 3.0.1-715

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.
Files changed (2) hide show
  1. package/oxagen.mjs +52 -6
  2. package/package.json +1 -1
package/oxagen.mjs CHANGED
@@ -29810,7 +29810,7 @@ import { readFileSync as readFileSync10 } from "node:fs";
29810
29810
  import { dirname as dirname9, resolve as resolve3 } from "node:path";
29811
29811
  import { fileURLToPath } from "node:url";
29812
29812
  function readVersion() {
29813
- if (true) return "3.0.1-713";
29813
+ if (true) return "3.0.1-715";
29814
29814
  try {
29815
29815
  const here = dirname9(fileURLToPath(import.meta.url));
29816
29816
  const pkg = JSON.parse(
@@ -72708,7 +72708,7 @@ var init_package = __esm({
72708
72708
  "package.json"() {
72709
72709
  package_default = {
72710
72710
  name: "@oxagen/cli",
72711
- version: "3.0.1-713",
72711
+ version: "3.0.1-715",
72712
72712
  description: "Oxagen governance CLI: spend, source tracking, grounding, credentials, and audit (agentic coding lives in the stella CLI)",
72713
72713
  type: "module",
72714
72714
  main: "./dist/index.js",
@@ -94857,7 +94857,7 @@ var init_steering_record_label = __esm({
94857
94857
  });
94858
94858
 
94859
94859
  // ../../packages/oxagen/src/contracts/run.shared.ts
94860
- var IN_APP_AGENT_SURFACES, RUN_PUBLIC_ID_BODY, RUN_PUBLIC_ID_REGEX, MODEL_CLASS_REPLAY_SURFACE, RUN_STATUSES, TACHO_SESSION_SURFACES, LATEST_ACTIVITY_MESSAGES, LATEST_ACTIVITY_TEXT_MAX;
94860
+ var IN_APP_AGENT_SURFACES, RUN_PUBLIC_ID_BODY, RUN_PUBLIC_ID_REGEX, MODEL_CLASS_REPLAY_SURFACE, RUN_STATUSES, RUN_STATES, TACHO_SESSION_SURFACES, LATEST_ACTIVITY_MESSAGES, LATEST_ACTIVITY_TEXT_MAX;
94861
94861
  var init_run_shared = __esm({
94862
94862
  "../../packages/oxagen/src/contracts/run.shared.ts"() {
94863
94863
  "use strict";
@@ -94866,6 +94866,14 @@ var init_run_shared = __esm({
94866
94866
  RUN_PUBLIC_ID_REGEX = new RegExp(`^${RUN_PUBLIC_ID_BODY}$`);
94867
94867
  MODEL_CLASS_REPLAY_SURFACE = "model_class_replay";
94868
94868
  RUN_STATUSES = ["live", "sealed", "halted"];
94869
+ RUN_STATES = [
94870
+ "live",
94871
+ "parked",
94872
+ "paused",
94873
+ "ended",
94874
+ "failed",
94875
+ "halted"
94876
+ ];
94869
94877
  TACHO_SESSION_SURFACES = [
94870
94878
  ...IN_APP_AGENT_SURFACES,
94871
94879
  MODEL_CLASS_REPLAY_SURFACE
@@ -104088,7 +104096,7 @@ var init_kinds_shared = __esm({
104088
104096
  });
104089
104097
 
104090
104098
  // ../../packages/oxagen/src/contracts/run.list.ts
104091
- var runPublicIdSchema, frameSeqSchema, runStatusSchema, runOutcomeSchema, runCostSchema, replayGradeSchema, generatedRunSummarySchema, editedRunSummarySchema, runSummarySchema, latestActivitySchema, operatorKindSchema, RUN_OPERATOR_ROLES, runOperatorRoleSchema, runModelSchema, runMachineSnapshotSchema, runMachineSchema, runSandboxSchema, COMMAND_BLOCKS, HOST_POLL_WINDOW_MS, RUN_PULL_REQUEST_MAX, runPullRequestSchema, runDiffSchema, runAttributionSchema, RUN_PULL_REQUEST_FILTERS, RUN_PAUSE_STATES, runPauseSchema, RUN_REPLAY_FILTERS, RUN_SORT_KEYS, RUN_LIST_TOTAL_BOUND, RUN_LABEL_MAX, runWorkOrderRefSchema, runKindSchema, runItemSchema, runList;
104099
+ var runPublicIdSchema, frameSeqSchema, runStatusSchema, runStateSchema, RUN_LIST_KINDS_MAX, runOutcomeSchema, runCostSchema, replayGradeSchema, generatedRunSummarySchema, editedRunSummarySchema, runSummarySchema, latestActivitySchema, operatorKindSchema, RUN_OPERATOR_ROLES, runOperatorRoleSchema, runModelSchema, runMachineSnapshotSchema, runMachineSchema, runSandboxSchema, COMMAND_BLOCKS, HOST_POLL_WINDOW_MS, RUN_PULL_REQUEST_MAX, runPullRequestSchema, runDiffSchema, runAttributionSchema, RUN_PULL_REQUEST_FILTERS, RUN_PAUSE_STATES, runPauseSchema, RUN_REPLAY_FILTERS, RUN_SORT_KEYS, RUN_LIST_TOTAL_BOUND, RUN_LABEL_MAX, runWorkOrderRefSchema, runKindSchema, runItemSchema, runList;
104092
104100
  var init_run_list = __esm({
104093
104101
  "../../packages/oxagen/src/contracts/run.list.ts"() {
104094
104102
  "use strict";
@@ -104105,6 +104113,8 @@ var init_run_list = __esm({
104105
104113
  runPublicIdSchema = external_exports.string().regex(RUN_PUBLIC_ID_REGEX, "a run public id (arun_\u2026 or tse_\u2026)");
104106
104114
  frameSeqSchema = external_exports.string().regex(/^\d{1,19}$/, "a frame sequence (up to 19 decimal digits)");
104107
104115
  runStatusSchema = external_exports.enum(RUN_STATUSES);
104116
+ runStateSchema = external_exports.enum(RUN_STATES);
104117
+ RUN_LIST_KINDS_MAX = 50;
104108
104118
  runOutcomeSchema = external_exports.enum([
104109
104119
  "running",
104110
104120
  "completed",
@@ -104374,6 +104384,12 @@ var init_run_list = __esm({
104374
104384
  */
104375
104385
  operatorRole: runOperatorRoleSchema.nullable(),
104376
104386
  status: runStatusSchema,
104387
+ /**
104388
+ * The run's state in `RUN_STATES`: the lifecycle split by the pause in
104389
+ * force and a pending approval, the rule the `state` filter lists by.
104390
+ * Absent where the reader did not read both.
104391
+ */
104392
+ state: runStateSchema.optional(),
104377
104393
  outcome: runOutcomeSchema,
104378
104394
  /** Distinct turns; null when the store could not count them. */
104379
104395
  turns: external_exports.number().int().nonnegative().nullable(),
@@ -104418,6 +104434,17 @@ var init_run_list = __esm({
104418
104434
  * could not read the workspace's run kinds.
104419
104435
  */
104420
104436
  kind: runKindSchema.optional(),
104437
+ /**
104438
+ * How much work the run links, for a list that shows the counts before
104439
+ * a person opens the run: the pull requests the run's change set links
104440
+ * (`forge.pull_request_runs`, #5949), and the work items `get_run_work`
104441
+ * lists for it. `list_runs` answers it when the input sets `linkedWork`,
104442
+ * and leaves it out when the counts could not be read.
104443
+ */
104444
+ linkedWork: external_exports.object({
104445
+ pullRequests: external_exports.number().int().nonnegative(),
104446
+ workItems: external_exports.number().int().nonnegative()
104447
+ }).strict().optional(),
104421
104448
  /** RFC 3339. */
104422
104449
  startedAt: external_exports.string().datetime(),
104423
104450
  /**
@@ -104658,7 +104685,7 @@ var init_run_list = __esm({
104658
104685
  runList = registerCapability({
104659
104686
  name: "list_runs",
104660
104687
  domain: "run",
104661
- description: "List the runs recorded in this workspace, newest first: root sessions in one cursor-paged list, with the operator, the model, the machine, status, counts and metered cost each row recorded. The in-app assistant's turns are listed too, marked inApp; they take no run commands. Given own, it lists only the runs the caller operated.",
104688
+ description: "List the runs recorded in this workspace, newest first: root sessions in one cursor-paged list, with the operator, the model, the machine, status, counts and metered cost each row recorded. The in-app assistant's turns are listed too, marked inApp; they take no run commands. Given own, it lists only the runs the caller operated. Given state or kind, it lists only the runs in those states or of those kinds, and given linkedWork, each row counts the pull requests and work items it links.",
104662
104689
  mode: "sync",
104663
104690
  surfaces: ["api", "mcp", "agent", "cli"],
104664
104691
  layers: ["schema", "api", "mcp", "cli", "unit", "docs", "app"],
@@ -104691,6 +104718,19 @@ var init_run_list = __esm({
104691
104718
  */
104692
104719
  /** Only runs in these statuses. Absent lists every status. */
104693
104720
  status: external_exports.array(runStatusSchema).min(1).max(3).optional(),
104721
+ /**
104722
+ * Only runs in these states (`RUN_STATES`): the lifecycle split into
104723
+ * live, parked, paused, ended, failed and halted. Sent with `status`, a
104724
+ * run must match both. Absent lists every state.
104725
+ */
104726
+ state: external_exports.array(runStateSchema).min(1).max(RUN_STATES.length).optional(),
104727
+ /**
104728
+ * Only runs whose kind in force is one of these, by the kind's id in
104729
+ * the workspace's run kinds (`list_kinds`). The kind in force is a
104730
+ * person's pick, else the classifier's, else Unknown, so Unknown's id
104731
+ * also lists every run no one classified. Absent lists every kind.
104732
+ */
104733
+ kind: external_exports.array(kindIdSchema).min(1).max(RUN_LIST_KINDS_MAX).optional(),
104694
104734
  /** Only runs published at these tiers. */
104695
104735
  tier: external_exports.array(external_exports.enum(GRADE_ENFORCEMENT_TIERS)).min(1).max(4).optional(),
104696
104736
  /** Only runs with these grades; `not_recorded` matches a null grade. */
@@ -104741,7 +104781,13 @@ var init_run_list = __esm({
104741
104781
  * every root session the workspace holds, so a read that does not show
104742
104782
  * it leaves this out and pays nothing for it. Runs sets it.
104743
104783
  */
104744
- countLive: external_exports.boolean().optional()
104784
+ countLive: external_exports.boolean().optional(),
104785
+ /**
104786
+ * `true` answers each row's `linkedWork`: how many pull requests and
104787
+ * work items the run links. Two indexed reads a page, so a caller that
104788
+ * shows no counts leaves it off.
104789
+ */
104790
+ linkedWork: external_exports.boolean().optional()
104745
104791
  }).strict(),
104746
104792
  output: external_exports.object({
104747
104793
  runs: external_exports.array(runItemSchema).max(100),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxagen/cli",
3
- "version": "3.0.1-713",
3
+ "version": "3.0.1-715",
4
4
  "description": "Oxagen governance CLI: spend, source tracking, grounding, credentials, and audit (agentic coding lives in the stella CLI)",
5
5
  "type": "module",
6
6
  "bin": {