@agent-native/core 0.172.8 → 0.172.9
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/client/org/workspace-app-links.d.ts +1 -0
- package/dist/client/org/workspace-app-links.js +18 -7
- package/dist/collab/routes.d.ts +1 -1
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/progress/routes.d.ts +1 -1
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/secrets/routes.d.ts +6 -6
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ export declare function isWorkspaceAppEnvironment(env?: RuntimeEnv): boolean;
|
|
|
20
20
|
export declare function dispatchOverviewHref(apps: OrgSwitcherAppLink[], env?: RuntimeEnv): string;
|
|
21
21
|
export declare function dispatchAppsHref(apps: OrgSwitcherAppLink[], env?: RuntimeEnv): string;
|
|
22
22
|
export declare function visibleOrgAppLinks(apps: OrgSwitcherAppLink[], max?: number): VisibleOrgAppLinks;
|
|
23
|
+
export declare function workspaceAppFetchUrls(env: RuntimeEnv): string[];
|
|
23
24
|
export interface UseOrgSwitcherAppLinksResult {
|
|
24
25
|
apps: OrgSwitcherAppLink[];
|
|
25
26
|
isWorkspace: boolean;
|
|
@@ -203,7 +203,7 @@ export function visibleOrgAppLinks(apps, max = ORG_SWITCHER_MAX_APP_LINKS) {
|
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
function initialWorkspaceLinks(env) {
|
|
206
|
-
return
|
|
206
|
+
return [
|
|
207
207
|
{
|
|
208
208
|
id: DISPATCH_ID,
|
|
209
209
|
name: "Dispatch",
|
|
@@ -213,20 +213,31 @@ function initialWorkspaceLinks(env) {
|
|
|
213
213
|
isDispatch: true,
|
|
214
214
|
status: "ready",
|
|
215
215
|
},
|
|
216
|
-
]
|
|
216
|
+
];
|
|
217
217
|
}
|
|
218
|
-
function workspaceAppFetchUrls(env) {
|
|
219
|
-
const urls = [
|
|
218
|
+
export function workspaceAppFetchUrls(env) {
|
|
219
|
+
const urls = [
|
|
220
|
+
"/_agent-native/actions/list-workspace-apps?includeAgentCards=false",
|
|
221
|
+
];
|
|
220
222
|
const gatewayUrl = envString(env, "VITE_WORKSPACE_GATEWAY_URL");
|
|
221
223
|
if (gatewayUrl) {
|
|
222
224
|
try {
|
|
223
|
-
|
|
225
|
+
const gateway = new URL(gatewayUrl);
|
|
226
|
+
const localGateway = [
|
|
227
|
+
"localhost",
|
|
228
|
+
"127.0.0.1",
|
|
229
|
+
"0.0.0.0",
|
|
230
|
+
"::1",
|
|
231
|
+
].includes(gateway.hostname.replace(/^\[|\]$/g, "").toLowerCase());
|
|
232
|
+
if (localGateway) {
|
|
233
|
+
urls.push(new URL("/_workspace/apps", `${stripTrailingSlash(gatewayUrl)}/`).toString());
|
|
234
|
+
}
|
|
224
235
|
}
|
|
225
236
|
catch {
|
|
226
|
-
//
|
|
237
|
+
// coercion-ok: malformed gateway URL leaves the authenticated action as
|
|
238
|
+
// the only hosted source.
|
|
227
239
|
}
|
|
228
240
|
}
|
|
229
|
-
urls.push("/_agent-native/actions/list-workspace-apps?includeAgentCards=false");
|
|
230
241
|
return urls;
|
|
231
242
|
}
|
|
232
243
|
export function useOrgSwitcherAppLinks(enabled) {
|
package/dist/collab/routes.d.ts
CHANGED
|
@@ -26,8 +26,8 @@ export declare const getCollabState: import("h3").EventHandlerWithFetch<import("
|
|
|
26
26
|
* Body: { update: string (base64), requestSource?: string }
|
|
27
27
|
*/
|
|
28
28
|
export declare const postCollabUpdate: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
29
|
-
ok?: undefined;
|
|
30
29
|
error: string;
|
|
30
|
+
ok?: undefined;
|
|
31
31
|
} | {
|
|
32
32
|
error?: undefined;
|
|
33
33
|
ok: boolean;
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* Body: { json: any, fieldName?: string, type?: "map"|"array", requestSource?: string }
|
|
14
14
|
*/
|
|
15
15
|
export declare const postCollabJson: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
16
|
-
ok?: undefined;
|
|
17
16
|
error: string;
|
|
17
|
+
ok?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
error?: undefined;
|
|
20
20
|
ok: boolean;
|
|
@@ -48,8 +48,8 @@ export declare function handleUpdateResource(event: any): Promise<import("./stor
|
|
|
48
48
|
}>;
|
|
49
49
|
/** DELETE /_agent-native/resources/:id — delete a resource */
|
|
50
50
|
export declare function handleDeleteResource(event: any): Promise<{
|
|
51
|
-
ok?: undefined;
|
|
52
51
|
error: string;
|
|
52
|
+
ok?: undefined;
|
|
53
53
|
} | {
|
|
54
54
|
error?: undefined;
|
|
55
55
|
ok: boolean;
|
package/dist/secrets/routes.d.ts
CHANGED
|
@@ -37,17 +37,17 @@ export declare function createWriteSecretHandler(): import("h3").EventHandlerWit
|
|
|
37
37
|
ok?: undefined;
|
|
38
38
|
status?: undefined;
|
|
39
39
|
} | {
|
|
40
|
+
error?: undefined;
|
|
40
41
|
ok: boolean;
|
|
41
42
|
status: string;
|
|
42
|
-
error?: undefined;
|
|
43
43
|
} | {
|
|
44
44
|
ok?: undefined;
|
|
45
45
|
error: string;
|
|
46
46
|
removed?: undefined;
|
|
47
47
|
} | {
|
|
48
|
+
error?: undefined;
|
|
48
49
|
ok: boolean;
|
|
49
50
|
removed: boolean;
|
|
50
|
-
error?: undefined;
|
|
51
51
|
}>>;
|
|
52
52
|
/**
|
|
53
53
|
* POST /_agent-native/secrets/:key/test — validate an optional candidate value
|
|
@@ -58,13 +58,13 @@ export declare function createTestSecretHandler(): import("h3").EventHandlerWith
|
|
|
58
58
|
error: string;
|
|
59
59
|
note?: undefined;
|
|
60
60
|
} | {
|
|
61
|
+
error?: undefined;
|
|
61
62
|
ok: boolean;
|
|
62
63
|
note?: undefined;
|
|
63
|
-
error?: undefined;
|
|
64
64
|
} | {
|
|
65
|
+
error?: undefined;
|
|
65
66
|
ok: boolean;
|
|
66
67
|
note: string;
|
|
67
|
-
error?: undefined;
|
|
68
68
|
} | {
|
|
69
69
|
note?: undefined;
|
|
70
70
|
ok: boolean;
|
|
@@ -95,11 +95,11 @@ export interface AdHocSecretPayload {
|
|
|
95
95
|
export declare function createAdHocSecretHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<AdHocSecretPayload[] | {
|
|
96
96
|
error: string;
|
|
97
97
|
} | {
|
|
98
|
+
error?: undefined;
|
|
98
99
|
ok: boolean;
|
|
99
100
|
key: string;
|
|
100
|
-
error?: undefined;
|
|
101
101
|
} | {
|
|
102
|
+
error?: undefined;
|
|
102
103
|
ok: boolean;
|
|
103
104
|
removed: boolean;
|
|
104
|
-
error?: undefined;
|
|
105
105
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.172.
|
|
3
|
+
"version": "0.172.9",
|
|
4
4
|
"description": "Framework for agent-native application development — where AI agents and UI share SQL state, actions, and context",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|