car-runtime 0.29.0 → 0.31.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.
Files changed (2) hide show
  1. package/index.d.ts +68 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -554,6 +554,74 @@ export class CarRuntime {
554
554
  */
555
555
  registerModel(schemaJson: string): Promise<string>;
556
556
 
557
+ /**
558
+ * `messaging.config.get` — read the multi-channel approval-transport config
559
+ * for one channel (enabled flag, allowlisted handles, whether a pairing is
560
+ * in flight). Host/local-auth gated on the daemon.
561
+ *
562
+ * `requestJson` is an optional `{ channel? }` selector — `channel` is
563
+ * `"imessage"` | `"slack"`, default `"imessage"`. Pass `"{}"` or omit it for
564
+ * the iMessage (back-compat) channel.
565
+ *
566
+ * Returns `MessagingConfigView` JSON. The view always carries a `channel`
567
+ * key naming which channel it describes (`"imessage"` | `"slack"`).
568
+ */
569
+ messagingConfigGet(requestJson?: string): Promise<string>;
570
+
571
+ /**
572
+ * `messaging.config.set` — mutate one channel's approval-transport config.
573
+ * The ONLY allowlist/config-mutation path; host/local-auth gated.
574
+ * `requestJson` is a `MessagingConfigSetRequest`
575
+ * (`{ channel?, enabled?, allowlisted_handles?, add_handles?, remove_handles?,
576
+ * bot_token?, app_token? }`).
577
+ * `channel` is `"imessage"` | `"slack"`, default `"imessage"` when absent
578
+ * (back-compat). For `channel: "slack"`, supplying BOTH `bot_token` (`xoxb-`)
579
+ * and `app_token` (`xapp-`) provisions them into the OS keychain (MC-9) and
580
+ * persists only a keychain reference into the config — the bearer values are
581
+ * never stored on disk nor echoed back.
582
+ * Returns the updated `MessagingConfigView` JSON (with its `channel` key).
583
+ */
584
+ messagingConfigSet(requestJson: string): Promise<string>;
585
+
586
+ /**
587
+ * `messaging.pairing.start` — mint a fresh high-entropy pairing code for one
588
+ * channel to display ONLY in the local UI; the paired device sends it back
589
+ * to bind its handle. Host/local-auth gated.
590
+ *
591
+ * `requestJson` is an optional `{ channel? }` selector (`"imessage"` |
592
+ * `"slack"`, default `"imessage"`). Returns `MessagingPairingStartResponse`
593
+ * JSON (`{ pairing_code, config }`).
594
+ */
595
+ messagingPairingStart(requestJson?: string): Promise<string>;
596
+
597
+ /**
598
+ * `messaging.pairing.status` — whether a pairing is in flight on one channel
599
+ * and (host gated) the active code. `requestJson` is an optional
600
+ * `{ channel? }` selector (`"imessage"` | `"slack"`, default `"imessage"`).
601
+ * Returns `MessagingPairingStatusResponse` JSON.
602
+ */
603
+ messagingPairingStatus(requestJson?: string): Promise<string>;
604
+
605
+ /**
606
+ * `messaging.status` — the real runtime liveness of one channel's approval
607
+ * transport, computed daemon-side so a host UI can render a SINGLE readiness
608
+ * state (enabled · watcher running · FDA · paired) plus last-delivered +
609
+ * last-error. Host/local-auth gated. `requestJson` is an optional
610
+ * `{ channel? }` selector (`"imessage"` | `"slack"`, default `"imessage"`).
611
+ * Returns `MessagingStatusView` JSON.
612
+ */
613
+ messagingStatus(requestJson?: string): Promise<string>;
614
+
615
+ /**
616
+ * `messaging.test_send` — send a fixed, clearly-labeled self-test message to
617
+ * one channel's paired handle and return `{ ok, error }` synchronously. A
618
+ * pure send probe: it mints NO approval/pairing mapping and resolves nothing.
619
+ * Host/local-auth gated. `requestJson` is an optional `{ channel? }` selector
620
+ * (`"imessage"` | `"slack"`, default `"imessage"`). Returns
621
+ * `MessagingTestSendResponse` JSON.
622
+ */
623
+ messagingTestSend(requestJson?: string): Promise<string>;
624
+
557
625
  /**
558
626
  * Recommend models for this machine + intent. `useCase`/`tier` are
559
627
  * snake_case enum values (e.g. "coding", "most_capable"); `cloudOk` lets
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "car-runtime",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "Common Agent Runtime — a deterministic execution layer for AI agents",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",