@oxagen/cli 5.5.1-226 → 5.5.1-228
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 +28 -8
- package/package.json +1 -1
package/oxagen.mjs
CHANGED
|
@@ -33126,7 +33126,7 @@ import { readFileSync as readFileSync12 } from "node:fs";
|
|
|
33126
33126
|
import { dirname as dirname14, resolve as resolve3 } from "node:path";
|
|
33127
33127
|
import { fileURLToPath } from "node:url";
|
|
33128
33128
|
function readVersion() {
|
|
33129
|
-
if (true) return "5.5.1-
|
|
33129
|
+
if (true) return "5.5.1-228";
|
|
33130
33130
|
try {
|
|
33131
33131
|
const here = dirname14(fileURLToPath(import.meta.url));
|
|
33132
33132
|
const pkg = JSON.parse(
|
|
@@ -80458,7 +80458,7 @@ var init_package = __esm({
|
|
|
80458
80458
|
"package.json"() {
|
|
80459
80459
|
package_default = {
|
|
80460
80460
|
name: "@oxagen/cli",
|
|
80461
|
-
version: "5.5.1-
|
|
80461
|
+
version: "5.5.1-228",
|
|
80462
80462
|
description: "Oxagen governance CLI: spend, source tracking, grounding, credentials, and audit (agentic coding lives in the stella CLI)",
|
|
80463
80463
|
type: "module",
|
|
80464
80464
|
main: "./dist/index.js",
|
|
@@ -93904,7 +93904,7 @@ var init_codegraph_request_code_graph_build = __esm({
|
|
|
93904
93904
|
codegraphRequestCodeGraphBuild = registerCapability({
|
|
93905
93905
|
name: "request_code_graph_build",
|
|
93906
93906
|
domain: "codegraph",
|
|
93907
|
-
description: "Build one repository's code graph again at the head of its default branch. The build runs in the background and publishes when it finishes; list_code_graph_index shows it as indexing until then. Refused when the code graph is switched off for the workspace or the repository. Needs a workspace Admin or an organization Owner.",
|
|
93907
|
+
description: "Build one repository's code graph again at the head of the branch the workspace tracks for it, its default branch unless codegraph/sources.toml names another. The build runs in the background and publishes when it finishes; list_code_graph_index shows it as indexing until then. Refused when the code graph is switched off for the workspace or the repository. Needs a workspace Admin or an organization Owner.",
|
|
93908
93908
|
mode: "sync",
|
|
93909
93909
|
surfaces: ["api", "mcp", "agent", "cli"],
|
|
93910
93910
|
layers: ["schema", "api", "mcp", "cli", "unit", "docs", "app"],
|
|
@@ -114054,6 +114054,16 @@ var init_bundle4 = __esm({
|
|
|
114054
114054
|
}
|
|
114055
114055
|
});
|
|
114056
114056
|
|
|
114057
|
+
// ../../packages/oxagen/src/steering-repo/codegraph-branch.ts
|
|
114058
|
+
var CODEGRAPH_BRANCH_PATTERN, CODEGRAPH_BRANCH_MAX_LENGTH;
|
|
114059
|
+
var init_codegraph_branch = __esm({
|
|
114060
|
+
"../../packages/oxagen/src/steering-repo/codegraph-branch.ts"() {
|
|
114061
|
+
"use strict";
|
|
114062
|
+
CODEGRAPH_BRANCH_PATTERN = /^(?!-)(?!\/)(?!.*\/$)(?!.*\/\/)(?!.*\.\.)(?!.*@\{)(?!.*\.$)(?!(?:.*\/)?\.)(?!.*\.lock(?:\/|$))(?!@$)(?!refs\/)[A-Za-z0-9._/@+#-]+$/;
|
|
114063
|
+
CODEGRAPH_BRANCH_MAX_LENGTH = 255;
|
|
114064
|
+
}
|
|
114065
|
+
});
|
|
114066
|
+
|
|
114057
114067
|
// ../../packages/oxagen/src/steering-repo/codegraph-settings.ts
|
|
114058
114068
|
function setting(schema, fallback) {
|
|
114059
114069
|
return withJsonSchema(schema, { default: fallback }).optional();
|
|
@@ -114066,14 +114076,16 @@ function codegraphSettingsGroupOf(path2) {
|
|
|
114066
114076
|
(entry2) => codegraphSettingsPath(entry2.group) === path2
|
|
114067
114077
|
) ?? null;
|
|
114068
114078
|
}
|
|
114069
|
-
var share, confidence, sourceTagSchema2, codegraphIgnorePathSchema, codegraphSourcesSchema, CODEGRAPH_SOURCES_DEFAULTS, CODEGRAPH_FILE_SIZE_LIMIT_BYTES_DEFAULT, CODEGRAPH_SKIPPED_PATHS_DEFAULT, CODEGRAPH_INVENTORY_ROLE_ARN, codegraphIndexingSchema, CODEGRAPH_INDEXING_DEFAULTS, codegraphKeySourceSchema, codegraphCallModeSchema, modelId, LINKER_ROUNDS_MAX, codegraphModelsSchema, CODEGRAPH_MODELS_DEFAULTS, codegraphEmbeddingProviderSchema, CODEGRAPH_EMBEDDING_DIMENSIONS_MAX, CODEGRAPH_OXAGEN_EMBEDDING_MODEL, CODEGRAPH_ENDPOINT_URL_PATTERN, codegraphEmbeddingsSchema, CODEGRAPH_EMBEDDINGS_DEFAULTS, codegraphLocalSchema, CODEGRAPH_LOCAL_DEFAULTS, CODEGRAPH_PROVENANCE_CONFIDENCE_DEFAULTS, codegraphConfidenceSchema, CODEGRAPH_CONFIDENCE_DEFAULTS, codegraphDomainIdSchema, written, domainName, domainDefinition, codegraphDomainChangeSchema, codegraphDomainsSchema, CODEGRAPH_DOMAINS_DEFAULTS, CODEGRAPH_BOT_AUTHORS_DEFAULT, codegraphHistorySchema, CODEGRAPH_HISTORY_DEFAULTS, codegraphDecisionsSchema, CODEGRAPH_DECISIONS_DEFAULTS, codegraphHostDefaultSchema, CODEGRAPH_HOST_DEFAULTS, codegraphScriptsSchema, CODEGRAPH_SCRIPTS_DEFAULTS, codegraphBoundariesSchema, CODEGRAPH_BOUNDARIES_DEFAULTS, codegraphBudgetsSchema, CODEGRAPH_BUDGETS_DEFAULTS, codegraphFreshnessSchema, CODEGRAPH_FRESHNESS_DEFAULTS, CODEGRAPH_SETTINGS_GROUPS;
|
|
114079
|
+
var share, confidence, sourceTagSchema2, codegraphIgnorePathSchema, codegraphBranchSchema, codegraphSourcesSchema, CODEGRAPH_SOURCES_DEFAULTS, CODEGRAPH_FILE_SIZE_LIMIT_BYTES_DEFAULT, CODEGRAPH_SKIPPED_PATHS_DEFAULT, CODEGRAPH_INVENTORY_ROLE_ARN, codegraphIndexingSchema, CODEGRAPH_INDEXING_DEFAULTS, codegraphKeySourceSchema, codegraphCallModeSchema, modelId, LINKER_ROUNDS_MAX, codegraphModelsSchema, CODEGRAPH_MODELS_DEFAULTS, codegraphEmbeddingProviderSchema, CODEGRAPH_EMBEDDING_DIMENSIONS_MAX, CODEGRAPH_OXAGEN_EMBEDDING_MODEL, CODEGRAPH_ENDPOINT_URL_PATTERN, codegraphEmbeddingsSchema, CODEGRAPH_EMBEDDINGS_DEFAULTS, codegraphLocalSchema, CODEGRAPH_LOCAL_DEFAULTS, CODEGRAPH_PROVENANCE_CONFIDENCE_DEFAULTS, codegraphConfidenceSchema, CODEGRAPH_CONFIDENCE_DEFAULTS, codegraphDomainIdSchema, written, domainName, domainDefinition, codegraphDomainChangeSchema, codegraphDomainsSchema, CODEGRAPH_DOMAINS_DEFAULTS, CODEGRAPH_BOT_AUTHORS_DEFAULT, codegraphHistorySchema, CODEGRAPH_HISTORY_DEFAULTS, codegraphDecisionsSchema, CODEGRAPH_DECISIONS_DEFAULTS, codegraphHostDefaultSchema, CODEGRAPH_HOST_DEFAULTS, codegraphScriptsSchema, CODEGRAPH_SCRIPTS_DEFAULTS, codegraphBoundariesSchema, CODEGRAPH_BOUNDARIES_DEFAULTS, codegraphBudgetsSchema, CODEGRAPH_BUDGETS_DEFAULTS, codegraphFreshnessSchema, CODEGRAPH_FRESHNESS_DEFAULTS, CODEGRAPH_SETTINGS_GROUPS;
|
|
114070
114080
|
var init_codegraph_settings = __esm({
|
|
114071
114081
|
"../../packages/oxagen/src/steering-repo/codegraph-settings.ts"() {
|
|
114072
114082
|
"use strict";
|
|
114073
114083
|
init_zod();
|
|
114074
114084
|
init_common2();
|
|
114075
114085
|
init_json_schema();
|
|
114086
|
+
init_codegraph_branch();
|
|
114076
114087
|
init_paths2();
|
|
114088
|
+
init_codegraph_branch();
|
|
114077
114089
|
share = () => external_exports.number().min(0).max(1);
|
|
114078
114090
|
confidence = () => external_exports.number().min(0).max(1);
|
|
114079
114091
|
sourceTagSchema2 = external_exports.string().regex(
|
|
@@ -114081,6 +114093,10 @@ var init_codegraph_settings = __esm({
|
|
|
114081
114093
|
"a source tag is lowercase letters and digits joined by hyphens"
|
|
114082
114094
|
).max(64);
|
|
114083
114095
|
codegraphIgnorePathSchema = external_exports.string().min(1).max(512).regex(/^\S+$/, "an ignore path is one .gitignore pattern with no spaces");
|
|
114096
|
+
codegraphBranchSchema = external_exports.string().min(1).max(CODEGRAPH_BRANCH_MAX_LENGTH).regex(
|
|
114097
|
+
CODEGRAPH_BRANCH_PATTERN,
|
|
114098
|
+
"a tracked branch is a git branch name such as main or release/2026-11"
|
|
114099
|
+
);
|
|
114084
114100
|
codegraphSourcesSchema = external_exports.object({
|
|
114085
114101
|
enabled: setting(
|
|
114086
114102
|
external_exports.boolean().describe(
|
|
@@ -114121,7 +114137,12 @@ var init_codegraph_settings = __esm({
|
|
|
114121
114137
|
"Embed the cards of Markdown files for meaning search, when embeddings are on."
|
|
114122
114138
|
),
|
|
114123
114139
|
true
|
|
114124
|
-
)
|
|
114140
|
+
),
|
|
114141
|
+
// No `default` keyword: the default is the repository's own default
|
|
114142
|
+
// branch, which only the host can name.
|
|
114143
|
+
tracked_branch: codegraphBranchSchema.describe(
|
|
114144
|
+
"The branch this workspace's code graph of the repository follows, such as main. A push to it builds a revision, and a push to any other branch builds none. Unset: the repository's default branch."
|
|
114145
|
+
).optional()
|
|
114125
114146
|
}).strict(),
|
|
114126
114147
|
"repos"
|
|
114127
114148
|
).optional().describe(
|
|
@@ -114645,7 +114666,7 @@ var init_codegraph_settings = __esm({
|
|
|
114645
114666
|
group: "sources",
|
|
114646
114667
|
id: "codegraph-sources/v1",
|
|
114647
114668
|
title: "Code graph sources",
|
|
114648
|
-
description: "codegraph/sources.toml: the workspace switch, the cross-repo switch, and each linked code repository's source tags, code graph switch, ignore paths, .gitignore switch,
|
|
114669
|
+
description: "codegraph/sources.toml: the workspace switch, the cross-repo switch, and each linked code repository's source tags, code graph switch, ignore paths, .gitignore switch, Markdown embedding switch, and tracked branch.",
|
|
114649
114670
|
schema: codegraphSourcesSchema,
|
|
114650
114671
|
defaults: CODEGRAPH_SOURCES_DEFAULTS,
|
|
114651
114672
|
timing: "next_build"
|
|
@@ -150312,7 +150333,6 @@ var init_dist2 = __esm({
|
|
|
150312
150333
|
var EventSourceParserStream;
|
|
150313
150334
|
var init_stream = __esm({
|
|
150314
150335
|
"../../node_modules/.pnpm/eventsource-parser@3.1.0/node_modules/eventsource-parser/dist/stream.js"() {
|
|
150315
|
-
init_dist2();
|
|
150316
150336
|
init_dist2();
|
|
150317
150337
|
EventSourceParserStream = class extends TransformStream {
|
|
150318
150338
|
constructor({ onError, onRetry, onComment, maxBufferSize } = {}) {
|
|
@@ -200530,7 +200550,7 @@ function addCodeGraphCommands(parent) {
|
|
|
200530
200550
|
if (!await handleCodegraphIndex2(opts)) process.exitCode ||= 1;
|
|
200531
200551
|
});
|
|
200532
200552
|
parent.command("build <repository>").description(
|
|
200533
|
-
"Build one repository's code graph in the cloud again at the head of its default branch. Name it owner/name, github:owner/name or gitlab:group/project. Needs a workspace Admin or an organization Owner"
|
|
200553
|
+
"Build one repository's code graph in the cloud again at the head of the branch the workspace tracks for it, its default branch unless codegraph/sources.toml names another. Name it owner/name, github:owner/name or gitlab:group/project. Needs a workspace Admin or an organization Owner"
|
|
200534
200554
|
).option("--json", "Output JSON").action(async (repository, opts) => {
|
|
200535
200555
|
const { handleCodegraphBuild: handleCodegraphBuild2 } = await Promise.resolve().then(() => (init_codegraph_cloud(), codegraph_cloud_exports));
|
|
200536
200556
|
if (!await handleCodegraphBuild2(repository, opts))
|
package/package.json
CHANGED