@tangle-network/agent-app 1.0.26 → 2.0.0
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/assistant/index.js +4 -4
- package/dist/chat-react/index.js +3 -3
- package/dist/chat-routes/index.js +3 -3
- package/dist/{chunk-NZMP7PFG.js → chunk-7IVRHG3L.js} +3 -3
- package/dist/{chunk-XCUT52I3.js → chunk-GLZMHETS.js} +2 -2
- package/dist/chunk-GLZMHETS.js.map +1 -0
- package/dist/{chunk-Z5Y6OYAP.js → chunk-HFCPHY5D.js} +2 -2
- package/dist/{chunk-OZWHBH4T.js → chunk-HFWKZHTZ.js} +21 -5
- package/dist/chunk-HFWKZHTZ.js.map +1 -0
- package/dist/{chunk-OVVVGEF6.js → chunk-MS5S4IVF.js} +2 -2
- package/dist/{chunk-B2X2GGV5.js → chunk-PKBNDVGR.js} +2 -2
- package/dist/{chunk-RCSAAWOH.js → chunk-SUWAECFT.js} +2 -1
- package/dist/chunk-SUWAECFT.js.map +1 -0
- package/dist/harness/index.js +1 -1
- package/dist/hosted-agent/react/index.js +1 -1
- package/dist/hosted-agent/react/index.js.map +1 -1
- package/dist/public-consultation/index.js +3 -3
- package/dist/sandbox/index.js +2 -2
- package/dist/sandbox/prompt-profile.d.ts +1 -1
- package/dist/settings-react/index.js +146 -93
- package/dist/settings-react/index.js.map +1 -1
- package/dist/skills-placement/box.js +2 -2
- package/dist/skills-placement/index.js +2 -2
- package/dist/teams/index.d.ts +2 -2
- package/dist/teams-react/components/index.d.ts +0 -2
- package/dist/teams-react/components/invitation-detail.d.ts +1 -1
- package/dist/teams-react/components/member-access.d.ts +2 -2
- package/dist/teams-react/contracts.d.ts +3 -68
- package/dist/teams-react/index.d.ts +5 -6
- package/dist/teams-react/index.js +46 -335
- package/dist/teams-react/index.js.map +1 -1
- package/dist/web-react/agent-profile-editor.js +3 -3
- package/dist/web-react/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunk-OZWHBH4T.js.map +0 -1
- package/dist/chunk-RCSAAWOH.js.map +0 -1
- package/dist/chunk-XCUT52I3.js.map +0 -1
- package/dist/chunk-YL5JDX7K.js +0 -70
- package/dist/chunk-YL5JDX7K.js.map +0 -1
- package/dist/stories/settings/team-panels-demo.d.ts +0 -21
- package/dist/teams-react/components/InvitationsPanel.d.ts +0 -13
- package/dist/teams-react/components/InviteForm.d.ts +0 -20
- package/dist/teams-react/components/MembersPanel.d.ts +0 -18
- /package/dist/{chunk-NZMP7PFG.js.map → chunk-7IVRHG3L.js.map} +0 -0
- /package/dist/{chunk-Z5Y6OYAP.js.map → chunk-HFCPHY5D.js.map} +0 -0
- /package/dist/{chunk-OVVVGEF6.js.map → chunk-MS5S4IVF.js.map} +0 -0
- /package/dist/{chunk-B2X2GGV5.js.map → chunk-PKBNDVGR.js.map} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveSkillDir
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-GLZMHETS.js";
|
|
4
4
|
import "../chunk-76MPX7JQ.js";
|
|
5
5
|
import "../chunk-PV33JZKV.js";
|
|
6
6
|
import {
|
|
7
7
|
writeProfileFilesToBox
|
|
8
8
|
} from "../chunk-67CSI5PU.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-SUWAECFT.js";
|
|
10
10
|
import {
|
|
11
11
|
shellQuote
|
|
12
12
|
} from "../chunk-INW4FSID.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
skillSupportFileMounts,
|
|
5
5
|
unsupportedSkillHarnesses,
|
|
6
6
|
withSkillSupportFiles
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-GLZMHETS.js";
|
|
8
8
|
import "../chunk-76MPX7JQ.js";
|
|
9
9
|
import "../chunk-PV33JZKV.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-SUWAECFT.js";
|
|
11
11
|
export {
|
|
12
12
|
composeSkillsForHarness,
|
|
13
13
|
resolveSkillDir,
|
package/dist/teams/index.d.ts
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* - `@tangle-network/agent-app/teams/invitations-api` — framework-neutral
|
|
13
13
|
* email-invitation lifecycle (create/list/resend/revoke/preview/accept,
|
|
14
14
|
* imports `drizzle-orm`).
|
|
15
|
-
* - `@tangle-network/agent-app/teams-react` —
|
|
16
|
-
*
|
|
15
|
+
* - `@tangle-network/agent-app/teams-react` — InviteAcceptPage +
|
|
16
|
+
* the seams the settings-react team sections read (optional `react` peer).
|
|
17
17
|
*
|
|
18
18
|
* NEVER re-exported from the package root: `drizzle-orm` and `react` are
|
|
19
19
|
* optional peers, and the whole point is that the tax stays clean.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** The line under an invitation's address,
|
|
1
|
+
/** The line under an invitation's address, as the settings `InvitationsSection` renders it. */
|
|
2
2
|
import type { InvitationDelivery } from '../../teams/invitations.js';
|
|
3
3
|
import type { InvitationView } from '../contracts.js';
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Who may change a member's access, and the words for a role shown as text.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* The settings `MembersSection` reads these, so every member list applies one
|
|
4
|
+
* rule.
|
|
5
5
|
*/
|
|
6
6
|
import { type WorkspaceRole } from '../../teams/roles.js';
|
|
7
7
|
import type { MemberView } from '../contracts.js';
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* interface-only and callback-driven: the components never import an app's
|
|
4
4
|
* router, fetch client, or toast system. The host passes data in and supplies
|
|
5
5
|
* the async callbacks (which it backs with `./teams/members-api` or
|
|
6
|
-
* `./teams/invitations-api` over fetch), so the same
|
|
6
|
+
* `./teams/invitations-api` over fetch), so the same surface mounts in any app.
|
|
7
7
|
*/
|
|
8
8
|
import type { WorkspaceRole } from '../teams/roles.js';
|
|
9
9
|
import type { InvitationEmailStatus, InvitationPermission, InvitationStatus } from '../teams/invitations.js';
|
|
10
|
-
/** One member row as the
|
|
10
|
+
/** One member row as the members list renders it — the shape `members-api` returns. */
|
|
11
11
|
export interface MemberView {
|
|
12
12
|
id: string;
|
|
13
13
|
userId: string | null;
|
|
@@ -19,42 +19,7 @@ export interface MemberView {
|
|
|
19
19
|
/** true = inherited org owner/admin access (managed at the org level). */
|
|
20
20
|
inherited?: boolean;
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
export interface MembersPanelProps {
|
|
24
|
-
members: MemberView[];
|
|
25
|
-
/** The viewer's effective role — gates which controls are interactive. */
|
|
26
|
-
currentRole: WorkspaceRole;
|
|
27
|
-
/** The viewer's user id, so their own row offers no role change or removal, as in `MembersSection`. */
|
|
28
|
-
currentUserId?: string | null;
|
|
29
|
-
/** Invite a member; resolve with the shareable invite URL (or void). */
|
|
30
|
-
onInvite(input: {
|
|
31
|
-
email: string;
|
|
32
|
-
role: WorkspaceRole;
|
|
33
|
-
}): Promise<{
|
|
34
|
-
inviteUrl?: string;
|
|
35
|
-
} | void>;
|
|
36
|
-
/** Change a member's role. */
|
|
37
|
-
onChangeRole(input: {
|
|
38
|
-
memberId: string;
|
|
39
|
-
role: WorkspaceRole;
|
|
40
|
-
}): Promise<void>;
|
|
41
|
-
/** Remove a member. */
|
|
42
|
-
onRemove(input: {
|
|
43
|
-
memberId: string;
|
|
44
|
-
}): Promise<void>;
|
|
45
|
-
/** Optional toast/notice hook; defaults to a no-op (host owns its UX). */
|
|
46
|
-
onNotice?(notice: {
|
|
47
|
-
kind: 'success' | 'error';
|
|
48
|
-
message: string;
|
|
49
|
-
}): void;
|
|
50
|
-
/**
|
|
51
|
-
* Show the built-in invite form. Default `true`. An app that drives invites
|
|
52
|
-
* through `InvitationsPanel` (the rich email flow) sets this `false` so the
|
|
53
|
-
* members panel is list-only and the two don't present competing invite UIs.
|
|
54
|
-
*/
|
|
55
|
-
showInviteForm?: boolean;
|
|
56
|
-
}
|
|
57
|
-
/** One invitation row as `InvitationsPanel` renders it — the shape `invitations-api` returns. */
|
|
22
|
+
/** One invitation row as the invitations list renders it — the shape `invitations-api` returns. */
|
|
58
23
|
export interface InvitationView {
|
|
59
24
|
id: string;
|
|
60
25
|
email: string;
|
|
@@ -68,36 +33,6 @@ export interface InvitationView {
|
|
|
68
33
|
/** Shareable accept link, for copy-to-clipboard. */
|
|
69
34
|
inviteUrl: string;
|
|
70
35
|
}
|
|
71
|
-
/** Define properties and callbacks for managing workspace invitations and user roles */
|
|
72
|
-
export interface InvitationsPanelProps {
|
|
73
|
-
invitations: InvitationView[];
|
|
74
|
-
/** The viewer's effective role — gates whether the invite controls are interactive. */
|
|
75
|
-
currentRole: WorkspaceRole;
|
|
76
|
-
/** Create an invitation (sends the email); resolve with the shareable URL (or void). */
|
|
77
|
-
onInvite(input: {
|
|
78
|
-
email: string;
|
|
79
|
-
role: WorkspaceRole;
|
|
80
|
-
}): Promise<{
|
|
81
|
-
inviteUrl?: string;
|
|
82
|
-
} | void>;
|
|
83
|
-
/** Resend the invitation email. */
|
|
84
|
-
onResend(input: {
|
|
85
|
-
invitationId: string;
|
|
86
|
-
}): Promise<void>;
|
|
87
|
-
/** Revoke a pending invitation. */
|
|
88
|
-
onRevoke(input: {
|
|
89
|
-
invitationId: string;
|
|
90
|
-
}): Promise<void>;
|
|
91
|
-
/** Copy the invite link; defaults to `navigator.clipboard.writeText`. */
|
|
92
|
-
onCopy?(input: {
|
|
93
|
-
inviteUrl: string;
|
|
94
|
-
}): void | Promise<void>;
|
|
95
|
-
/** Optional toast/notice hook; defaults to a no-op (host owns its UX). */
|
|
96
|
-
onNotice?(notice: {
|
|
97
|
-
kind: 'success' | 'error';
|
|
98
|
-
message: string;
|
|
99
|
-
}): void;
|
|
100
|
-
}
|
|
101
36
|
/** Define possible statuses for the acceptance state of an invitation */
|
|
102
37
|
export type InviteAcceptStatus = 'pending' | 'invalid' | 'already-accepted' | 'expired' | 'revoked';
|
|
103
38
|
/** Describe details of an accepted invite including status, workspace, inviter, role, emails, and expiration */
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React surface for the teams module: the
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `./teams/invitations-api` over fetch.
|
|
2
|
+
* React surface for the teams module: the InviteAcceptPage (`/invite/:token`)
|
|
3
|
+
* and the seams the settings-react team sections read (member access rules,
|
|
4
|
+
* invitation details, view types). Everything is callback-driven — no app
|
|
5
|
+
* router, fetch client, or toast import — so any app mounts these and wires
|
|
6
|
+
* them to `./teams/members-api` or `./teams/invitations-api` over fetch.
|
|
8
7
|
*
|
|
9
8
|
* Never re-exported from the package root: `react` is an optional peer (the
|
|
10
9
|
* `web-react` precedent). DOM access begins only inside component render.
|