@ainyc/canonry 4.25.0 → 4.26.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/README.md +1 -1
- package/assets/agent-workspace/skills/canonry-setup/references/canonry-cli.md +1 -0
- package/assets/assets/{index-C4scWriC.js → index-BrlkSJ58.js} +94 -94
- package/assets/index.html +1 -1
- package/dist/{chunk-A7HQ6X43.js → chunk-2FAEQ56I.js} +2 -2
- package/dist/{chunk-CRQMGNPH.js → chunk-HVW665A4.js} +2 -0
- package/dist/{chunk-6J6WQOGH.js → chunk-M3HZAUWZ.js} +232 -116
- package/dist/{chunk-IS65IYNZ.js → chunk-PN24DAGC.js} +13 -1
- package/dist/cli.js +24 -9
- package/dist/index.js +4 -4
- package/dist/{intelligence-service-XLUYTE57.js → intelligence-service-VUBODIGG.js} +2 -2
- package/dist/mcp.js +2 -2
- package/package.json +9 -9
package/dist/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
setTelemetrySource,
|
|
21
21
|
showFirstRunNotice,
|
|
22
22
|
trackEvent
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-M3HZAUWZ.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError,
|
|
26
26
|
EXIT_SYSTEM_ERROR,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
saveConfig,
|
|
37
37
|
saveConfigPatch,
|
|
38
38
|
usageError
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-2FAEQ56I.js";
|
|
40
40
|
import {
|
|
41
41
|
apiKeys,
|
|
42
42
|
competitors,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
queries,
|
|
50
50
|
querySnapshots,
|
|
51
51
|
runs
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-PN24DAGC.js";
|
|
53
53
|
import {
|
|
54
54
|
CcReleaseSyncStatuses,
|
|
55
55
|
CheckScopes,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
providerQuotaPolicySchema,
|
|
70
70
|
resolveProviderInput,
|
|
71
71
|
skillsClientSchema
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-HVW665A4.js";
|
|
73
73
|
|
|
74
74
|
// src/cli.ts
|
|
75
75
|
import { pathToFileURL } from "url";
|
|
@@ -621,7 +621,7 @@ function readStoredGroundingSources(rawResponse) {
|
|
|
621
621
|
return result;
|
|
622
622
|
}
|
|
623
623
|
async function backfillInsightsCommand(project, opts) {
|
|
624
|
-
const { IntelligenceService } = await import("./intelligence-service-
|
|
624
|
+
const { IntelligenceService } = await import("./intelligence-service-VUBODIGG.js");
|
|
625
625
|
const config = loadConfig();
|
|
626
626
|
const db = createClient(config.database);
|
|
627
627
|
migrate(db);
|
|
@@ -6409,6 +6409,9 @@ async function triggerRun(project, opts) {
|
|
|
6409
6409
|
const resolved = providerInputs.flatMap((p) => resolveProviderInput(p));
|
|
6410
6410
|
body.providers = resolved.length > 0 ? resolved : providerInputs;
|
|
6411
6411
|
}
|
|
6412
|
+
if (opts?.queries?.length) {
|
|
6413
|
+
body.queries = opts.queries;
|
|
6414
|
+
}
|
|
6412
6415
|
if (opts?.location) {
|
|
6413
6416
|
body.location = opts.location;
|
|
6414
6417
|
}
|
|
@@ -6684,9 +6687,10 @@ var RUN_CLI_COMMANDS = [
|
|
|
6684
6687
|
},
|
|
6685
6688
|
{
|
|
6686
6689
|
path: ["run"],
|
|
6687
|
-
usage: "canonry run <project|--all> [--provider <name>] [--location <label>] [--all-locations] [--no-location] [--wait] [--format json]",
|
|
6690
|
+
usage: "canonry run <project|--all> [--provider <name>] [--query <q>...] [--location <label>] [--all-locations] [--no-location] [--wait] [--format json]",
|
|
6688
6691
|
options: {
|
|
6689
6692
|
provider: stringOption(),
|
|
6693
|
+
query: multiStringOption(),
|
|
6690
6694
|
wait: { type: "boolean", default: false },
|
|
6691
6695
|
all: { type: "boolean", default: false },
|
|
6692
6696
|
location: stringOption(),
|
|
@@ -6704,6 +6708,15 @@ var RUN_CLI_COMMANDS = [
|
|
|
6704
6708
|
}
|
|
6705
6709
|
});
|
|
6706
6710
|
}
|
|
6711
|
+
if (getStringArray(input.values, "query")?.length) {
|
|
6712
|
+
throw usageError("Error: --query cannot be combined with --all (query scope is project-specific)", {
|
|
6713
|
+
message: "--query cannot be combined with --all (query scope is project-specific)",
|
|
6714
|
+
details: {
|
|
6715
|
+
command: "run",
|
|
6716
|
+
usage: "canonry run <project> --query <q>... [--provider <name>] [--wait] [--format json]"
|
|
6717
|
+
}
|
|
6718
|
+
});
|
|
6719
|
+
}
|
|
6707
6720
|
await triggerRunAll({
|
|
6708
6721
|
provider: getString(input.values, "provider"),
|
|
6709
6722
|
wait: getBoolean(input.values, "wait"),
|
|
@@ -6716,11 +6729,12 @@ var RUN_CLI_COMMANDS = [
|
|
|
6716
6729
|
const project = requireProject(
|
|
6717
6730
|
input,
|
|
6718
6731
|
"run",
|
|
6719
|
-
"canonry run <project> [--provider <name>] [--wait] [--format json]",
|
|
6732
|
+
"canonry run <project> [--provider <name>] [--query <q>...] [--wait] [--format json]",
|
|
6720
6733
|
"project name is required (or use --all)"
|
|
6721
6734
|
);
|
|
6722
6735
|
await triggerRun(project, {
|
|
6723
6736
|
provider: getString(input.values, "provider"),
|
|
6737
|
+
queries: getStringArray(input.values, "query"),
|
|
6724
6738
|
wait: getBoolean(input.values, "wait"),
|
|
6725
6739
|
location: getString(input.values, "location"),
|
|
6726
6740
|
allLocations: getBoolean(input.values, "all-locations"),
|
|
@@ -6820,9 +6834,10 @@ async function removeSchedule(project, format, kind) {
|
|
|
6820
6834
|
console.log(`Schedule removed for "${project}" (kind: ${resolvedKind})`);
|
|
6821
6835
|
}
|
|
6822
6836
|
function printSchedule(s) {
|
|
6823
|
-
const label = s.preset ?? s.cronExpr;
|
|
6824
6837
|
console.log(` Kind: ${s.kind}`);
|
|
6825
|
-
|
|
6838
|
+
if (s.preset) {
|
|
6839
|
+
console.log(` Preset: ${s.preset}`);
|
|
6840
|
+
}
|
|
6826
6841
|
console.log(` Cron: ${s.cronExpr}`);
|
|
6827
6842
|
console.log(` Timezone: ${s.timezone}`);
|
|
6828
6843
|
console.log(` Enabled: ${s.enabled ? "yes" : "no"}`);
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M3HZAUWZ.js";
|
|
4
4
|
import {
|
|
5
5
|
loadConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2FAEQ56I.js";
|
|
7
|
+
import "./chunk-PN24DAGC.js";
|
|
8
|
+
import "./chunk-HVW665A4.js";
|
|
9
9
|
export {
|
|
10
10
|
createServer,
|
|
11
11
|
loadConfig
|
package/dist/mcp.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
CliError,
|
|
3
3
|
canonryMcpTools,
|
|
4
4
|
createApiClient
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-2FAEQ56I.js";
|
|
6
|
+
import "./chunk-HVW665A4.js";
|
|
7
7
|
|
|
8
8
|
// src/mcp/cli.ts
|
|
9
9
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainyc/canonry",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.26.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Agent-first open-source AEO operating platform - track how answer engines cite your domain",
|
|
6
6
|
"license": "FSL-1.1-ALv2",
|
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
"tsx": "^4.19.0",
|
|
62
62
|
"@ainyc/canonry-api-routes": "0.0.0",
|
|
63
63
|
"@ainyc/canonry-contracts": "0.0.0",
|
|
64
|
-
"@ainyc/canonry-config": "0.0.0",
|
|
65
|
-
"@ainyc/canonry-db": "0.0.0",
|
|
66
64
|
"@ainyc/canonry-intelligence": "0.0.0",
|
|
67
|
-
"@ainyc/canonry-
|
|
65
|
+
"@ainyc/canonry-db": "0.0.0",
|
|
66
|
+
"@ainyc/canonry-config": "0.0.0",
|
|
68
67
|
"@ainyc/canonry-integration-bing": "0.0.0",
|
|
69
|
-
"@ainyc/canonry-integration-google": "0.0.0",
|
|
70
|
-
"@ainyc/canonry-integration-traffic": "0.0.0",
|
|
71
|
-
"@ainyc/canonry-integration-wordpress": "0.0.0",
|
|
72
68
|
"@ainyc/canonry-integration-commoncrawl": "0.0.0",
|
|
69
|
+
"@ainyc/canonry-integration-cloud-run": "0.0.0",
|
|
70
|
+
"@ainyc/canonry-integration-traffic": "0.0.0",
|
|
71
|
+
"@ainyc/canonry-integration-google": "0.0.0",
|
|
73
72
|
"@ainyc/canonry-provider-cdp": "0.0.0",
|
|
73
|
+
"@ainyc/canonry-integration-wordpress": "0.0.0",
|
|
74
74
|
"@ainyc/canonry-provider-claude": "0.0.0",
|
|
75
75
|
"@ainyc/canonry-provider-local": "0.0.0",
|
|
76
|
-
"@ainyc/canonry-provider-gemini": "0.0.0",
|
|
77
76
|
"@ainyc/canonry-provider-openai": "0.0.0",
|
|
78
|
-
"@ainyc/canonry-provider-perplexity": "0.0.0"
|
|
77
|
+
"@ainyc/canonry-provider-perplexity": "0.0.0",
|
|
78
|
+
"@ainyc/canonry-provider-gemini": "0.0.0"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"build": "tsx scripts/copy-agent-assets.ts && tsup && tsx build-web.ts",
|