@agent-native/core 0.201.1 → 0.202.0-nightly-20261006033736
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/automation/index.d.ts +1 -1
- package/dist/client/analytics/index.d.ts +1 -1
- package/dist/client/analytics/index.js +1 -1
- package/dist/client/analytics.d.ts +23 -3
- package/dist/client/analytics.js +189 -46
- package/dist/client/client-status-requests.d.ts +4 -1
- package/dist/client/client-status-requests.js +21 -5
- package/dist/client/embed-auth.d.ts +6 -0
- package/dist/client/embed-auth.js +13 -0
- package/dist/client/session-replay.js +48 -22
- package/dist/client/sharing/index.d.ts +2 -0
- package/dist/client/sharing/index.js +2 -0
- package/dist/client/sharing/useAccessRequestReview.d.ts +80 -0
- package/dist/client/sharing/useAccessRequestReview.js +100 -0
- package/dist/client/sharing/useResourceAccessGate.d.ts +57 -0
- package/dist/client/sharing/useResourceAccessGate.js +76 -0
- package/dist/client/use-agent-engine-configured.d.ts +2 -0
- package/dist/client/use-agent-engine-configured.js +4 -1
- package/dist/email-catalog/registry.d.ts +1 -1
- package/dist/email-catalog/registry.js +1 -1
- package/dist/email-catalog/system-emails.d.ts +2 -2
- package/dist/email-catalog/system-emails.js +47 -2
- package/dist/email-catalog/templates.d.ts +5 -1
- package/dist/email-catalog/templates.js +11 -1
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/framework-tools.js +6 -0
- package/dist/identity/rekey.js +9 -0
- package/dist/jobs/run-history.d.ts +27 -8
- package/dist/jobs/run-history.js +17 -10
- package/dist/jobs/scheduler.js +39 -10
- package/dist/mcp/build-server.d.ts +1 -0
- package/dist/mcp/build-server.js +30 -7
- package/dist/mcp/screen-memory-stdio.d.ts +7 -7
- package/dist/notifications/routes.d.ts +2 -2
- package/dist/observability/routes.d.ts +7 -7
- package/dist/org/index.d.ts +1 -1
- package/dist/progress/routes.d.ts +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +10 -10
- package/dist/provider-api/actions/provider-api.d.ts +11 -11
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/review/suggestions/actions.js +14 -35
- package/dist/review/suggestions/store.d.ts +0 -1
- package/dist/review/suggestions/store.js +0 -7
- package/dist/secrets/routes.d.ts +11 -11
- package/dist/server/action-discovery.js +24 -0
- package/dist/server/agent-access.js +7 -3
- package/dist/server/agent-chat/mcp-options.d.ts +1 -0
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/agent-engine-default-model-route.d.ts +1 -1
- package/dist/server/agent-engine-ollama-models-route.d.ts +1 -1
- package/dist/server/attribution.d.ts +33 -1
- package/dist/server/attribution.js +93 -21
- package/dist/server/auth.js +35 -11
- package/dist/server/email-templates.d.ts +34 -0
- package/dist/server/email-templates.js +40 -0
- package/dist/server/magic-link-attribution.js +2 -1
- package/dist/server/onboarding-html.js +35 -67
- package/dist/server/release-schema.js +4 -0
- package/dist/server/short-lived-token.d.ts +7 -0
- package/dist/server/short-lived-token.js +59 -0
- package/dist/shared/analytics-anonymous-id.d.ts +1 -0
- package/dist/shared/analytics-anonymous-id.js +1 -1
- package/dist/shared/attribution-source.d.ts +30 -0
- package/dist/shared/attribution-source.js +65 -0
- package/dist/sharing/access-request-store.d.ts +96 -0
- package/dist/sharing/access-request-store.js +213 -0
- package/dist/sharing/access-requests.d.ts +113 -0
- package/dist/sharing/access-requests.js +490 -0
- package/dist/sharing/access.d.ts +36 -2
- package/dist/sharing/access.js +74 -12
- package/dist/sharing/actions/approve-resource-access-request.d.ts +10 -0
- package/dist/sharing/actions/approve-resource-access-request.js +15 -0
- package/dist/sharing/actions/decline-resource-access-request.d.ts +7 -0
- package/dist/sharing/actions/decline-resource-access-request.js +14 -0
- package/dist/sharing/actions/get-resource-access-request.d.ts +4 -0
- package/dist/sharing/actions/get-resource-access-request.js +13 -0
- package/dist/sharing/actions/get-resource-access-status.d.ts +5 -0
- package/dist/sharing/actions/get-resource-access-status.js +19 -0
- package/dist/sharing/actions/list-resource-access-requests.d.ts +5 -0
- package/dist/sharing/actions/list-resource-access-requests.js +16 -0
- package/dist/sharing/actions/list-resource-shares.d.ts +1 -1
- package/dist/sharing/actions/request-resource-access.d.ts +6 -0
- package/dist/sharing/actions/request-resource-access.js +17 -0
- package/dist/sharing/actions/share-resource.d.ts +1 -1
- package/dist/sharing/actions/share-resource.js +18 -144
- package/dist/sharing/grant.d.ts +49 -0
- package/dist/sharing/grant.js +195 -0
- package/dist/sharing/index.d.ts +2 -1
- package/dist/sharing/index.js +2 -1
- package/dist/sharing/registry.d.ts +36 -0
- package/dist/templates/chat/server/plugins/auth.ts +2 -2
- package/dist/templates/default/app/routes/access-requests.$requestId.tsx +7 -0
- package/dist/templates/default/server/plugins/auth.ts +2 -2
- package/dist/vite/action-types-plugin.js +24 -0
- package/package.json +11 -3
- package/src/templates/chat/server/plugins/auth.ts +2 -2
- package/src/templates/default/app/routes/access-requests.$requestId.tsx +7 -0
- package/src/templates/default/server/plugins/auth.ts +2 -2
|
@@ -70,6 +70,42 @@ export interface ShareableResourceRegistration {
|
|
|
70
70
|
authCapability?: string;
|
|
71
71
|
};
|
|
72
72
|
ownerAccessIgnoresOrg?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Whether a row still counts as an openable resource, for example not in
|
|
75
|
+
* the trash. `columns` are the resource-table keys `isAvailable` reads;
|
|
76
|
+
* they join the lightweight access projection. A row that fails the rule
|
|
77
|
+
* reads as missing to anyone who can't open it, and as trashed to anyone
|
|
78
|
+
* who can. Omit it when every row is available.
|
|
79
|
+
*/
|
|
80
|
+
availability?: {
|
|
81
|
+
columns: readonly string[];
|
|
82
|
+
isAvailable: (resource: any) => boolean;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Lets signed-in people who can't open a resource of this type ask its
|
|
86
|
+
* owner and admins for access. Off by default, so an app only starts
|
|
87
|
+
* emailing owners once its access screen offers the request.
|
|
88
|
+
*/
|
|
89
|
+
accessRequests?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* A context that can open the resource when the viewer's own can't, such
|
|
92
|
+
* as the authority a Content space lends its members. Only a link's status
|
|
93
|
+
* reads it, so such a viewer hears that a page is in the trash instead of
|
|
94
|
+
* missing; `resolveAccess` and the share actions use the viewer's own
|
|
95
|
+
* context, and the app applies the grant in its own access helpers.
|
|
96
|
+
* `columns` are the resource-table keys `resolve` reads; they join the
|
|
97
|
+
* lightweight access projection, so `resolve` gets the row already loaded.
|
|
98
|
+
*/
|
|
99
|
+
fallbackAccessContext?: {
|
|
100
|
+
columns: readonly string[];
|
|
101
|
+
resolve: (resource: any, ctx: {
|
|
102
|
+
userEmail?: string;
|
|
103
|
+
orgId?: string;
|
|
104
|
+
}) => Promise<{
|
|
105
|
+
userEmail?: string;
|
|
106
|
+
orgId?: string;
|
|
107
|
+
} | null>;
|
|
108
|
+
};
|
|
73
109
|
agentReadable?: false | {
|
|
74
110
|
resourceKind: string;
|
|
75
111
|
getContextPath: (resource: any) => string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createToolkitAuthPlugin } from "@agent-native/toolkit/app/auth/server";
|
|
2
2
|
|
|
3
|
-
export default
|
|
3
|
+
export default createToolkitAuthPlugin({
|
|
4
4
|
workspaceAppPublicPaths: ["/"],
|
|
5
5
|
rootAuth: true,
|
|
6
6
|
marketing: false,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AccessRequestApprovalPage } from "@agent-native/toolkit/app/sharing";
|
|
2
|
+
|
|
3
|
+
// Where access request emails and notifications lead. Opt a resource into
|
|
4
|
+
// requests with `accessRequests: true` on its `registerShareableResource`.
|
|
5
|
+
export default function AccessRequestRoute() {
|
|
6
|
+
return <AccessRequestApprovalPage landmark />;
|
|
7
|
+
}
|
|
@@ -113,6 +113,30 @@ const CORE_SHARING_ACTIONS = [
|
|
|
113
113
|
name: "list-resource-shares",
|
|
114
114
|
specifier: "@agent-native/core/sharing/actions/list-resource-shares",
|
|
115
115
|
},
|
|
116
|
+
{
|
|
117
|
+
name: "get-resource-access-status",
|
|
118
|
+
specifier: "@agent-native/core/sharing/actions/get-resource-access-status",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "request-resource-access",
|
|
122
|
+
specifier: "@agent-native/core/sharing/actions/request-resource-access",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "get-resource-access-request",
|
|
126
|
+
specifier: "@agent-native/core/sharing/actions/get-resource-access-request",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "list-resource-access-requests",
|
|
130
|
+
specifier: "@agent-native/core/sharing/actions/list-resource-access-requests",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "approve-resource-access-request",
|
|
134
|
+
specifier: "@agent-native/core/sharing/actions/approve-resource-access-request",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: "decline-resource-access-request",
|
|
138
|
+
specifier: "@agent-native/core/sharing/actions/decline-resource-access-request",
|
|
139
|
+
},
|
|
116
140
|
{
|
|
117
141
|
name: "set-resource-visibility",
|
|
118
142
|
specifier: "@agent-native/core/sharing/actions/set-resource-visibility",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.202.0-nightly-20261006033736",
|
|
4
4
|
"description": "The agentic application framework for building autonomous agents with intuitive UIs",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -364,6 +364,12 @@
|
|
|
364
364
|
"./sharing/actions/share-resource": "./dist/sharing/actions/share-resource.js",
|
|
365
365
|
"./sharing/actions/unshare-resource": "./dist/sharing/actions/unshare-resource.js",
|
|
366
366
|
"./sharing/actions/list-resource-shares": "./dist/sharing/actions/list-resource-shares.js",
|
|
367
|
+
"./sharing/actions/get-resource-access-status": "./dist/sharing/actions/get-resource-access-status.js",
|
|
368
|
+
"./sharing/actions/request-resource-access": "./dist/sharing/actions/request-resource-access.js",
|
|
369
|
+
"./sharing/actions/get-resource-access-request": "./dist/sharing/actions/get-resource-access-request.js",
|
|
370
|
+
"./sharing/actions/list-resource-access-requests": "./dist/sharing/actions/list-resource-access-requests.js",
|
|
371
|
+
"./sharing/actions/approve-resource-access-request": "./dist/sharing/actions/approve-resource-access-request.js",
|
|
372
|
+
"./sharing/actions/decline-resource-access-request": "./dist/sharing/actions/decline-resource-access-request.js",
|
|
367
373
|
"./sharing/actions/set-resource-visibility": "./dist/sharing/actions/set-resource-visibility.js",
|
|
368
374
|
"./sharing/actions/create-agent-resource-link": "./dist/sharing/actions/create-agent-resource-link.js",
|
|
369
375
|
"./client/sharing": "./dist/client/sharing/index.js",
|
|
@@ -526,6 +532,8 @@
|
|
|
526
532
|
"./client/review/use-review": "./dist/client/review/use-review.js",
|
|
527
533
|
"./client/settings": "./dist/client/tombstone/settings.js",
|
|
528
534
|
"./client/sharing/share-controller-helpers": "./dist/client/sharing/share-controller-helpers.js",
|
|
535
|
+
"./client/sharing/useAccessRequestReview": "./dist/client/sharing/useAccessRequestReview.js",
|
|
536
|
+
"./client/sharing/useResourceAccessGate": "./dist/client/sharing/useResourceAccessGate.js",
|
|
529
537
|
"./client/sharing/useShareButtonController": "./dist/client/sharing/useShareButtonController.js",
|
|
530
538
|
"./client/sharing/useShareDialogController": "./dist/client/sharing/useShareDialogController.js",
|
|
531
539
|
"./client/sign-in-return": "./dist/client/sign-in-return.js",
|
|
@@ -671,7 +679,7 @@
|
|
|
671
679
|
"yaml": "^2.9.0",
|
|
672
680
|
"yjs": "^13.6.33",
|
|
673
681
|
"zod": "^4.3.6",
|
|
674
|
-
"@agent-native/agentkit": "^0.
|
|
682
|
+
"@agent-native/agentkit": "^0.202.0-nightly-20261006033736",
|
|
675
683
|
"@agent-native/recap-cli": "^0.5.62"
|
|
676
684
|
},
|
|
677
685
|
"devDependencies": {
|
|
@@ -742,7 +750,7 @@
|
|
|
742
750
|
"xlsx": "^0.18.5"
|
|
743
751
|
},
|
|
744
752
|
"peerDependencies": {
|
|
745
|
-
"@agent-native/core-corpus": "
|
|
753
|
+
"@agent-native/core-corpus": "0.202.0-nightly-20261006033736",
|
|
746
754
|
"@ai-sdk/anthropic": ">=3",
|
|
747
755
|
"@ai-sdk/cohere": ">=3",
|
|
748
756
|
"@ai-sdk/google": ">=3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createToolkitAuthPlugin } from "@agent-native/toolkit/app/auth/server";
|
|
2
2
|
|
|
3
|
-
export default
|
|
3
|
+
export default createToolkitAuthPlugin({
|
|
4
4
|
workspaceAppPublicPaths: ["/"],
|
|
5
5
|
rootAuth: true,
|
|
6
6
|
marketing: false,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AccessRequestApprovalPage } from "@agent-native/toolkit/app/sharing";
|
|
2
|
+
|
|
3
|
+
// Where access request emails and notifications lead. Opt a resource into
|
|
4
|
+
// requests with `accessRequests: true` on its `registerShareableResource`.
|
|
5
|
+
export default function AccessRequestRoute() {
|
|
6
|
+
return <AccessRequestApprovalPage landmark />;
|
|
7
|
+
}
|