@ainyc/canonry 4.100.1 → 4.101.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/assets/assets/{BacklinksPage-v2RC8wlg.js → BacklinksPage-aysk_iGy.js} +1 -1
- package/assets/assets/{ChartPrimitives-B74e5pqn.js → ChartPrimitives-CmKqxndA.js} +1 -1
- package/assets/assets/ProjectPage-dduZrrBr.js +7 -0
- package/assets/assets/{RunRow-BmVPjO-m.js → RunRow-Ba77hJ4d.js} +1 -1
- package/assets/assets/{RunsPage-CK5atXvL.js → RunsPage-D3IAdQMB.js} +1 -1
- package/assets/assets/{SettingsPage-DarPFUPl.js → SettingsPage-Y54JtLw-.js} +1 -1
- package/assets/assets/{TrafficPage-Ddnn_WqU.js → TrafficPage-DawzPWdt.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-g08SKnwZ.js → TrafficSourceDetailPage-DAhQwFVb.js} +1 -1
- package/assets/assets/{arrow-left-D39Vxasb.js → arrow-left-NsJbgqmV.js} +1 -1
- package/assets/assets/{extract-error-message-BiNWqBeh.js → extract-error-message-u00ggxeK.js} +1 -1
- package/assets/assets/{index-Dd4J1VhB.js → index-4YArcfwj.js} +64 -64
- package/assets/assets/{trash-2-xh6gsnap.js → trash-2-BBdbbe60.js} +1 -1
- package/assets/index.html +1 -1
- package/dist/{chunk-IDI6LMYL.js → chunk-2YPVK75M.js} +6 -2
- package/dist/{chunk-YBIT5O62.js → chunk-AV3DHH6B.js} +142 -4
- package/dist/{chunk-JF7EXHGA.js → chunk-HUL5FUBD.js} +6 -0
- package/dist/{chunk-ALJSES3X.js → chunk-O3SFVGDF.js} +531 -49
- package/dist/cli.js +26 -8
- package/dist/index.js +4 -4
- package/dist/{intelligence-service-TWCEKVKZ.js → intelligence-service-R6QJ3KC2.js} +2 -2
- package/dist/mcp.js +2 -2
- package/package.json +6 -6
- package/assets/assets/ProjectPage-BCzS7TQn.js +0 -6
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node --import tsx
|
|
2
2
|
import {
|
|
3
|
+
AERO_TOOL_PROFILES,
|
|
3
4
|
backfillAiReferralPaths,
|
|
4
5
|
backfillAiReferralPathsCommand,
|
|
5
6
|
backfillAnswerMentionsCommand,
|
|
@@ -18,6 +19,7 @@ import {
|
|
|
18
19
|
getMissingUserSkillsNudge,
|
|
19
20
|
getOrCreateAnonymousId,
|
|
20
21
|
installSkills,
|
|
22
|
+
isAeroToolProfile,
|
|
21
23
|
isFirstRun,
|
|
22
24
|
isTelemetryEnabled,
|
|
23
25
|
listAgentProviders,
|
|
@@ -27,7 +29,7 @@ import {
|
|
|
27
29
|
setTelemetrySource,
|
|
28
30
|
showFirstRunNotice,
|
|
29
31
|
trackEvent
|
|
30
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-O3SFVGDF.js";
|
|
31
33
|
import {
|
|
32
34
|
CliError,
|
|
33
35
|
EXIT_SYSTEM_ERROR,
|
|
@@ -44,7 +46,7 @@ import {
|
|
|
44
46
|
saveConfig,
|
|
45
47
|
saveConfigPatch,
|
|
46
48
|
usageError
|
|
47
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-2YPVK75M.js";
|
|
48
50
|
import {
|
|
49
51
|
apiKeys,
|
|
50
52
|
createClient,
|
|
@@ -52,7 +54,7 @@ import {
|
|
|
52
54
|
projects,
|
|
53
55
|
queries,
|
|
54
56
|
renderReportHtml
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-AV3DHH6B.js";
|
|
56
58
|
import {
|
|
57
59
|
BacklinkSources,
|
|
58
60
|
CcReleaseSyncStatuses,
|
|
@@ -78,7 +80,7 @@ import {
|
|
|
78
80
|
providerQuotaPolicySchema,
|
|
79
81
|
resolveProviderInput,
|
|
80
82
|
winnabilityClassSchema
|
|
81
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-HUL5FUBD.js";
|
|
82
84
|
|
|
83
85
|
// src/cli.ts
|
|
84
86
|
import { pathToFileURL } from "url";
|
|
@@ -12662,7 +12664,8 @@ async function agentAsk(opts) {
|
|
|
12662
12664
|
prompt: opts.prompt,
|
|
12663
12665
|
provider: opts.provider,
|
|
12664
12666
|
modelId: opts.modelId,
|
|
12665
|
-
scope: opts.scope ?? "all"
|
|
12667
|
+
scope: opts.scope ?? "all",
|
|
12668
|
+
...opts.profile ? { profile: opts.profile } : {}
|
|
12666
12669
|
},
|
|
12667
12670
|
controller.signal
|
|
12668
12671
|
);
|
|
@@ -12928,14 +12931,15 @@ var AGENT_ASK_SCOPES = ["all", "read-only"];
|
|
|
12928
12931
|
var AGENT_CLI_COMMANDS = [
|
|
12929
12932
|
{
|
|
12930
12933
|
path: ["agent", "ask"],
|
|
12931
|
-
usage: `canonry agent ask <project> "<prompt>" [--provider ${listAgentProviders().join("|")}] [--model <id>] [--scope all|read-only] [--format json]`,
|
|
12934
|
+
usage: `canonry agent ask <project> "<prompt>" [--provider ${listAgentProviders().join("|")}] [--model <id>] [--scope all|read-only] [--profile default|ads-operator] [--format json]`,
|
|
12932
12935
|
options: {
|
|
12933
12936
|
provider: stringOption(),
|
|
12934
12937
|
model: stringOption(),
|
|
12935
|
-
scope: stringOption()
|
|
12938
|
+
scope: stringOption(),
|
|
12939
|
+
profile: stringOption()
|
|
12936
12940
|
},
|
|
12937
12941
|
run: async (input) => {
|
|
12938
|
-
const usage = `canonry agent ask <project> "<prompt>" [--provider ${listAgentProviders().join("|")}] [--model <id>] [--scope all|read-only] [--format json]`;
|
|
12942
|
+
const usage = `canonry agent ask <project> "<prompt>" [--provider ${listAgentProviders().join("|")}] [--model <id>] [--scope all|read-only] [--profile default|ads-operator] [--format json]`;
|
|
12939
12943
|
const project = requireProject(input, "agent.ask", usage);
|
|
12940
12944
|
const prompt2 = input.positionals.slice(1).join(" ").trim();
|
|
12941
12945
|
if (!prompt2) {
|
|
@@ -12974,12 +12978,26 @@ Usage: ${usage}`, {
|
|
|
12974
12978
|
}
|
|
12975
12979
|
});
|
|
12976
12980
|
}
|
|
12981
|
+
const profileInput = getString(input.values, "profile");
|
|
12982
|
+
if (profileInput && !isAeroToolProfile(profileInput)) {
|
|
12983
|
+
throw usageError(`Error: --profile must be one of: ${AERO_TOOL_PROFILES.join(", ")}
|
|
12984
|
+
Usage: ${usage}`, {
|
|
12985
|
+
message: `--profile must be one of: ${AERO_TOOL_PROFILES.join(", ")}`,
|
|
12986
|
+
details: {
|
|
12987
|
+
command: "agent.ask",
|
|
12988
|
+
usage,
|
|
12989
|
+
profile: profileInput,
|
|
12990
|
+
validProfiles: AERO_TOOL_PROFILES
|
|
12991
|
+
}
|
|
12992
|
+
});
|
|
12993
|
+
}
|
|
12977
12994
|
await agentAsk({
|
|
12978
12995
|
project,
|
|
12979
12996
|
prompt: prompt2,
|
|
12980
12997
|
provider: coerceAgentProvider(providerInput),
|
|
12981
12998
|
modelId: getString(input.values, "model"),
|
|
12982
12999
|
scope: scopeInput,
|
|
13000
|
+
profile: profileInput,
|
|
12983
13001
|
format: input.format
|
|
12984
13002
|
});
|
|
12985
13003
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O3SFVGDF.js";
|
|
4
4
|
import {
|
|
5
5
|
loadConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2YPVK75M.js";
|
|
7
|
+
import "./chunk-AV3DHH6B.js";
|
|
8
|
+
import "./chunk-HUL5FUBD.js";
|
|
9
9
|
export {
|
|
10
10
|
createServer,
|
|
11
11
|
loadConfig
|
package/dist/mcp.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
PACKAGE_VERSION,
|
|
4
4
|
canonryMcpTools,
|
|
5
5
|
createApiClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2YPVK75M.js";
|
|
7
7
|
import {
|
|
8
8
|
isReadOnlyKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HUL5FUBD.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp/cli.ts
|
|
12
12
|
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.101.0",
|
|
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",
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
"tsup": "^8.5.1",
|
|
64
64
|
"tsx": "^4.19.0",
|
|
65
65
|
"@ainyc/canonry-api-client": "0.0.0",
|
|
66
|
-
"@ainyc/canonry-config": "0.0.0",
|
|
67
66
|
"@ainyc/canonry-api-routes": "0.0.0",
|
|
67
|
+
"@ainyc/canonry-config": "0.0.0",
|
|
68
|
+
"@ainyc/canonry-contracts": "0.0.0",
|
|
68
69
|
"@ainyc/canonry-db": "0.0.0",
|
|
69
|
-
"@ainyc/canonry-integration-bing": "0.0.0",
|
|
70
70
|
"@ainyc/canonry-integration-openai-ads": "0.0.0",
|
|
71
|
-
"@ainyc/canonry-
|
|
71
|
+
"@ainyc/canonry-integration-bing": "0.0.0",
|
|
72
72
|
"@ainyc/canonry-integration-commoncrawl": "0.0.0",
|
|
73
73
|
"@ainyc/canonry-integration-cloud-run": "0.0.0",
|
|
74
|
-
"@ainyc/canonry-integration-google-business-profile": "0.0.0",
|
|
75
74
|
"@ainyc/canonry-integration-google": "0.0.0",
|
|
76
|
-
"@ainyc/canonry-integration-
|
|
75
|
+
"@ainyc/canonry-integration-google-business-profile": "0.0.0",
|
|
77
76
|
"@ainyc/canonry-integration-google-places": "0.0.0",
|
|
77
|
+
"@ainyc/canonry-integration-traffic": "0.0.0",
|
|
78
78
|
"@ainyc/canonry-integration-wordpress": "0.0.0",
|
|
79
79
|
"@ainyc/canonry-intelligence": "0.0.0",
|
|
80
80
|
"@ainyc/canonry-provider-cdp": "0.0.0",
|