@signaliz/cli 1.0.92 → 1.0.93

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 (2) hide show
  1. package/dist/bin.js +11 -13
  2. package/package.json +2 -2
package/dist/bin.js CHANGED
@@ -57,12 +57,12 @@ Product commands:
57
57
  signaliz builds status --run-id <uuid> [--limit 100]
58
58
  signaliz builds download --run-id <uuid> --out results.csv
59
59
  signaliz campaign-os clients [--status active] [--query signaliz] [--limit 100]
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]
60
+ signaliz campaign-os context --client-id <uuid> [--knowledge-snapshot-id <uuid>] [--source-limit 50]
61
+ signaliz campaign-os knowledge --query "cache first" [--client-id <uuid>] [--knowledge-snapshot-id <uuid>] [--record-kind campaign_playbook] [--limit 15]
62
62
  signaliz campaign-os provider-runtime --client-id <uuid> --provider clay|instantly|smartlead|bison
63
63
  signaliz campaign-os build --client-id <uuid> --name "Campaign" --objective "Goal" --target-count 500 --idempotency-key <key>
64
64
  signaliz campaign-os build-status --build-run-id <uuid>
65
- signaliz campaign-os draft --client-id <uuid> --name "Campaign" --campaign-spec-file campaign-spec.json --idempotency-key <key> [--agent codex]
65
+ signaliz campaign-os draft --client-id <uuid> --name "Campaign" --campaign-spec-file campaign-spec.json --idempotency-key <key> [--knowledge-snapshot-id <uuid>] [--agent codex]
66
66
  signaliz campaign-os refine --client-id <uuid> --campaign-id <uuid> --expected-spec-version-id <uuid> --campaign-spec-file campaign-spec.json --change-reason "What changed" --idempotency-key <key> [--agent codex]
67
67
  signaliz campaign-os audience-draft --client-id <uuid> --name "Audience" --definition-file audience.json --entity-type people --audience-role campaign_segment --source-mode signaliz_owned --idempotency-key <key>
68
68
  signaliz campaign-os materialize-cache-audience --client-id <uuid> --audience-id <uuid> [--campaign-id <uuid>] --target-count <1-500> --idempotency-key <key>
@@ -2145,7 +2145,11 @@ async function campaignOs(args) {
2145
2145
  if (!clientId) throw new CliInputError("signaliz campaign-os context requires --client-id <uuid>");
2146
2146
  const sourceLimit = numberFlag("source-limit") ?? 50;
2147
2147
  requireIntegerInRange(sourceLimit, "--source-limit", 1, 100);
2148
- const result = await client.getCampaignOsClientContext(clientId, sourceLimit);
2148
+ const result = await client.getCampaignOsClientContext(
2149
+ clientId,
2150
+ sourceLimit,
2151
+ flag("knowledge-snapshot-id")
2152
+ );
2149
2153
  output(result, () => {
2150
2154
  const selected = result.client;
2151
2155
  process.stdout.write(`${String(selected.name || clientId)} \xB7 Brain v${String(selected.brain_version || "?")}
@@ -2163,15 +2167,7 @@ async function campaignOs(args) {
2163
2167
  }
2164
2168
  const limit = numberFlag("limit") ?? 15;
2165
2169
  requireIntegerInRange(limit, "--limit", 1, 50);
2166
- const allowedKinds = [
2167
- "client_brain",
2168
- "campaign_register",
2169
- "campaign_learning",
2170
- "campaign_methodology",
2171
- "campaign_genome",
2172
- "campaign_playbook",
2173
- "knowledge_inventory"
2174
- ];
2170
+ const allowedKinds = import_sdk.CAMPAIGN_OS_KNOWLEDGE_RECORD_KINDS;
2175
2171
  const recordKind = flag("record-kind");
2176
2172
  if (recordKind && !allowedKinds.includes(recordKind)) {
2177
2173
  throw new CliInputError(`--record-kind must be one of: ${allowedKinds.join(", ")}`);
@@ -2179,6 +2175,7 @@ async function campaignOs(args) {
2179
2175
  const result = await client.searchCampaignOsKnowledge({
2180
2176
  query,
2181
2177
  clientId: flag("client-id"),
2178
+ knowledgeSnapshotId: flag("knowledge-snapshot-id"),
2182
2179
  recordKind,
2183
2180
  limit
2184
2181
  });
@@ -2291,6 +2288,7 @@ async function campaignOs(args) {
2291
2288
  targetCount,
2292
2289
  audienceBindingId: flag("audience-binding-id"),
2293
2290
  audienceDefinitionId: flag("audience-definition-id"),
2291
+ knowledgeSnapshotId: flag("knowledge-snapshot-id"),
2294
2292
  campaignSpec,
2295
2293
  agentVendor: campaignOsAgentFlag(),
2296
2294
  idempotencyKey
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signaliz/cli",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
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.96"
33
+ "@signaliz/sdk": "^1.0.97"
34
34
  },
35
35
  "devDependencies": {
36
36
  "tsup": "^8.0.0",