@oxagen/cli 3.0.1-680 → 3.0.1-690
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 +34 -14
- 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-690";
|
|
29814
29814
|
try {
|
|
29815
29815
|
const here = dirname9(fileURLToPath(import.meta.url));
|
|
29816
29816
|
const pkg = JSON.parse(
|
|
@@ -52719,7 +52719,7 @@ function missingVariable(name) {
|
|
|
52719
52719
|
function digestUnavailable(what, reason3) {
|
|
52720
52720
|
return {
|
|
52721
52721
|
code: "digest_unavailable",
|
|
52722
|
-
message: `The local gateway could not compute the
|
|
52722
|
+
message: `The local gateway could not compute the hash of ${what}: ${reason3}.`,
|
|
52723
52723
|
fix: "Check the network, that the launch pins the locked package, and that its command is on this machine's PATH, then retry."
|
|
52724
52724
|
};
|
|
52725
52725
|
}
|
|
@@ -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-690",
|
|
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,10 @@ var init_work_labels_shared = __esm({
|
|
|
99736
99736
|
});
|
|
99737
99737
|
|
|
99738
99738
|
// ../../packages/oxagen/src/contracts/kinds.shared.ts
|
|
99739
|
-
|
|
99739
|
+
function kindSlugOf(name) {
|
|
99740
|
+
return name.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").toLowerCase().replace(/[^\p{L}\p{N}]+/gu, "-").replace(/^-+|-+$/g, "").slice(0, KIND_NAME_MAX).replace(/-+$/, "");
|
|
99741
|
+
}
|
|
99742
|
+
var KIND_SUBJECTS, kindSubjectSchema, KIND_NAME_MAX, KIND_DESCRIPTION_MAX, KIND_REASON_MAX, RUN_KIND_INPUTS, kindSlugSchema, kindIdSchema, kindSchema, recordKindSchema3, kindNameSchema;
|
|
99740
99743
|
var init_kinds_shared = __esm({
|
|
99741
99744
|
"../../packages/oxagen/src/contracts/kinds.shared.ts"() {
|
|
99742
99745
|
"use strict";
|
|
@@ -99749,9 +99752,13 @@ var init_kinds_shared = __esm({
|
|
|
99749
99752
|
KIND_REASON_MAX = 200;
|
|
99750
99753
|
RUN_KIND_INPUTS = [
|
|
99751
99754
|
"first_prompt",
|
|
99755
|
+
"prompts_and_replies",
|
|
99752
99756
|
"transcript_and_diff",
|
|
99753
99757
|
"diff"
|
|
99754
99758
|
];
|
|
99759
|
+
kindSlugSchema = external_exports.string().min(1).max(KIND_NAME_MAX).refine((value) => kindSlugOf(value) === value, {
|
|
99760
|
+
message: "A kind's slug is its name in lowercase letters and digits, with one hyphen between words, such as bug or new-feature. Read the slugs with list_kinds."
|
|
99761
|
+
});
|
|
99755
99762
|
kindIdSchema = external_exports.string().uuid();
|
|
99756
99763
|
kindSchema = external_exports.object({
|
|
99757
99764
|
id: kindIdSchema,
|
|
@@ -106226,7 +106233,7 @@ async function runShow(runId, opts = {}, writer = stdoutWriter) {
|
|
|
106226
106233
|
const { run: run3 } = result2;
|
|
106227
106234
|
writer.write(run3.name === null ? run3.id : `${run3.id}: ${run3.name}`);
|
|
106228
106235
|
writer.write(`Agent: ${run3.agentKey ?? NOT_RECORDED}`);
|
|
106229
|
-
writer.write(`Status: ${run3.status}`);
|
|
106236
|
+
writer.write(`Status: ${RUN_STATUS_LABEL[run3.status]}`);
|
|
106230
106237
|
writer.write(`Outcome: ${run3.outcome}`);
|
|
106231
106238
|
writer.write(`Operator: ${operatorOf(run3)}`);
|
|
106232
106239
|
writer.write(`Tier: ${run3.enforcementTier}`);
|
|
@@ -106314,7 +106321,7 @@ async function runList2(opts = {}, writer = stdoutWriter) {
|
|
|
106314
106321
|
result2.runs.map((run3) => [
|
|
106315
106322
|
run3.id,
|
|
106316
106323
|
run3.agentKey ?? NOT_RECORDED,
|
|
106317
|
-
run3.status,
|
|
106324
|
+
RUN_STATUS_LABEL[run3.status],
|
|
106318
106325
|
run3.enforcementTier,
|
|
106319
106326
|
runCostOf(run3.cost),
|
|
106320
106327
|
run3.startedAt
|
|
@@ -106524,7 +106531,7 @@ async function runDraftAnswer(interjectionId, opts, writer = stdoutWriter) {
|
|
|
106524
106531
|
});
|
|
106525
106532
|
writer.write(`Send one, or your own words, with ${send5}.`);
|
|
106526
106533
|
}
|
|
106527
|
-
var DOWNLOAD_STALL_MS, NOT_RECORDED, TRANSCRIPT_ZOOMS, TRANSCRIPT_TEXTS, TRANSCRIPT_QUERY_MAX, TRANSCRIPT_LIMIT_MAX, PAUSE_NOTES, SKIP_REASONS2;
|
|
106534
|
+
var DOWNLOAD_STALL_MS, NOT_RECORDED, TRANSCRIPT_ZOOMS, TRANSCRIPT_TEXTS, TRANSCRIPT_QUERY_MAX, TRANSCRIPT_LIMIT_MAX, PAUSE_NOTES, RUN_STATUS_LABEL, SKIP_REASONS2;
|
|
106528
106535
|
var init_run5 = __esm({
|
|
106529
106536
|
"src/commands/run.ts"() {
|
|
106530
106537
|
init_rate_card();
|
|
@@ -106545,6 +106552,11 @@ var init_run5 = __esm({
|
|
|
106545
106552
|
paused: null,
|
|
106546
106553
|
resuming: "A resume is queued behind it."
|
|
106547
106554
|
};
|
|
106555
|
+
RUN_STATUS_LABEL = {
|
|
106556
|
+
live: "live",
|
|
106557
|
+
sealed: "ended",
|
|
106558
|
+
halted: "halted"
|
|
106559
|
+
};
|
|
106548
106560
|
SKIP_REASONS2 = {
|
|
106549
106561
|
run_sealed: "the run has ended",
|
|
106550
106562
|
no_host: "the run names no enrolled host",
|
|
@@ -173094,15 +173106,23 @@ function renderKindRules(rules, opts, writer) {
|
|
|
173094
173106
|
return;
|
|
173095
173107
|
}
|
|
173096
173108
|
writer.write("Kind rules:");
|
|
173097
|
-
const
|
|
173098
|
-
|
|
173109
|
+
const named = rules.some((rule) => typeof rule.name === "string");
|
|
173110
|
+
const headers = [
|
|
173111
|
+
...named ? ["KIND"] : [],
|
|
173112
|
+
"SLUG",
|
|
173113
|
+
"TIER",
|
|
173114
|
+
"EFFORT",
|
|
173115
|
+
...opts.withSource ? ["SOURCE"] : []
|
|
173116
|
+
];
|
|
173099
173117
|
printTable(
|
|
173100
173118
|
headers,
|
|
173101
|
-
rules.map((rule) =>
|
|
173102
|
-
|
|
173103
|
-
|
|
173104
|
-
|
|
173105
|
-
|
|
173119
|
+
rules.map((rule) => [
|
|
173120
|
+
...named ? [rule.name ?? ""] : [],
|
|
173121
|
+
rule.kind,
|
|
173122
|
+
rule.tier.name,
|
|
173123
|
+
rule.effort ?? "none",
|
|
173124
|
+
...opts.withSource ? [rule.source ?? ""] : []
|
|
173125
|
+
]),
|
|
173106
173126
|
writer
|
|
173107
173127
|
);
|
|
173108
173128
|
}
|
package/package.json
CHANGED