@signaliz/cli 1.0.87 → 1.0.88
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/bin.js +39 -1
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -58,6 +58,7 @@ Product commands:
|
|
|
58
58
|
signaliz builds download --run-id <uuid> --out results.csv
|
|
59
59
|
signaliz campaign-os clients [--status active] [--query signaliz] [--limit 100]
|
|
60
60
|
signaliz campaign-os context --client-id <uuid> [--source-limit 50]
|
|
61
|
+
signaliz campaign-os knowledge --query "cache first" [--client-id <uuid>] [--record-kind campaign_playbook] [--limit 15]
|
|
61
62
|
signaliz campaign-os provider-runtime --client-id <uuid> --provider clay|instantly
|
|
62
63
|
signaliz campaign-os draft --client-id <uuid> --name "Campaign" [--objective "..."] [--lane one_time|always_on|realtime] [--audience-binding-id <uuid>] [--agent codex]
|
|
63
64
|
signaliz campaign-os request --client-id <uuid> [--campaign-id <uuid>] --agent codex --action build_campaign --instructions "..." [--idempotency-key <key>]
|
|
@@ -2138,6 +2139,43 @@ async function campaignOs(args) {
|
|
|
2138
2139
|
});
|
|
2139
2140
|
return;
|
|
2140
2141
|
}
|
|
2142
|
+
if (action === "knowledge") {
|
|
2143
|
+
const query = flag("query");
|
|
2144
|
+
if (!query || query.length < 2) {
|
|
2145
|
+
throw new CliInputError('signaliz campaign-os knowledge requires --query "campaign method"');
|
|
2146
|
+
}
|
|
2147
|
+
const limit = numberFlag("limit") ?? 15;
|
|
2148
|
+
requireIntegerInRange(limit, "--limit", 1, 50);
|
|
2149
|
+
const allowedKinds = [
|
|
2150
|
+
"client_brain",
|
|
2151
|
+
"campaign_register",
|
|
2152
|
+
"campaign_learning",
|
|
2153
|
+
"campaign_methodology",
|
|
2154
|
+
"campaign_genome",
|
|
2155
|
+
"campaign_playbook",
|
|
2156
|
+
"knowledge_inventory"
|
|
2157
|
+
];
|
|
2158
|
+
const recordKind = flag("record-kind");
|
|
2159
|
+
if (recordKind && !allowedKinds.includes(recordKind)) {
|
|
2160
|
+
throw new CliInputError(`--record-kind must be one of: ${allowedKinds.join(", ")}`);
|
|
2161
|
+
}
|
|
2162
|
+
const result = await client.searchCampaignOsKnowledge({
|
|
2163
|
+
query,
|
|
2164
|
+
clientId: flag("client-id"),
|
|
2165
|
+
recordKind,
|
|
2166
|
+
limit
|
|
2167
|
+
});
|
|
2168
|
+
output(result, () => {
|
|
2169
|
+
process.stdout.write(`Campaign memory results: ${result.total_returned}
|
|
2170
|
+
`);
|
|
2171
|
+
for (const item of result.results) {
|
|
2172
|
+
process.stdout.write(`- ${String(item.title || "Untitled")} \xB7 ${String(item.client_slug || "unknown")} \xB7 ${String(item.record_kind || "knowledge")}
|
|
2173
|
+
`);
|
|
2174
|
+
}
|
|
2175
|
+
process.stdout.write("Results are bounded excerpts from the immutable current CMM snapshot.\n");
|
|
2176
|
+
});
|
|
2177
|
+
return;
|
|
2178
|
+
}
|
|
2141
2179
|
if (action === "provider-runtime") {
|
|
2142
2180
|
const clientId = flag("client-id");
|
|
2143
2181
|
const provider = flag("provider");
|
|
@@ -2227,7 +2265,7 @@ async function campaignOs(args) {
|
|
|
2227
2265
|
});
|
|
2228
2266
|
return;
|
|
2229
2267
|
}
|
|
2230
|
-
throw new CliInputError("Usage: signaliz campaign-os clients|context|provider-runtime|draft|request|receipts");
|
|
2268
|
+
throw new CliInputError("Usage: signaliz campaign-os clients|context|knowledge|provider-runtime|draft|request|receipts");
|
|
2231
2269
|
}
|
|
2232
2270
|
async function main() {
|
|
2233
2271
|
const [, , command, ...args] = process.argv;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signaliz/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.88",
|
|
4
4
|
"description": "Signaliz CLI for Campaign OS, core products, Signal Awareness, Signaliz Flow, and reusable managed builds.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"signaliz": "dist/bin.js"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"node": ">=18"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@signaliz/sdk": "^1.0.
|
|
33
|
+
"@signaliz/sdk": "^1.0.92"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "^8.0.0",
|