@ainyc/canonry 4.192.3 → 4.193.0
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/{chunk-ISDE2PZC.js → chunk-PKMJAHP5.js} +20 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +8 -8
|
@@ -6240,6 +6240,22 @@ function removeWordpressConnection(config, projectName) {
|
|
|
6240
6240
|
return true;
|
|
6241
6241
|
}
|
|
6242
6242
|
|
|
6243
|
+
// src/instance-identity.ts
|
|
6244
|
+
function nonBlank(value) {
|
|
6245
|
+
const trimmed = value?.trim();
|
|
6246
|
+
return trimmed ? trimmed : void 0;
|
|
6247
|
+
}
|
|
6248
|
+
function resolveBuildCommit(env = process.env) {
|
|
6249
|
+
const embedded = true ? "6cb1a2ee1431aa6dc7940fa5c483b26163d6b580" : void 0;
|
|
6250
|
+
return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
|
|
6251
|
+
}
|
|
6252
|
+
function resolveInstanceIdentity(env = process.env) {
|
|
6253
|
+
const name = nonBlank(env.CANONRY_INSTANCE);
|
|
6254
|
+
if (!name) return void 0;
|
|
6255
|
+
const role = nonBlank(env.CANONRY_INSTANCE_ROLE);
|
|
6256
|
+
return role ? { name, role } : { name };
|
|
6257
|
+
}
|
|
6258
|
+
|
|
6243
6259
|
// src/job-runner.ts
|
|
6244
6260
|
import crypto6 from "crypto";
|
|
6245
6261
|
import fs2 from "fs";
|
|
@@ -19442,6 +19458,8 @@ async function createServer(opts) {
|
|
|
19442
19458
|
return reply.status(404).send({ error: "Not found" });
|
|
19443
19459
|
});
|
|
19444
19460
|
}
|
|
19461
|
+
const buildCommit = resolveBuildCommit();
|
|
19462
|
+
const instance = resolveInstanceIdentity();
|
|
19445
19463
|
const healthHandler = () => {
|
|
19446
19464
|
const update = checkLatestVersionForServer();
|
|
19447
19465
|
return {
|
|
@@ -19449,6 +19467,8 @@ async function createServer(opts) {
|
|
|
19449
19467
|
service: "canonry",
|
|
19450
19468
|
version: PKG_VERSION2,
|
|
19451
19469
|
mcp: mcpHttpHealth(app, apiPrefix),
|
|
19470
|
+
...buildCommit ? { commit: buildCommit } : {},
|
|
19471
|
+
...instance ? { instance } : {},
|
|
19452
19472
|
...basePath ? { basePath: basePath.replace(/\/$/, "") } : {},
|
|
19453
19473
|
...update ? { updateAvailable: update } : {}
|
|
19454
19474
|
};
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainyc/canonry",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.193.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Self-hosted AI visibility (AEO) platform: track how ChatGPT, Claude, Gemini, and Perplexity cite your domain, join it with Search Console, GA4, server-side traffic, and paid media, and fix what you find through agent tools (CLI, REST, MCP). Local SQLite.",
|
|
6
6
|
"license": "FSL-1.1-ALv2",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"tsup": "^8.5.1",
|
|
72
72
|
"tsx": "^4.19.0",
|
|
73
73
|
"@ainyc/canonry-web": "0.0.0",
|
|
74
|
-
"@ainyc/canonry-config": "0.0.0",
|
|
75
74
|
"@ainyc/canonry-api-client": "0.0.0",
|
|
76
75
|
"@ainyc/canonry-api-routes": "0.0.0",
|
|
76
|
+
"@ainyc/canonry-config": "0.0.0",
|
|
77
77
|
"@ainyc/canonry-contracts": "0.0.0",
|
|
78
78
|
"@ainyc/canonry-db": "0.0.0",
|
|
79
79
|
"@ainyc/canonry-integration-bing": "0.0.0",
|
|
@@ -81,21 +81,21 @@
|
|
|
81
81
|
"@ainyc/canonry-integration-cloudflare-queue": "0.0.0",
|
|
82
82
|
"@ainyc/canonry-integration-cloudflare-worker": "0.0.0",
|
|
83
83
|
"@ainyc/canonry-integration-google": "0.0.0",
|
|
84
|
-
"@ainyc/canonry-integration-commoncrawl": "0.0.0",
|
|
85
84
|
"@ainyc/canonry-integration-google-ads": "0.0.0",
|
|
86
|
-
"@ainyc/canonry-integration-
|
|
85
|
+
"@ainyc/canonry-integration-commoncrawl": "0.0.0",
|
|
87
86
|
"@ainyc/canonry-integration-google-places": "0.0.0",
|
|
87
|
+
"@ainyc/canonry-integration-google-business-profile": "0.0.0",
|
|
88
88
|
"@ainyc/canonry-integration-google-tag-manager": "0.0.0",
|
|
89
89
|
"@ainyc/canonry-integration-openai-ads": "0.0.0",
|
|
90
90
|
"@ainyc/canonry-integration-traffic": "0.0.0",
|
|
91
91
|
"@ainyc/canonry-integration-wordpress": "0.0.0",
|
|
92
|
-
"@ainyc/canonry-intelligence": "0.0.0",
|
|
93
92
|
"@ainyc/canonry-provider-cdp": "0.0.0",
|
|
94
|
-
"@ainyc/canonry-provider-gemini": "0.0.0",
|
|
95
93
|
"@ainyc/canonry-provider-claude": "0.0.0",
|
|
94
|
+
"@ainyc/canonry-intelligence": "0.0.0",
|
|
95
|
+
"@ainyc/canonry-provider-gemini": "0.0.0",
|
|
96
96
|
"@ainyc/canonry-provider-local": "0.0.0",
|
|
97
|
-
"@ainyc/canonry-provider-
|
|
98
|
-
"@ainyc/canonry-provider-
|
|
97
|
+
"@ainyc/canonry-provider-openai": "0.0.0",
|
|
98
|
+
"@ainyc/canonry-provider-perplexity": "0.0.0"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"build": "pnpm run build:cli && pnpm run build:web",
|