@canonry/canonry 7.120.0 → 7.120.1
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-XBQYJBCL.js → backfill-W2EGRHJD.js} +3 -3
- package/dist/{chunk-7R6I6AIP.js → chunk-2SF5JXCY.js} +3 -3
- package/dist/{chunk-UA7WWHPW.js → chunk-2VSOYLSX.js} +1 -1
- package/dist/{chunk-5QNFX55U.js → chunk-5LV4OEAO.js} +780 -763
- package/dist/{chunk-3QOFLP4W.js → chunk-6DSEIN3U.js} +1 -1
- package/dist/{chunk-GVU4QOUA.js → chunk-FX4VCCSD.js} +1 -1
- package/dist/{chunk-4GNVBSRF.js → chunk-QGQTURO7.js} +14 -14
- package/dist/{chunk-XS5I3K3A.js → chunk-RNUY27TO.js} +6 -6
- package/dist/{chunk-IPOERWGQ.js → chunk-TNR2O4HU.js} +1 -1
- package/dist/{chunk-4U5R7CSD.js → chunk-W54X45I7.js} +1 -1
- package/dist/{cli-commands-6UBZGWKR.js → cli-commands-3U3WYSCW.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{dashboard-IWBIZR3V.js → dashboard-EL7ABV7Y.js} +1 -1
- package/dist/{demo-2P37KIQK.js → demo-LXQZAB7S.js} +1 -1
- package/dist/{demo-server-6OQXQ7C3.js → demo-server-Y772E2L2.js} +3 -3
- package/dist/index.d.ts +93 -93
- package/dist/index.js +6 -6
- package/dist/{init-C2R2UJCE.js → init-GE6BXE4J.js} +1 -1
- package/dist/{intelligence-service-PJAISWKW.js → intelligence-service-KEFHLH3W.js} +2 -2
- package/dist/{serve-75GKRGUK.js → serve-FUYRS76Y.js} +7 -7
- package/dist/{session-GVLHMMVC.js → session-J7JPFAV3.js} +3 -3
- package/dist/{tools-LAIZGKA3.js → tools-WTCPC6VA.js} +2 -2
- package/package.json +1 -1
|
@@ -783,7 +783,7 @@ var DEMO_CLI_COMMANDS = [{
|
|
|
783
783
|
options: { host: stringOption(), port: stringOption(), "trust-proxy": multiStringOption() },
|
|
784
784
|
allowPositionals: false,
|
|
785
785
|
run: async (input) => {
|
|
786
|
-
const { demoCommand } = await import("./demo-
|
|
786
|
+
const { demoCommand } = await import("./demo-LXQZAB7S.js");
|
|
787
787
|
await demoCommand({
|
|
788
788
|
host: getString(input.values, "host"),
|
|
789
789
|
port: getString(input.values, "port"),
|
|
@@ -804,7 +804,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
804
804
|
allowPositionals: false,
|
|
805
805
|
supportsDryRun: true,
|
|
806
806
|
run: async (input) => {
|
|
807
|
-
const { backfillAnswerVisibilityCommand } = await import("./backfill-
|
|
807
|
+
const { backfillAnswerVisibilityCommand } = await import("./backfill-W2EGRHJD.js");
|
|
808
808
|
await backfillAnswerVisibilityCommand({
|
|
809
809
|
project: getString(input.values, "project"),
|
|
810
810
|
dryRun: input.dryRun,
|
|
@@ -821,7 +821,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
821
821
|
allowPositionals: false,
|
|
822
822
|
supportsDryRun: true,
|
|
823
823
|
run: async (input) => {
|
|
824
|
-
const { backfillAnswerMentionsCommand } = await import("./backfill-
|
|
824
|
+
const { backfillAnswerMentionsCommand } = await import("./backfill-W2EGRHJD.js");
|
|
825
825
|
await backfillAnswerMentionsCommand({
|
|
826
826
|
project: getString(input.values, "project"),
|
|
827
827
|
dryRun: input.dryRun,
|
|
@@ -839,7 +839,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
839
839
|
},
|
|
840
840
|
supportsDryRun: true,
|
|
841
841
|
run: async (input) => {
|
|
842
|
-
const { backfillInsightsCommand } = await import("./backfill-
|
|
842
|
+
const { backfillInsightsCommand } = await import("./backfill-W2EGRHJD.js");
|
|
843
843
|
const usage = "canonry backfill insights <project> [--from-run <id>] [--to-run <id>] [--since <date>] [--dry-run] [--format json]";
|
|
844
844
|
const project3 = requireProject(input, "backfill insights", usage);
|
|
845
845
|
await backfillInsightsCommand(project3, {
|
|
@@ -859,7 +859,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
859
859
|
},
|
|
860
860
|
allowPositionals: false,
|
|
861
861
|
run: async (input) => {
|
|
862
|
-
const { backfillNormalizedPathsCommand } = await import("./backfill-
|
|
862
|
+
const { backfillNormalizedPathsCommand } = await import("./backfill-W2EGRHJD.js");
|
|
863
863
|
await backfillNormalizedPathsCommand({
|
|
864
864
|
project: getString(input.values, "project"),
|
|
865
865
|
format: input.format
|
|
@@ -874,7 +874,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
874
874
|
},
|
|
875
875
|
allowPositionals: false,
|
|
876
876
|
run: async (input) => {
|
|
877
|
-
const { backfillAiReferralPathsCommand } = await import("./backfill-
|
|
877
|
+
const { backfillAiReferralPathsCommand } = await import("./backfill-W2EGRHJD.js");
|
|
878
878
|
await backfillAiReferralPathsCommand({
|
|
879
879
|
project: getString(input.values, "project"),
|
|
880
880
|
format: input.format
|
|
@@ -886,7 +886,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
886
886
|
usage: "canonry backfill snapshot-attribution <project> [--dry-run] [--format json]",
|
|
887
887
|
supportsDryRun: true,
|
|
888
888
|
run: async (input) => {
|
|
889
|
-
const { backfillSnapshotAttributionCommand } = await import("./backfill-
|
|
889
|
+
const { backfillSnapshotAttributionCommand } = await import("./backfill-W2EGRHJD.js");
|
|
890
890
|
const usage = "canonry backfill snapshot-attribution <project> [--dry-run] [--format json]";
|
|
891
891
|
const project3 = requireProject(input, "backfill snapshot-attribution", usage);
|
|
892
892
|
await backfillSnapshotAttributionCommand({
|
|
@@ -905,7 +905,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
905
905
|
allowPositionals: false,
|
|
906
906
|
supportsDryRun: true,
|
|
907
907
|
run: async (input) => {
|
|
908
|
-
const { backfillTrafficClassificationCommand } = await import("./backfill-
|
|
908
|
+
const { backfillTrafficClassificationCommand } = await import("./backfill-W2EGRHJD.js");
|
|
909
909
|
await backfillTrafficClassificationCommand({
|
|
910
910
|
project: getString(input.values, "project"),
|
|
911
911
|
dryRun: input.dryRun,
|
|
@@ -1551,7 +1551,7 @@ var DASHBOARD_CLI_COMMANDS = [
|
|
|
1551
1551
|
usage: "canonry dashboard reset-password [--format json]",
|
|
1552
1552
|
help: "Clears the dashboard password from config.yaml, so the dashboard asks for a new one after a restart.\nLocal only: it edits the config file under CANONRY_CONFIG_DIR and does not call the server.",
|
|
1553
1553
|
run: async (input) => {
|
|
1554
|
-
const { resetDashboardPassword } = await import("./dashboard-
|
|
1554
|
+
const { resetDashboardPassword } = await import("./dashboard-EL7ABV7Y.js");
|
|
1555
1555
|
await resetDashboardPassword({ format: input.format });
|
|
1556
1556
|
}
|
|
1557
1557
|
},
|
|
@@ -7390,7 +7390,7 @@ var SYSTEM_CLI_COMMANDS = [
|
|
|
7390
7390
|
options: { access: stringOption() },
|
|
7391
7391
|
run: async (input) => {
|
|
7392
7392
|
if (input.positionals.length > 1) throw usageError("Expected at most one command group");
|
|
7393
|
-
const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-4ZCK2TFK.js"), import("./cli-commands-
|
|
7393
|
+
const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-4ZCK2TFK.js"), import("./cli-commands-3U3WYSCW.js")]);
|
|
7394
7394
|
printCliCatalog(REGISTERED_CLI_COMMANDS2, input.format, input.positionals[0], getString(input.values, "access"));
|
|
7395
7395
|
}
|
|
7396
7396
|
},
|
|
@@ -7439,7 +7439,7 @@ var SYSTEM_CLI_COMMANDS = [
|
|
|
7439
7439
|
},
|
|
7440
7440
|
allowPositionals: false,
|
|
7441
7441
|
run: async (input) => {
|
|
7442
|
-
const { initCommand } = await import("./init-
|
|
7442
|
+
const { initCommand } = await import("./init-GE6BXE4J.js");
|
|
7443
7443
|
await initCommand({
|
|
7444
7444
|
force: getBoolean(input.values, "force"),
|
|
7445
7445
|
ref: getString(input.values, "ref"),
|
|
@@ -7495,7 +7495,7 @@ var SYSTEM_CLI_COMMANDS = [
|
|
|
7495
7495
|
allowPositionals: false,
|
|
7496
7496
|
run: async (input) => {
|
|
7497
7497
|
applyServerEnv(input.values);
|
|
7498
|
-
const { serveCommand } = await import("./serve-
|
|
7498
|
+
const { serveCommand } = await import("./serve-FUYRS76Y.js");
|
|
7499
7499
|
await serveCommand(input.format);
|
|
7500
7500
|
}
|
|
7501
7501
|
},
|
|
@@ -8871,8 +8871,8 @@ var AGENT_CLI_COMMANDS = [
|
|
|
8871
8871
|
"timeout-ms": stringOption()
|
|
8872
8872
|
},
|
|
8873
8873
|
run: async (input) => {
|
|
8874
|
-
const { coerceAgentProvider } = await import("./session-
|
|
8875
|
-
const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-
|
|
8874
|
+
const { coerceAgentProvider } = await import("./session-J7JPFAV3.js");
|
|
8875
|
+
const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-WTCPC6VA.js");
|
|
8876
8876
|
const { agentAsk } = await import("./agent-ask-VAZUSWFA.js");
|
|
8877
8877
|
const usage = `canonry agent ask <project> "<prompt>" [--provider ${AGENT_PROVIDER_IDS.join("|")}] [--model <id>] [--scope all|read-only] [--profile default|ads-operator] [--context <json>] [--conversation <id>] [--max-tool-calls <n>] [--timeout-ms <ms>] [--format json]`;
|
|
8878
8878
|
const project3 = requireProject(input, "agent.ask", usage);
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
resolveConfiguredAgentProvider,
|
|
25
25
|
resolveSessionProviderAndModel,
|
|
26
26
|
setAeroSystemPrompt
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2VSOYLSX.js";
|
|
28
28
|
import {
|
|
29
29
|
answerServiceAdapters,
|
|
30
30
|
answerServiceDescriptors
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
buildAeroStateTools,
|
|
39
39
|
isAeroToolProfile,
|
|
40
40
|
truncateToolResult
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-TNR2O4HU.js";
|
|
42
42
|
import {
|
|
43
43
|
getGoogleAuthConfig,
|
|
44
44
|
getGoogleConnection,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
openrouterAdapter,
|
|
70
70
|
perplexityAdapter,
|
|
71
71
|
startTrafficReclassification
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-FX4VCCSD.js";
|
|
73
73
|
import {
|
|
74
74
|
classifyUsageSurface,
|
|
75
75
|
createApiUsageTelemetry,
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
} from "./chunk-IWQFTZ75.js";
|
|
170
170
|
import {
|
|
171
171
|
IntelligenceService
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-6DSEIN3U.js";
|
|
173
173
|
import {
|
|
174
174
|
computeCitedCompetitorDomains,
|
|
175
175
|
determineCitationState
|
|
@@ -330,7 +330,7 @@ import {
|
|
|
330
330
|
webhookTargetRefusalReason,
|
|
331
331
|
webhookUserAgent,
|
|
332
332
|
writeAuditLog
|
|
333
|
-
} from "./chunk-
|
|
333
|
+
} from "./chunk-5LV4OEAO.js";
|
|
334
334
|
import {
|
|
335
335
|
OperationalLogStore,
|
|
336
336
|
SentimentIdempotencyConflict,
|
|
@@ -6467,7 +6467,7 @@ function nonBlank(value) {
|
|
|
6467
6467
|
return trimmed ? trimmed : void 0;
|
|
6468
6468
|
}
|
|
6469
6469
|
function resolveBuildCommit(env = process.env) {
|
|
6470
|
-
const embedded = true ? "
|
|
6470
|
+
const embedded = true ? "c479f3407ca734cafb5f3c12646d7824ff8c0dec" : void 0;
|
|
6471
6471
|
return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
|
|
6472
6472
|
}
|
|
6473
6473
|
function resolveInstanceIdentity(env = process.env) {
|
|
@@ -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-FUYRS76Y.js");
|
|
51
51
|
await serveCommand(format);
|
|
52
52
|
}
|
|
53
53
|
|
package/dist/cli.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node --import tsx
|
|
2
2
|
import {
|
|
3
3
|
REGISTERED_CLI_COMMANDS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QGQTURO7.js";
|
|
5
5
|
import "./chunk-6GO5VVAC.js";
|
|
6
6
|
import {
|
|
7
7
|
buildSetupState,
|
|
8
8
|
runPendingServeHandoff
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W54X45I7.js";
|
|
10
10
|
import "./chunk-VJWDBFSL.js";
|
|
11
11
|
import "./chunk-RLLYGXNA.js";
|
|
12
12
|
import "./chunk-TSENU4GG.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-Y772E2L2.js");
|
|
44
44
|
const app = await createDemoServer({ trustProxy });
|
|
45
45
|
let stopping = false;
|
|
46
46
|
const stop = () => {
|
|
@@ -19,7 +19,7 @@ import "./chunk-IWQFTZ75.js";
|
|
|
19
19
|
import {
|
|
20
20
|
HISTORY_WINDOW_RUNS,
|
|
21
21
|
IntelligenceService
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6DSEIN3U.js";
|
|
23
23
|
import {
|
|
24
24
|
determineCitationState
|
|
25
25
|
} from "./chunk-AOD35IKL.js";
|
|
@@ -27,7 +27,7 @@ import "./chunk-AHVF5OE5.js";
|
|
|
27
27
|
import {
|
|
28
28
|
apiRoutes,
|
|
29
29
|
assessConversionTrackingIntegrity
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5LV4OEAO.js";
|
|
31
31
|
import "./chunk-3Q2D53KV.js";
|
|
32
32
|
import "./chunk-TTQBEFSU.js";
|
|
33
33
|
import {
|
|
@@ -2097,7 +2097,7 @@ function seedDemoCore(db, context) {
|
|
|
2097
2097
|
],
|
|
2098
2098
|
queries: simpleQueries.map((item) => ({ queryId: item.id, queryText: item.query, provenance: "demo-core" }))
|
|
2099
2099
|
});
|
|
2100
|
-
tx.insert(runs).values({ id: simpleRunId, projectId: context.simple.id, kind: "answer-visibility", status: "completed", trigger: "manual",
|
|
2100
|
+
tx.insert(runs).values({ id: simpleRunId, projectId: context.simple.id, kind: "answer-visibility", status: "completed", trigger: "manual", startedAt: createdAt, finishedAt: createdAt, createdAt }).run();
|
|
2101
2101
|
tx.insert(simpleMeasurementDefinitions).values({
|
|
2102
2102
|
runId: simpleRunId,
|
|
2103
2103
|
projectId: context.simple.id,
|