@tangle-network/agent-app 0.60.177 → 0.60.179

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.
Files changed (59) hide show
  1. package/dist/agent-profiles/d1.js +3 -3
  2. package/dist/agent-profiles/index.js +11 -3
  3. package/dist/agent-profiles/self-management.d.ts +82 -0
  4. package/dist/assistant/index.js +5 -5
  5. package/dist/channels/index.js +1 -1
  6. package/dist/chat-routes/index.js +4 -4
  7. package/dist/{chunk-GIJY3YCH.js → chunk-3RHAF2P5.js} +11 -13
  8. package/dist/chunk-3RHAF2P5.js.map +1 -0
  9. package/dist/{chunk-ER3KSBA4.js → chunk-75ZIWV4U.js} +4 -4
  10. package/dist/{chunk-7PSYT35Z.js → chunk-7BYY7QKC.js} +5 -5
  11. package/dist/{chunk-7PSYT35Z.js.map → chunk-7BYY7QKC.js.map} +1 -1
  12. package/dist/chunk-A2GG4D4A.js +43 -0
  13. package/dist/chunk-A2GG4D4A.js.map +1 -0
  14. package/dist/{chunk-6CKNC32J.js → chunk-AJZ3EJB5.js} +2 -2
  15. package/dist/{chunk-MCAIZKQ5.js → chunk-CPNJRLPN.js} +15 -4
  16. package/dist/chunk-CPNJRLPN.js.map +1 -0
  17. package/dist/{chunk-4WEUWCA4.js → chunk-EQRVOMMS.js} +2 -2
  18. package/dist/{chunk-6VXBUIM5.js → chunk-KOTNMTHV.js} +65 -8
  19. package/dist/{chunk-6VXBUIM5.js.map → chunk-KOTNMTHV.js.map} +1 -1
  20. package/dist/{chunk-LSUELMHY.js → chunk-LN5RBVGP.js} +6 -33
  21. package/dist/{chunk-LSUELMHY.js.map → chunk-LN5RBVGP.js.map} +1 -1
  22. package/dist/{chunk-IAFPBYQQ.js → chunk-QGOGX3DL.js} +52 -67
  23. package/dist/chunk-QGOGX3DL.js.map +1 -0
  24. package/dist/{chunk-NO2YNV5C.js → chunk-YXLN4PXK.js} +2 -2
  25. package/dist/hub-approvals/index.js +1 -1
  26. package/dist/hub-approvals/present.d.ts +1 -1
  27. package/dist/hub-approvals/types.d.ts +35 -0
  28. package/dist/hub-approvals-react/dock.d.ts +3 -2
  29. package/dist/hub-approvals-react/email.d.ts +13 -0
  30. package/dist/hub-approvals-react/feedback.d.ts +20 -0
  31. package/dist/hub-approvals-react/index.d.ts +1 -0
  32. package/dist/hub-approvals-react/index.js +535 -286
  33. package/dist/hub-approvals-react/index.js.map +1 -1
  34. package/dist/hub-approvals-react/parts.d.ts +1 -1
  35. package/dist/hub-approvals-react/row.d.ts +3 -2
  36. package/dist/integrations-react/index.js +1 -1
  37. package/dist/preset-cloudflare/index.js +2 -2
  38. package/dist/sandbox/index.js +4 -4
  39. package/dist/stories/app-shell/interaction-evidence.d.ts +31 -0
  40. package/dist/studio-react/index.js +2 -2
  41. package/dist/theme/tokens.css +158 -0
  42. package/dist/tools/index.js +4 -4
  43. package/dist/web-react/action-dialog.d.ts +2 -2
  44. package/dist/web-react/agent-profile-editor.js +1 -1
  45. package/dist/web-react/agent-profile-form-kit.d.ts +1 -1
  46. package/dist/web-react/async/index.js +1 -1
  47. package/dist/web-react/index.js +5 -5
  48. package/dist/work-product/index.js +2 -2
  49. package/dist/workspace-react/index.js +1 -1
  50. package/package.json +2 -2
  51. package/dist/chunk-GIJY3YCH.js.map +0 -1
  52. package/dist/chunk-IAFPBYQQ.js.map +0 -1
  53. package/dist/chunk-MCAIZKQ5.js.map +0 -1
  54. package/dist/chunk-QJYJOMMO.js +0 -78
  55. package/dist/chunk-QJYJOMMO.js.map +0 -1
  56. /package/dist/{chunk-ER3KSBA4.js.map → chunk-75ZIWV4U.js.map} +0 -0
  57. /package/dist/{chunk-6CKNC32J.js.map → chunk-AJZ3EJB5.js.map} +0 -0
  58. /package/dist/{chunk-4WEUWCA4.js.map → chunk-EQRVOMMS.js.map} +0 -0
  59. /package/dist/{chunk-NO2YNV5C.js.map → chunk-YXLN4PXK.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ToolInputError,
3
3
  validateOpenUIJsonNode
4
- } from "./chunk-7PSYT35Z.js";
4
+ } from "./chunk-7BYY7QKC.js";
5
5
 
6
6
  // src/tools/render-ui-schema.ts
7
7
  function assertRenderUiSchema(value) {
@@ -14,4 +14,4 @@ function assertRenderUiSchema(value) {
14
14
  export {
15
15
  assertRenderUiSchema
16
16
  };
17
- //# sourceMappingURL=chunk-NO2YNV5C.js.map
17
+ //# sourceMappingURL=chunk-YXLN4PXK.js.map
@@ -14,7 +14,7 @@ import {
14
14
  splitHubActionPath,
15
15
  summarizeHubResult,
16
16
  unwrapHubResult
17
- } from "../chunk-MCAIZKQ5.js";
17
+ } from "../chunk-CPNJRLPN.js";
18
18
  export {
19
19
  HUB_APPROVAL_ACTIVE_PHASES,
20
20
  HUB_APPROVAL_OPEN_PHASES,
@@ -19,7 +19,7 @@ export declare function hubActionFiles(actionPath: string, input: unknown): HubA
19
19
  /** A Stripe minor-unit amount in its currency: `4900` USD is `$49.00`. */
20
20
  export declare function formatMinorAmount(amount: number, currency?: string): string;
21
21
  /** A held call in the owner's words, with the preview its integration renders. */
22
- export declare function presentHubAction(item: Pick<HubApprovalItem, 'actionPath' | 'providerId' | 'input' | 'files' | 'bundle'>): HubActionPresentation;
22
+ export declare function presentHubAction(item: Pick<HubApprovalItem, 'actionPath' | 'providerId' | 'input' | 'files' | 'bundle' | 'preview'>): HubActionPresentation;
23
23
  /** A start and optional end in the viewer's locale: `Tue, Oct 14, 3:00 – 3:30 PM`. */
24
24
  export declare function formatWhen(start: string, end?: string): string;
25
25
  /** What a decided call did: its past-tense title, key fields, link, media and files. */
@@ -82,6 +82,20 @@ export interface HubApprovalItem {
82
82
  /** Files with line counts read by the host, replacing those the input declares. */
83
83
  files?: readonly HubActionFile[];
84
84
  bundle?: HubActionBundle | null;
85
+ /** Previewing and teaching never execute a call. Live approval remains a separate action. */
86
+ executionMode?: 'dry-run' | 'live';
87
+ feedback?: HubApprovalFeedback & {
88
+ savedAt?: string;
89
+ };
90
+ /** Host-resolved presentation, e.g. a retained page screenshot or ad creative. No remote fetches. */
91
+ preview?: HubActionPreview;
92
+ }
93
+ /** The host authenticates the reviewer, binds provenance and computes the edit diff. */
94
+ export interface HubApprovalFeedback {
95
+ score: number;
96
+ comment: string;
97
+ /** A teaching example only; never replaces the held input or authorizes execution. */
98
+ editedInput?: unknown;
85
99
  }
86
100
  /** A labelled value on a preview or a receipt. */
87
101
  export interface HubActionField {
@@ -129,6 +143,9 @@ export type HubActionPreview = {
129
143
  cc: readonly string[];
130
144
  bcc: readonly string[];
131
145
  subject?: string;
146
+ from?: string;
147
+ fromName?: string;
148
+ previewText?: string;
132
149
  body?: string;
133
150
  html: boolean;
134
151
  reply: boolean;
@@ -143,6 +160,24 @@ export type HubActionPreview = {
143
160
  title?: string;
144
161
  description?: string;
145
162
  };
163
+ images?: readonly {
164
+ url: string;
165
+ alt?: string;
166
+ }[];
167
+ } | {
168
+ kind: 'ad';
169
+ placement: string;
170
+ advertiser?: string;
171
+ headline?: string;
172
+ text?: string;
173
+ image?: string;
174
+ destination?: string;
175
+ callToAction?: string;
176
+ } | {
177
+ kind: 'page';
178
+ title?: string;
179
+ url?: string;
180
+ screenshot?: string;
146
181
  } | {
147
182
  kind: 'payment';
148
183
  label: string;
@@ -1,4 +1,4 @@
1
- import { type HubApprovalItem } from '../hub-approvals';
1
+ import { type HubApprovalItem, type HubApprovalFeedback } from '../hub-approvals';
2
2
  /** The owner's answer to one held call. `allow` also grants a standing permission. */
3
3
  export type HubApprovalDecision = {
4
4
  kind: 'approve';
@@ -29,6 +29,7 @@ export interface HubApprovalDockProps {
29
29
  /** Bring one call to the front, e.g. after it was picked in the Approvals list. */
30
30
  focusId?: string | null;
31
31
  className?: string;
32
+ onFeedback?: (item: HubApprovalItem, feedback: HubApprovalFeedback) => Promise<void>;
32
33
  }
33
34
  /**
34
35
  * The calls waiting on the owner, pinned above the composer so a held action
@@ -37,4 +38,4 @@ export interface HubApprovalDockProps {
37
38
  * permissions a host offers sit beside it. Approving shows the run in place —
38
39
  * starting, running, then the result — without leaving the conversation.
39
40
  */
40
- export declare function HubApprovalDock({ items, onDecide, permissions, onOpen, focusId, className }: HubApprovalDockProps): import("react").JSX.Element | null;
41
+ export declare function HubApprovalDock({ items, onDecide, permissions, onOpen, focusId, onFeedback, className }: HubApprovalDockProps): import("react").JSX.Element | null;
@@ -0,0 +1,13 @@
1
+ import type { HubActionPreview } from '../hub-approvals';
2
+ type Email = Extract<HubActionPreview, {
3
+ kind: 'email';
4
+ }>;
5
+ /** Only embedded raster images: opening a preview must not contact a tracking pixel. */
6
+ export declare function embeddedPreviewImage(value: string | undefined): string | undefined;
7
+ /** Transport-free inbox rendering. No provider SDK, remote images or executable HTML. */
8
+ export declare function EmailPreview({ preview, account }: {
9
+ preview: Email;
10
+ account?: string | null;
11
+ }): import("react").JSX.Element;
12
+ export declare function linkedText(value: string): (string | import("react").JSX.Element)[];
13
+ export {};
@@ -0,0 +1,20 @@
1
+ import { type HubApprovalFeedback, type HubApprovalItem } from '../hub-approvals';
2
+ export interface HubPreviewFeedbackProps {
3
+ item: HubApprovalItem;
4
+ onFeedback: (item: HubApprovalItem, feedback: HubApprovalFeedback) => Promise<void>;
5
+ /** Owner-local drafts survive collapsing/switching previews, never another viewer. */
6
+ drafts?: Map<string, FeedbackDraft>;
7
+ }
8
+ interface FeedbackDraft {
9
+ score: string;
10
+ comment: string;
11
+ editing: boolean;
12
+ edited: boolean;
13
+ subject: string;
14
+ body: string;
15
+ payload: string;
16
+ saved: boolean;
17
+ }
18
+ /** Host callback saves the signal; this component has no execution transport. */
19
+ export declare function HubPreviewFeedback({ item, onFeedback, drafts }: HubPreviewFeedbackProps): import("react").JSX.Element;
20
+ export {};
@@ -19,4 +19,5 @@ export { HubApprovalsList, type HubApprovalsListProps } from './list';
19
19
  export { HubApprovalRow, type HubApprovalRowProps } from './row';
20
20
  export { HubActionReceiptCard, HubApprovalReceipts, type HubActionReceiptCardProps, type HubApprovalReceiptsProps } from './receipt';
21
21
  export { HubActionPreviewView } from './preview';
22
+ export { HubPreviewFeedback, type HubPreviewFeedbackProps } from './feedback';
22
23
  export { HubApprovalPhasePill, HubApprovalWaitNote, HubProviderMark, openPhaseLabel } from './parts';