@oxagen/cli 2.1.4-719 → 2.1.4-724
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 +94 -51
- package/package.json +1 -1
package/oxagen.mjs
CHANGED
|
@@ -269,15 +269,15 @@ function writeFileAtomic(path2, data, options) {
|
|
|
269
269
|
function writeAll(fd2, bytes) {
|
|
270
270
|
let offset = 0;
|
|
271
271
|
while (offset < bytes.length) {
|
|
272
|
-
const
|
|
273
|
-
if (
|
|
272
|
+
const written2 = writeSync(fd2, bytes, offset, bytes.length - offset);
|
|
273
|
+
if (written2 <= 0)
|
|
274
274
|
throw Object.assign(
|
|
275
275
|
new Error(
|
|
276
276
|
`write took ${offset} of ${bytes.length} bytes and then no more`
|
|
277
277
|
),
|
|
278
278
|
{ code: "EIO" }
|
|
279
279
|
);
|
|
280
|
-
offset +=
|
|
280
|
+
offset += written2;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
function writeSensitiveFileAtomic(path2, data, mode = 384) {
|
|
@@ -10464,8 +10464,8 @@ function isDaemonImage(record, image) {
|
|
|
10464
10464
|
}
|
|
10465
10465
|
function createdAfterRecord(record, createdMs) {
|
|
10466
10466
|
if (createdMs === void 0 || record.started_at === void 0) return false;
|
|
10467
|
-
const
|
|
10468
|
-
return Number.isFinite(
|
|
10467
|
+
const written2 = Date.parse(record.started_at);
|
|
10468
|
+
return Number.isFinite(written2) && createdMs > written2 + CLOCK_STEP_SLACK_MS;
|
|
10469
10469
|
}
|
|
10470
10470
|
function processExecutable(pid) {
|
|
10471
10471
|
try {
|
|
@@ -22316,8 +22316,8 @@ function readSidecar(path2, harness) {
|
|
|
22316
22316
|
`${path2} cannot be read, so what Oxagen displaced in ${harness}'s settings is unknown: ${error instanceof Error ? error.message : String(error)}; repair it or remove it and run this again`
|
|
22317
22317
|
);
|
|
22318
22318
|
}
|
|
22319
|
-
const
|
|
22320
|
-
if (parsed2["schema"] !== SIDECAR_SCHEMA || typeof
|
|
22319
|
+
const written2 = parsed2["written_sha256"];
|
|
22320
|
+
if (parsed2["schema"] !== SIDECAR_SCHEMA || typeof written2 !== "string")
|
|
22321
22321
|
return void 0;
|
|
22322
22322
|
const stringAt = (key) => {
|
|
22323
22323
|
const value = parsed2[key];
|
|
@@ -22327,7 +22327,7 @@ function readSidecar(path2, harness) {
|
|
|
22327
22327
|
schema: SIDECAR_SCHEMA,
|
|
22328
22328
|
existed: parsed2["existed"] === true,
|
|
22329
22329
|
original_base64: stringAt("original_base64") ?? "",
|
|
22330
|
-
written_sha256:
|
|
22330
|
+
written_sha256: written2,
|
|
22331
22331
|
previous: stringAt("previous")
|
|
22332
22332
|
};
|
|
22333
22333
|
if (harness === "claude-code")
|
|
@@ -23097,14 +23097,14 @@ function readSidecar2(path2, harness) {
|
|
|
23097
23097
|
`${path2} cannot be read, so what Oxagen took from ${harness}'s credential file is unknown: ${error instanceof Error ? error.message : String(error)}; repair it or remove it and run this again`
|
|
23098
23098
|
);
|
|
23099
23099
|
}
|
|
23100
|
-
const
|
|
23101
|
-
if (parsed2["schema"] !== SIDECAR_SCHEMA2 || typeof
|
|
23100
|
+
const written2 = parsed2["written_sha256"];
|
|
23101
|
+
if (parsed2["schema"] !== SIDECAR_SCHEMA2 || typeof written2 !== "string")
|
|
23102
23102
|
return void 0;
|
|
23103
23103
|
const taken = parsed2["taken"];
|
|
23104
23104
|
const common = {
|
|
23105
23105
|
schema: SIDECAR_SCHEMA2,
|
|
23106
23106
|
existed: parsed2["existed"] === true,
|
|
23107
|
-
written_sha256:
|
|
23107
|
+
written_sha256: written2,
|
|
23108
23108
|
taken: Array.isArray(taken) ? taken.filter(
|
|
23109
23109
|
(t) => typeof t === "object" && t !== null && typeof t.member === "string" && (t.kind === "api_key" || t.kind === "bearer")
|
|
23110
23110
|
) : []
|
|
@@ -23331,12 +23331,12 @@ function restoreClaude(options, released, sidecar) {
|
|
|
23331
23331
|
if (text5 === void 0) {
|
|
23332
23332
|
if (released !== void 0) {
|
|
23333
23333
|
const member3 = released.kind === "bearer" ? CLAUDE_AUTH_TOKEN : CLAUDE_API_KEY;
|
|
23334
|
-
const
|
|
23334
|
+
const written2 = serializeJsonLike(void 0, {
|
|
23335
23335
|
env: { [member3]: released.secret }
|
|
23336
23336
|
});
|
|
23337
|
-
writeFileAtomicPreserving(file,
|
|
23337
|
+
writeFileAtomicPreserving(file, written2);
|
|
23338
23338
|
dropSidecar();
|
|
23339
|
-
return { changed: true, text:
|
|
23339
|
+
return { changed: true, text: written2, secretRestored: true };
|
|
23340
23340
|
}
|
|
23341
23341
|
dropSidecar();
|
|
23342
23342
|
return { changed: false, text: text5, secretRestored: false };
|
|
@@ -23388,12 +23388,12 @@ function restoreCodex(options, released, sidecar) {
|
|
|
23388
23388
|
};
|
|
23389
23389
|
if (text5 === void 0) {
|
|
23390
23390
|
if (released !== void 0) {
|
|
23391
|
-
const
|
|
23391
|
+
const written2 = serializeJsonLike(void 0, {
|
|
23392
23392
|
[CODEX_KEY2]: released.secret
|
|
23393
23393
|
});
|
|
23394
|
-
writeFileAtomicPreserving(file,
|
|
23394
|
+
writeFileAtomicPreserving(file, written2);
|
|
23395
23395
|
dropSidecar();
|
|
23396
|
-
return { changed: true, text:
|
|
23396
|
+
return { changed: true, text: written2, secretRestored: true };
|
|
23397
23397
|
}
|
|
23398
23398
|
dropSidecar();
|
|
23399
23399
|
return { changed: false, text: text5, secretRestored: false };
|
|
@@ -24941,7 +24941,7 @@ import { readFileSync as readFileSync10 } from "node:fs";
|
|
|
24941
24941
|
import { dirname as dirname9, resolve as resolve3 } from "node:path";
|
|
24942
24942
|
import { fileURLToPath } from "node:url";
|
|
24943
24943
|
function readVersion() {
|
|
24944
|
-
if (true) return "2.1.4-
|
|
24944
|
+
if (true) return "2.1.4-724";
|
|
24945
24945
|
try {
|
|
24946
24946
|
const here = dirname9(fileURLToPath(import.meta.url));
|
|
24947
24947
|
const pkg = JSON.parse(
|
|
@@ -27718,14 +27718,14 @@ ${lines.join("\n")}
|
|
|
27718
27718
|
/** Overwrite the bytes at `at` with spaces, leaving its newline. */
|
|
27719
27719
|
static overwriteWithSpaces(fd2, at2) {
|
|
27720
27720
|
const spaces = Buffer.alloc(Math.min(at2.length, 64 * 1024), " ");
|
|
27721
|
-
let
|
|
27722
|
-
while (
|
|
27723
|
-
|
|
27721
|
+
let written2 = 0;
|
|
27722
|
+
while (written2 < at2.length) {
|
|
27723
|
+
written2 += writeSync4(
|
|
27724
27724
|
fd2,
|
|
27725
27725
|
spaces,
|
|
27726
27726
|
0,
|
|
27727
|
-
Math.min(spaces.length, at2.length -
|
|
27728
|
-
at2.offset +
|
|
27727
|
+
Math.min(spaces.length, at2.length - written2),
|
|
27728
|
+
at2.offset + written2
|
|
27729
27729
|
);
|
|
27730
27730
|
}
|
|
27731
27731
|
}
|
|
@@ -38439,21 +38439,21 @@ function rootReadOnly(system, path2, kind) {
|
|
|
38439
38439
|
}
|
|
38440
38440
|
function pinSandboxHooks(system, options) {
|
|
38441
38441
|
const port = options.gatewayPort ?? SANDBOX_GATEWAY_PORT;
|
|
38442
|
-
const
|
|
38442
|
+
const written2 = [
|
|
38443
38443
|
[SANDBOX_HOOK_SCRIPT, sandboxHookScript(port)],
|
|
38444
38444
|
[
|
|
38445
38445
|
CLAUDE_MANAGED_SETTINGS,
|
|
38446
38446
|
claudeCodeManagedSettings(`${options.nodePath} ${SANDBOX_HOOK_SCRIPT}`)
|
|
38447
38447
|
]
|
|
38448
38448
|
];
|
|
38449
|
-
for (const [path2, contents] of
|
|
38449
|
+
for (const [path2, contents] of written2) {
|
|
38450
38450
|
const directory = dirname15(path2);
|
|
38451
38451
|
system.mkdir(directory, 493);
|
|
38452
38452
|
system.chown(directory, 0, 0);
|
|
38453
38453
|
system.writeFile(path2, contents, 292);
|
|
38454
38454
|
system.chown(path2, 0, 0);
|
|
38455
38455
|
}
|
|
38456
|
-
const files2 = [options.nodePath, ...
|
|
38456
|
+
const files2 = [options.nodePath, ...written2.map(([path2]) => path2)];
|
|
38457
38457
|
for (const path2 of files2)
|
|
38458
38458
|
if (!rootReadOnly(system, path2, "file") || !rootReadOnly(system, dirname15(path2), "directory"))
|
|
38459
38459
|
throw new Error(
|
|
@@ -40026,13 +40026,13 @@ async function contentHash(absolutePath, kind, keep) {
|
|
|
40026
40026
|
await handle2.close().catch(() => void 0);
|
|
40027
40027
|
await unlink(temp2).catch(() => void 0);
|
|
40028
40028
|
};
|
|
40029
|
-
let
|
|
40029
|
+
let written2 = 0;
|
|
40030
40030
|
try {
|
|
40031
40031
|
for await (const chunk2 of createReadStream(absolutePath)) {
|
|
40032
40032
|
hash3.update(chunk2);
|
|
40033
40033
|
if (copy === null) continue;
|
|
40034
|
-
|
|
40035
|
-
if (keep === void 0 ||
|
|
40034
|
+
written2 += chunk2.length;
|
|
40035
|
+
if (keep === void 0 || written2 > keep.bytes) await drop();
|
|
40036
40036
|
else await copy.handle.write(chunk2).catch(async () => drop());
|
|
40037
40037
|
}
|
|
40038
40038
|
} catch {
|
|
@@ -40715,8 +40715,8 @@ async function readSessionCommits(exec4, cwd, input) {
|
|
|
40715
40715
|
const files2 = rows.map(fileOf).sort(byPath);
|
|
40716
40716
|
const test = input.tests[commit.sha];
|
|
40717
40717
|
const toolUseId = callAt(times.get(commit.sha), calls);
|
|
40718
|
-
const
|
|
40719
|
-
const outside = merge ||
|
|
40718
|
+
const written2 = input.written;
|
|
40719
|
+
const outside = merge || written2 === void 0 || root === void 0 ? void 0 : files2.some((file) => !written2.has(join29(root, file.path)));
|
|
40720
40720
|
return {
|
|
40721
40721
|
sha: commit.sha,
|
|
40722
40722
|
parent_shas: commit.parents.slice(0, MAX_COMMIT_PARENTS),
|
|
@@ -57199,7 +57199,7 @@ var init_package = __esm({
|
|
|
57199
57199
|
"package.json"() {
|
|
57200
57200
|
package_default = {
|
|
57201
57201
|
name: "@oxagen/cli",
|
|
57202
|
-
version: "2.1.4-
|
|
57202
|
+
version: "2.1.4-724",
|
|
57203
57203
|
description: "Oxagen governance CLI \u2014 spend, lineage, grounding, credentials, and audit (agentic coding lives in the stella CLI)",
|
|
57204
57204
|
type: "module",
|
|
57205
57205
|
main: "./dist/index.js",
|
|
@@ -62101,11 +62101,11 @@ async function syncSteering(opts) {
|
|
|
62101
62101
|
committed: false
|
|
62102
62102
|
};
|
|
62103
62103
|
}
|
|
62104
|
-
let
|
|
62104
|
+
let written2 = 0;
|
|
62105
62105
|
const outOfBudget = () => deadlineMs !== void 0 && deadlineMs - now() < MIN_SYNC_SLICE_MS;
|
|
62106
62106
|
const outOfTime = () => refuse3(
|
|
62107
62107
|
"out_of_time",
|
|
62108
|
-
`The prompt's hook ran out of time after ${
|
|
62108
|
+
`The prompt's hook ran out of time after ${written2} of ${updated.length + removed.length} file(s) under \`.oxagen/\` were taken from ${target2}. Run \`oxagen steering sync\` to finish, or \`git restore --staged --worktree .oxagen\` to undo it.`
|
|
62109
62109
|
);
|
|
62110
62110
|
if (updated.length > 0) {
|
|
62111
62111
|
for (const batch of chunk(updated, 200)) {
|
|
@@ -62124,7 +62124,7 @@ async function syncSteering(opts) {
|
|
|
62124
62124
|
"--",
|
|
62125
62125
|
...batch
|
|
62126
62126
|
);
|
|
62127
|
-
|
|
62127
|
+
written2 += batch.length;
|
|
62128
62128
|
}
|
|
62129
62129
|
}
|
|
62130
62130
|
if (removed.length > 0) {
|
|
@@ -62139,7 +62139,7 @@ async function syncSteering(opts) {
|
|
|
62139
62139
|
"--",
|
|
62140
62140
|
...batch
|
|
62141
62141
|
);
|
|
62142
|
-
|
|
62142
|
+
written2 += batch.length;
|
|
62143
62143
|
}
|
|
62144
62144
|
if (force) {
|
|
62145
62145
|
for (const batch of chunk(removed, 200)) {
|
|
@@ -75312,7 +75312,7 @@ function codegraphSettingsGroupOf(path2) {
|
|
|
75312
75312
|
(entry2) => codegraphSettingsPath(entry2.group) === path2
|
|
75313
75313
|
) ?? null;
|
|
75314
75314
|
}
|
|
75315
|
-
var share, confidence, sourceTagSchema, codegraphSourcesSchema, CODEGRAPH_SOURCES_DEFAULTS, CODEGRAPH_FILE_SIZE_LIMIT_BYTES_DEFAULT, CODEGRAPH_SKIPPED_PATHS_DEFAULT, codegraphIndexingSchema, CODEGRAPH_INDEXING_DEFAULTS, codegraphKeySourceSchema, codegraphCallModeSchema, modelId, 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, codegraphDomainsSchema, CODEGRAPH_DOMAINS_DEFAULTS, CODEGRAPH_BOT_AUTHORS_DEFAULT, codegraphHistorySchema, CODEGRAPH_HISTORY_DEFAULTS, codegraphDecisionsSchema, CODEGRAPH_DECISIONS_DEFAULTS, codegraphHostDefaultSchema, CODEGRAPH_HOST_DEFAULTS, codegraphScriptsSchema, CODEGRAPH_SCRIPTS_DEFAULTS,
|
|
75315
|
+
var share, confidence, sourceTagSchema, codegraphSourcesSchema, CODEGRAPH_SOURCES_DEFAULTS, CODEGRAPH_FILE_SIZE_LIMIT_BYTES_DEFAULT, CODEGRAPH_SKIPPED_PATHS_DEFAULT, codegraphIndexingSchema, CODEGRAPH_INDEXING_DEFAULTS, codegraphKeySourceSchema, codegraphCallModeSchema, modelId, 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;
|
|
75316
75316
|
var init_codegraph_settings = __esm({
|
|
75317
75317
|
"../../packages/oxagen/src/steering-repo/codegraph-settings.ts"() {
|
|
75318
75318
|
"use strict";
|
|
@@ -75586,9 +75586,38 @@ var init_codegraph_settings = __esm({
|
|
|
75586
75586
|
agent_publish_score: 0.6,
|
|
75587
75587
|
agent_confidence_cap: 0.8
|
|
75588
75588
|
};
|
|
75589
|
+
codegraphDomainIdSchema = external_exports.string().regex(/^[a-z0-9][a-z0-9_.-]{0,127}$/, "a domain id is lowercase");
|
|
75590
|
+
written = (max2) => external_exports.string().min(1).max(max2).regex(/\S/, "write at least one word");
|
|
75591
|
+
domainName = () => written(120);
|
|
75592
|
+
domainDefinition = () => written(600);
|
|
75593
|
+
codegraphDomainChangeSchema = external_exports.discriminatedUnion("action", [
|
|
75594
|
+
external_exports.object({
|
|
75595
|
+
action: external_exports.literal("rename"),
|
|
75596
|
+
domain: codegraphDomainIdSchema,
|
|
75597
|
+
name: domainName().describe("The new name."),
|
|
75598
|
+
definition: domainDefinition().optional().describe("The new one-sentence definition. Unset: keep the current one.")
|
|
75599
|
+
}).strict(),
|
|
75600
|
+
external_exports.object({
|
|
75601
|
+
action: external_exports.literal("merge"),
|
|
75602
|
+
domain: codegraphDomainIdSchema,
|
|
75603
|
+
into: codegraphDomainIdSchema.describe(
|
|
75604
|
+
"The domain that takes every member of `domain`."
|
|
75605
|
+
)
|
|
75606
|
+
}).strict(),
|
|
75607
|
+
external_exports.object({
|
|
75608
|
+
action: external_exports.literal("split"),
|
|
75609
|
+
domain: codegraphDomainIdSchema,
|
|
75610
|
+
id: codegraphDomainIdSchema.describe("The stable ID of the new domain."),
|
|
75611
|
+
name: domainName().describe("The name of the new domain."),
|
|
75612
|
+
definition: domainDefinition().optional(),
|
|
75613
|
+
paths: external_exports.array(written(512)).min(1).describe("The folders or files whose members move to the new domain.")
|
|
75614
|
+
}).strict()
|
|
75615
|
+
]);
|
|
75589
75616
|
codegraphDomainsSchema = external_exports.object({
|
|
75590
75617
|
tag_score: setting(
|
|
75591
|
-
share().describe(
|
|
75618
|
+
share().describe(
|
|
75619
|
+
"The score a domain needs for a node to take it. Every node takes at least one."
|
|
75620
|
+
),
|
|
75592
75621
|
0.35
|
|
75593
75622
|
),
|
|
75594
75623
|
close_call_margin: setting(
|
|
@@ -75606,6 +75635,9 @@ var init_codegraph_settings = __esm({
|
|
|
75606
75635
|
"Regroup domains when this share of the grouping graph's edge weight changes."
|
|
75607
75636
|
),
|
|
75608
75637
|
0.1
|
|
75638
|
+
),
|
|
75639
|
+
changes: external_exports.array(codegraphDomainChangeSchema).optional().describe(
|
|
75640
|
+
"The renames, merges, and splits a workspace Admin approved, applied in order on every rebuild."
|
|
75609
75641
|
)
|
|
75610
75642
|
}).strict();
|
|
75611
75643
|
CODEGRAPH_DOMAINS_DEFAULTS = {
|
|
@@ -75731,7 +75763,6 @@ var init_codegraph_settings = __esm({
|
|
|
75731
75763
|
host_defaults: CODEGRAPH_HOST_DEFAULTS,
|
|
75732
75764
|
trusted_policies: []
|
|
75733
75765
|
};
|
|
75734
|
-
codegraphDomainIdSchema = external_exports.string().regex(/^[a-z0-9][a-z0-9_.-]{0,127}$/, "a domain id is lowercase");
|
|
75735
75766
|
codegraphBoundariesSchema = external_exports.object({
|
|
75736
75767
|
allowed_crossings: uniqueArray(
|
|
75737
75768
|
external_exports.object({
|
|
@@ -75835,7 +75866,7 @@ var init_codegraph_settings = __esm({
|
|
|
75835
75866
|
group: "domains",
|
|
75836
75867
|
id: "codegraph-domains/v1",
|
|
75837
75868
|
title: "Code graph domains",
|
|
75838
|
-
description: "codegraph/domains.toml: the tag score, the close-call margin and limit, and the
|
|
75869
|
+
description: "codegraph/domains.toml: the tag score, the close-call margin and limit, the regrouping threshold, and the approved domain changes.",
|
|
75839
75870
|
schema: codegraphDomainsSchema,
|
|
75840
75871
|
defaults: CODEGRAPH_DOMAINS_DEFAULTS,
|
|
75841
75872
|
timing: "next_build"
|
|
@@ -101557,7 +101588,7 @@ function fromReflection(protos, notes) {
|
|
|
101557
101588
|
const symbols = new Symbols();
|
|
101558
101589
|
for (const file of effective) symbols.register(file);
|
|
101559
101590
|
const visibility = new Visibility(effective);
|
|
101560
|
-
const
|
|
101591
|
+
const written2 = [];
|
|
101561
101592
|
for (const [name, file] of [...reflected].sort(
|
|
101562
101593
|
([a], [b3]) => a < b3 ? -1 : a > b3 ? 1 : 0
|
|
101563
101594
|
)) {
|
|
@@ -101565,18 +101596,18 @@ function fromReflection(protos, notes) {
|
|
|
101565
101596
|
noteChangedWkt(file, notes);
|
|
101566
101597
|
continue;
|
|
101567
101598
|
}
|
|
101568
|
-
|
|
101599
|
+
written2.push({
|
|
101569
101600
|
path: `${PROTO_DIR}${name}`,
|
|
101570
101601
|
text: printProto(file, symbols, visibility.of(name), notes)
|
|
101571
101602
|
});
|
|
101572
101603
|
}
|
|
101573
|
-
if (
|
|
101604
|
+
if (written2.length === 0) {
|
|
101574
101605
|
throw new GrpcImportError(
|
|
101575
101606
|
"empty",
|
|
101576
101607
|
"Server reflection returned only well-known types, so it holds no service to import. Import the server's .proto files instead."
|
|
101577
101608
|
);
|
|
101578
101609
|
}
|
|
101579
|
-
return
|
|
101610
|
+
return written2;
|
|
101580
101611
|
}
|
|
101581
101612
|
function decodeAll(protos) {
|
|
101582
101613
|
const byName2 = /* @__PURE__ */ new Map();
|
|
@@ -102153,8 +102184,8 @@ var init_tools5 = __esm({
|
|
|
102153
102184
|
// ../../packages/mcp-studio/src/grpc/index.ts
|
|
102154
102185
|
async function importGrpc(input) {
|
|
102155
102186
|
const notes = new Notes();
|
|
102156
|
-
const
|
|
102157
|
-
const sources = "files" in input ? input.files :
|
|
102187
|
+
const written2 = "files" in input ? [] : fromReflection(input.reflection.file_descriptor_protos, notes);
|
|
102188
|
+
const sources = "files" in input ? input.files : written2;
|
|
102158
102189
|
const set = buildSet(sources, notes);
|
|
102159
102190
|
return {
|
|
102160
102191
|
...toolsOf2(set, notes),
|
|
@@ -102162,7 +102193,7 @@ async function importGrpc(input) {
|
|
|
102162
102193
|
environments: [],
|
|
102163
102194
|
auth: [],
|
|
102164
102195
|
document_hash: bundleHash(sources),
|
|
102165
|
-
files:
|
|
102196
|
+
files: written2,
|
|
102166
102197
|
descriptor_set: set.descriptorSet
|
|
102167
102198
|
};
|
|
102168
102199
|
}
|
|
@@ -130005,7 +130036,7 @@ var init_common2 = __esm({
|
|
|
130005
130036
|
function call(name, request3, result2) {
|
|
130006
130037
|
return { call: name, request: request3, result: result2, response: responseSchema(result2) };
|
|
130007
130038
|
}
|
|
130008
|
-
var unit3, count10, names, excluded, withinSchema, testRefSchema, SEARCH_GROUPS, searchHitSchema, searchCodeGraphRequest, searchCodeGraphResult, blastTargetSchema, decisionItemSchema, blastGroupsSchema, getBlastRadiusRequest, getBlastRadiusResult, listUnitTestsRequest, listUnitTestsResult, flowDataSchema, flowNodeSchema, jobStepSchema, getExecutionFlowRequest, getExecutionFlowResult, traceSpecRequest, traceSpecResult, listGoverningDecisionsBase, listGoverningDecisionsRequestShape, listGoverningDecisionsRequest, listGoverningDecisionsResult, getEnvVarsRequest, getEnvVarsResult, connectionSchema, getInfraRequest, getInfraResult, listCiJobsRequest, listCiJobsResult, scriptEffectSchema, listScriptsRequest, listScriptsResult, getApiDocsRequest, getApiDocsResult, exportOpenapiDraftRequest, exportOpenapiDraftResult, listCoChangesRequest, listCoChangesResult, rankSymbolsRequest, rankSymbolsResult, getRepoMapRequest, getRepoMapResult, getDomainBriefRequest, getDomainBriefResult, checkChangeRequest, checkChangeResult, findDefinitionRequest, findDefinitionResult, findReferencesRequest, findReferencesResult, findImplementationsRequest, findImplementationsResult, listNeighborsRequest, listNeighborsResult, CODEGRAPH_CALLS;
|
|
130039
|
+
var unit3, count10, names, excluded, withinSchema, testRefSchema, SEARCH_GROUPS, searchHitSchema, SEARCH_MEANING_STATES, searchMeaningStateSchema, searchCodeGraphRequest, searchCodeGraphResult, blastTargetSchema, decisionItemSchema, blastGroupsSchema, getBlastRadiusRequest, getBlastRadiusResult, listUnitTestsRequest, listUnitTestsResult, flowDataSchema, flowNodeSchema, jobStepSchema, getExecutionFlowRequest, getExecutionFlowResult, traceSpecRequest, traceSpecResult, listGoverningDecisionsBase, listGoverningDecisionsRequestShape, listGoverningDecisionsRequest, listGoverningDecisionsResult, getEnvVarsRequest, getEnvVarsResult, connectionSchema, getInfraRequest, getInfraResult, listCiJobsRequest, listCiJobsResult, scriptEffectSchema, listScriptsRequest, listScriptsResult, getApiDocsRequest, getApiDocsResult, exportOpenapiDraftRequest, exportOpenapiDraftResult, listCoChangesRequest, listCoChangesResult, rankSymbolsRequest, rankSymbolsResult, getRepoMapRequest, getRepoMapResult, getDomainBriefRequest, getDomainBriefResult, checkChangeRequest, checkChangeResult, findDefinitionRequest, findDefinitionResult, findReferencesRequest, findReferencesResult, findImplementationsRequest, findImplementationsResult, listNeighborsRequest, listNeighborsResult, CODEGRAPH_CALLS;
|
|
130009
130040
|
var init_calls = __esm({
|
|
130010
130041
|
"../../packages/codegraph/src/query/calls.ts"() {
|
|
130011
130042
|
"use strict";
|
|
@@ -130049,13 +130080,24 @@ var init_calls = __esm({
|
|
|
130049
130080
|
at: external_exports.string().min(1).optional(),
|
|
130050
130081
|
why: external_exports.string().min(1).optional(),
|
|
130051
130082
|
status: external_exports.string().min(1).optional(),
|
|
130052
|
-
id: external_exports.string().min(1).optional()
|
|
130083
|
+
id: external_exports.string().min(1).optional(),
|
|
130084
|
+
kind: nodeKindSchema,
|
|
130085
|
+
score: external_exports.number().nonnegative(),
|
|
130086
|
+
/** True for a node the question names exactly. */
|
|
130087
|
+
exact: external_exports.boolean().optional(),
|
|
130088
|
+
/** The domains the result is tagged with, heaviest first. */
|
|
130089
|
+
domains: names.optional(),
|
|
130090
|
+
signature: external_exports.string().min(1).optional(),
|
|
130091
|
+
/** With `responseFormat: "detailed"`: the names and links the walk took. */
|
|
130092
|
+
path: external_exports.array(external_exports.string().min(1)).optional()
|
|
130053
130093
|
}).strict().refine((h) => h.name !== void 0 || h.file !== void 0, {
|
|
130054
130094
|
message: "a hit needs a name or a file"
|
|
130055
130095
|
});
|
|
130096
|
+
SEARCH_MEANING_STATES = ["used", "off", "unavailable"];
|
|
130097
|
+
searchMeaningStateSchema = external_exports.enum(SEARCH_MEANING_STATES);
|
|
130056
130098
|
searchCodeGraphRequest = requestSchema({
|
|
130057
|
-
query: external_exports.string().min(1),
|
|
130058
|
-
groups: external_exports.array(external_exports.enum(SEARCH_GROUPS)).optional()
|
|
130099
|
+
query: external_exports.string().trim().min(1).max(2e3),
|
|
130100
|
+
groups: external_exports.array(external_exports.enum(SEARCH_GROUPS)).min(1).optional()
|
|
130059
130101
|
});
|
|
130060
130102
|
searchCodeGraphResult = external_exports.object({
|
|
130061
130103
|
query: external_exports.string().min(1),
|
|
@@ -130075,6 +130117,7 @@ var init_calls = __esm({
|
|
|
130075
130117
|
decisions: external_exports.array(searchHitSchema)
|
|
130076
130118
|
}).partial().strict(),
|
|
130077
130119
|
dossiers: names,
|
|
130120
|
+
meaning: searchMeaningStateSchema.optional(),
|
|
130078
130121
|
excluded
|
|
130079
130122
|
}).strict();
|
|
130080
130123
|
blastTargetSchema = external_exports.object({
|
package/package.json
CHANGED