@alva-ai/toolkit 0.32.0-beta.0 → 0.32.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/README.md CHANGED
@@ -369,6 +369,63 @@ try {
369
369
  }
370
370
  ```
371
371
 
372
+ ## Managed Company News
373
+
374
+ Create a private, backend-managed News Feed without uploading a script or
375
+ deploying a cronjob yourself. One Feed covers the whole supplied ticker list:
376
+
377
+ ```bash
378
+ alva company-news create --name my-company-news --tickers NVDA,AMD,AAPL
379
+ alva company-news create --name earnings-news --tickers NVDA,AMD --initial-lookback-hours 48 --page-size 30
380
+ ```
381
+
382
+ Uses the configured Alva API key and the vNext GraphQL business mutation
383
+ `companyNews { createFeed(input: ...) }` via `POST /query`. The backend
384
+ owns the producer code and creates the Feed, its cronjob and processing state.
385
+ The response contains decimal-string `feed_id` and `cronjob_id`; newly created
386
+ producers are **paused**, and creation does not invoke a model or spend model
387
+ credits. Review the configuration, then explicitly start it from the terminal CLI
388
+ when ready (embedded dispatch does not expose Feed lifecycle commands):
389
+
390
+ ```bash
391
+ alva feed resume --id <feed_id>
392
+ ```
393
+
394
+ Once resumed, model usage is charged to the authenticated creator. Company News
395
+ is pull-only; resume does not enable push notifications. No `--path`, script
396
+ upload, owner override or automatic-start flag is supported.
397
+
398
+ Names must be owner-local, 1–64 alphanumeric/hyphen characters starting with an
399
+ alphanumeric character, and not `news-lane`. Supply 1–1000 unique uppercase
400
+ tickers (maximum 20 characters each). `--initial-lookback-hours` accepts 0–168
401
+ (default 24); `--page-size` accepts 0–100 (default 20). Zero selects the backend
402
+ default. Large universes are read incrementally rather than all in one wake.
403
+
404
+ Retry an unclear result with the **same name and configuration**; this returns
405
+ the existing resource without changing whether it is running. Different
406
+ configuration under the same name conflicts. This command does not update an
407
+ existing ticker universe.
408
+ Different names create independent Feeds, even when their tickers overlap.
409
+ For a single ticker, use `--tickers NVDA`; for many, pass the full comma-separated
410
+ list once. Incrementally appending tickers to the same Feed is not supported.
411
+
412
+ SDK equivalent:
413
+
414
+ ```typescript
415
+ const { feed_id, cronjob_id } = await client.companyNews.create({
416
+ name: 'my-company-news',
417
+ tickers: ['NVDA', 'AMD'],
418
+ initial_lookback_hours: 24,
419
+ page_size: 20,
420
+ });
421
+ ```
422
+
423
+ Requires the companion Gateway adapter and backend Company News deployment,
424
+ migration. An unavailable backend fails explicitly;
425
+ the CLI does not fall back to script deployment. Terminal and embedded dispatch
426
+ both support creation, but publishing this npm CLI alone does not update ALPI;
427
+ follow the embedded CLI release instructions below.
428
+
372
429
  ## CLI Commands
373
430
 
374
431
  ```text
@@ -381,8 +438,11 @@ alva run --code <code> [--entry-path <path>] [--working-dir <dir>] [--args <json
381
438
  alva deploy <create|list|get|update|delete|pause|resume|runs|run-logs>
382
439
  alva release <feed|playbook-draft|playbook>
383
440
  alva playbooks <trending>
384
- alva thesis <create|get|signals|set-visibility|update|close|delete|rewrite>
441
+ alva thesis <list|related|create|get|signals|set-visibility|update|close|delete|rewrite>
385
442
  alva thesis version get --id <thesis-id> --author-version-id <version-id>
443
+ alva thesis list --person <slug> # or --person-name <name> / --user <username>
444
+ alva thesis list --ticker NVDA # or --entity-id <id>; --cursor <nextCursor>
445
+ alva thesis related --id <playbook-id>
386
446
  alva functions <register|list|delete|invoke|allowance>
387
447
  alva secrets <create|list|get|update|delete>
388
448
  alva sdk <doc|partitions|partition-summary>