@oxagen/cli 3.0.1-680 → 3.0.1-685
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 +24 -10
- 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-685";
|
|
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-685",
|
|
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";
|
|
@@ -99752,6 +99755,9 @@ var init_kinds_shared = __esm({
|
|
|
99752
99755
|
"transcript_and_diff",
|
|
99753
99756
|
"diff"
|
|
99754
99757
|
];
|
|
99758
|
+
kindSlugSchema = external_exports.string().min(1).max(KIND_NAME_MAX).refine((value) => kindSlugOf(value) === value, {
|
|
99759
|
+
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."
|
|
99760
|
+
});
|
|
99755
99761
|
kindIdSchema = external_exports.string().uuid();
|
|
99756
99762
|
kindSchema = external_exports.object({
|
|
99757
99763
|
id: kindIdSchema,
|
|
@@ -173094,15 +173100,23 @@ function renderKindRules(rules, opts, writer) {
|
|
|
173094
173100
|
return;
|
|
173095
173101
|
}
|
|
173096
173102
|
writer.write("Kind rules:");
|
|
173097
|
-
const
|
|
173098
|
-
|
|
173103
|
+
const named = rules.some((rule) => typeof rule.name === "string");
|
|
173104
|
+
const headers = [
|
|
173105
|
+
...named ? ["KIND"] : [],
|
|
173106
|
+
"SLUG",
|
|
173107
|
+
"TIER",
|
|
173108
|
+
"EFFORT",
|
|
173109
|
+
...opts.withSource ? ["SOURCE"] : []
|
|
173110
|
+
];
|
|
173099
173111
|
printTable(
|
|
173100
173112
|
headers,
|
|
173101
|
-
rules.map((rule) =>
|
|
173102
|
-
|
|
173103
|
-
|
|
173104
|
-
|
|
173105
|
-
|
|
173113
|
+
rules.map((rule) => [
|
|
173114
|
+
...named ? [rule.name ?? ""] : [],
|
|
173115
|
+
rule.kind,
|
|
173116
|
+
rule.tier.name,
|
|
173117
|
+
rule.effort ?? "none",
|
|
173118
|
+
...opts.withSource ? [rule.source ?? ""] : []
|
|
173119
|
+
]),
|
|
173106
173120
|
writer
|
|
173107
173121
|
);
|
|
173108
173122
|
}
|
package/package.json
CHANGED