@soba-so/react 0.0.19 → 0.0.21
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 +1 -1
- package/dist/ConnectPill.d.ts +31 -0
- package/dist/SobaProvider.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +594 -194
- package/dist/styles.css +587 -187
- package/dist/types.d.ts +5 -0
- package/dist/useConnectButton.d.ts +10 -6
- package/dist/useMachineRuns.d.ts +1 -1
- package/package.json +9 -8
package/dist/types.d.ts
CHANGED
|
@@ -12,6 +12,11 @@ export interface Runtime {
|
|
|
12
12
|
display_name: string;
|
|
13
13
|
version: string | null;
|
|
14
14
|
models: string[];
|
|
15
|
+
/** Which of them answers a run that names none — the owner's own pick, as
|
|
16
|
+
* of the machine's last `hello`. `/v1/machines` carries it, so it is
|
|
17
|
+
* vendored here rather than left to the dashboard. Null or absent where
|
|
18
|
+
* nothing is picked, or where the machine's worker predates the field. */
|
|
19
|
+
default_model?: string | null;
|
|
15
20
|
cost_class: CostClass;
|
|
16
21
|
supports_tools: boolean;
|
|
17
22
|
/**
|
|
@@ -52,17 +52,21 @@ export interface ConnectButtonView {
|
|
|
52
52
|
}
|
|
53
53
|
export declare function useConnectButton(): ConnectButtonView;
|
|
54
54
|
/**
|
|
55
|
-
* WHAT
|
|
56
|
-
*
|
|
55
|
+
* WHAT A CONTROL SAYS ABOUT ONE MACHINE — the rule itself, with no hooks in it,
|
|
56
|
+
* because `<ConnectPill />` cannot read it off the hook above.
|
|
57
57
|
*
|
|
58
58
|
* While its panel is open the pill's state is THIS APP'S RUNS rather than the
|
|
59
59
|
* machine's own counters: the run list is read every three seconds and is
|
|
60
60
|
* exactly this app's, where `state` and `active` arrive by heartbeat and count
|
|
61
|
-
* every app on that laptop. So
|
|
62
|
-
* for those few seconds, and a hook reading the provider cannot.
|
|
61
|
+
* every app on that laptop. So `<ConnectButton />` substitutes its own machine
|
|
62
|
+
* list for those few seconds, and a hook reading the provider cannot.
|
|
63
63
|
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
64
|
+
* THE BODY IS THE KIT'S NOW. It was defined here, which put it one package
|
|
65
|
+
* above the only two functions it is made of and out of reach of the other
|
|
66
|
+
* surface that draws this pill — the dashboard's bar, which spelled the same
|
|
67
|
+
* four lines out by hand. It moved down beside `stateWord` and `machineName`;
|
|
68
|
+
* this stays as the published face of it, so the declaration a customer
|
|
69
|
+
* installs names types from this package rather than from a private one.
|
|
66
70
|
*/
|
|
67
71
|
export declare function connectSays(machine: Machine | null): {
|
|
68
72
|
label: string;
|
package/dist/useMachineRuns.d.ts
CHANGED
|
@@ -21,4 +21,4 @@ export interface MachineRunsView {
|
|
|
21
21
|
* the "Running now" list in `<ConnectButton />`'s panel, without the panel.
|
|
22
22
|
* Needs `<SobaProvider>`; outside one, `runs` stays null and `stop` rejects.
|
|
23
23
|
*/
|
|
24
|
-
export declare function useMachineRuns({ enabled, intervalMs }?: MachineRunsOptions): MachineRunsView;
|
|
24
|
+
export declare function useMachineRuns({ enabled, intervalMs, }?: MachineRunsOptions): MachineRunsView;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soba-so/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "Connect the AI your users already pay for, from your own React app.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://soba.so/docs/components",
|
|
@@ -19,13 +19,18 @@
|
|
|
19
19
|
"!dist/**/*.map",
|
|
20
20
|
"README.md"
|
|
21
21
|
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "node ../../scripts/build-react.mjs",
|
|
24
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
25
|
+
"prepublishOnly": "node ../../scripts/build-react.mjs"
|
|
26
|
+
},
|
|
22
27
|
"peerDependencies": {
|
|
23
28
|
"react": ">=18"
|
|
24
29
|
},
|
|
25
30
|
"devDependencies": {
|
|
31
|
+
"@soba-so/connect-ui": "workspace:*",
|
|
26
32
|
"@types/react": "^19.0.0",
|
|
27
|
-
"typescript": "^7.0.2"
|
|
28
|
-
"@soba-so/connect-ui": "0.1.0"
|
|
33
|
+
"typescript": "^7.0.2"
|
|
29
34
|
},
|
|
30
35
|
"engines": {
|
|
31
36
|
"node": ">=22"
|
|
@@ -39,9 +44,5 @@
|
|
|
39
44
|
],
|
|
40
45
|
"publishConfig": {
|
|
41
46
|
"access": "public"
|
|
42
|
-
},
|
|
43
|
-
"scripts": {
|
|
44
|
-
"build": "node ../../scripts/build-react.mjs",
|
|
45
|
-
"typecheck": "tsc -p tsconfig.json"
|
|
46
47
|
}
|
|
47
|
-
}
|
|
48
|
+
}
|