@agi-cli/web-sdk 0.1.131 → 0.1.133
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/dist/components/chat/ChatInput.d.ts +2 -0
- package/dist/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/components/chat/ChatInput.js +7 -3
- package/dist/components/chat/ChatInput.js.map +1 -1
- package/dist/components/chat/ChatInputContainer.d.ts.map +1 -1
- package/dist/components/chat/ChatInputContainer.js +5 -1
- package/dist/components/chat/ChatInputContainer.js.map +1 -1
- package/dist/components/chat/UnifiedModelSelector.js +1 -1
- package/dist/components/chat/UnifiedModelSelector.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/settings/SettingsSidebar.d.ts +2 -0
- package/dist/components/settings/SettingsSidebar.d.ts.map +1 -0
- package/dist/components/settings/SettingsSidebar.js +97 -0
- package/dist/components/settings/SettingsSidebar.js.map +1 -0
- package/dist/components/settings/SettingsSidebarToggle.d.ts +2 -0
- package/dist/components/settings/SettingsSidebarToggle.d.ts.map +1 -0
- package/dist/components/settings/SettingsSidebarToggle.js +10 -0
- package/dist/components/settings/SettingsSidebarToggle.js.map +1 -0
- package/dist/components/ui/Toaster.d.ts.map +1 -1
- package/dist/components/ui/Toaster.js +3 -3
- package/dist/components/ui/Toaster.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useConfig.d.ts +13 -0
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useConfig.js +10 -1
- package/dist/hooks/useConfig.js.map +1 -1
- package/dist/hooks/useSolforgeBalance.d.ts +4 -0
- package/dist/hooks/useSolforgeBalance.d.ts.map +1 -0
- package/dist/hooks/useSolforgeBalance.js +53 -0
- package/dist/hooks/useSolforgeBalance.js.map +1 -0
- package/dist/hooks/useSolforgePayments.d.ts.map +1 -1
- package/dist/hooks/useSolforgePayments.js +13 -1
- package/dist/hooks/useSolforgePayments.js.map +1 -1
- package/dist/lib/api-client.d.ts +30 -0
- package/dist/lib/api-client.d.ts.map +1 -1
- package/dist/lib/api-client.js +67 -0
- package/dist/lib/api-client.js.map +1 -1
- package/dist/stores/gitStore.d.ts.map +1 -1
- package/dist/stores/gitStore.js +2 -0
- package/dist/stores/gitStore.js.map +1 -1
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +1 -0
- package/dist/stores/index.js.map +1 -1
- package/dist/stores/researchStore.d.ts.map +1 -1
- package/dist/stores/researchStore.js +3 -0
- package/dist/stores/researchStore.js.map +1 -1
- package/dist/stores/sessionFilesStore.d.ts.map +1 -1
- package/dist/stores/sessionFilesStore.js +3 -0
- package/dist/stores/sessionFilesStore.js.map +1 -1
- package/dist/stores/settingsStore.d.ts +9 -0
- package/dist/stores/settingsStore.d.ts.map +1 -0
- package/dist/stores/settingsStore.js +23 -0
- package/dist/stores/settingsStore.js.map +1 -0
- package/dist/stores/solforgeStore.d.ts +8 -0
- package/dist/stores/solforgeStore.d.ts.map +1 -1
- package/dist/stores/solforgeStore.js +8 -0
- package/dist/stores/solforgeStore.js.map +1 -1
- package/dist/stores/terminalStore.d.ts.map +1 -1
- package/dist/stores/terminalStore.js +2 -0
- package/dist/stores/terminalStore.js.map +1 -1
- package/dist/stores/toastStore.d.ts +8 -0
- package/dist/stores/toastStore.d.ts.map +1 -1
- package/dist/stores/toastStore.js +14 -0
- package/dist/stores/toastStore.js.map +1 -1
- package/package.json +4 -3
|
@@ -5,6 +5,10 @@ export interface Toast {
|
|
|
5
5
|
type: ToastType;
|
|
6
6
|
duration?: number;
|
|
7
7
|
icon?: string;
|
|
8
|
+
action?: {
|
|
9
|
+
label: string;
|
|
10
|
+
href: string;
|
|
11
|
+
};
|
|
8
12
|
}
|
|
9
13
|
interface ToastState {
|
|
10
14
|
toasts: Toast[];
|
|
@@ -19,6 +23,10 @@ export declare namespace toast {
|
|
|
19
23
|
var success: (message: string, duration?: number) => string;
|
|
20
24
|
var error: (message: string, duration?: number) => string;
|
|
21
25
|
var loading: (message: string) => string;
|
|
26
|
+
var successWithAction: (message: string, action: {
|
|
27
|
+
label: string;
|
|
28
|
+
href: string;
|
|
29
|
+
}, duration?: number) => string;
|
|
22
30
|
}
|
|
23
31
|
export {};
|
|
24
32
|
//# sourceMappingURL=toastStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toastStore.d.ts","sourceRoot":"","sources":["../../src/stores/toastStore.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpE,MAAM,WAAW,KAAK;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"toastStore.d.ts","sourceRoot":"","sources":["../../src/stores/toastStore.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpE,MAAM,WAAW,KAAK;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACb,CAAC;CACF;AAED,UAAU,UAAU;IACnB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,MAAM,CAAC;IAC/C,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC;IACvE,WAAW,EAAE,MAAM,IAAI,CAAC;CACxB;AAID,eAAO,MAAM,aAAa,yEAkBvB,CAAC;AAEJ,wBAAgB,KAAK,CACpB,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,SAAqB,EAC3B,QAAQ,SAAO,UASf;yBAZe,KAAK;2BAcK,MAAM;yBAER,MAAM;2BAEJ,MAAM;qCAGtB,MAAM,UACP;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE"}
|
|
@@ -29,4 +29,18 @@ export function toast(message, type = 'default', duration = 4000) {
|
|
|
29
29
|
toast.success = (message, duration = 4000) => toast(message, 'success', duration);
|
|
30
30
|
toast.error = (message, duration = 5000) => toast(message, 'error', duration);
|
|
31
31
|
toast.loading = (message) => toast(message, 'loading', 0);
|
|
32
|
+
toast.successWithAction = (message, action, duration = 6000) => {
|
|
33
|
+
const id = useToastStore.getState().addToast({
|
|
34
|
+
message,
|
|
35
|
+
type: 'success',
|
|
36
|
+
duration,
|
|
37
|
+
action,
|
|
38
|
+
});
|
|
39
|
+
if (duration > 0) {
|
|
40
|
+
setTimeout(() => {
|
|
41
|
+
useToastStore.getState().removeToast(id);
|
|
42
|
+
}, duration);
|
|
43
|
+
}
|
|
44
|
+
return id;
|
|
45
|
+
};
|
|
32
46
|
//# sourceMappingURL=toastStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toastStore.js","sourceRoot":"","sources":["../../src/stores/toastStore.ts"],"names":[],"mappings":"AA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AAQ,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAC1C,CAAC,EAAE,QAAQ,CAAC,CAAC;IACd,CAAC;IACD,OAAO,EAAE,CAAC;AACX,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agi-cli/web-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.133",
|
|
4
4
|
"description": "Reusable React components, hooks, and utilities for building AGI CLI web interfaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -58,12 +58,13 @@
|
|
|
58
58
|
"directory": "packages/web-sdk"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@agi-cli/api": "0.1.
|
|
61
|
+
"@agi-cli/api": "0.1.133",
|
|
62
62
|
"@xterm/addon-fit": "^0.10.0",
|
|
63
63
|
"@xterm/addon-unicode11": "^0.8.0",
|
|
64
64
|
"@xterm/xterm": "^5.5.0",
|
|
65
65
|
"axios": "^1.7.9",
|
|
66
|
-
"fuse.js": "^7.1.0"
|
|
66
|
+
"fuse.js": "^7.1.0",
|
|
67
|
+
"qrcode.react": "^4.2.0"
|
|
67
68
|
},
|
|
68
69
|
"peerDependencies": {
|
|
69
70
|
"react": "^18.0.0 || ^19.0.0",
|