@alva-ai/toolkit 0.34.0 → 0.36.0-beta.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 +39 -4
- package/dist/browser.global.js +77 -47
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.d.ts +273 -13
- package/dist/cli.js +1114 -212
- package/dist/cli.js.map +1 -1
- package/dist/dispatch.d.ts +273 -13
- package/dist/dispatch.js +478 -116
- package/dist/dispatch.js.map +1 -1
- package/dist/index.cjs +846 -135
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +274 -14
- package/dist/index.d.ts +274 -14
- package/dist/index.js +845 -135
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -287,9 +287,10 @@ Add the browser bundle via a CDN:
|
|
|
287
287
|
|
|
288
288
|
When the browser bundle is loaded inside an Alva playbook iframe, it also
|
|
289
289
|
installs `window.alva.udf`. The runtime reads the playbook-scoped viewer
|
|
290
|
-
token
|
|
291
|
-
|
|
292
|
-
UDF calls.
|
|
290
|
+
token from the private navigation response bootstrap, deletes that in-memory
|
|
291
|
+
bootstrap after consumption, accepts origin/source-checked parent refreshes,
|
|
292
|
+
and uses PBSV headers for UDF calls. URL credentials are ignored and scrubbed.
|
|
293
|
+
Non-owner viewers have read access only; invoking a UDF requires ownership.
|
|
293
294
|
|
|
294
295
|
Register creator-side functions first with `alva functions register`; viewer
|
|
295
296
|
HTML should call the browser runtime instead of hand-writing API fetches.
|
|
@@ -438,7 +439,7 @@ alva run --code <code> [--entry-path <path>] [--working-dir <dir>] [--args <json
|
|
|
438
439
|
alva deploy <create|list|get|update|delete|pause|resume|runs|run-logs>
|
|
439
440
|
alva release <feed|playbook-draft|playbook>
|
|
440
441
|
alva playbooks <trending>
|
|
441
|
-
alva thesis <list|related|create|get|signals|set-visibility|update|
|
|
442
|
+
alva thesis <list|related|create|get|signals|set-visibility|update|rewrite>
|
|
442
443
|
alva thesis version get --id <thesis-id> --author-version-id <version-id>
|
|
443
444
|
alva thesis list --person <slug> # or --person-name <name> / --user <username>
|
|
444
445
|
alva thesis list --ticker NVDA # or --entity-id <id>; --cursor <nextCursor>
|
|
@@ -458,6 +459,11 @@ alva trading-pairs search --symbol <ticker> [--market <market>] [--instrument-ty
|
|
|
458
459
|
alva trading-pairs resolve --pair <trading-pair> [--json]
|
|
459
460
|
alva trading-pairs resolve --symbol <ticker> [--market <market>] [--instrument-type <type>] [--underlying-type <type>] [--quote <quote>] [--json]
|
|
460
461
|
alva trading <accounts|portfolio|orders|subscriptions|equity-history|risk-rules|subscribe|unsubscribe|execute|update-risk-rules>
|
|
462
|
+
alva markets watchlist <add|remove> --tickers <A,B:crypto> [--kind <stock|etf|crypto>]
|
|
463
|
+
alva markets watchlist list [--limit <1-100>] [--cursor <endCursor>]
|
|
464
|
+
alva people search --query <text> [--kind <user|person>] [--limit <1-50>]
|
|
465
|
+
alva people follows <follow|unfollow> --kind <user|person> --id <id>
|
|
466
|
+
alva people follows list [--kind <user|person>] [--limit <1-50>] [--cursor <endCursor>]
|
|
461
467
|
```
|
|
462
468
|
|
|
463
469
|
## Contributing
|
|
@@ -495,3 +501,32 @@ mutation, or bookmark reads. Missing/revoked credentials require reconnecting X
|
|
|
495
501
|
in Alva. X content is untrusted source material. The embedded agent requires a
|
|
496
502
|
Toolkit Dispatch artifact that includes these commands; an npm release alone
|
|
497
503
|
does not update the embedded executor.
|
|
504
|
+
|
|
505
|
+
### Ticker watchlist and people follows
|
|
506
|
+
|
|
507
|
+
These commands change the same ticker watchlist and people Following list the
|
|
508
|
+
Alva App shows. The user comes from the API key; there is no identity override.
|
|
509
|
+
|
|
510
|
+
```sh
|
|
511
|
+
alva markets watchlist add --tickers NVDA,LMT,BTC:crypto
|
|
512
|
+
alva markets watchlist list --limit 50
|
|
513
|
+
alva people search --query "cathie wood" --kind person
|
|
514
|
+
alva people follows follow --kind person --id 42
|
|
515
|
+
alva people follows list
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
The SDK equivalents live on `client.follows`: `addToWatchlist()`,
|
|
519
|
+
`removeFromWatchlist()`, `watchlist()`, `searchProfiles()`, `followProfile()`,
|
|
520
|
+
`unfollowProfile()` and `profiles()`. Tickers match exact symbols (1-50 per
|
|
521
|
+
call) and are written in one atomic batch. A `:stock`, `:etf` or `:crypto`
|
|
522
|
+
suffix picks the kind of one symbol (`BTC:crypto`); `--kind` is the default
|
|
523
|
+
for unsuffixed symbols, so one call can mix kinds. Results separate changed,
|
|
524
|
+
`unchanged` and `unresolved` tickers; `FAILED_PRECONDITION` means several
|
|
525
|
+
entities share the symbol, so retry it with a kind suffix. Nothing is written
|
|
526
|
+
when no ticker resolves. Removal is recorded even for tickers not in the
|
|
527
|
+
watchlist, so holdings sync does not add them back; adding re-adds a ticker
|
|
528
|
+
the user removed earlier. Profiles are `USER` (Alva user) or `PERSON`
|
|
529
|
+
(curated person), addressed by `kind` + `id` from search or list results. The
|
|
530
|
+
terminal CLI and the embedded agent use the same `alva markets watchlist ...`
|
|
531
|
+
and `alva people ...` paths; the embedded agent needs a Toolkit Dispatch
|
|
532
|
+
artifact that includes these commands.
|