@canonry/canonry 7.77.1 → 7.77.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 (80) hide show
  1. package/dist/{ads-M6IAQDG7.js → ads-5K5IQDCD.js} +2 -2
  2. package/dist/{agent-X2T5X5K3.js → agent-Q4PKMBEJ.js} +5 -5
  3. package/dist/{agent-ask-55LQH4TI.js → agent-ask-JEPVVW2J.js} +2 -2
  4. package/dist/{agent-conversations-O6WC2NPV.js → agent-conversations-EHE7QEBC.js} +2 -2
  5. package/dist/{agent-memory-6DWFMB4I.js → agent-memory-AB72YQET.js} +2 -2
  6. package/dist/{agent-providers-Q4YDVQX3.js → agent-providers-NQ7HJYAQ.js} +2 -2
  7. package/dist/{agent-transcript-SJKCP2AO.js → agent-transcript-PRTWIQ2A.js} +2 -2
  8. package/dist/{analytics-4JOQMWH7.js → analytics-IY3J4VZE.js} +2 -2
  9. package/dist/{apply-EAKKKIZD.js → apply-HNOG674K.js} +2 -2
  10. package/dist/{backfill-PASKIVGP.js → backfill-TO7TPPO6.js} +2 -2
  11. package/dist/{backlinks-TICPC323.js → backlinks-3NY5GNT4.js} +2 -2
  12. package/dist/{bing-MC7TSL4E.js → bing-Z7W7U2CT.js} +2 -2
  13. package/dist/{bootstrap-X2BW64W7.js → bootstrap-DXXS3LRH.js} +5 -5
  14. package/dist/{cdp-TCJKITCR.js → cdp-CKPRS6VE.js} +5 -5
  15. package/dist/{chunk-UGNNR7EO.js → chunk-4XVXP6VR.js} +1 -1
  16. package/dist/{chunk-B7JHQ3FW.js → chunk-5LKK2MCJ.js} +2 -2
  17. package/dist/{chunk-YMOQSEO3.js → chunk-6KPBYCPE.js} +14 -3
  18. package/dist/{chunk-2BRVGCVU.js → chunk-7JC4Z6FQ.js} +6 -0
  19. package/dist/{chunk-CCNPBUQ5.js → chunk-AAUMUHUI.js} +2 -2
  20. package/dist/{chunk-CQMNWC5K.js → chunk-CHTKK43G.js} +19 -10
  21. package/dist/{chunk-FXIZBJZ4.js → chunk-CMS4YM5M.js} +1 -1
  22. package/dist/{chunk-H4ANN32B.js → chunk-EM2HAM2U.js} +1 -1
  23. package/dist/{chunk-UB65XBH2.js → chunk-G26YB6JK.js} +1 -1
  24. package/dist/{chunk-TJYS2XCI.js → chunk-JEXBP7CR.js} +2 -2
  25. package/dist/{chunk-P3BWUKJL.js → chunk-JMCURBZG.js} +2 -2
  26. package/dist/{chunk-X7UC755Q.js → chunk-JRVKW4OO.js} +1 -1
  27. package/dist/{chunk-TRW4XLQK.js → chunk-JZ4UFSVR.js} +1 -1
  28. package/dist/{chunk-2SCPPWRW.js → chunk-LKEFPJQ2.js} +1 -1
  29. package/dist/{chunk-JZT3ZRD3.js → chunk-ORZBHCZR.js} +1 -1
  30. package/dist/{chunk-6EZQHF67.js → chunk-WFFZAQRG.js} +307 -307
  31. package/dist/{citations-IA3OCV53.js → citations-4AV6HLUZ.js} +2 -2
  32. package/dist/{cli-commands-O7BYY3W5.js → cli-commands-NJDUBQ3R.js} +4 -4
  33. package/dist/cli.js +7 -7
  34. package/dist/{competitor-4FVAZAQZ.js → competitor-SG4N37UD.js} +2 -2
  35. package/dist/{content-OVBF6U7Z.js → content-EDLZAPUV.js} +2 -2
  36. package/dist/{dashboard-UGZSSIWK.js → dashboard-5ZFVJPHX.js} +1 -1
  37. package/dist/{discover-R5BYAPOU.js → discover-7X2WMNFV.js} +2 -2
  38. package/dist/{discover-eval-3FA4BR2L.js → discover-eval-ECOPSJJ4.js} +2 -2
  39. package/dist/{doctor-2Q5LVV2P.js → doctor-NMFBKNYR.js} +2 -2
  40. package/dist/{evidence-LMGRT5IO.js → evidence-C52ZPRYB.js} +2 -2
  41. package/dist/{export-cmd-LBLZ273Z.js → export-cmd-2WSEETUC.js} +2 -2
  42. package/dist/{ga-PBIWRU67.js → ga-YG4O2FT5.js} +2 -2
  43. package/dist/{gbp-NYG7SW6P.js → gbp-BDGV6F74.js} +2 -2
  44. package/dist/{google-57XEYVOU.js → google-P2AX6CUF.js} +2 -2
  45. package/dist/{health-cmd-SJVYQZQL.js → health-cmd-MIQT2JNL.js} +2 -2
  46. package/dist/{history-5XYZNWGP.js → history-3XDDJDAV.js} +2 -2
  47. package/dist/index.d.ts +18 -17
  48. package/dist/index.js +8 -8
  49. package/dist/{init-KXR6PJEQ.js → init-GT3QM7FC.js} +7 -7
  50. package/dist/{insights-L7OOH34I.js → insights-ZJUDCBBP.js} +2 -2
  51. package/dist/{journeys-VXBGDFBO.js → journeys-L2CXQXRP.js} +2 -2
  52. package/dist/{keys-YMB5HAAG.js → keys-ODRGIQS7.js} +2 -2
  53. package/dist/{keyword-RZEMKH3K.js → keyword-LE3CAXO2.js} +2 -2
  54. package/dist/{logs-ONZWSYXS.js → logs-OXK43XN2.js} +2 -2
  55. package/dist/{mcp-KK6EFHAZ.js → mcp-6OTPCDGW.js} +3 -3
  56. package/dist/mcp.js +4 -4
  57. package/dist/{measurement-plan-LE7INWW6.js → measurement-plan-NXRCDUYL.js} +3 -3
  58. package/dist/{notify-T6T5LYRR.js → notify-VNNJTNC6.js} +2 -2
  59. package/dist/{organic-evidence-P2GZ766W.js → organic-evidence-LYDB7IID.js} +2 -2
  60. package/dist/{overview-P2AILIWJ.js → overview-2GPPQ6JP.js} +3 -3
  61. package/dist/{project-7MHQSOJD.js → project-CQJPXC66.js} +2 -2
  62. package/dist/{query-EUDMU6L7.js → query-PPE4EHMY.js} +2 -2
  63. package/dist/{research-4DASCVGY.js → research-GDYZKQY2.js} +2 -2
  64. package/dist/{results-export-GKXHX55L.js → results-export-OAJHDEIQ.js} +2 -2
  65. package/dist/{run-6LJGMJ5S.js → run-XDPDQS44.js} +3 -3
  66. package/dist/{schedule-D74P2BO5.js → schedule-C6SYV54I.js} +2 -2
  67. package/dist/{search-W7AOYWRM.js → search-DONTDHQK.js} +2 -2
  68. package/dist/{serve-UNVCQSRC.js → serve-PJXATOSY.js} +9 -9
  69. package/dist/{session-6NGNVCKP.js → session-PMZV27GX.js} +4 -4
  70. package/dist/{settings-LGD64PFE.js → settings-PMATG7GG.js} +2 -2
  71. package/dist/{snapshot-PDYGSZZH.js → snapshot-E4GHH6DD.js} +2 -2
  72. package/dist/{status-UZ4SE7ZP.js → status-MEGXEEW6.js} +3 -3
  73. package/dist/{technical-aeo-BNH7NV44.js → technical-aeo-GE6KOFKT.js} +2 -2
  74. package/dist/{telemetry-UWDS7QNJ.js → telemetry-Y63F4XFX.js} +3 -3
  75. package/dist/{tools-EDPBQCI2.js → tools-V546ALG7.js} +3 -3
  76. package/dist/{traffic-NI6ACQO4.js → traffic-5ELSKXBM.js} +2 -2
  77. package/dist/{users-XTZ65NLC.js → users-7YK7XYWY.js} +2 -2
  78. package/dist/{visibility-stats-EPF6MHYQ.js → visibility-stats-GYPUKXVS.js} +2 -2
  79. package/dist/{wordpress-ZACJ3H5M.js → wordpress-WUGJT5NN.js} +2 -2
  80. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
4
- import "./chunk-2BRVGCVU.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
+ import "./chunk-7JC4Z6FQ.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-CCNPBUQ5.js";
4
- import "./chunk-TJYS2XCI.js";
5
- import "./chunk-YMOQSEO3.js";
3
+ } from "./chunk-AAUMUHUI.js";
4
+ import "./chunk-JEXBP7CR.js";
5
+ import "./chunk-6KPBYCPE.js";
6
6
  import {
7
7
  createApiClient
8
- } from "./chunk-X7UC755Q.js";
9
- import "./chunk-2BRVGCVU.js";
8
+ } from "./chunk-JRVKW4OO.js";
9
+ import "./chunk-7JC4Z6FQ.js";
10
10
  import "./chunk-AOJU5LKX.js";
11
11
  import {
12
12
  isMachineFormat
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
4
- import "./chunk-2BRVGCVU.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
+ import "./chunk-7JC4Z6FQ.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
4
- import "./chunk-2BRVGCVU.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
+ import "./chunk-7JC4Z6FQ.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
4
- import "./chunk-2BRVGCVU.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
+ import "./chunk-7JC4Z6FQ.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
4
- import "./chunk-2BRVGCVU.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
+ import "./chunk-7JC4Z6FQ.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
4
- import "./chunk-2BRVGCVU.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
+ import "./chunk-7JC4Z6FQ.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
4
- import "./chunk-2BRVGCVU.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
+ import "./chunk-7JC4Z6FQ.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
4
- import "./chunk-2BRVGCVU.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
+ import "./chunk-7JC4Z6FQ.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
@@ -10,9 +10,9 @@ import {
10
10
  backfillSnapshotAttributionCommand,
11
11
  backfillTrafficClassificationCommand,
12
12
  replayQueryAuditLog
13
- } from "./chunk-H4ANN32B.js";
13
+ } from "./chunk-EM2HAM2U.js";
14
14
  import "./chunk-C3UFOS7J.js";
15
- import "./chunk-2BRVGCVU.js";
15
+ import "./chunk-7JC4Z6FQ.js";
16
16
  import "./chunk-HGMYEDAQ.js";
17
17
  import "./chunk-XYYWKCJQ.js";
18
18
  import {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
4
- import "./chunk-2BRVGCVU.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
+ import "./chunk-7JC4Z6FQ.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
4
- import "./chunk-2BRVGCVU.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
+ import "./chunk-7JC4Z6FQ.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-CCNPBUQ5.js";
3
+ } from "./chunk-AAUMUHUI.js";
4
4
  import {
5
5
  answerServiceDescriptors
6
6
  } from "./chunk-ZXYCPRNY.js";
7
7
  import {
8
8
  outcomeFailure
9
- } from "./chunk-TJYS2XCI.js";
9
+ } from "./chunk-JEXBP7CR.js";
10
10
  import {
11
11
  isLoopbackBindHost
12
12
  } from "./chunk-TSENU4GG.js";
@@ -16,10 +16,10 @@ import {
16
16
  import {
17
17
  isTelemetryEnabled,
18
18
  recordInstallRef
19
- } from "./chunk-YMOQSEO3.js";
19
+ } from "./chunk-6KPBYCPE.js";
20
20
  import {
21
21
  createApiClient
22
- } from "./chunk-X7UC755Q.js";
22
+ } from "./chunk-JRVKW4OO.js";
23
23
  import {
24
24
  configExists,
25
25
  getAnswerServiceEnv,
@@ -30,7 +30,7 @@ import {
30
30
  loadConfigRaw,
31
31
  saveConfig,
32
32
  withBootstrapProviderDefaults
33
- } from "./chunk-2BRVGCVU.js";
33
+ } from "./chunk-7JC4Z6FQ.js";
34
34
  import "./chunk-AOJU5LKX.js";
35
35
  import {
36
36
  CliError,
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-CCNPBUQ5.js";
3
+ } from "./chunk-AAUMUHUI.js";
4
4
  import {
5
5
  outcomeFailure
6
- } from "./chunk-TJYS2XCI.js";
7
- import "./chunk-YMOQSEO3.js";
6
+ } from "./chunk-JEXBP7CR.js";
7
+ import "./chunk-6KPBYCPE.js";
8
8
  import {
9
9
  createApiClient
10
- } from "./chunk-X7UC755Q.js";
10
+ } from "./chunk-JRVKW4OO.js";
11
11
  import {
12
12
  loadConfig,
13
13
  saveConfigPatch
14
- } from "./chunk-2BRVGCVU.js";
14
+ } from "./chunk-7JC4Z6FQ.js";
15
15
  import "./chunk-AOJU5LKX.js";
16
16
  import {
17
17
  CliError,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
4
  import {
5
5
  emitJsonl
6
6
  } from "./chunk-Z7IUAJOF.js";
@@ -5,7 +5,7 @@ import {
5
5
  isStoredPageReadTool,
6
6
  isStoredReadTool,
7
7
  truncateToolResult
8
- } from "./chunk-JZT3ZRD3.js";
8
+ } from "./chunk-ORZBHCZR.js";
9
9
  import {
10
10
  CANONRY_MCP_TOOLKITS
11
11
  } from "./chunk-NDTU7FGL.js";
@@ -22,7 +22,7 @@ import {
22
22
  resolveApiKeyFor,
23
23
  resolveModelForProvider,
24
24
  validateAgentProviderRegistry
25
- } from "./chunk-2BRVGCVU.js";
25
+ } from "./chunk-7JC4Z6FQ.js";
26
26
  import {
27
27
  CanonryMcpToolNames,
28
28
  canonryMcpTools
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  loadConfigRaw,
7
7
  saveConfigPatch
8
- } from "./chunk-2BRVGCVU.js";
8
+ } from "./chunk-7JC4Z6FQ.js";
9
9
  import {
10
10
  CANONRY_NPM_PACKAGE_URL,
11
11
  compareSemver,
@@ -389,11 +389,11 @@ function getOrCreateAnonymousId() {
389
389
  try {
390
390
  const config = loadConfig();
391
391
  if (config.anonymousId) return config.anonymousId;
392
+ if (anonymousIdWriteHolds > 0) return getDeterministicAnonymousId();
392
393
  const carried = preConfigAnonymousId?.configPath === getConfigPath() ? preConfigAnonymousId.id : void 0;
393
394
  const id = carried ?? crypto.randomUUID();
394
- config.anonymousId = id;
395
395
  try {
396
- saveConfigPatch(config);
396
+ saveConfigPatch({ anonymousId: id });
397
397
  } catch {
398
398
  return getDeterministicAnonymousId();
399
399
  }
@@ -407,6 +407,16 @@ function getOrCreateAnonymousId() {
407
407
  return fallback;
408
408
  }
409
409
  var preConfigAnonymousId;
410
+ var anonymousIdWriteHolds = 0;
411
+ function holdAnonymousIdWrites() {
412
+ anonymousIdWriteHolds += 1;
413
+ let held = true;
414
+ return () => {
415
+ if (!held) return;
416
+ held = false;
417
+ anonymousIdWriteHolds -= 1;
418
+ };
419
+ }
410
420
  function readEnvAnonymousId() {
411
421
  const raw = process.env[ANON_ID_ENV_VAR]?.trim();
412
422
  if (!raw) return void 0;
@@ -600,6 +610,7 @@ export {
600
610
  getTelemetryStatus,
601
611
  isTelemetryEnabled,
602
612
  getOrCreateAnonymousId,
613
+ holdAnonymousIdWrites,
603
614
  isFirstRun,
604
615
  showFirstRunNotice,
605
616
  detectAndTrackUpgrade,
@@ -1011,6 +1011,10 @@ function getConfigDir() {
1011
1011
  function getConfigPath() {
1012
1012
  return path.join(getConfigDir(), "config.yaml");
1013
1013
  }
1014
+ var loadedConfigPaths = /* @__PURE__ */ new WeakMap();
1015
+ function loadedConfigPath(config) {
1016
+ return loadedConfigPaths.get(config);
1017
+ }
1014
1018
  function loadConfig(configPath = getConfigPath()) {
1015
1019
  if (!fs.existsSync(configPath)) {
1016
1020
  throw new Error(
@@ -1159,6 +1163,7 @@ Do not use "canonry init --force" for recovery. It replaces credentials without
1159
1163
  if (parsedExternalMcp) {
1160
1164
  parsed.externalMcpServers = parsedExternalMcp;
1161
1165
  }
1166
+ loadedConfigPaths.set(parsed, path.resolve(configPath));
1162
1167
  return parsed;
1163
1168
  }
1164
1169
  function parseExternalMcpEnv(raw) {
@@ -1354,6 +1359,7 @@ export {
1354
1359
  providersWithUnsupportedBatch,
1355
1360
  getConfigDir,
1356
1361
  getConfigPath,
1362
+ loadedConfigPath,
1357
1363
  loadConfig,
1358
1364
  loadConfigRaw,
1359
1365
  saveConfig,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  trackIntegrationConnection
3
- } from "./chunk-TJYS2XCI.js";
3
+ } from "./chunk-JEXBP7CR.js";
4
4
  import {
5
5
  cliRuntimeContext
6
- } from "./chunk-YMOQSEO3.js";
6
+ } from "./chunk-6KPBYCPE.js";
7
7
 
8
8
  // src/cli-connection-telemetry.ts
9
9
  function trackCliConnection(properties) {
@@ -27,14 +27,14 @@ import {
27
27
  resolveConfiguredAgentProvider,
28
28
  resolveSessionProviderAndModel,
29
29
  setAeroSystemPrompt
30
- } from "./chunk-B7JHQ3FW.js";
30
+ } from "./chunk-5LKK2MCJ.js";
31
31
  import {
32
32
  AeroToolProfiles,
33
33
  AeroToolScopes,
34
34
  buildAeroStateTools,
35
35
  isAeroToolProfile,
36
36
  truncateToolResult
37
- } from "./chunk-JZT3ZRD3.js";
37
+ } from "./chunk-ORZBHCZR.js";
38
38
  import {
39
39
  getGoogleAuthConfig,
40
40
  getGoogleConnection,
@@ -76,7 +76,7 @@ import {
76
76
  startOutcomeTimer,
77
77
  trackFeatureCompleted,
78
78
  trackInstallState
79
- } from "./chunk-TJYS2XCI.js";
79
+ } from "./chunk-JEXBP7CR.js";
80
80
  import {
81
81
  isLoopbackBindHost
82
82
  } from "./chunk-TSENU4GG.js";
@@ -90,22 +90,23 @@ import {
90
90
  getOrCreateAnonymousId,
91
91
  getServerUpdateStatus,
92
92
  getTelemetryStatus,
93
+ holdAnonymousIdWrites,
93
94
  installAttribution,
94
95
  isTelemetryEnabled,
95
96
  recordDashboardEvent,
96
97
  setTelemetryPreference,
97
98
  trackEvent
98
- } from "./chunk-YMOQSEO3.js";
99
+ } from "./chunk-6KPBYCPE.js";
99
100
  import {
100
101
  createCanonryMcpServer
101
- } from "./chunk-2SCPPWRW.js";
102
+ } from "./chunk-LKEFPJQ2.js";
102
103
  import {
103
104
  CANONRY_MCP_TIERS,
104
105
  CANONRY_MCP_TOOLKIT_NAMES
105
106
  } from "./chunk-NDTU7FGL.js";
106
107
  import {
107
108
  ApiClient
108
- } from "./chunk-X7UC755Q.js";
109
+ } from "./chunk-JRVKW4OO.js";
109
110
  import {
110
111
  AGENT_PROVIDERS,
111
112
  adapterSupportsBatch,
@@ -124,6 +125,7 @@ import {
124
125
  isAgentModelUnchecked,
125
126
  loadConfig,
126
127
  loadConfigRaw,
128
+ loadedConfigPath,
127
129
  openRouterModels,
128
130
  providerConfigFromEntry,
129
131
  providersWithUnsupportedBatch,
@@ -136,7 +138,7 @@ import {
136
138
  saveConfigPatch,
137
139
  sentimentInstallReadiness,
138
140
  updateSharedProviderExecutionGate
139
- } from "./chunk-2BRVGCVU.js";
141
+ } from "./chunk-7JC4Z6FQ.js";
140
142
  import {
141
143
  getBundledSkillSnapshots
142
144
  } from "./chunk-7UVCZZQJ.js";
@@ -5810,7 +5812,7 @@ function nonBlank(value) {
5810
5812
  return trimmed ? trimmed : void 0;
5811
5813
  }
5812
5814
  function resolveBuildCommit(env = process.env) {
5813
- const embedded = true ? "68e116717d6c9f8e51f1909b38f184f264855ffe" : void 0;
5815
+ const embedded = true ? "31abb805953cc5f5c6cfa83e68610c6944e35b6c" : void 0;
5814
5816
  return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
5815
5817
  }
5816
5818
  function resolveInstanceIdentity(env = process.env) {
@@ -19533,9 +19535,10 @@ function createGoogleMarketingConfigCredentialStore(input) {
19533
19535
  };
19534
19536
  }
19535
19537
  async function createServer(opts) {
19536
- const runtimeConfigPath = path5.resolve(opts.configPath ?? getConfigPath());
19538
+ const configSourcePath = opts.configPath ?? loadedConfigPath(opts.config);
19539
+ const runtimeConfigPath = path5.resolve(configSourcePath ?? getConfigPath());
19537
19540
  const runtimeConfigIdentity = runtimePathIdentity(runtimeConfigPath);
19538
- const persistedConfigPath = opts.configPath === void 0 ? void 0 : runtimeConfigPath;
19541
+ const persistedConfigPath = configSourcePath === void 0 ? void 0 : runtimeConfigPath;
19539
19542
  const persistConfigPatch = (patch, options = {}) => {
19540
19543
  if (persistedConfigPath !== void 0) saveConfigPatch(patch, { ...options, configPath: persistedConfigPath });
19541
19544
  };
@@ -19558,6 +19561,12 @@ async function createServer(opts) {
19558
19561
  genReqId: () => crypto26.randomUUID(),
19559
19562
  trustProxy
19560
19563
  });
19564
+ if (!ownsDefaultConfig) {
19565
+ const releaseAnonymousIdWrites = holdAnonymousIdWrites();
19566
+ app.addHook("onClose", async () => {
19567
+ releaseAnonymousIdWrites();
19568
+ });
19569
+ }
19561
19570
  const allowedHosts = buildAllowedHosts(opts.host, opts.config.apiUrl, opts.config.publicUrl);
19562
19571
  const embedAllowedOrigins = new Set(
19563
19572
  (embed.allowedOrigins ?? []).map((o) => {
@@ -2,7 +2,7 @@ import {
2
2
  configExists,
3
3
  loadConfigRaw,
4
4
  saveConfigPatch
5
- } from "./chunk-2BRVGCVU.js";
5
+ } from "./chunk-7JC4Z6FQ.js";
6
6
  import {
7
7
  BUNDLED_SKILL_NAMES,
8
8
  installSkills
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-C3UFOS7J.js";
11
11
  import {
12
12
  loadConfig
13
- } from "./chunk-2BRVGCVU.js";
13
+ } from "./chunk-7JC4Z6FQ.js";
14
14
  import {
15
15
  isMachineFormat
16
16
  } from "./chunk-HGMYEDAQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-X7UC755Q.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
4
  import {
5
5
  emitJsonl
6
6
  } from "./chunk-Z7IUAJOF.js";
@@ -2,10 +2,10 @@ import {
2
2
  bucketCliCommandDuration,
3
3
  isTelemetryEnabled,
4
4
  trackEvent
5
- } from "./chunk-YMOQSEO3.js";
5
+ } from "./chunk-6KPBYCPE.js";
6
6
  import {
7
7
  getConfigDir
8
- } from "./chunk-2BRVGCVU.js";
8
+ } from "./chunk-7JC4Z6FQ.js";
9
9
  import {
10
10
  currentOutcomeAttribution
11
11
  } from "./chunk-JPOIDGGF.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  configExists,
6
6
  loadConfigRaw
7
- } from "./chunk-2BRVGCVU.js";
7
+ } from "./chunk-7JC4Z6FQ.js";
8
8
 
9
9
  // src/setup-state.ts
10
10
  import fs from "fs";
@@ -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-UNVCQSRC.js");
50
+ const { serveCommand } = await import("./serve-PJXATOSY.js");
51
51
  await serveCommand(format);
52
52
  }
53
53
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-2BRVGCVU.js";
3
+ } from "./chunk-7JC4Z6FQ.js";
4
4
  import {
5
5
  PACKAGE_VERSION
6
6
  } from "./chunk-AOJU5LKX.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-VJWDBFSL.js";
5
5
  import {
6
6
  createApiClient
7
- } from "./chunk-X7UC755Q.js";
7
+ } from "./chunk-JRVKW4OO.js";
8
8
  import {
9
9
  CliError,
10
10
  isMachineFormat
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  createApiClient,
8
8
  runWithUsageTags
9
- } from "./chunk-X7UC755Q.js";
9
+ } from "./chunk-JRVKW4OO.js";
10
10
  import {
11
11
  canonryMcpTools,
12
12
  mcpOutputSchema,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runWithUsageTags
3
- } from "./chunk-X7UC755Q.js";
3
+ } from "./chunk-JRVKW4OO.js";
4
4
  import {
5
5
  CanonryMcpToolNames,
6
6
  canonryMcpTools