@canonry/canonry 7.72.0 → 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.
Files changed (38) hide show
  1. package/assets/assets/{AgentSetupPage-kkWYCvUB.js → AgentSetupPage-D39M9CRK.js} +1 -1
  2. package/assets/assets/MeasurementPropertyPage-DL9cbtVz.js +4 -0
  3. package/assets/assets/{ProjectPage-CYBZBlk3.js → ProjectPage-DXh97uDN.js} +5 -5
  4. package/assets/assets/{RunsPage-D27pEHr4.js → RunsPage-BM4ETLsm.js} +1 -1
  5. package/assets/assets/SettingsPage-DpJTB2-Q.js +1 -0
  6. package/assets/assets/SiteHealthSection-CmlMQ17V.js +2 -0
  7. package/assets/assets/{TrafficPage-x01Zc1a-.js → TrafficPage-ClH3Dxnm.js} +4 -4
  8. package/assets/assets/{index-DtKWmlCj.js → index-MbApCekj.js} +15 -15
  9. package/assets/assets/{react-sigma_core.esm.min-CmaI5ZWC.js → react-sigma_core.esm.min-Bidr1Gxk.js} +1 -1
  10. package/assets/assets/service-BUi8JgGI.js +1 -0
  11. package/assets/index.html +1 -1
  12. package/dist/{backfill-ENGKBFKH.js → backfill-NE55YL6X.js} +2 -2
  13. package/dist/{chunk-VJFQNFOR.js → chunk-7KOAP47B.js} +9 -2
  14. package/dist/{chunk-BKIFKB7E.js → chunk-CF6BUJRK.js} +2 -2
  15. package/dist/{chunk-ZG4KG53J.js → chunk-G7SGQUW4.js} +14 -14
  16. package/dist/chunk-HZSE3WSG.js +269 -0
  17. package/dist/{chunk-L6WMECR5.js → chunk-IY4AJ6DN.js} +5 -268
  18. package/dist/{chunk-7OJQWLDI.js → chunk-NZLK3KHQ.js} +19 -2
  19. package/dist/{chunk-H6IQ4YCJ.js → chunk-P3UGNR2Y.js} +1 -1
  20. package/dist/{chunk-2PC54WLE.js → chunk-QKDKVPMR.js} +1 -1
  21. package/dist/{chunk-VH2KHJGT.js → chunk-UZKNS5PL.js} +11 -9
  22. package/dist/{cli-commands-5YNRJIN6.js → cli-commands-ARJWPTFW.js} +1 -1
  23. package/dist/cli.js +2 -2
  24. package/dist/{dashboard-FI5KKIP4.js → dashboard-SVHZBVM6.js} +1 -1
  25. package/dist/{demo-DQSDWOTF.js → demo-GLV22DPY.js} +1 -1
  26. package/dist/{demo-server-32RKOBFE.js → demo-server-GPM4C4Q2.js} +3 -2
  27. package/dist/index.d.ts +11 -11
  28. package/dist/index.js +6 -5
  29. package/dist/{init-O6PEZ2RT.js → init-Q33HEJJN.js} +1 -1
  30. package/dist/{intelligence-service-V2VS43H4.js → intelligence-service-LVRH4RJG.js} +3 -2
  31. package/dist/{serve-KS6ABZHU.js → serve-SJTQQQQE.js} +7 -6
  32. package/dist/{session-Q623G5DT.js → session-VHCKM3AI.js} +4 -3
  33. package/dist/{tools-GNTPFDAF.js → tools-4VRHKUBE.js} +2 -2
  34. package/package.json +1 -1
  35. package/assets/assets/MeasurementPropertyPage-BsUyf7NF.js +0 -4
  36. package/assets/assets/SettingsPage-CkI60Uw0.js +0 -1
  37. package/assets/assets/SiteHealthSection-BKHeLIQL.js +0 -2
  38. package/assets/assets/service-C_Ai7oQC.js +0 -1
@@ -1,3 +1,6 @@
1
+ import {
2
+ createLogger
3
+ } from "./chunk-HZSE3WSG.js";
1
4
  import {
2
5
  pickProjectCitedDomain
3
6
  } from "./chunk-DRGCVTYH.js";
@@ -14,10 +17,7 @@ import {
14
17
  mergeGscQueryTotalsWithFallback,
15
18
  readGscQueryDailyRows,
16
19
  readLatestGscDataDate
17
- } from "./chunk-VJFQNFOR.js";
18
- import {
19
- getRequestContext
20
- } from "./chunk-BADJCT6U.js";
20
+ } from "./chunk-7KOAP47B.js";
21
21
  import {
22
22
  competitors,
23
23
  gbpDailyMetrics,
@@ -41,272 +41,12 @@ import {
41
41
  RunKinds,
42
42
  RunStatuses,
43
43
  RunTriggers,
44
- diagnosticIdentity,
45
- effectiveDomains,
46
- redactLogString,
47
- redactLogValue
44
+ effectiveDomains
48
45
  } from "./chunk-YXAKL5HM.js";
49
46
 
50
47
  // src/intelligence-service.ts
51
48
  import { eq, desc, asc, and, ne, or, inArray, gte, lte, isNull, sql, exists } from "drizzle-orm";
52
49
  import crypto from "crypto";
53
-
54
- // ../api-routes/src/runtime-logger.ts
55
- import { format } from "util";
56
- var IS_TTY = process.stdout.isTTY === true;
57
- var MAX_IDENTITY_LENGTH = 512;
58
- var RESERVED_FIELDS = /* @__PURE__ */ new Set([
59
- "ts",
60
- "level",
61
- "module",
62
- "action",
63
- "msg",
64
- "requestId",
65
- "actor",
66
- "credentialId",
67
- "userAgent",
68
- "actorSession",
69
- "__runtimeRequestId"
70
- ]);
71
- var listeners = /* @__PURE__ */ new Set();
72
- function addLogListener(listener) {
73
- listeners.add(listener);
74
- return () => listeners.delete(listener);
75
- }
76
- function createLogger(module) {
77
- const emit = (level, action, context) => {
78
- const msg = context ? safeProperty(context, "msg") : void 0;
79
- emitRuntimeLog({ level, module, action, context, ...typeof msg === "string" ? { msg } : {} });
80
- };
81
- return {
82
- info: (action, ctx) => emit("info", action, ctx),
83
- warn: (action, ctx) => emit("warn", action, ctx),
84
- error: (action, ctx) => emit("error", action, ctx)
85
- };
86
- }
87
- function createFastifyLogger(options = {}) {
88
- return buildFastifyLogger(options.module ?? "HTTP", options.enabled !== false, {});
89
- }
90
- var LEVELS = { trace: 10, debug: 20, info: 30, warn: 40, error: 50, fatal: 60, silent: Infinity };
91
- function buildFastifyLogger(module, enabled, bindings, inheritedLevel = "info") {
92
- let level = inheritedLevel;
93
- const emit = (severity, args) => {
94
- if (LEVELS[severity] >= LEVELS[level]) logFastify(severity, module, enabled, bindings, args);
95
- };
96
- const logger = {
97
- get level() {
98
- return level;
99
- },
100
- set level(value) {
101
- if (Object.hasOwn(LEVELS, value)) level = value;
102
- },
103
- trace: (...args) => emit("trace", args),
104
- debug: (...args) => emit("debug", args),
105
- info: (...args) => emit("info", args),
106
- warn: (...args) => emit("warn", args),
107
- error: (...args) => emit("error", args),
108
- fatal: (...args) => emit("fatal", args),
109
- silent: () => void 0,
110
- child: (childBindings) => buildFastifyLogger(module, enabled, mergeBindings(bindings, childBindings), level)
111
- };
112
- return logger;
113
- }
114
- function logFastify(level, module, enabled, bindings, args) {
115
- const { context, msg } = normalizePinoArgs(args);
116
- emitRuntimeLog({
117
- level,
118
- module,
119
- action: `fastify.${level}`,
120
- msg,
121
- context: { ...bindings, ...context },
122
- trustedRequestId: asBoundString(bindings.__runtimeRequestId),
123
- enabled
124
- });
125
- }
126
- function normalizePinoArgs(args) {
127
- const first = args[0];
128
- const second = args[1];
129
- if (typeof first === "string") return { context: {}, msg: safeFormat(first, args.slice(1)) };
130
- if (first instanceof Error) {
131
- return { context: { err: first }, msg: typeof second === "string" ? safeFormat(second, args.slice(2)) : void 0 };
132
- }
133
- if (isObject(first)) {
134
- return { context: copyOwnData(first), msg: typeof second === "string" ? safeFormat(second, args.slice(2)) : void 0 };
135
- }
136
- return { context: {}, msg: typeof second === "string" ? safeFormat(second, args.slice(2)) : void 0 };
137
- }
138
- function emitRuntimeLog({
139
- level,
140
- module,
141
- action,
142
- msg,
143
- context,
144
- trustedRequestId,
145
- enabled = true
146
- }) {
147
- const safeContext = sanitizeContext(context);
148
- const error = safeContext.err ?? safeContext.error;
149
- const errorMessage = typeof error === "string" ? error : isRecord(error) && typeof error.message === "string" ? error.message : void 0;
150
- const message = errorMessage && errorMessage !== msg ? [msg, errorMessage].filter(Boolean).join(": ") : msg;
151
- const entry = {
152
- ts: (/* @__PURE__ */ new Date()).toISOString(),
153
- level,
154
- module: boundText(module, "Runtime"),
155
- action: boundText(action, "log"),
156
- ...message === void 0 ? {} : { msg: redactLogString(message) },
157
- ...safeContext,
158
- ...trustedAttribution(getRequestContext(trustedRequestId), trustedRequestId)
159
- };
160
- if (enabled) writeEntry(entry);
161
- for (const listener of listeners) {
162
- try {
163
- listener(entry);
164
- } catch {
165
- }
166
- }
167
- }
168
- function sanitizeContext(context) {
169
- if (!context) return {};
170
- const output = {};
171
- for (const key of safeKeys(context).slice(0, 100)) {
172
- if (RESERVED_FIELDS.has(key)) continue;
173
- const value = safeProperty(context, key);
174
- if (key === "req" || key === "request") {
175
- Object.assign(output, normalizeRequest(value));
176
- continue;
177
- }
178
- if (key === "res" || key === "reply") {
179
- Object.assign(output, normalizeReply(value));
180
- continue;
181
- }
182
- if (key === "responseTime" || key === "duration") {
183
- if (typeof value === "number" && Number.isFinite(value)) output.durationMs = value;
184
- continue;
185
- }
186
- output[key] = value;
187
- }
188
- delete output.__runtimeRequestId;
189
- const redacted = redactLogValue(output);
190
- return isRecord(redacted) ? redacted : {};
191
- }
192
- function trustedAttribution(context, trustedRequestId) {
193
- const requestId = boundOptional(context?.requestId) ?? trustedRequestId;
194
- const actor = diagnosticIdentity("actor", context?.actor);
195
- const credentialId = diagnosticIdentity("credentialId", context?.credentialId);
196
- const userAgent = boundOptional(context?.userAgent);
197
- const actorSession = boundOptional(context?.actorSession);
198
- const method = boundOptional(context?.method);
199
- const route = boundOptional(context?.route);
200
- return {
201
- ...requestId ? { requestId } : {},
202
- ...actor ? { actor } : {},
203
- ...credentialId ? { credentialId } : {},
204
- ...userAgent ? { userAgent } : {},
205
- ...actorSession ? { actorSession } : {},
206
- ...method ? { method } : {},
207
- ...route ? { route } : {},
208
- ...context?.statusCode === void 0 ? {} : { statusCode: context.statusCode }
209
- };
210
- }
211
- function mergeBindings(parent, child) {
212
- const merged = { ...parent };
213
- if (!isObject(child)) return merged;
214
- for (const key of safeKeys(child).slice(0, 100)) {
215
- const value = safeProperty(child, key);
216
- if (key === "req" || key === "request") Object.assign(merged, normalizeRequest(value));
217
- else if (key === "res" || key === "reply") Object.assign(merged, normalizeReply(value));
218
- else if (key === "reqId") {
219
- merged.reqId = value;
220
- merged.__runtimeRequestId = value;
221
- } else if (!RESERVED_FIELDS.has(key)) merged[key] = value;
222
- }
223
- return merged;
224
- }
225
- function normalizeRequest(value) {
226
- if (!isObject(value)) return {};
227
- const id = asBoundString(safeProperty(value, "id"));
228
- const method = asBoundString(safeProperty(value, "method"));
229
- const routeOptions = safeProperty(value, "routeOptions");
230
- const route = isObject(routeOptions) ? asBoundString(safeProperty(routeOptions, "url")) : void 0;
231
- return {
232
- ...id ? { reqId: id, __runtimeRequestId: id } : {},
233
- ...method ? { method } : {},
234
- ...route ? { route } : {}
235
- };
236
- }
237
- function normalizeReply(value) {
238
- if (!isObject(value)) return {};
239
- const statusCode = safeProperty(value, "statusCode");
240
- return typeof statusCode === "number" && Number.isFinite(statusCode) ? { statusCode } : {};
241
- }
242
- function writeEntry(entry) {
243
- const stream = entry.level === "error" || entry.level === "fatal" ? process.stderr : process.stdout;
244
- const line = IS_TTY ? formatTTY(entry) : JSON.stringify(entry);
245
- try {
246
- stream.write(`${line}
247
- `);
248
- } catch {
249
- }
250
- }
251
- function formatTTY(entry) {
252
- const { ts, level, module, action, msg, ...context } = entry;
253
- const levelTag = level === "fatal" || level === "error" ? "ERR" : level === "warn" ? "WRN" : "INF";
254
- const parts = safeKeys(context).map((key) => `${key}=${safeDisplay(safeProperty(context, key))}`);
255
- return `${ts.slice(11, 19)} ${levelTag} [${module}] ${action}${msg ? ` ${msg}` : ""}${parts.length ? ` ${parts.join(" ")}` : ""}`;
256
- }
257
- function safeDisplay(value) {
258
- try {
259
- return typeof value === "string" ? value : JSON.stringify(value);
260
- } catch {
261
- return "[UNSERIALIZABLE]";
262
- }
263
- }
264
- function safeFormat(message, args) {
265
- try {
266
- return args.length ? format(message, ...args) : message;
267
- } catch {
268
- return message;
269
- }
270
- }
271
- function isObject(value) {
272
- return value !== null && typeof value === "object";
273
- }
274
- function isRecord(value) {
275
- return isObject(value) && !Array.isArray(value);
276
- }
277
- function safeKeys(value) {
278
- try {
279
- return Object.keys(value);
280
- } catch {
281
- return [];
282
- }
283
- }
284
- function safeProperty(value, key) {
285
- try {
286
- const descriptor = Object.getOwnPropertyDescriptor(value, key);
287
- return descriptor && "value" in descriptor ? descriptor.value : void 0;
288
- } catch {
289
- return void 0;
290
- }
291
- }
292
- function copyOwnData(value) {
293
- const output = {};
294
- for (const key of safeKeys(value)) output[key] = safeProperty(value, key);
295
- return output;
296
- }
297
- function boundText(value, fallback) {
298
- return boundOptional(value) ?? fallback;
299
- }
300
- function asBoundString(value) {
301
- return typeof value === "string" ? boundOptional(value) : void 0;
302
- }
303
- function boundOptional(value) {
304
- if (typeof value !== "string") return void 0;
305
- const redacted = redactLogString(value).replace(/[\r\n]+/g, " ").trim().slice(0, MAX_IDENTITY_LENGTH);
306
- return redacted || void 0;
307
- }
308
-
309
- // src/intelligence-service.ts
310
50
  var RECURRENCE_LOOKBACK_RUNS = 5;
311
51
  var HISTORY_WINDOW_RUNS = Math.max(PERSISTENT_GAP_THRESHOLD, 5);
312
52
  var log = createLogger("IntelligenceService");
@@ -1026,9 +766,6 @@ var IntelligenceService = class {
1026
766
  };
1027
767
 
1028
768
  export {
1029
- addLogListener,
1030
- createLogger,
1031
- createFastifyLogger,
1032
769
  HISTORY_WINDOW_RUNS,
1033
770
  IntelligenceService
1034
771
  };
@@ -5,7 +5,7 @@ import {
5
5
  isStoredPageReadTool,
6
6
  isStoredReadTool,
7
7
  truncateToolResult
8
- } from "./chunk-H6IQ4YCJ.js";
8
+ } from "./chunk-P3UGNR2Y.js";
9
9
  import {
10
10
  CANONRY_MCP_TOOLKITS
11
11
  } from "./chunk-NDTU7FGL.js";
@@ -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
- readAeroViewEvidence,
1081
+ readAeroViewEvidenceForTurn,
1065
1082
  buildAeroViewTool,
1066
1083
  aeroViewPrompt,
1067
1084
  loadAeroSystemPrompt,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-HGMYEDAQ.js";
11
11
  import {
12
12
  buildOpenApiDocument
13
- } from "./chunk-VJFQNFOR.js";
13
+ } from "./chunk-7KOAP47B.js";
14
14
  import {
15
15
  DEFAULT_COMPETITOR_AUTO_ALIAS_MODE,
16
16
  MeasurementPortfolioLists,
@@ -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-KS6ABZHU.js");
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
- readAeroViewEvidence,
21
+ readAeroViewEvidenceForTurn,
22
22
  resolveAeroModel,
23
23
  resolveAgentAllowViewers,
24
24
  resolveAgentEnabled,
@@ -27,14 +27,14 @@ import {
27
27
  resolveConfiguredAgentProvider,
28
28
  resolveSessionProviderAndModel,
29
29
  setAeroSystemPrompt
30
- } from "./chunk-7OJQWLDI.js";
30
+ } from "./chunk-NZLK3KHQ.js";
31
31
  import {
32
32
  AeroToolProfiles,
33
33
  AeroToolScopes,
34
34
  buildAeroStateTools,
35
35
  isAeroToolProfile,
36
36
  truncateToolResult
37
- } from "./chunk-H6IQ4YCJ.js";
37
+ } from "./chunk-P3UGNR2Y.js";
38
38
  import {
39
39
  getGoogleAuthConfig,
40
40
  getGoogleConnection,
@@ -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-L6WMECR5.js";
167
+ } from "./chunk-HZSE3WSG.js";
166
168
  import {
167
169
  computeCitedCompetitorDomains,
168
170
  determineCitationState
@@ -286,7 +288,7 @@ import {
286
288
  webhookResponseReason,
287
289
  webhookTargetRefusalReason,
288
290
  writeAuditLog
289
- } from "./chunk-VJFQNFOR.js";
291
+ } from "./chunk-7KOAP47B.js";
290
292
  import {
291
293
  OperationalLogStore,
292
294
  SentimentIdempotencyConflict,
@@ -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 ? "5316fa88fb0c94357b949d9442ad4ce1b8307880" : void 0;
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 readAeroViewEvidence(view) : void 0;
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 readAeroViewEvidence(view) : void 0;
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));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  REGISTERED_CLI_COMMANDS
3
- } from "./chunk-ZG4KG53J.js";
3
+ } from "./chunk-G7SGQUW4.js";
4
4
  import "./chunk-6GO5VVAC.js";
5
5
  import "./chunk-TEDY3MHN.js";
6
6
  import "./chunk-VJWDBFSL.js";
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-ZG4KG53J.js";
4
+ } from "./chunk-G7SGQUW4.js";
5
5
  import {
6
6
  buildSetupState,
7
7
  runPendingServeHandoff
8
- } from "./chunk-2PC54WLE.js";
8
+ } from "./chunk-QKDKVPMR.js";
9
9
  import "./chunk-6GO5VVAC.js";
10
10
  import "./chunk-TEDY3MHN.js";
11
11
  import "./chunk-VJWDBFSL.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-HGMYEDAQ.js";
8
8
  import {
9
9
  anyUsersExist
10
- } from "./chunk-VJFQNFOR.js";
10
+ } from "./chunk-7KOAP47B.js";
11
11
  import "./chunk-JEBY6MS6.js";
12
12
  import "./chunk-BADJCT6U.js";
13
13
  import {
@@ -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-32RKOBFE.js");
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,14 +18,15 @@ import "./chunk-HGMYEDAQ.js";
18
18
  import {
19
19
  HISTORY_WINDOW_RUNS,
20
20
  IntelligenceService
21
- } from "./chunk-L6WMECR5.js";
21
+ } from "./chunk-IY4AJ6DN.js";
22
+ import "./chunk-HZSE3WSG.js";
22
23
  import {
23
24
  determineCitationState
24
25
  } from "./chunk-DRGCVTYH.js";
25
26
  import {
26
27
  apiRoutes,
27
28
  assessConversionTrackingIntegrity
28
- } from "./chunk-VJFQNFOR.js";
29
+ } from "./chunk-7KOAP47B.js";
29
30
  import "./chunk-JEBY6MS6.js";
30
31
  import "./chunk-BADJCT6U.js";
31
32
  import {
package/dist/index.d.ts CHANGED
@@ -6945,7 +6945,7 @@ declare const providerBatches: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6945
6945
  tableName: "provider_batches";
6946
6946
  dataType: "string";
6947
6947
  columnType: "SQLiteText";
6948
- data: "unknown" | "failed" | "submitted" | "cancelled" | "submitting" | "ended" | "ingested";
6948
+ data: "unknown" | "failed" | "submitted" | "submitting" | "ended" | "ingested" | "cancelled";
6949
6949
  driverParam: string;
6950
6950
  notNull: true;
6951
6951
  hasDefault: false;
@@ -6958,7 +6958,7 @@ declare const providerBatches: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6958
6958
  generated: undefined;
6959
6959
  }, {}, {
6960
6960
  length: number | undefined;
6961
- $type: "unknown" | "failed" | "submitted" | "cancelled" | "submitting" | "ended" | "ingested";
6961
+ $type: "unknown" | "failed" | "submitted" | "submitting" | "ended" | "ingested" | "cancelled";
6962
6962
  }>;
6963
6963
  requestCount: drizzle_orm_sqlite_core.SQLiteColumn<{
6964
6964
  name: "request_count";
@@ -12060,7 +12060,7 @@ declare const siteAuditSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns
12060
12060
  weight: number;
12061
12061
  sharePct: number | null;
12062
12062
  avgScore: number;
12063
- status: "partial" | "fail" | "pass";
12063
+ status: "fail" | "partial" | "pass";
12064
12064
  pagesPassing: number;
12065
12065
  pagesPartial: number;
12066
12066
  pagesFailing: number;
@@ -12082,7 +12082,7 @@ declare const siteAuditSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns
12082
12082
  weight: number;
12083
12083
  sharePct: number | null;
12084
12084
  avgScore: number;
12085
- status: "partial" | "fail" | "pass";
12085
+ status: "fail" | "partial" | "pass";
12086
12086
  pagesPassing: number;
12087
12087
  pagesPartial: number;
12088
12088
  pagesFailing: number;
@@ -29420,7 +29420,7 @@ declare const gbpReviews: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
29420
29420
  tableName: "gbp_reviews";
29421
29421
  dataType: "string";
29422
29422
  columnType: "SQLiteText";
29423
- data: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
29423
+ data: "none" | "baseline" | "stale" | "skipped" | "pending" | "sent" | "suppressed";
29424
29424
  driverParam: string;
29425
29425
  notNull: true;
29426
29426
  hasDefault: true;
@@ -29433,7 +29433,7 @@ declare const gbpReviews: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
29433
29433
  generated: undefined;
29434
29434
  }, {}, {
29435
29435
  length: number | undefined;
29436
- $type: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
29436
+ $type: "none" | "baseline" | "stale" | "skipped" | "pending" | "sent" | "suppressed";
29437
29437
  }>;
29438
29438
  alertStateAt: drizzle_orm_sqlite_core.SQLiteColumn<{
29439
29439
  name: "alert_state_at";
@@ -29730,7 +29730,7 @@ declare const gbpReviewRatings: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
29730
29730
  tableName: "gbp_review_ratings";
29731
29731
  dataType: "string";
29732
29732
  columnType: "SQLiteText";
29733
- data: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
29733
+ data: "none" | "baseline" | "stale" | "skipped" | "pending" | "sent" | "suppressed";
29734
29734
  driverParam: string;
29735
29735
  notNull: true;
29736
29736
  hasDefault: true;
@@ -29743,7 +29743,7 @@ declare const gbpReviewRatings: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
29743
29743
  generated: undefined;
29744
29744
  }, {}, {
29745
29745
  length: number | undefined;
29746
- $type: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
29746
+ $type: "none" | "baseline" | "stale" | "skipped" | "pending" | "sent" | "suppressed";
29747
29747
  }>;
29748
29748
  alertStateAt: drizzle_orm_sqlite_core.SQLiteColumn<{
29749
29749
  name: "alert_state_at";
@@ -30989,7 +30989,7 @@ declare const adsOperationSteps: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
30989
30989
  tableName: "ads_operation_steps";
30990
30990
  dataType: "string";
30991
30991
  columnType: "SQLiteText";
30992
- data: "unknown" | "failed" | "active" | "pending" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
30992
+ data: "unknown" | "active" | "failed" | "pending" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
30993
30993
  driverParam: string;
30994
30994
  notNull: true;
30995
30995
  hasDefault: false;
@@ -31002,7 +31002,7 @@ declare const adsOperationSteps: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
31002
31002
  generated: undefined;
31003
31003
  }, {}, {
31004
31004
  length: number | undefined;
31005
- $type: "unknown" | "failed" | "active" | "pending" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
31005
+ $type: "unknown" | "active" | "failed" | "pending" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
31006
31006
  }>;
31007
31007
  providerUpdatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
31008
31008
  name: "provider_updated_at";
@@ -37260,8 +37260,8 @@ type ClassificationConfig = z.infer<typeof classificationConfigSchema>;
37260
37260
  declare const seoInstallConfigSchema: z.ZodObject<{
37261
37261
  enabled: z.ZodBoolean;
37262
37262
  fundingMode: z.ZodEnum<{
37263
- hosted: "hosted";
37264
37263
  "self-hosted": "self-hosted";
37264
+ hosted: "hosted";
37265
37265
  }>;
37266
37266
  policy: z.ZodObject<{
37267
37267
  maxRunCostMicros: z.ZodNumber;
package/dist/index.js CHANGED
@@ -3,10 +3,10 @@ import {
3
3
  createGoogleMarketingCredentialStore,
4
4
  createGoogleMarketingRuntime,
5
5
  createServer
6
- } from "./chunk-VH2KHJGT.js";
6
+ } from "./chunk-UZKNS5PL.js";
7
7
  import "./chunk-XR6ZVMYK.js";
8
- import "./chunk-7OJQWLDI.js";
9
- import "./chunk-H6IQ4YCJ.js";
8
+ import "./chunk-NZLK3KHQ.js";
9
+ import "./chunk-P3UGNR2Y.js";
10
10
  import "./chunk-ELCLGWUT.js";
11
11
  import "./chunk-XEBKF4N5.js";
12
12
  import "./chunk-BZZDFIY2.js";
@@ -28,9 +28,10 @@ import "./chunk-J523Y7X2.js";
28
28
  import "./chunk-3AG3LPZX.js";
29
29
  import "./chunk-AOJU5LKX.js";
30
30
  import "./chunk-HGMYEDAQ.js";
31
- import "./chunk-L6WMECR5.js";
31
+ import "./chunk-IY4AJ6DN.js";
32
+ import "./chunk-HZSE3WSG.js";
32
33
  import "./chunk-DRGCVTYH.js";
33
- import "./chunk-VJFQNFOR.js";
34
+ import "./chunk-7KOAP47B.js";
34
35
  import "./chunk-JEBY6MS6.js";
35
36
  import "./chunk-BADJCT6U.js";
36
37
  import "./chunk-O7WOCTBD.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  buildSetupState,
9
9
  queueServeHandoff
10
- } from "./chunk-2PC54WLE.js";
10
+ } from "./chunk-QKDKVPMR.js";
11
11
  import "./chunk-VJWDBFSL.js";
12
12
  import "./chunk-4LTL5RNY.js";
13
13
  import "./chunk-6MYHGP46.js";
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  HISTORY_WINDOW_RUNS,
3
3
  IntelligenceService
4
- } from "./chunk-L6WMECR5.js";
4
+ } from "./chunk-IY4AJ6DN.js";
5
+ import "./chunk-HZSE3WSG.js";
5
6
  import "./chunk-DRGCVTYH.js";
6
- import "./chunk-VJFQNFOR.js";
7
+ import "./chunk-7KOAP47B.js";
7
8
  import "./chunk-JEBY6MS6.js";
8
9
  import "./chunk-BADJCT6U.js";
9
10
  import "./chunk-O7WOCTBD.js";