@agent-native/core 0.130.0 → 0.130.1
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/corpus/README.md +1 -1
- package/corpus/core/CHANGELOG.md +6 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/integrations/a2a-continuation-processor.ts +481 -122
- package/corpus/core/src/integrations/a2a-continuations-store.ts +345 -14
- package/corpus/core/src/integrations/adapters/slack.ts +243 -53
- package/corpus/core/src/integrations/integration-campaign-recovery.ts +4 -1
- package/corpus/core/src/integrations/plugin.ts +39 -21
- package/corpus/core/src/integrations/task-queue-stats.ts +146 -0
- package/corpus/core/src/integrations/types.ts +25 -4
- package/corpus/core/src/integrations/webhook-handler.ts +18 -5
- package/corpus/templates/dispatch/changelog/2026-07-26-slack-replies-recover-after-connected-app-updates.md +6 -0
- package/corpus/templates/slides/.agents/skills/design-systems/SKILL.md +15 -0
- package/corpus/templates/slides/actions/delete-design-system.ts +145 -0
- package/corpus/templates/slides/actions/list-design-systems.ts +94 -2
- package/corpus/templates/slides/app/components/design-system/DesignSystemCard.tsx +43 -1
- package/corpus/templates/slides/app/hooks/use-design-systems.ts +2 -0
- package/corpus/templates/slides/app/i18n/en-US.ts +7 -0
- package/corpus/templates/slides/app/pages/DesignSystems.tsx +56 -1
- package/corpus/templates/slides/changelog/2026-07-28-delete-a-design-system-you-own-from-the-design-systems-page-.md +6 -0
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/integrations/a2a-continuation-processor.d.ts +5 -0
- package/dist/integrations/a2a-continuation-processor.d.ts.map +1 -1
- package/dist/integrations/a2a-continuation-processor.js +293 -79
- package/dist/integrations/a2a-continuation-processor.js.map +1 -1
- package/dist/integrations/a2a-continuations-store.d.ts +23 -1
- package/dist/integrations/a2a-continuations-store.d.ts.map +1 -1
- package/dist/integrations/a2a-continuations-store.js +249 -15
- package/dist/integrations/a2a-continuations-store.js.map +1 -1
- package/dist/integrations/adapters/slack.d.ts.map +1 -1
- package/dist/integrations/adapters/slack.js +155 -31
- package/dist/integrations/adapters/slack.js.map +1 -1
- package/dist/integrations/integration-campaign-recovery.d.ts.map +1 -1
- package/dist/integrations/integration-campaign-recovery.js +3 -1
- package/dist/integrations/integration-campaign-recovery.js.map +1 -1
- package/dist/integrations/plugin.d.ts.map +1 -1
- package/dist/integrations/plugin.js +29 -12
- package/dist/integrations/plugin.js.map +1 -1
- package/dist/integrations/task-queue-stats.d.ts +12 -0
- package/dist/integrations/task-queue-stats.d.ts.map +1 -1
- package/dist/integrations/task-queue-stats.js +106 -0
- package/dist/integrations/task-queue-stats.js.map +1 -1
- package/dist/integrations/types.d.ts +24 -6
- package/dist/integrations/types.d.ts.map +1 -1
- package/dist/integrations/types.js.map +1 -1
- package/dist/integrations/webhook-handler.d.ts.map +1 -1
- package/dist/integrations/webhook-handler.js +12 -3
- package/dist/integrations/webhook-handler.js.map +1 -1
- package/dist/observability/routes.d.ts +3 -3
- package/dist/progress/routes.d.ts +1 -1
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/secrets/routes.d.ts +9 -9
- package/dist/server/realtime-token.d.ts +1 -1
- package/dist/server/transcribe-voice.d.ts +1 -1
- package/package.json +1 -1
- package/src/integrations/a2a-continuation-processor.ts +481 -122
- package/src/integrations/a2a-continuations-store.ts +345 -14
- package/src/integrations/adapters/slack.ts +243 -53
- package/src/integrations/integration-campaign-recovery.ts +4 -1
- package/src/integrations/plugin.ts +39 -21
- package/src/integrations/task-queue-stats.ts +146 -0
- package/src/integrations/types.ts +25 -4
- package/src/integrations/webhook-handler.ts +18 -5
|
@@ -162,6 +162,13 @@ const messages = {
|
|
|
162
162
|
designSystems: {
|
|
163
163
|
new: "New Design System",
|
|
164
164
|
setupBrand: "Set up your brand",
|
|
165
|
+
delete: "Delete",
|
|
166
|
+
cancel: "Cancel",
|
|
167
|
+
moreActions: "More actions",
|
|
168
|
+
deleteDialogTitle: "Delete design system?",
|
|
169
|
+
deleteDialogDescription:
|
|
170
|
+
"This permanently deletes the design system. Decks using it keep their current look but are no longer linked to it.",
|
|
171
|
+
deleteError: "Failed to delete design system",
|
|
165
172
|
emptyTitle: "Set up your brand identity",
|
|
166
173
|
emptyDescription:
|
|
167
174
|
"Create a design system with your brand colors, typography, and logos. Every new deck will follow your visual identity.",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { callAction } from "@agent-native/core/client/hooks";
|
|
1
|
+
import { callAction, useActionMutation } from "@agent-native/core/client/hooks";
|
|
2
2
|
import { useT } from "@agent-native/core/client/i18n";
|
|
3
3
|
import {
|
|
4
4
|
useSetHeaderActions,
|
|
@@ -11,9 +11,20 @@ import {
|
|
|
11
11
|
IconRefresh,
|
|
12
12
|
} from "@tabler/icons-react";
|
|
13
13
|
import { useMemo, useState } from "react";
|
|
14
|
+
import { toast } from "sonner";
|
|
14
15
|
|
|
15
16
|
import { DesignSystemCard } from "@/components/design-system/DesignSystemCard";
|
|
16
17
|
import { DesignSystemSetup } from "@/components/design-system/DesignSystemSetup";
|
|
18
|
+
import {
|
|
19
|
+
AlertDialog,
|
|
20
|
+
AlertDialogAction,
|
|
21
|
+
AlertDialogCancel,
|
|
22
|
+
AlertDialogContent,
|
|
23
|
+
AlertDialogDescription,
|
|
24
|
+
AlertDialogFooter,
|
|
25
|
+
AlertDialogHeader,
|
|
26
|
+
AlertDialogTitle,
|
|
27
|
+
} from "@/components/ui/alert-dialog";
|
|
17
28
|
import { Button } from "@/components/ui/button";
|
|
18
29
|
import { useDesignSystems } from "@/hooks/use-design-systems";
|
|
19
30
|
|
|
@@ -25,6 +36,8 @@ export default function DesignSystems() {
|
|
|
25
36
|
const { designSystems, isLoading, error, refetch } = useDesignSystems();
|
|
26
37
|
const [showSetup, setShowSetup] = useState(false);
|
|
27
38
|
const [editingId, setEditingId] = useState<string | null>(null);
|
|
39
|
+
const [deleteId, setDeleteId] = useState<string | null>(null);
|
|
40
|
+
const deleteMutation = useActionMutation("delete-design-system");
|
|
28
41
|
|
|
29
42
|
const handleCardClick = (id: string) => {
|
|
30
43
|
setEditingId(id);
|
|
@@ -51,6 +64,21 @@ export default function DesignSystems() {
|
|
|
51
64
|
setEditingId(null);
|
|
52
65
|
};
|
|
53
66
|
|
|
67
|
+
const handleConfirmDelete = () => {
|
|
68
|
+
if (deleteId === null) return;
|
|
69
|
+
const id = deleteId;
|
|
70
|
+
setDeleteId(null);
|
|
71
|
+
deleteMutation.mutate({ id } as never, {
|
|
72
|
+
onSuccess: () => refetch(),
|
|
73
|
+
onError: (err: unknown) => {
|
|
74
|
+
void refetch();
|
|
75
|
+
toast.error(t("designSystems.deleteError"), {
|
|
76
|
+
description: err instanceof Error ? err.message : undefined,
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
|
|
54
82
|
const parseDesignData = (dataStr: string): DesignSystemData | null => {
|
|
55
83
|
try {
|
|
56
84
|
const parsed = JSON.parse(dataStr) as DesignSystemData;
|
|
@@ -172,8 +200,10 @@ export default function DesignSystems() {
|
|
|
172
200
|
data={parsed}
|
|
173
201
|
isDefault={ds.isDefault}
|
|
174
202
|
visibility={ds.visibility}
|
|
203
|
+
canManage={ds.canManage}
|
|
175
204
|
onClick={() => handleCardClick(ds.id)}
|
|
176
205
|
onSetDefault={() => handleSetDefault(ds.id)}
|
|
206
|
+
onDelete={() => setDeleteId(ds.id)}
|
|
177
207
|
/>
|
|
178
208
|
);
|
|
179
209
|
})}
|
|
@@ -182,6 +212,31 @@ export default function DesignSystems() {
|
|
|
182
212
|
)}
|
|
183
213
|
</main>
|
|
184
214
|
|
|
215
|
+
<AlertDialog
|
|
216
|
+
open={deleteId !== null}
|
|
217
|
+
onOpenChange={(open) => !open && setDeleteId(null)}
|
|
218
|
+
>
|
|
219
|
+
<AlertDialogContent>
|
|
220
|
+
<AlertDialogHeader>
|
|
221
|
+
<AlertDialogTitle>
|
|
222
|
+
{t("designSystems.deleteDialogTitle")}
|
|
223
|
+
</AlertDialogTitle>
|
|
224
|
+
<AlertDialogDescription>
|
|
225
|
+
{t("designSystems.deleteDialogDescription")}
|
|
226
|
+
</AlertDialogDescription>
|
|
227
|
+
</AlertDialogHeader>
|
|
228
|
+
<AlertDialogFooter>
|
|
229
|
+
<AlertDialogCancel>{t("designSystems.cancel")}</AlertDialogCancel>
|
|
230
|
+
<AlertDialogAction
|
|
231
|
+
onClick={handleConfirmDelete}
|
|
232
|
+
className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
|
|
233
|
+
>
|
|
234
|
+
{t("designSystems.delete")}
|
|
235
|
+
</AlertDialogAction>
|
|
236
|
+
</AlertDialogFooter>
|
|
237
|
+
</AlertDialogContent>
|
|
238
|
+
</AlertDialog>
|
|
239
|
+
|
|
185
240
|
{/* Setup/Edit Dialog */}
|
|
186
241
|
<DesignSystemSetup
|
|
187
242
|
open={showSetup}
|
|
@@ -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
|
-
error: string;
|
|
17
16
|
ok?: undefined;
|
|
17
|
+
error: string;
|
|
18
18
|
} | {
|
|
19
19
|
error?: undefined;
|
|
20
20
|
ok: boolean;
|
|
@@ -3,6 +3,10 @@ export declare function dispatchA2AContinuation(continuationId: string, webhookB
|
|
|
3
3
|
export declare function processA2AContinuationById(continuationId: string, options: {
|
|
4
4
|
adapters: Map<string, PlatformAdapter>;
|
|
5
5
|
}): Promise<void>;
|
|
6
|
+
export declare function recoverA2AContinuationAfterProcessorFailure(continuationId: string, options: {
|
|
7
|
+
adapters: Map<string, PlatformAdapter>;
|
|
8
|
+
reason: string;
|
|
9
|
+
}): Promise<void>;
|
|
6
10
|
export declare function processDueA2AContinuations(options: {
|
|
7
11
|
adapters: Map<string, PlatformAdapter>;
|
|
8
12
|
limit?: number;
|
|
@@ -21,4 +25,5 @@ export declare function recoverDueA2AContinuations(options?: {
|
|
|
21
25
|
dispatched: number;
|
|
22
26
|
failed: number;
|
|
23
27
|
}>;
|
|
28
|
+
export declare function reconcileTerminalA2AParentIfDisabled(integrationTaskId: string): Promise<boolean>;
|
|
24
29
|
//# sourceMappingURL=a2a-continuation-processor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a2a-continuation-processor.d.ts","sourceRoot":"","sources":["../../src/integrations/a2a-continuation-processor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"a2a-continuation-processor.d.ts","sourceRoot":"","sources":["../../src/integrations/a2a-continuation-processor.ts"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAEV,eAAe,EAGhB,MAAM,YAAY,CAAC;AAmCpB,wBAAsB,uBAAuB,CAC3C,cAAc,EAAE,MAAM,EACtB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC,CAqDf;AAmBD,wBAAsB,0BAA0B,CAC9C,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;CAAE,GAClD,OAAO,CAAC,IAAI,CAAC,CAMf;AAED,wBAAsB,2CAA2C,CAC/D,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE;IACP,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB,GACA,OAAO,CAAC,IAAI,CAAC,CAuFf;AAED,wBAAsB,0BAA0B,CAAC,OAAO,EAAE;IACxD,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2BhB;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,CAAC,EAAE;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAoDlD;AA2PD,wBAAsB,oCAAoC,CACxD,iBAAiB,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC,CAuClB"}
|