@alva-ai/toolkit 0.28.1-beta.1 → 0.29.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.
@@ -549,6 +549,8 @@ interface PlaybookDraftResponse {
549
549
  playbook_path: string;
550
550
  }
551
551
  interface PlaybookReleaseRequest {
552
+ /** Explicit consent to deliver bundled non-public Feeds to the Playbook audience. */
553
+ confirm_bundled_feed_exposure?: boolean;
552
554
  name: string;
553
555
  version: string;
554
556
  feeds: Array<{
@@ -2351,6 +2353,48 @@ interface ThesisGetResponse extends ThesisResponse {
2351
2353
  author: ThesisAuthor;
2352
2354
  entities: ThesisEntity[];
2353
2355
  }
2356
+ interface ThesisResearchStatus {
2357
+ state: string;
2358
+ pending_work: number;
2359
+ read_complete: boolean;
2360
+ last_attempt_ms?: number;
2361
+ last_completed_ms?: number;
2362
+ }
2363
+ interface ThesisSignalEvidenceExcerpt {
2364
+ text: string;
2365
+ omitted_before: boolean;
2366
+ omitted_after: boolean;
2367
+ }
2368
+ interface ThesisSignalSource {
2369
+ title: string;
2370
+ url?: string;
2371
+ published_at_ms?: number;
2372
+ }
2373
+ interface ThesisSignal {
2374
+ id: ThesisID;
2375
+ thesis_id: ThesisID;
2376
+ author_version_id: ThesisID;
2377
+ statement_snapshot: string;
2378
+ stance: string;
2379
+ explanation: string;
2380
+ information_kind: string;
2381
+ evidence_excerpt?: ThesisSignalEvidenceExcerpt;
2382
+ source: ThesisSignalSource;
2383
+ }
2384
+ interface ThesisSignalEntry {
2385
+ feed_entry_id: ThesisID;
2386
+ cursor: string;
2387
+ signal: ThesisSignal;
2388
+ }
2389
+ interface ListThesisSignalsParams {
2390
+ first?: number;
2391
+ cursor?: string;
2392
+ }
2393
+ interface ThesisSignalsResponse {
2394
+ research: ThesisResearchStatus;
2395
+ entries: ThesisSignalEntry[];
2396
+ next_cursor: string;
2397
+ }
2354
2398
  interface CreateThesisParams {
2355
2399
  /** Caller-supplied, stable non-zero UUID. Reuse it only to resolve ambiguity. */
2356
2400
  request_id: string;
@@ -2397,6 +2441,8 @@ declare class ThesesResource {
2397
2441
  constructor(client: AlvaClient);
2398
2442
  create(params: CreateThesisParams): Promise<ThesisResponse>;
2399
2443
  get(id: ThesisID): Promise<ThesisGetResponse>;
2444
+ getVersion(id: ThesisID, authorVersionID: ThesisID): Promise<ThesisResponse>;
2445
+ signals(id: ThesisID, params?: ListThesisSignalsParams): Promise<ThesisSignalsResponse>;
2400
2446
  update(id: ThesisID, params: UpdateThesisParams): Promise<ThesisResponse>;
2401
2447
  setVisibility(id: ThesisID, params: SetThesisVisibilityParams): Promise<ThesisResponse>;
2402
2448
  close(id: ThesisID, params: CloseThesisParams): Promise<ThesisResponse>;
package/dist/dispatch.js CHANGED
@@ -6062,6 +6062,12 @@ var EMBEDDED_COMMAND_DEFINITIONS = [
6062
6062
  ]
6063
6063
  }),
6064
6064
  route("thesis get", "thesis get", { values: ["id"] }),
6065
+ route("thesis version get", "thesis version get", {
6066
+ values: ["id", "author-version-id"]
6067
+ }),
6068
+ route("thesis signals", "thesis signals", {
6069
+ values: ["id", "first", "cursor"]
6070
+ }),
6065
6071
  route("thesis set-visibility", "thesis set-visibility", {
6066
6072
  values: ["id", "visibility"]
6067
6073
  }),
@@ -6313,7 +6319,7 @@ var EMBEDDED_COMMAND_DEFINITIONS = [
6313
6319
  }),
6314
6320
  route("playbooks release", "release playbook", {
6315
6321
  values: ["name", "version", "feeds", "changelog", "readme-url"],
6316
- booleans: ["bypass-lint"]
6322
+ booleans: ["bypass-lint", "confirm-bundled-feed-exposure"]
6317
6323
  }),
6318
6324
  route("playbooks lint", "lint playbook", {
6319
6325
  values: ["format"],
@@ -6546,7 +6552,7 @@ Examples:
6546
6552
  alva for-you list --limit 20 --cursor '<endCursor>' --newer-than '<watermark>'`,
6547
6553
  thesis: `Usage: alva thesis <subcommand> [options]
6548
6554
 
6549
- Subcommands: create, get, set-visibility, update, close, delete, rewrite.
6555
+ Subcommands: create, get, version get, signals, set-visibility, update, close, delete, rewrite.
6550
6556
 
6551
6557
  Embedded thesis commands accept literal --body text only; file and stdin body
6552
6558
  transports are intentionally unavailable because this runtime has no verified
@@ -7324,6 +7330,10 @@ var COMMAND_DEFINITIONS = [
7324
7330
  booleans: ["body-stdin"]
7325
7331
  }),
7326
7332
  command("thesis get", { values: ["id"] }),
7333
+ command("thesis version get", {
7334
+ values: ["id", "author-version-id"]
7335
+ }),
7336
+ command("thesis signals", { values: ["id", "first", "cursor"] }),
7327
7337
  command("thesis set-visibility", { values: ["id", "visibility"] }),
7328
7338
  command("thesis update", {
7329
7339
  values: [
@@ -7478,7 +7488,7 @@ var COMMAND_DEFINITIONS = [
7478
7488
  }),
7479
7489
  command("release playbook", {
7480
7490
  values: ["name", "version", "feeds", "changelog", "readme-url"],
7481
- booleans: ["bypass-lint"]
7491
+ booleans: ["bypass-lint", "confirm-bundled-feed-exposure"]
7482
7492
  }),
7483
7493
  command("lint playbook", {
7484
7494
  values: ["format"],
@@ -11469,7 +11479,7 @@ function formatTradingPairResolved(result) {
11469
11479
  }
11470
11480
 
11471
11481
  // src/cli/dispatch.ts
11472
- var CLI_VERSION = true ? "0.28.1-beta.1" : "dev";
11482
+ var CLI_VERSION = true ? "0.29.0" : "dev";
11473
11483
  var DEFAULT_RUN_TIMEOUT_MS = 6e5;
11474
11484
  var RUN_TIMEOUT_ENV = "ALVA_RUN_TIMEOUT_MS";
11475
11485
  var GLOBAL_VALUE_FLAGS = Object.entries(GLOBAL_FLAG_DEFINITIONS).filter(([, kind]) => kind === "value").map(([name]) => `--${name}`);
@@ -12290,6 +12300,9 @@ Playbook-draft flags:
12290
12300
  with skill tags; re-draft replaces the tag set.
12291
12301
 
12292
12302
  Playbook flags:
12303
+ --confirm-bundled-feed-exposure
12304
+ Confirm delivery of bundled non-public Feeds to
12305
+ the Playbook audience. Defaults to unconfirmed.
12293
12306
  --name <name> Playbook name, must already exist as draft (required)
12294
12307
  --version <version> Semantic version, e.g. "v1.0.0" (required)
12295
12308
  --feeds <json> JSON array of {feed_id, feed_major?} (required)
@@ -12782,13 +12795,15 @@ Examples:
12782
12795
  alva arrays token status`,
12783
12796
  thesis: `Usage: alva thesis <subcommand> [options]
12784
12797
 
12785
- Create, read, update, close, delete, or explicitly rewrite an authored thesis.
12798
+ Create, read, inspect Signals and exact author versions, update, close, delete, or explicitly rewrite an authored thesis.
12786
12799
  Backend owns Signal/Alert setup; the CLI never starts them separately.
12787
12800
  Create and update never rewrite text automatically.
12788
12801
 
12789
12802
  Subcommands:
12790
12803
  create Create a thesis
12791
12804
  get Get one thesis
12805
+ version get Get one exact author version
12806
+ signals Read published Signal history
12792
12807
  set-visibility Change current access without publishing a version
12793
12808
  update Replaces document fields: body, title, entities, visibility (all sent in full)
12794
12809
  close Close the current author version with an optional note
@@ -12809,6 +12824,8 @@ Update requires --visibility explicitly so it cannot inadvertently publish.
12809
12824
  Other flags:
12810
12825
  create --request-id <uuid> --body ... [--title <text>] [--tickers <ticker,ticker>] [--entity-ids <id,id>] [--visibility <value>]
12811
12826
  get --id <signed-int64-decimal>
12827
+ version get --id <signed-int64-decimal> --author-version-id <signed-int64-decimal>
12828
+ signals --id <id> [--first <1-50>] [--cursor <opaque-cursor>]
12812
12829
  set-visibility --id <id> --visibility public|private
12813
12830
  update --id <id> --request-id <uuid> --expected-author-version-id <id> --body ... --visibility <value> [--title <text>] [--entity-ids <id,id>] [--editorial]
12814
12831
  close --id <id> --expected-author-version-id <id> [--note <text>]
@@ -14078,6 +14095,19 @@ async function executeParsedCommand(client, parsedCommand, meta, deps) {
14078
14095
  });
14079
14096
  case "get":
14080
14097
  return client.theses.get(requireFlag(flags, "id", "thesis get"));
14098
+ case "version":
14099
+ return client.theses.getVersion(
14100
+ requireFlag(flags, "id", "thesis version get"),
14101
+ requireFlag(flags, "author-version-id", "thesis version get")
14102
+ );
14103
+ case "signals":
14104
+ return client.theses.signals(
14105
+ requireFlag(flags, "id", "thesis signals"),
14106
+ {
14107
+ first: flags.first === void 0 ? void 0 : Number(flags.first),
14108
+ cursor: flags.cursor
14109
+ }
14110
+ );
14081
14111
  case "set-visibility":
14082
14112
  return client.theses.setVisibility(
14083
14113
  requireFlag(flags, "id", "thesis set-visibility"),
@@ -14608,7 +14638,10 @@ async function executeParsedCommand(client, parsedCommand, meta, deps) {
14608
14638
  version,
14609
14639
  feeds: jsonParse(feedsRaw),
14610
14640
  changelog,
14611
- readme_url: readmeUrl
14641
+ readme_url: readmeUrl,
14642
+ confirm_bundled_feed_exposure: boolFlag(
14643
+ flags["confirm-bundled-feed-exposure"]
14644
+ )
14612
14645
  });
14613
14646
  }
14614
14647
  default: