@oxagen/cli 3.0.1-677 → 3.0.1-680
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/oxagen.mjs +48 -42
- 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-
|
|
29813
|
+
if (true) return "3.0.1-680";
|
|
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-
|
|
72711
|
+
version: "3.0.1-680",
|
|
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",
|
|
@@ -99736,7 +99736,7 @@ var init_work_labels_shared = __esm({
|
|
|
99736
99736
|
});
|
|
99737
99737
|
|
|
99738
99738
|
// ../../packages/oxagen/src/contracts/kinds.shared.ts
|
|
99739
|
-
var KIND_SUBJECTS, kindSubjectSchema, KIND_NAME_MAX, KIND_DESCRIPTION_MAX, KIND_REASON_MAX, RUN_KIND_INPUTS, kindIdSchema, kindSchema, kindNameSchema;
|
|
99739
|
+
var KIND_SUBJECTS, kindSubjectSchema, KIND_NAME_MAX, KIND_DESCRIPTION_MAX, KIND_REASON_MAX, RUN_KIND_INPUTS, kindIdSchema, kindSchema, recordKindSchema3, kindNameSchema;
|
|
99740
99740
|
var init_kinds_shared = __esm({
|
|
99741
99741
|
"../../packages/oxagen/src/contracts/kinds.shared.ts"() {
|
|
99742
99742
|
"use strict";
|
|
@@ -99774,6 +99774,50 @@ var init_kinds_shared = __esm({
|
|
|
99774
99774
|
*/
|
|
99775
99775
|
count: external_exports.number().int().nonnegative().nullable()
|
|
99776
99776
|
}).strict();
|
|
99777
|
+
recordKindSchema3 = external_exports.object({
|
|
99778
|
+
/** The kind in force, by its id in `list_kinds`. */
|
|
99779
|
+
id: kindIdSchema,
|
|
99780
|
+
name: external_exports.string().min(1).max(KIND_NAME_MAX),
|
|
99781
|
+
slug: external_exports.string().min(1).max(KIND_NAME_MAX),
|
|
99782
|
+
icon: workLabelIconSchema,
|
|
99783
|
+
color: workLabelColorSchema,
|
|
99784
|
+
variant: workLabelVariantSchema,
|
|
99785
|
+
/** True for Unknown, which draws in the plain badge's look whatever its stored look. */
|
|
99786
|
+
fixed: external_exports.boolean(),
|
|
99787
|
+
/** The kind is archived: it stays on the record, and the picker leaves it out. */
|
|
99788
|
+
archived: external_exports.boolean(),
|
|
99789
|
+
/**
|
|
99790
|
+
* The person whose pick is in force and when they made it: through
|
|
99791
|
+
* `set_run_classification` for a run, and `update_work_item`'s `kind_id`
|
|
99792
|
+
* for a work item. `name` is their name, null when their user record
|
|
99793
|
+
* holds none. Null when no person's pick is in force.
|
|
99794
|
+
*/
|
|
99795
|
+
person: external_exports.object({
|
|
99796
|
+
name: external_exports.string().min(1).nullable(),
|
|
99797
|
+
/** RFC 3339. */
|
|
99798
|
+
at: external_exports.string().datetime()
|
|
99799
|
+
}).strict().nullable(),
|
|
99800
|
+
/**
|
|
99801
|
+
* The classifier's pick, kept apart from a person's so "Use oxagen's
|
|
99802
|
+
* pick" can bring it back: the kind, the reason the model gave, the model
|
|
99803
|
+
* id, what it read, and when. Null when nothing classified the record,
|
|
99804
|
+
* or when its pick names a kind the list no longer holds.
|
|
99805
|
+
*/
|
|
99806
|
+
classified: external_exports.object({
|
|
99807
|
+
kindId: kindIdSchema,
|
|
99808
|
+
reason: external_exports.string().max(KIND_REASON_MAX).nullable(),
|
|
99809
|
+
model: external_exports.string().nullable(),
|
|
99810
|
+
/**
|
|
99811
|
+
* What the classifier read for a run: `first_prompt`,
|
|
99812
|
+
* `transcript_and_diff` or `diff`, and null when none was recorded.
|
|
99813
|
+
* Always null for a work item, which the classifier reads from its
|
|
99814
|
+
* title, description and labels every time.
|
|
99815
|
+
*/
|
|
99816
|
+
input: external_exports.enum(RUN_KIND_INPUTS).nullable(),
|
|
99817
|
+
/** RFC 3339. */
|
|
99818
|
+
at: external_exports.string().datetime()
|
|
99819
|
+
}).strict().nullable()
|
|
99820
|
+
}).strict();
|
|
99777
99821
|
kindNameSchema = external_exports.string().trim().min(1).max(KIND_NAME_MAX);
|
|
99778
99822
|
}
|
|
99779
99823
|
});
|
|
@@ -99792,7 +99836,6 @@ var init_run_list = __esm({
|
|
|
99792
99836
|
init_kinds_shared();
|
|
99793
99837
|
init_run_shared();
|
|
99794
99838
|
init_spend_shared();
|
|
99795
|
-
init_work_labels_shared();
|
|
99796
99839
|
init_run_shared();
|
|
99797
99840
|
runPublicIdSchema = external_exports.string().regex(RUN_PUBLIC_ID_REGEX, "a run public id (arun_\u2026 or tse_\u2026)");
|
|
99798
99841
|
frameSeqSchema = external_exports.string().regex(/^\d{1,19}$/, "a frame sequence (up to 19 decimal digits)");
|
|
@@ -100015,44 +100058,7 @@ var init_run_list = __esm({
|
|
|
100015
100058
|
workstream: external_exports.string().nullable().optional()
|
|
100016
100059
|
}).strict().nullable()
|
|
100017
100060
|
}).strict();
|
|
100018
|
-
runKindSchema =
|
|
100019
|
-
/** The kind in force, by its id in `list_kinds`. */
|
|
100020
|
-
id: kindIdSchema,
|
|
100021
|
-
name: external_exports.string().min(1).max(KIND_NAME_MAX),
|
|
100022
|
-
slug: external_exports.string().min(1).max(KIND_NAME_MAX),
|
|
100023
|
-
icon: workLabelIconSchema,
|
|
100024
|
-
color: workLabelColorSchema,
|
|
100025
|
-
variant: workLabelVariantSchema,
|
|
100026
|
-
/** True for Unknown, which draws in the plain badge's look whatever its stored look. */
|
|
100027
|
-
fixed: external_exports.boolean(),
|
|
100028
|
-
/** The kind is archived: it stays on the run, and the picker leaves it out. */
|
|
100029
|
-
archived: external_exports.boolean(),
|
|
100030
|
-
/**
|
|
100031
|
-
* The person whose pick is in force (`set_run_classification`) and when
|
|
100032
|
-
* they made it. `name` is their name, null when their user record holds
|
|
100033
|
-
* none. Null when no person's pick is in force.
|
|
100034
|
-
*/
|
|
100035
|
-
person: external_exports.object({
|
|
100036
|
-
name: external_exports.string().min(1).nullable(),
|
|
100037
|
-
/** RFC 3339. */
|
|
100038
|
-
at: external_exports.string().datetime()
|
|
100039
|
-
}).strict().nullable(),
|
|
100040
|
-
/**
|
|
100041
|
-
* The classifier's pick, kept apart from a person's so "Use oxagen's
|
|
100042
|
-
* pick" can bring it back: the kind, the reason the model gave, the model
|
|
100043
|
-
* id, what it read, and when. Null when nothing classified the run, or
|
|
100044
|
-
* when its pick names a kind the list no longer holds.
|
|
100045
|
-
*/
|
|
100046
|
-
classified: external_exports.object({
|
|
100047
|
-
kindId: kindIdSchema,
|
|
100048
|
-
reason: external_exports.string().max(KIND_REASON_MAX).nullable(),
|
|
100049
|
-
model: external_exports.string().nullable(),
|
|
100050
|
-
/** `first_prompt`, `transcript_and_diff` or `diff`; null when none was recorded. */
|
|
100051
|
-
input: external_exports.enum(RUN_KIND_INPUTS).nullable(),
|
|
100052
|
-
/** RFC 3339. */
|
|
100053
|
-
at: external_exports.string().datetime()
|
|
100054
|
-
}).strict().nullable()
|
|
100055
|
-
}).strict();
|
|
100061
|
+
runKindSchema = recordKindSchema3;
|
|
100056
100062
|
runItemSchema = external_exports.object({
|
|
100057
100063
|
id: runPublicIdSchema,
|
|
100058
100064
|
/**
|
package/package.json
CHANGED