@agent-native/dispatch 0.42.5-nightly-20261111212500 → 0.42.5

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 (37) hide show
  1. package/CHANGELOG.md +8 -46
  2. package/dist/actions/create-vault-secret.js +2 -2
  3. package/dist/actions/create-vault-secret.js.map +1 -1
  4. package/dist/actions/index.d.ts.map +1 -1
  5. package/dist/actions/index.js +0 -2
  6. package/dist/actions/index.js.map +1 -1
  7. package/dist/actions/list-vault-secrets.d.ts +1 -1
  8. package/dist/actions/list-vault-secrets.js +3 -4
  9. package/dist/actions/list-vault-secrets.js.map +1 -1
  10. package/dist/actions/provider-api-register.d.ts +12 -12
  11. package/dist/actions/update-vault-secret.js +2 -2
  12. package/dist/actions/update-vault-secret.js.map +1 -1
  13. package/dist/components/app-keys-popover.d.ts.map +1 -1
  14. package/dist/components/app-keys-popover.js +8 -19
  15. package/dist/components/app-keys-popover.js.map +1 -1
  16. package/dist/routes/pages/vault.d.ts.map +1 -1
  17. package/dist/routes/pages/vault.js +3 -9
  18. package/dist/routes/pages/vault.js.map +1 -1
  19. package/dist/server/lib/vault-store.d.ts +18 -68
  20. package/dist/server/lib/vault-store.d.ts.map +1 -1
  21. package/dist/server/lib/vault-store.js +98 -273
  22. package/dist/server/lib/vault-store.js.map +1 -1
  23. package/package.json +4 -4
  24. package/src/actions/create-vault-secret.ts +2 -2
  25. package/src/actions/index.spec.ts +1 -1
  26. package/src/actions/index.ts +0 -2
  27. package/src/actions/list-vault-secrets.ts +3 -4
  28. package/src/actions/update-vault-secret.ts +3 -2
  29. package/src/components/app-keys-popover.tsx +1 -39
  30. package/src/routes/pages/vault.tsx +21 -31
  31. package/src/server/lib/vault-store.spec.ts +377 -450
  32. package/src/server/lib/vault-store.ts +141 -340
  33. package/dist/actions/sync-vault-to-app.d.ts +0 -32
  34. package/dist/actions/sync-vault-to-app.d.ts.map +0 -1
  35. package/dist/actions/sync-vault-to-app.js +0 -13
  36. package/dist/actions/sync-vault-to-app.js.map +0 -1
  37. package/src/actions/sync-vault-to-app.ts +0 -15
@@ -14,7 +14,6 @@ import {
14
14
  IconEdit,
15
15
  IconKey,
16
16
  IconPlus,
17
- IconRefresh,
18
17
  IconTrash,
19
18
  IconX,
20
19
  } from "@tabler/icons-react";
@@ -270,8 +269,8 @@ function EditSecretDialog({ secret }: { secret: any }) {
270
269
  <DialogHeader>
271
270
  <DialogTitle>Edit key</DialogTitle>
272
271
  <DialogDescription>
273
- Update the stored key and metadata. Changes sync to the shared
274
- credential store. Leave the value blank to keep the existing key.
272
+ Update the stored key and metadata. Leave the value blank to keep
273
+ the existing key.
275
274
  </DialogDescription>
276
275
  </DialogHeader>
277
276
  <form
@@ -525,11 +524,6 @@ function SecretRow({
525
524
  onSuccess: () => toast.success("Grant revoked"),
526
525
  onError: (err) => toast.error(String(err)),
527
526
  });
528
- const syncToApp = useActionMutation("sync-vault-to-app", {
529
- onSuccess: (data: any) =>
530
- toast.success(`Synced ${data.synced} key(s) to ${data.appId}`),
531
- onError: (err) => toast.error(String(err)),
532
- });
533
527
 
534
528
  const activeGrants = grants.filter((g) => g.status === "active");
535
529
  const allApps = accessMode !== "manual";
@@ -582,9 +576,20 @@ function SecretRow({
582
576
 
583
577
  <div className="flex items-center gap-2">
584
578
  <span className="text-xs text-muted-foreground">Value:</span>
585
- <code className="text-xs font-mono text-foreground">
586
- {secret.last4}
587
- </code>
579
+ {secret.valueStatus === "unreadable" ? (
580
+ <span className="text-xs text-destructive">
581
+ Saved, but this deployment cannot decrypt it. Save the key
582
+ again.
583
+ </span>
584
+ ) : secret.valueStatus === "missing" ? (
585
+ <span className="text-xs text-destructive">
586
+ Nothing stored. Save the key again.
587
+ </span>
588
+ ) : (
589
+ <code className="text-xs font-mono text-foreground">
590
+ {secret.last4}
591
+ </code>
592
+ )}
588
593
  </div>
589
594
 
590
595
  <div className="space-y-2">
@@ -607,25 +612,10 @@ function SecretRow({
607
612
  key={grant.id}
608
613
  className="flex items-center justify-between rounded-lg border px-3 py-2"
609
614
  >
610
- <div>
611
- <span className="text-sm font-medium text-foreground">
612
- {grant.appId}
613
- </span>
614
- <span className="ml-2 text-xs text-muted-foreground">
615
- {grant.syncedAt
616
- ? `synced ${new Date(grant.syncedAt).toLocaleString()}`
617
- : "not synced"}
618
- </span>
619
- </div>
615
+ <span className="text-sm font-medium text-foreground">
616
+ {grant.appId}
617
+ </span>
620
618
  <div className="flex gap-1.5">
621
- <Button
622
- variant="ghost"
623
- size="sm"
624
- onClick={() => syncToApp.mutate({ appId: grant.appId })}
625
- disabled={syncToApp.isPending}
626
- >
627
- <IconRefresh size={14} />
628
- </Button>
629
619
  <Button
630
620
  variant="ghost"
631
621
  size="sm"
@@ -665,8 +655,8 @@ function SecretRow({
665
655
  <AlertDialogTitle>Delete this key?</AlertDialogTitle>
666
656
  <AlertDialogDescription>
667
657
  Removing “{secret.name}” revokes all of its grants. Apps
668
- that depended on this credential can lose access on the next
669
- sync. This cannot be undone.
658
+ that depended on this credential lose access. This cannot be
659
+ undone.
670
660
  </AlertDialogDescription>
671
661
  </AlertDialogHeader>
672
662
  <AlertDialogFooter>