@canonry/canonry 7.125.2 → 7.125.3

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 (119) hide show
  1. package/dist/activity-MYEOLXH7.js +13 -0
  2. package/dist/{ads-5EFVWQAT.js → ads-CKWRWWUL.js} +4 -4
  3. package/dist/{agent-P5WEU72Q.js → agent-ESSNC46H.js} +8 -8
  4. package/dist/{agent-ask-DQBDMPXP.js → agent-ask-37D6WCPX.js} +4 -4
  5. package/dist/{agent-conversations-K6IX3LQW.js → agent-conversations-GKY7Q2IO.js} +4 -4
  6. package/dist/{agent-journeys-72PYZCJH.js → agent-journeys-FIH4K5PI.js} +4 -4
  7. package/dist/{agent-memory-6GVOIDFK.js → agent-memory-FXWCBJRP.js} +4 -4
  8. package/dist/{agent-providers-TZJL475J.js → agent-providers-5AKSFZHC.js} +4 -4
  9. package/dist/{agent-transcript-L4IIMHXD.js → agent-transcript-F4HO6LWW.js} +4 -4
  10. package/dist/{analytics-7XKDB5OX.js → analytics-GJRUFRVW.js} +4 -4
  11. package/dist/{answerability-PE6Z2QHX.js → answerability-L5MS4AKC.js} +4 -4
  12. package/dist/{apply-LP2QYAOJ.js → apply-ZZQIJN4W.js} +4 -4
  13. package/dist/{backfill-FWKKCPH4.js → backfill-WK2FPQA7.js} +11 -11
  14. package/dist/{backlinks-GOQOLXYQ.js → backlinks-53DXYL4A.js} +4 -4
  15. package/dist/{bing-URWLP36H.js → bing-6G7LXZDT.js} +4 -4
  16. package/dist/{bootstrap-3D7WYMAK.js → bootstrap-ESCW4ZGJ.js} +11 -11
  17. package/dist/{cdp-HTUSJ3YA.js → cdp-BR54QYDW.js} +8 -8
  18. package/dist/{chunk-4JPL2SDU.js → chunk-27MI43WQ.js} +17 -5
  19. package/dist/{chunk-FJ22V5ED.js → chunk-2JMNIWOG.js} +7 -6
  20. package/dist/{chunk-ZJ6HMVLQ.js → chunk-2T4IZBIB.js} +1 -1
  21. package/dist/{chunk-O4S75UQI.js → chunk-6E7BS7BA.js} +5 -5
  22. package/dist/{chunk-PDWNORKC.js → chunk-6ZL5ILQI.js} +3 -3
  23. package/dist/{chunk-NVFFBVJJ.js → chunk-73ANFHPL.js} +5 -5
  24. package/dist/{chunk-PR5TQK3X.js → chunk-7Q5OVRVX.js} +3 -3
  25. package/dist/{chunk-XCJSH2FJ.js → chunk-7V3V5H7L.js} +5 -5
  26. package/dist/{chunk-HPRUS76O.js → chunk-B63ZO4TX.js} +6 -6
  27. package/dist/{chunk-GUPHVIGW.js → chunk-C7IGAN7U.js} +1 -1
  28. package/dist/{chunk-TRYACZVH.js → chunk-DFEVW234.js} +77 -29
  29. package/dist/{chunk-FHJU7QBM.js → chunk-EEYFNSVL.js} +1 -1
  30. package/dist/{chunk-F7ZJX5O5.js → chunk-EWJKPCIT.js} +3 -3
  31. package/dist/{chunk-U73NIQKU.js → chunk-FBVCBRXQ.js} +4 -4
  32. package/dist/{chunk-LPQYGKS4.js → chunk-FJHPA47P.js} +4 -4
  33. package/dist/{chunk-HEKYXSY6.js → chunk-FM56GWUC.js} +377 -375
  34. package/dist/{chunk-IM3LJ45S.js → chunk-G46YLF5X.js} +2 -2
  35. package/dist/{chunk-GZHLGRVL.js → chunk-HN6UIFHO.js} +2 -2
  36. package/dist/{chunk-TNV7DLA7.js → chunk-J3C4XFWJ.js} +1 -1
  37. package/dist/{chunk-AVJIEIAV.js → chunk-JXKRQ63F.js} +2 -2
  38. package/dist/{chunk-5LZJGJFF.js → chunk-LEW6WFYV.js} +4 -0
  39. package/dist/{chunk-LUA7YIQG.js → chunk-MXDKDPRJ.js} +1 -1
  40. package/dist/{chunk-7M5QTA7T.js → chunk-OC35PZAC.js} +1 -1
  41. package/dist/{chunk-BH4562RA.js → chunk-ODEDQ4Z7.js} +2 -2
  42. package/dist/{chunk-472IO3E7.js → chunk-OXM2WUTJ.js} +1 -1
  43. package/dist/{chunk-KUO2TYF4.js → chunk-OZRJ73XU.js} +2 -2
  44. package/dist/{chunk-CSU4E5KJ.js → chunk-P2RFC35A.js} +5 -5
  45. package/dist/{chunk-5QR5GEGS.js → chunk-P42TP4BJ.js} +1 -1
  46. package/dist/{chunk-4A2GKNEM.js → chunk-QFGEFEKV.js} +4 -4
  47. package/dist/{chunk-6SFT25SX.js → chunk-R2F5JHCB.js} +2 -2
  48. package/dist/{chunk-KAFKHQCB.js → chunk-SP44JHI4.js} +4 -4
  49. package/dist/{chunk-CQXIA6T6.js → chunk-TZ5ALARK.js} +2 -2
  50. package/dist/{chunk-OTMAY3N2.js → chunk-WHH3XSRE.js} +2 -2
  51. package/dist/{chunk-WTAL4GJ4.js → chunk-XLJWITPC.js} +8 -8
  52. package/dist/{chunk-IN7LINUI.js → chunk-Y7Y3GDOM.js} +1 -1
  53. package/dist/{chunk-7OQFD5BW.js → chunk-YKB75BPD.js} +4 -4
  54. package/dist/{chunk-BEJWFEEJ.js → chunk-Z7TP2GD4.js} +1 -1
  55. package/dist/{chunk-3PPQMBTA.js → chunk-ZI5JGJFY.js} +121 -112
  56. package/dist/{citations-M7RCHTBO.js → citations-ZIDSGKRU.js} +5 -5
  57. package/dist/{cli-catalog-7WND6LOK.js → cli-catalog-6LW7C6JJ.js} +4 -4
  58. package/dist/cli-commands-MAM3MHKR.js +18 -0
  59. package/dist/cli.js +14 -14
  60. package/dist/{competitor-4J3V4SNA.js → competitor-SL756CGS.js} +4 -4
  61. package/dist/{content-LN27FEUU.js → content-K57ZUYTK.js} +4 -4
  62. package/dist/{dashboard-ZYVYVNTW.js → dashboard-XKP2Z7NL.js} +7 -7
  63. package/dist/{demo-OKZN2MIB.js → demo-3KROYDH3.js} +3 -3
  64. package/dist/{demo-server-JWBH7TVQ.js → demo-server-E7LTZ55I.js} +13 -13
  65. package/dist/{discover-AY7NU3SN.js → discover-RWVSCRJU.js} +5 -5
  66. package/dist/{discover-eval-OYO6HI5F.js → discover-eval-N4M5JU6F.js} +4 -4
  67. package/dist/{doctor-XZOIPYYT.js → doctor-NW4FDB77.js} +4 -4
  68. package/dist/{evidence-H3VPFFOR.js → evidence-FMUJNJSJ.js} +4 -4
  69. package/dist/{export-cmd-4SQREQZL.js → export-cmd-VALOYBEX.js} +4 -4
  70. package/dist/{ga-DYT6WOA4.js → ga-DPMYKD4B.js} +4 -4
  71. package/dist/{gbp-JDFCLW5K.js → gbp-AVZSBYRE.js} +4 -4
  72. package/dist/{google-KQAOZ5JT.js → google-YU4U7NGP.js} +5 -5
  73. package/dist/{google-marketing-HQPW42FL.js → google-marketing-6QVRXGBM.js} +2 -2
  74. package/dist/{health-cmd-LDQC4ICZ.js → health-cmd-WWLJRTUO.js} +5 -5
  75. package/dist/{history-3S77KY77.js → history-TTA7FGQW.js} +4 -4
  76. package/dist/index.d.ts +78 -78
  77. package/dist/index.js +26 -26
  78. package/dist/{init-72RAXVAL.js → init-7HJIOE4N.js} +13 -13
  79. package/dist/{insights-GUM2MK47.js → insights-Q5D55GAR.js} +4 -4
  80. package/dist/intelligence-service-EIVZPZDC.js +15 -0
  81. package/dist/{journeys-AG4425RQ.js → journeys-6TQ4XKFU.js} +4 -4
  82. package/dist/{keys-TWC2GRJX.js → keys-GEKZTCDB.js} +4 -4
  83. package/dist/{keyword-WKM3BZCJ.js → keyword-RFOYIC3F.js} +4 -4
  84. package/dist/{logs-7FHQF7UK.js → logs-JVV3JWBY.js} +4 -4
  85. package/dist/{mcp-NRESCMDK.js → mcp-F5UBBUYS.js} +5 -5
  86. package/dist/mcp.js +10 -10
  87. package/dist/{measurement-plan-2TJFII53.js → measurement-plan-3MBPWMKF.js} +6 -6
  88. package/dist/{notify-VQJKWE7U.js → notify-I6PK7D5F.js} +4 -4
  89. package/dist/{organic-evidence-UROWCQFB.js → organic-evidence-XGMEFGZV.js} +4 -4
  90. package/dist/{overview-6CY6EEYZ.js → overview-3CXTYKPK.js} +7 -7
  91. package/dist/{project-6G7FIFIX.js → project-NODDRMYN.js} +4 -4
  92. package/dist/{project-setup-3MPRV226.js → project-setup-O2ZHNOQA.js} +4 -4
  93. package/dist/{query-CXUVUGB3.js → query-FS5JMNWT.js} +4 -4
  94. package/dist/{research-5OFFBHNJ.js → research-PAQYTNO7.js} +4 -4
  95. package/dist/{results-export-WQ3ZI2RN.js → results-export-SXJ7QORQ.js} +4 -4
  96. package/dist/{run-7IWLOX3K.js → run-AKHP63FR.js} +6 -6
  97. package/dist/{schedule-7LTYEBTO.js → schedule-4UJCAZRL.js} +4 -4
  98. package/dist/{search-UIGFCJOH.js → search-M6F2BKN5.js} +4 -4
  99. package/dist/{serve-SMBPWWOI.js → serve-M5CIAJQP.js} +27 -27
  100. package/dist/{session-XCMWUFDH.js → session-FTWUJBXC.js} +14 -14
  101. package/dist/{settings-HNL5MRNK.js → settings-UYXGO73G.js} +4 -4
  102. package/dist/{sitemaps-C6QXTFX7.js → sitemaps-UFZAM5AM.js} +4 -4
  103. package/dist/{skills-4SATHKAZ.js → skills-CST64NUF.js} +3 -3
  104. package/dist/{snapshot-77XTVMTM.js → snapshot-R7M77CR2.js} +4 -4
  105. package/dist/{src-6UWY43K7.js → src-NPY2WNGF.js} +2 -2
  106. package/dist/{status-GK5N7DBQ.js → status-NWAVNBJC.js} +6 -6
  107. package/dist/{support-TLV5QQGD.js → support-AJYIPDYH.js} +2 -2
  108. package/dist/{technical-aeo-BY5K3WCE.js → technical-aeo-HNEUXZZ4.js} +4 -4
  109. package/dist/{telemetry-3CK2V5EZ.js → telemetry-4HMLYE5C.js} +5 -5
  110. package/dist/{tools-F2UCM5HU.js → tools-HQ5AFHJ2.js} +12 -12
  111. package/dist/{traffic-LVMK6SEY.js → traffic-MGZDVEAM.js} +6 -6
  112. package/dist/{trends-7JVT5AIN.js → trends-NMJFTKOE.js} +4 -4
  113. package/dist/{users-DMCJOD2L.js → users-HWBPRVSG.js} +4 -4
  114. package/dist/{visibility-stats-UWKATLY6.js → visibility-stats-DALS5MUL.js} +5 -5
  115. package/dist/{wordpress-TRWQSNRK.js → wordpress-23RX6PVT.js} +4 -4
  116. package/package.json +1 -1
  117. package/dist/activity-TDCPSQZ6.js +0 -13
  118. package/dist/cli-commands-BMVORBFI.js +0 -18
  119. package/dist/intelligence-service-7GKHJ3B4.js +0 -15
@@ -2,10 +2,10 @@ import {
2
2
  SNAPSHOT_CELL_LEGEND,
3
3
  citationGlyph,
4
4
  mentionGlyph
5
- } from "./chunk-LUA7YIQG.js";
5
+ } from "./chunk-MXDKDPRJ.js";
6
6
  import {
7
7
  createApiClient
8
- } from "./chunk-4JPL2SDU.js";
8
+ } from "./chunk-27MI43WQ.js";
9
9
  import {
10
10
  emitJsonl
11
11
  } from "./chunk-Z7IUAJOF.js";
@@ -13,7 +13,7 @@ import {
13
13
  CliError,
14
14
  EXIT_SYSTEM_ERROR,
15
15
  isMachineFormat
16
- } from "./chunk-FHJU7QBM.js";
16
+ } from "./chunk-EEYFNSVL.js";
17
17
  import {
18
18
  MentionIdentities,
19
19
  OUTSTANDING_PROVIDER_BATCH_STATUSES,
@@ -23,7 +23,7 @@ import {
23
23
  formatMicros,
24
24
  formatRunErrorOneLine,
25
25
  resolveProviderInput
26
- } from "./chunk-5LZJGJFF.js";
26
+ } from "./chunk-LEW6WFYV.js";
27
27
 
28
28
  // src/commands/run.ts
29
29
  function getClient() {
@@ -414,7 +414,7 @@ async function showRun(id, format) {
414
414
  }
415
415
  async function listRuns(project, opts) {
416
416
  const client = getClient();
417
- const runs = await client.listRuns(project, opts?.limit, opts?.kind, opts?.status, opts?.excludeKind, opts?.excludeKinds, opts?.since);
417
+ const runs = await client.listRuns(project, opts?.limit, opts?.kind, opts?.status, opts?.excludeKind, opts?.excludeKinds, opts?.since, opts?.until);
418
418
  if (opts?.format === "json") {
419
419
  console.log(JSON.stringify(runs, null, 2));
420
420
  return;
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-VJWDBFSL.js";
5
5
  import {
6
6
  createApiClient
7
- } from "./chunk-4JPL2SDU.js";
7
+ } from "./chunk-27MI43WQ.js";
8
8
  import {
9
9
  CliError,
10
10
  isMachineFormat
11
- } from "./chunk-FHJU7QBM.js";
11
+ } from "./chunk-EEYFNSVL.js";
12
12
  import {
13
13
  describeError
14
- } from "./chunk-5LZJGJFF.js";
14
+ } from "./chunk-LEW6WFYV.js";
15
15
 
16
16
  // src/commands/mcp.ts
17
17
  import fs from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pickProjectCitedDomain
3
- } from "./chunk-GUPHVIGW.js";
3
+ } from "./chunk-C7IGAN7U.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-KUO2TYF4.js";
6
+ } from "./chunk-OZRJ73XU.js";
7
7
  import {
8
8
  GBP_INSIGHT_PROVIDER,
9
9
  PERSISTENT_GAP_THRESHOLD,
@@ -18,7 +18,7 @@ import {
18
18
  notScopedRun,
19
19
  readGscQueryDailyRows,
20
20
  readLatestGscDataDate
21
- } from "./chunk-3PPQMBTA.js";
21
+ } from "./chunk-ZI5JGJFY.js";
22
22
  import {
23
23
  competitors,
24
24
  gbpDailyMetrics,
@@ -36,7 +36,7 @@ import {
36
36
  queries,
37
37
  querySnapshots,
38
38
  runs
39
- } from "./chunk-7M5QTA7T.js";
39
+ } from "./chunk-OC35PZAC.js";
40
40
  import {
41
41
  CitationStates,
42
42
  RunKinds,
@@ -45,7 +45,7 @@ import {
45
45
  effectiveDomains,
46
46
  isCitationStateMeasured,
47
47
  readCitationState
48
- } from "./chunk-5LZJGJFF.js";
48
+ } from "./chunk-LEW6WFYV.js";
49
49
 
50
50
  // src/intelligence-service.ts
51
51
  import { eq, desc, asc, and, ne, or, inArray, gte, lte, isNull, sql, exists } from "drizzle-orm";
@@ -5,7 +5,7 @@ import {
5
5
  isStoredPageReadTool,
6
6
  isStoredReadTool,
7
7
  truncateToolResult
8
- } from "./chunk-CSU4E5KJ.js";
8
+ } from "./chunk-P2RFC35A.js";
9
9
  import {
10
10
  CANONRY_MCP_TOOLKITS,
11
11
  resolveAeroSkillDir
@@ -23,18 +23,18 @@ import {
23
23
  resolveApiKeyFor,
24
24
  resolveModelForProvider,
25
25
  validateAgentProviderRegistry
26
- } from "./chunk-OTMAY3N2.js";
26
+ } from "./chunk-WHH3XSRE.js";
27
27
  import {
28
28
  CanonryMcpToolNames,
29
29
  canonryMcpTools
30
- } from "./chunk-FJ22V5ED.js";
30
+ } from "./chunk-2JMNIWOG.js";
31
31
  import {
32
32
  createLogger
33
- } from "./chunk-KUO2TYF4.js";
33
+ } from "./chunk-OZRJ73XU.js";
34
34
  import {
35
35
  agentToolEvents,
36
36
  llmUsageEvents
37
- } from "./chunk-7M5QTA7T.js";
37
+ } from "./chunk-OC35PZAC.js";
38
38
  import {
39
39
  MeasurementPortfolioLists,
40
40
  SEO_TREND_METRICS_BY_KIND,
@@ -45,7 +45,7 @@ import {
45
45
  describeError,
46
46
  validationError,
47
47
  visibilityReportRequestSchema
48
- } from "./chunk-5LZJGJFF.js";
48
+ } from "./chunk-LEW6WFYV.js";
49
49
 
50
50
  // src/agent/session.ts
51
51
  import fs2 from "fs";
@@ -2,7 +2,7 @@ import {
2
2
  CitationStates,
3
3
  hostMatchesDomain,
4
4
  isCitationMeasurable
5
- } from "./chunk-5LZJGJFF.js";
5
+ } from "./chunk-LEW6WFYV.js";
6
6
 
7
7
  // src/citation-utils.ts
8
8
  function pickProjectCitedDomain(citedDomains, projectDomains) {
@@ -24,18 +24,18 @@ import {
24
24
  resolveConfiguredAgentProvider,
25
25
  resolveSessionProviderAndModel,
26
26
  setAeroSystemPrompt
27
- } from "./chunk-HPRUS76O.js";
27
+ } from "./chunk-B63ZO4TX.js";
28
28
  import {
29
29
  AeroToolProfiles,
30
30
  AeroToolScopes,
31
31
  buildAeroStateTools,
32
32
  isAeroToolProfile,
33
33
  truncateToolResult
34
- } from "./chunk-CSU4E5KJ.js";
34
+ } from "./chunk-P2RFC35A.js";
35
35
  import {
36
36
  answerServiceAdapters,
37
37
  answerServiceDescriptors
38
- } from "./chunk-5QR5GEGS.js";
38
+ } from "./chunk-P42TP4BJ.js";
39
39
  import {
40
40
  isManagedCanonryInstall
41
41
  } from "./chunk-XAJS5FH3.js";
@@ -57,7 +57,7 @@ import {
57
57
  removeCloudflareTrafficConnection,
58
58
  removeCloudflareTrafficConnectionBySourceId,
59
59
  upsertCloudflareTrafficConnection
60
- } from "./chunk-IN7LINUI.js";
60
+ } from "./chunk-Y7Y3GDOM.js";
61
61
  import {
62
62
  claudeAdapter,
63
63
  embedQueries,
@@ -69,7 +69,7 @@ import {
69
69
  openrouterAdapter,
70
70
  perplexityAdapter,
71
71
  startTrafficReclassification
72
- } from "./chunk-O4S75UQI.js";
72
+ } from "./chunk-6E7BS7BA.js";
73
73
  import {
74
74
  classifyUsageSurface,
75
75
  createApiUsageTelemetry,
@@ -81,7 +81,7 @@ import {
81
81
  startOutcomeTimer,
82
82
  trackFeatureCompleted,
83
83
  trackInstallState
84
- } from "./chunk-LPQYGKS4.js";
84
+ } from "./chunk-FJHPA47P.js";
85
85
  import {
86
86
  isLoopbackBindHost
87
87
  } from "./chunk-TSENU4GG.js";
@@ -89,7 +89,7 @@ import {
89
89
  isApiProviderRegistrable,
90
90
  isCdpProviderRegistrable,
91
91
  registeredProviderNames
92
- } from "./chunk-BEJWFEEJ.js";
92
+ } from "./chunk-Z7TP2GD4.js";
93
93
  import {
94
94
  checkLatestVersionForServer,
95
95
  getOrCreateAnonymousId,
@@ -101,17 +101,17 @@ import {
101
101
  recordDashboardEvent,
102
102
  setTelemetryPreference,
103
103
  trackEvent
104
- } from "./chunk-GZHLGRVL.js";
104
+ } from "./chunk-HN6UIFHO.js";
105
105
  import {
106
106
  createCanonryMcpServer
107
- } from "./chunk-U73NIQKU.js";
107
+ } from "./chunk-FBVCBRXQ.js";
108
108
  import {
109
109
  CANONRY_MCP_TIERS,
110
110
  CANONRY_MCP_TOOLKIT_NAMES
111
111
  } from "./chunk-F2TGOWIW.js";
112
112
  import {
113
113
  ApiClient
114
- } from "./chunk-4JPL2SDU.js";
114
+ } from "./chunk-27MI43WQ.js";
115
115
  import {
116
116
  AGENT_PROVIDERS,
117
117
  PROVIDER_MODELS,
@@ -146,39 +146,39 @@ import {
146
146
  saveConfigPatch,
147
147
  sentimentInstallReadiness,
148
148
  updateSharedProviderExecutionGate
149
- } from "./chunk-OTMAY3N2.js";
149
+ } from "./chunk-WHH3XSRE.js";
150
150
  import {
151
151
  getBundledSkillSnapshots
152
- } from "./chunk-IM3LJ45S.js";
152
+ } from "./chunk-G46YLF5X.js";
153
153
  import {
154
154
  computeFactorAverages,
155
155
  deleteSiteCrawlGraphLayout,
156
156
  persistSiteCrawlGraphLayout,
157
157
  prepareSiteCrawlGraphLayout,
158
158
  recordedSharePct
159
- } from "./chunk-6SFT25SX.js";
159
+ } from "./chunk-R2F5JHCB.js";
160
160
  import {
161
161
  CanonryMcpToolNames,
162
162
  canonryMcpTools
163
- } from "./chunk-FJ22V5ED.js";
163
+ } from "./chunk-2JMNIWOG.js";
164
164
  import {
165
165
  PACKAGE_VERSION
166
166
  } from "./chunk-AOJU5LKX.js";
167
167
  import {
168
168
  CliError
169
- } from "./chunk-FHJU7QBM.js";
169
+ } from "./chunk-EEYFNSVL.js";
170
170
  import {
171
171
  IntelligenceService
172
- } from "./chunk-XCJSH2FJ.js";
172
+ } from "./chunk-7V3V5H7L.js";
173
173
  import {
174
174
  computeCitedCompetitorDomains,
175
175
  determineCitationState
176
- } from "./chunk-GUPHVIGW.js";
176
+ } from "./chunk-C7IGAN7U.js";
177
177
  import {
178
178
  addLogListener,
179
179
  createFastifyLogger,
180
180
  createLogger
181
- } from "./chunk-KUO2TYF4.js";
181
+ } from "./chunk-OZRJ73XU.js";
182
182
  import {
183
183
  BING_THROTTLE_COOLDOWN_MS,
184
184
  BingApiError,
@@ -334,7 +334,7 @@ import {
334
334
  webhookTargetRefusalReason,
335
335
  webhookUserAgent,
336
336
  writeAuditLog
337
- } from "./chunk-3PPQMBTA.js";
337
+ } from "./chunk-ZI5JGJFY.js";
338
338
  import {
339
339
  OperationalLogStore,
340
340
  SentimentIdempotencyConflict,
@@ -436,7 +436,7 @@ import {
436
436
  unrecognizedAgentEventsHourly,
437
437
  unrecognizedAgentNotifyState,
438
438
  usageCounters
439
- } from "./chunk-7M5QTA7T.js";
439
+ } from "./chunk-OC35PZAC.js";
440
440
  import {
441
441
  AGENT_MEMORY_VALUE_MAX_BYTES,
442
442
  AI_ENGINE_DOMAINS,
@@ -719,7 +719,7 @@ import {
719
719
  winnabilityClassLabel,
720
720
  withRetry,
721
721
  withSkippedProviders
722
- } from "./chunk-5LZJGJFF.js";
722
+ } from "./chunk-LEW6WFYV.js";
723
723
 
724
724
  // src/google-marketing-runtime.ts
725
725
  import crypto2 from "crypto";
@@ -6471,7 +6471,7 @@ function nonBlank(value) {
6471
6471
  return trimmed ? trimmed : void 0;
6472
6472
  }
6473
6473
  function resolveBuildCommit(env = process.env) {
6474
- const embedded = true ? "a1bab1360e0d34fcdd8d89445d2b2e8e65ae01fa" : void 0;
6474
+ const embedded = true ? "0cf43b6bc939e5b1f4733e562770ac15a7f1cc4d" : void 0;
6475
6475
  return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
6476
6476
  }
6477
6477
  function resolveInstanceIdentity(env = process.env) {
@@ -15810,6 +15810,40 @@ function queuedRun(result) {
15810
15810
  runStatus: typeof runStatus === "string" ? runStatus : null
15811
15811
  };
15812
15812
  }
15813
+ function errorCodeOf(reason) {
15814
+ if (reason !== null && typeof reason === "object" && "code" in reason) {
15815
+ const code = reason.code;
15816
+ return typeof code === "string" ? code : null;
15817
+ }
15818
+ return null;
15819
+ }
15820
+ function httpStatusOf(reason) {
15821
+ if (reason !== null && typeof reason === "object" && "details" in reason) {
15822
+ const status = reason.details?.httpStatus;
15823
+ return typeof status === "number" ? status : null;
15824
+ }
15825
+ return null;
15826
+ }
15827
+ function isServerError(reason) {
15828
+ const status = httpStatusOf(reason);
15829
+ return status !== null && status >= 500 && status <= 599;
15830
+ }
15831
+ var MAX_RUN_ERROR_CHARS = 300;
15832
+ function runErrorText(error) {
15833
+ const text = error ? formatRunErrorOneLine(error) : "no error was recorded";
15834
+ return text.slice(0, MAX_RUN_ERROR_CHARS);
15835
+ }
15836
+ async function latestFailedRunInWindow(client, projectName, kind, startedAt, finishedAt) {
15837
+ let run;
15838
+ try {
15839
+ run = await client.latestFailedRun(projectName, kind, startedAt.toISOString(), finishedAt.toISOString());
15840
+ } catch {
15841
+ return null;
15842
+ }
15843
+ if (!run) return null;
15844
+ if (run.createdAt < startedAt.toISOString() || run.createdAt > finishedAt.toISOString()) return null;
15845
+ return run;
15846
+ }
15813
15847
  async function refreshAllIntegrations(client, projectName, now = /* @__PURE__ */ new Date(), claims) {
15814
15848
  const integrations = [
15815
15849
  { name: "gsc", kind: RunKinds["gsc-sync"], completion: "queued", run: () => client.gscSync(projectName, {}) },
@@ -15832,27 +15866,41 @@ async function refreshAllIntegrations(client, projectName, now = /* @__PURE__ */
15832
15866
  claims?.delete(key);
15833
15867
  }
15834
15868
  }));
15835
- results.forEach((result, idx) => {
15836
- const { name: integration, completion } = integrations[idx];
15869
+ const finishedAt = /* @__PURE__ */ new Date();
15870
+ for (let idx = 0; idx < results.length; idx++) {
15871
+ const result = results[idx];
15872
+ const { name: integration, kind, completion } = integrations[idx];
15837
15873
  if (result.status === "rejected") {
15838
15874
  const reason = result.reason;
15875
+ if (errorCodeOf(reason) === "INTEGRATION_NOT_CONNECTED") {
15876
+ log26.info("integration.skipped", { projectName, integration, reason: "not-connected" });
15877
+ continue;
15878
+ }
15839
15879
  const message = describeError(reason);
15880
+ if (completion === "synchronous" && isServerError(reason)) {
15881
+ const run = await latestFailedRunInWindow(client, projectName, kind, now, finishedAt);
15882
+ if (run) {
15883
+ log26.warn("integration.refresh-failed", { projectName, integration, error: message, runId: run.id, runError: runErrorText(run.error) });
15884
+ continue;
15885
+ }
15886
+ }
15840
15887
  log26.warn("integration.refresh-failed", { projectName, integration, error: message });
15841
- return;
15888
+ continue;
15842
15889
  }
15843
15890
  switch (completion) {
15844
15891
  case "synchronous":
15845
15892
  log26.info("integration.refreshed", { projectName, integration });
15846
- return;
15893
+ break;
15847
15894
  case "queued":
15848
15895
  log26.info("integration.queued", { projectName, integration, ...queuedRun(result.value) });
15849
- return;
15896
+ break;
15850
15897
  default: {
15851
15898
  const _exhaustive = completion;
15852
- return _exhaustive;
15899
+ void _exhaustive;
15900
+ break;
15853
15901
  }
15854
15902
  }
15855
- });
15903
+ }
15856
15904
  }
15857
15905
 
15858
15906
  // src/notifier.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CANONRY_COMMUNITY_LINKS
3
- } from "./chunk-5LZJGJFF.js";
3
+ } from "./chunk-LEW6WFYV.js";
4
4
 
5
5
  // src/cli-error.ts
6
6
  function isMachineFormat(format) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-4JPL2SDU.js";
3
+ } from "./chunk-27MI43WQ.js";
4
4
  import {
5
5
  isMachineFormat
6
- } from "./chunk-FHJU7QBM.js";
6
+ } from "./chunk-EEYFNSVL.js";
7
7
  import {
8
8
  formatRunErrorOneLine
9
- } from "./chunk-5LZJGJFF.js";
9
+ } from "./chunk-LEW6WFYV.js";
10
10
 
11
11
  // src/commands/activity.ts
12
12
  function activityLines(activity) {
@@ -7,25 +7,25 @@ import {
7
7
  import {
8
8
  createApiClient,
9
9
  runWithUsageTags
10
- } from "./chunk-4JPL2SDU.js";
10
+ } from "./chunk-27MI43WQ.js";
11
11
  import {
12
12
  canonryMcpTools,
13
13
  mcpOutputSchema,
14
14
  toolOperationAccess
15
- } from "./chunk-FJ22V5ED.js";
15
+ } from "./chunk-2JMNIWOG.js";
16
16
  import {
17
17
  PACKAGE_VERSION
18
18
  } from "./chunk-AOJU5LKX.js";
19
19
  import {
20
20
  CliError
21
- } from "./chunk-FHJU7QBM.js";
21
+ } from "./chunk-EEYFNSVL.js";
22
22
  import {
23
23
  OperationAccesses,
24
24
  RESEARCH_RUN_SCOPE,
25
25
  isReadOnlyKey,
26
26
  restrictedWriteScopes,
27
27
  upgradeCaveatFor
28
- } from "./chunk-5LZJGJFF.js";
28
+ } from "./chunk-LEW6WFYV.js";
29
29
 
30
30
  // src/mcp/server.ts
31
31
  import { randomUUID } from "crypto";
@@ -2,13 +2,13 @@ import {
2
2
  bucketCliCommandDuration,
3
3
  isTelemetryEnabled,
4
4
  trackEvent
5
- } from "./chunk-GZHLGRVL.js";
5
+ } from "./chunk-HN6UIFHO.js";
6
6
  import {
7
7
  getConfigDir
8
- } from "./chunk-OTMAY3N2.js";
8
+ } from "./chunk-WHH3XSRE.js";
9
9
  import {
10
10
  currentOutcomeAttribution
11
- } from "./chunk-TNV7DLA7.js";
11
+ } from "./chunk-J3C4XFWJ.js";
12
12
  import {
13
13
  AGENT_NONE,
14
14
  OutcomeSurfaces,
@@ -19,7 +19,7 @@ import {
19
19
  integrationConnectionPropertiesSchema,
20
20
  normalizeAgentSlug,
21
21
  usageSurfaceSchema
22
- } from "./chunk-5LZJGJFF.js";
22
+ } from "./chunk-LEW6WFYV.js";
23
23
 
24
24
  // src/outcome-telemetry.ts
25
25
  import fs from "fs";