@frockbot/cloudflare 0.0.0 → 0.7.292

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 (88) hide show
  1. package/build-artifact.ts +130 -0
  2. package/build-flutter-web.ts +508 -0
  3. package/deployment-config/README.md +414 -0
  4. package/deployment-config/cli.ts +228 -0
  5. package/deployment-config/generate.ts +689 -0
  6. package/deployment-config/jsonc.ts +18 -0
  7. package/deployment-config/profile-schema.generated.ts +391 -0
  8. package/deployment-config/profile.schema.json +358 -0
  9. package/deployment-config/profile.ts +124 -0
  10. package/migrations/0001_better_auth.sql +15 -0
  11. package/migrations/0002_drop_account_issuer.sql +8 -0
  12. package/package.json +61 -5
  13. package/release-version.ts +20 -0
  14. package/src/account-admission.ts +179 -0
  15. package/src/account-deletion.ts +274 -0
  16. package/src/admin-entrypoint.ts +194 -0
  17. package/src/admin-identities.ts +26 -0
  18. package/src/audit.ts +103 -0
  19. package/src/auth-package.access.ts +24 -0
  20. package/src/auth-package.ts +36 -0
  21. package/src/avatar-state-cleanup.ts +107 -0
  22. package/src/billing-computer.ts +267 -0
  23. package/src/billing-readiness.ts +21 -0
  24. package/src/billing.ts +461 -0
  25. package/src/bot-capabilities.ts +480 -0
  26. package/src/bot-recovery.ts +1 -0
  27. package/src/bot-state-channel.ts +702 -0
  28. package/src/bot-state.ts +3995 -0
  29. package/src/bot-template-cleanup.ts +98 -0
  30. package/src/bot-title-cleanup.ts +104 -0
  31. package/src/brand-icon.png +0 -0
  32. package/src/brand-logo.ts +2 -0
  33. package/src/brand.ts +36 -0
  34. package/src/client-compatibility.ts +51 -0
  35. package/src/compaction-announcement-cleanup.ts +113 -0
  36. package/src/computer-egress.ts +110 -0
  37. package/src/computer-host.ts +92 -0
  38. package/src/computer-screenshot-cleanup.ts +78 -0
  39. package/src/contracts.ts +832 -0
  40. package/src/debug.ts +272 -0
  41. package/src/default-packages-marker-cleanup.ts +39 -0
  42. package/src/deployment-policy-admin-host.ts +121 -0
  43. package/src/deployment-policy.ts +426 -0
  44. package/src/directory-profile-cleanup.ts +101 -0
  45. package/src/durable-rpc.ts +753 -0
  46. package/src/durable-session.ts +21 -0
  47. package/src/entry-boundary.ts +103 -0
  48. package/src/frock-ai.ts +338 -0
  49. package/src/gateway.ts +1392 -0
  50. package/src/group-chat.ts +736 -0
  51. package/src/hidden-bot-notifications-cleanup.ts +32 -0
  52. package/src/index.ts +2798 -0
  53. package/src/insights.ts +15 -0
  54. package/src/machine-messages-cleanup.ts +121 -0
  55. package/src/machine-socket.ts +164 -0
  56. package/src/memory-records.ts +181 -0
  57. package/src/memory.ts +145 -0
  58. package/src/model-rates.ts +252 -0
  59. package/src/native-auth.ts +1006 -0
  60. package/src/native-sessions.ts +121 -0
  61. package/src/notification-state-cleanup.ts +18 -0
  62. package/src/ollama-web-search-cleanup.ts +69 -0
  63. package/src/package-page-shapes-cleanup.ts +190 -0
  64. package/src/plugin-egress.ts +31 -0
  65. package/src/plugin-page-route.ts +72 -0
  66. package/src/plugin-panels-cleanup.ts +101 -0
  67. package/src/prepared-input-cleanup.ts +105 -0
  68. package/src/production-secrets.ts +484 -0
  69. package/src/project-cleanup.ts +123 -0
  70. package/src/project-events-cleanup.ts +152 -0
  71. package/src/publication-state-cleanup.ts +92 -0
  72. package/src/push.ts +498 -0
  73. package/src/request-body.ts +165 -0
  74. package/src/routine-state-cleanup.ts +57 -0
  75. package/src/search.ts +88 -0
  76. package/src/sidebar-label-cleanup.ts +165 -0
  77. package/src/skill-index-cleanup.ts +53 -0
  78. package/src/supersede-cleanup.ts +162 -0
  79. package/src/test-chat-cleanup.ts +93 -0
  80. package/src/uploads.ts +486 -0
  81. package/src/user-application.ts +1068 -0
  82. package/src/user-configuration.ts +4491 -0
  83. package/src/voice-assistant.ts +4999 -0
  84. package/src/voice-dictation.ts +743 -0
  85. package/src/working-context-cleanup.ts +96 -0
  86. package/src/workspace.ts +201 -0
  87. package/wrangler.jsonc +385 -0
  88. package/README.md +0 -3
@@ -0,0 +1,78 @@
1
+ // Retired Computer screenshot files. The card's picture is now one frame in
2
+ // the Bot's own storage; the viewer-close captures this Bot filed in the
3
+ // User's `screenshots` root in object storage are read by nothing.
4
+
5
+ export const COMPUTER_SCREENSHOT_CLEANUP_RECEIPT_V1 =
6
+ "maintenance:computer-screenshots:2026-09-23";
7
+ export const COMPUTER_SCREENSHOT_CLEANUP_PAGE_V1 = 100;
8
+ const COMPUTER_SCREENSHOT_CLEANUP_PAGES_V1 = 4;
9
+
10
+ interface ScreenshotCleanupStorageV1 {
11
+ get(key: string): Promise<unknown>;
12
+ put(key: string, value: unknown): Promise<void>;
13
+ }
14
+
15
+ interface ScreenshotCleanupBucketV1 {
16
+ list(options: {
17
+ prefix: string;
18
+ limit: number;
19
+ cursor?: string;
20
+ }): Promise<{ keys: string[]; cursor?: string; truncated: boolean }>;
21
+ delete(key: string): Promise<void>;
22
+ }
23
+
24
+ /**
25
+ * Deletes one bounded run of this Bot's objects under `prefix`, its directory
26
+ * in the `screenshots` root, tombstones and conflict copies included. A short
27
+ * page records completion; a full page leaves a cursor for the next start.
28
+ *
29
+ * A bulk removal rather than `WorkspaceStore.delete`, as a Bot's own deletion
30
+ * is: nothing will ever read these files, so there is no generation to fence.
31
+ */
32
+ export async function cleanRetiredComputerScreenshotsV1(
33
+ storage: ScreenshotCleanupStorageV1,
34
+ bucket: ScreenshotCleanupBucketV1,
35
+ prefix: string,
36
+ ): Promise<number> {
37
+ const stored = await storage.get(COMPUTER_SCREENSHOT_CLEANUP_RECEIPT_V1);
38
+ const receipt =
39
+ stored && typeof stored === "object"
40
+ ? (stored as { done?: boolean; cursor?: string; prefix?: string })
41
+ : undefined;
42
+ if (receipt?.done && receipt.prefix === prefix) return 0;
43
+ let cursor =
44
+ receipt?.prefix === prefix && typeof receipt.cursor === "string"
45
+ ? receipt.cursor
46
+ : undefined;
47
+ let removed = 0;
48
+ for (let page = 0; page < COMPUTER_SCREENSHOT_CLEANUP_PAGES_V1; page += 1) {
49
+ const listed = await bucket.list({
50
+ prefix,
51
+ limit: COMPUTER_SCREENSHOT_CLEANUP_PAGE_V1,
52
+ ...(cursor ? { cursor } : {}),
53
+ });
54
+ for (const key of listed.keys) {
55
+ if (!key.startsWith(prefix)) continue;
56
+ await bucket.delete(key);
57
+ removed += 1;
58
+ }
59
+ if (!listed.truncated) {
60
+ await storage.put(COMPUTER_SCREENSHOT_CLEANUP_RECEIPT_V1, {
61
+ schemaVersion: 1,
62
+ done: true,
63
+ prefix,
64
+ removed,
65
+ });
66
+ return removed;
67
+ }
68
+ cursor = listed.cursor;
69
+ }
70
+ await storage.put(COMPUTER_SCREENSHOT_CLEANUP_RECEIPT_V1, {
71
+ schemaVersion: 1,
72
+ done: false,
73
+ prefix,
74
+ cursor,
75
+ removed,
76
+ });
77
+ return removed;
78
+ }