@soba-so/react 0.0.13 → 0.0.15
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 +9 -2
- package/dist/RunError.d.ts +66 -0
- package/dist/SobaProvider.d.ts +5 -2
- package/dist/context.d.ts +10 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +405 -146
- package/dist/session.d.ts +3 -0
- package/dist/styles.css +400 -141
- package/dist/types.d.ts +15 -1
- package/package.json +8 -9
package/dist/types.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ export interface Runtime {
|
|
|
38
38
|
export interface Machine {
|
|
39
39
|
id: string;
|
|
40
40
|
label: string | null;
|
|
41
|
+
/** The hostname the worker reported, beside the label it is folded into —
|
|
42
|
+
* `label` is `label ?? name` on the wire, so only the pair tells a chosen
|
|
43
|
+
* name from a DNS label. Optional: an older gateway does not send it. */
|
|
44
|
+
name?: string | null;
|
|
41
45
|
platform: string | null;
|
|
42
46
|
arch: string | null;
|
|
43
47
|
version: string | null;
|
|
@@ -77,7 +81,7 @@ export interface ConnectContext {
|
|
|
77
81
|
name: string;
|
|
78
82
|
};
|
|
79
83
|
publishable_key: string | null;
|
|
80
|
-
/** The link a person pastes into Soba
|
|
84
|
+
/** The link a person pastes into the Soba app. */
|
|
81
85
|
connect_url: string | null;
|
|
82
86
|
/** Retired: always null. There is no pairing command any more. */
|
|
83
87
|
command: string | null;
|
|
@@ -107,6 +111,16 @@ export interface Plan {
|
|
|
107
111
|
* component has, and the reason these plans are worth rendering from data. */
|
|
108
112
|
route_prefer: string[];
|
|
109
113
|
route_allow: string[] | null;
|
|
114
|
+
/**
|
|
115
|
+
* WHETHER THIS PLAN ASKS FOR A MACHINE when its routing already prefers one
|
|
116
|
+
* and the app's own compute would serve the run anyway.
|
|
117
|
+
*
|
|
118
|
+
* Optional, so an older server that does not send it still parses — and
|
|
119
|
+
* `undefined` reads as true, which is what those servers do. Only the
|
|
120
|
+
* preference branch of `<ConnectNudge />` consults it: a plan that cannot run
|
|
121
|
+
* at all, and a machine that has gone quiet, are reported either way.
|
|
122
|
+
*/
|
|
123
|
+
ask_to_connect?: boolean;
|
|
110
124
|
/** Whether it can be taken without a payment rail. */
|
|
111
125
|
selectable: boolean;
|
|
112
126
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soba-so/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
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,18 +19,13 @@
|
|
|
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
|
-
},
|
|
27
22
|
"peerDependencies": {
|
|
28
23
|
"react": ">=18"
|
|
29
24
|
},
|
|
30
25
|
"devDependencies": {
|
|
31
|
-
"@soba-so/connect-ui": "workspace:*",
|
|
32
26
|
"@types/react": "^19.0.0",
|
|
33
|
-
"typescript": "^7.0.2"
|
|
27
|
+
"typescript": "^7.0.2",
|
|
28
|
+
"@soba-so/connect-ui": "0.1.0"
|
|
34
29
|
},
|
|
35
30
|
"engines": {
|
|
36
31
|
"node": ">=22"
|
|
@@ -44,5 +39,9 @@
|
|
|
44
39
|
],
|
|
45
40
|
"publishConfig": {
|
|
46
41
|
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "node ../../scripts/build-react.mjs",
|
|
45
|
+
"typecheck": "tsc -p tsconfig.json"
|
|
47
46
|
}
|
|
48
|
-
}
|
|
47
|
+
}
|