@canonry/canonry 7.72.1 → 7.72.2
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/dist/{backfill-7SGCPH6J.js → backfill-NE55YL6X.js} +1 -1
- package/dist/{chunk-TUVG7BIF.js → chunk-CF6BUJRK.js} +1 -1
- package/dist/{chunk-YFITKHCV.js → chunk-G7SGQUW4.js} +12 -12
- package/dist/chunk-HZSE3WSG.js +269 -0
- package/dist/{chunk-QKMGGM4B.js → chunk-IY4AJ6DN.js} +4 -267
- package/dist/{chunk-WJ2JU32O.js → chunk-NZLK3KHQ.js} +18 -1
- package/dist/{chunk-DFCKSJQI.js → chunk-QKDKVPMR.js} +1 -1
- package/dist/{chunk-GPTRCOKV.js → chunk-UZKNS5PL.js} +9 -7
- package/dist/{cli-commands-HGCYU4MQ.js → cli-commands-ARJWPTFW.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{demo-HYDPECCK.js → demo-GLV22DPY.js} +1 -1
- package/dist/{demo-server-KEOO7WFO.js → demo-server-GPM4C4Q2.js} +2 -1
- package/dist/index.d.ts +66 -66
- package/dist/index.js +4 -3
- package/dist/{init-TV4ZKAAW.js → init-Q33HEJJN.js} +1 -1
- package/dist/{intelligence-service-YNHDEY4M.js → intelligence-service-LVRH4RJG.js} +2 -1
- package/dist/{serve-76BGQFPW.js → serve-SJTQQQQE.js} +5 -4
- package/dist/{session-JBTIV7SS.js → session-VHCKM3AI.js} +2 -1
- package/package.json +1 -1
|
@@ -27,6 +27,9 @@ import {
|
|
|
27
27
|
CanonryMcpToolNames,
|
|
28
28
|
canonryMcpTools
|
|
29
29
|
} from "./chunk-GA2EHZTI.js";
|
|
30
|
+
import {
|
|
31
|
+
createLogger
|
|
32
|
+
} from "./chunk-HZSE3WSG.js";
|
|
30
33
|
import {
|
|
31
34
|
agentToolEvents,
|
|
32
35
|
llmUsageEvents
|
|
@@ -796,6 +799,20 @@ async function readAeroViewEvidence(options) {
|
|
|
796
799
|
const evidence = agentVisibilityEvidence(report, projectName, (/* @__PURE__ */ new Date()).toISOString());
|
|
797
800
|
return { ...evidence, source: { ...evidence.source, href: `${base}/${evidence.source.path}` } };
|
|
798
801
|
}
|
|
802
|
+
var log = createLogger("AeroView");
|
|
803
|
+
async function readAeroViewEvidenceForTurn(options, signal) {
|
|
804
|
+
try {
|
|
805
|
+
return await readAeroViewEvidence(options);
|
|
806
|
+
} catch (err) {
|
|
807
|
+
if (signal?.aborted || err?.code !== "NOT_FOUND") throw err;
|
|
808
|
+
log.warn("view-evidence.not-found", {
|
|
809
|
+
projectName: options.projectName,
|
|
810
|
+
view: options.context?.view ?? "visibility",
|
|
811
|
+
error: err instanceof Error ? err.message : String(err)
|
|
812
|
+
});
|
|
813
|
+
return void 0;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
799
816
|
function buildAeroViewTool(options, validatedEvidence) {
|
|
800
817
|
return {
|
|
801
818
|
name: "aero_inspect_view",
|
|
@@ -1061,7 +1078,7 @@ export {
|
|
|
1061
1078
|
setAeroSystemPrompt,
|
|
1062
1079
|
aeroTurnUsage,
|
|
1063
1080
|
aeroTurnStatus,
|
|
1064
|
-
|
|
1081
|
+
readAeroViewEvidenceForTurn,
|
|
1065
1082
|
buildAeroViewTool,
|
|
1066
1083
|
aeroViewPrompt,
|
|
1067
1084
|
loadAeroSystemPrompt,
|
|
@@ -47,7 +47,7 @@ function queueServeHandoff() {
|
|
|
47
47
|
async function runPendingServeHandoff(format) {
|
|
48
48
|
if (!pendingServeHandoff) return;
|
|
49
49
|
pendingServeHandoff = false;
|
|
50
|
-
const { serveCommand } = await import("./serve-
|
|
50
|
+
const { serveCommand } = await import("./serve-SJTQQQQE.js");
|
|
51
51
|
await serveCommand(format);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isSystemMessage,
|
|
19
19
|
loadAeroSystemPrompt,
|
|
20
20
|
missingProviderMessage,
|
|
21
|
-
|
|
21
|
+
readAeroViewEvidenceForTurn,
|
|
22
22
|
resolveAeroModel,
|
|
23
23
|
resolveAgentAllowViewers,
|
|
24
24
|
resolveAgentEnabled,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
resolveConfiguredAgentProvider,
|
|
28
28
|
resolveSessionProviderAndModel,
|
|
29
29
|
setAeroSystemPrompt
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NZLK3KHQ.js";
|
|
31
31
|
import {
|
|
32
32
|
AeroToolProfiles,
|
|
33
33
|
AeroToolScopes,
|
|
@@ -158,11 +158,13 @@ import {
|
|
|
158
158
|
CliError
|
|
159
159
|
} from "./chunk-HGMYEDAQ.js";
|
|
160
160
|
import {
|
|
161
|
-
IntelligenceService
|
|
161
|
+
IntelligenceService
|
|
162
|
+
} from "./chunk-IY4AJ6DN.js";
|
|
163
|
+
import {
|
|
162
164
|
addLogListener,
|
|
163
165
|
createFastifyLogger,
|
|
164
166
|
createLogger
|
|
165
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-HZSE3WSG.js";
|
|
166
168
|
import {
|
|
167
169
|
computeCitedCompetitorDomains,
|
|
168
170
|
determineCitationState
|
|
@@ -5807,7 +5809,7 @@ function nonBlank(value) {
|
|
|
5807
5809
|
return trimmed ? trimmed : void 0;
|
|
5808
5810
|
}
|
|
5809
5811
|
function resolveBuildCommit(env = process.env) {
|
|
5810
|
-
const embedded = true ? "
|
|
5812
|
+
const embedded = true ? "7811ac751d0f8a0fecec447c7bc024943d24eeb5" : void 0;
|
|
5811
5813
|
return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
|
|
5812
5814
|
}
|
|
5813
5815
|
function resolveInstanceIdentity(env = process.env) {
|
|
@@ -16381,7 +16383,7 @@ ${lines.join("\n")}
|
|
|
16381
16383
|
this.assertTurnProviderUsable(projectId);
|
|
16382
16384
|
await this.mergeExternalTools(agent);
|
|
16383
16385
|
const view = { client: this.opts.client, projectName, basePath: this.opts.config.basePath, context: preferences?.context };
|
|
16384
|
-
const evidence = preferences?.context ? await
|
|
16386
|
+
const evidence = preferences?.context ? await readAeroViewEvidenceForTurn(view, preferences?.signal) : void 0;
|
|
16385
16387
|
preferences?.signal?.throwIfAborted();
|
|
16386
16388
|
await this.maybeCompact(projectName, agent);
|
|
16387
16389
|
preferences?.signal?.throwIfAborted();
|
|
@@ -16880,7 +16882,7 @@ var ViewerAeroSessions = class {
|
|
|
16880
16882
|
const agent = this.sessions.get(key)?.agent ?? await this.createAgent(project, client, preferences.signal);
|
|
16881
16883
|
agent.state.messages = trimViewerTranscript(agent.state.messages.filter((message) => message.role !== "system"));
|
|
16882
16884
|
const view = { client, projectName: project.name, basePath: this.opts.config.basePath, context: preferences.context };
|
|
16883
|
-
const evidence = preferences.context ? await
|
|
16885
|
+
const evidence = preferences.context ? await readAeroViewEvidenceForTurn(view, preferences.signal) : void 0;
|
|
16884
16886
|
preferences.signal?.throwIfAborted();
|
|
16885
16887
|
const shape = aeroProjectShape(this.opts.db, project.id);
|
|
16886
16888
|
setAeroSystemPrompt(agent, loadAeroSystemPrompt(void 0, { extras: false }) + VIEWER_AERO_PROMPT + shape.prompt + aeroViewPrompt(preferences.context));
|
package/dist/cli.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node --import tsx
|
|
2
2
|
import {
|
|
3
3
|
REGISTERED_CLI_COMMANDS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-G7SGQUW4.js";
|
|
5
5
|
import {
|
|
6
6
|
buildSetupState,
|
|
7
7
|
runPendingServeHandoff
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QKDKVPMR.js";
|
|
9
9
|
import "./chunk-6GO5VVAC.js";
|
|
10
10
|
import "./chunk-TEDY3MHN.js";
|
|
11
11
|
import "./chunk-VJWDBFSL.js";
|
|
@@ -40,7 +40,7 @@ function parseDemoTrustedProxies(values) {
|
|
|
40
40
|
async function demoCommand(options) {
|
|
41
41
|
const { host, port } = parseDemoListenOptions(options);
|
|
42
42
|
const trustProxy = parseDemoTrustedProxies(options.trustProxy);
|
|
43
|
-
const { createDemoServer } = await import("./demo-server-
|
|
43
|
+
const { createDemoServer } = await import("./demo-server-GPM4C4Q2.js");
|
|
44
44
|
const app = await createDemoServer({ trustProxy });
|
|
45
45
|
let stopping = false;
|
|
46
46
|
const stop = () => {
|
|
@@ -18,7 +18,8 @@ import "./chunk-HGMYEDAQ.js";
|
|
|
18
18
|
import {
|
|
19
19
|
HISTORY_WINDOW_RUNS,
|
|
20
20
|
IntelligenceService
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IY4AJ6DN.js";
|
|
22
|
+
import "./chunk-HZSE3WSG.js";
|
|
22
23
|
import {
|
|
23
24
|
determineCitationState
|
|
24
25
|
} from "./chunk-DRGCVTYH.js";
|