yepanywhere 0.1.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/bundled/@yep-anywhere/shared/dist/app-types.d.ts +229 -0
- package/bundled/@yep-anywhere/shared/dist/app-types.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/app-types.js +46 -0
- package/bundled/@yep-anywhere/shared/dist/app-types.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/DocumentContentSchema.d.ts +16 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/DocumentContentSchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/DocumentContentSchema.js +17 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/DocumentContentSchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ImageContentSchema.d.ts +15 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ImageContentSchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ImageContentSchema.js +10 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ImageContentSchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/TextContentSchema.d.ts +6 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/TextContentSchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/TextContentSchema.js +6 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/TextContentSchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ThinkingContentSchema.d.ts +7 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ThinkingContentSchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ThinkingContentSchema.js +7 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ThinkingContentSchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ToolResultContentSchema.d.ts +24 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ToolResultContentSchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ToolResultContentSchema.js +13 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ToolResultContentSchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ToolUseContentSchema.d.ts +8 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ToolUseContentSchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ToolUseContentSchema.js +8 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/content/ToolUseContentSchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/AssistantEntrySchema.d.ts +78 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/AssistantEntrySchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/AssistantEntrySchema.js +13 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/AssistantEntrySchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/BaseEntrySchema.d.ts +18 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/BaseEntrySchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/BaseEntrySchema.js +19 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/BaseEntrySchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/FileHistorySnapshotEntrySchema.d.ts +13 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/FileHistorySnapshotEntrySchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/FileHistorySnapshotEntrySchema.js +14 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/FileHistorySnapshotEntrySchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/QueueOperationEntrySchema.d.ts +68 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/QueueOperationEntrySchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/QueueOperationEntrySchema.js +37 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/QueueOperationEntrySchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SummaryEntrySchema.d.ts +8 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SummaryEntrySchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SummaryEntrySchema.js +7 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SummaryEntrySchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.d.ts +52 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.js +29 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/UserEntrySchema.d.ts +72 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/UserEntrySchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/UserEntrySchema.js +10 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/UserEntrySchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/normalizeQueueOperationContent.d.ts +14 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/normalizeQueueOperationContent.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/normalizeQueueOperationContent.js +39 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/normalizeQueueOperationContent.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/guards.d.ts +15 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/guards.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/guards.js +26 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/guards.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.d.ts +566 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.js +39 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/AssistantMessageSchema.d.ts +93 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/AssistantMessageSchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/AssistantMessageSchema.js +40 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/AssistantMessageSchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/UserMessageSchema.d.ts +105 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/UserMessageSchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/UserMessageSchema.js +20 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/UserMessageSchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/CommonToolSchema.d.ts +53 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/CommonToolSchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/CommonToolSchema.js +54 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/CommonToolSchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/StructuredPatchSchema.d.ts +9 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/StructuredPatchSchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/StructuredPatchSchema.js +9 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/StructuredPatchSchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/TodoSchema.d.ts +32 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/TodoSchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/TodoSchema.js +12 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/TodoSchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/ToolResultSchemas.d.ts +288 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/ToolResultSchemas.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/ToolResultSchemas.js +293 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/ToolResultSchemas.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/index.d.ts +83 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/index.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/index.js +10 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/index.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/types.d.ts +42 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/types.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/types.js +11 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/types.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/content.d.ts +99 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/content.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/content.js +64 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/content.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/index.d.ts +17 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/index.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/index.js +17 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/index.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.d.ts +600 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.js +282 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/types.d.ts +7 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/types.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/types.js +6 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/types.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/dag.d.ts +35 -0
- package/bundled/@yep-anywhere/shared/dist/dag.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/dag.js +75 -0
- package/bundled/@yep-anywhere/shared/dist/dag.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/filePathDetection.d.ts +72 -0
- package/bundled/@yep-anywhere/shared/dist/filePathDetection.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/filePathDetection.js +376 -0
- package/bundled/@yep-anywhere/shared/dist/filePathDetection.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/content.d.ts +95 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/content.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/content.js +57 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/content.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/events.d.ts +174 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/events.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/events.js +117 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/events.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/index.d.ts +18 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/index.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/index.js +18 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/index.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/session.d.ts +267 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/session.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/session.js +147 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/session.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/types.d.ts +7 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/types.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/types.js +6 -0
- package/bundled/@yep-anywhere/shared/dist/gemini-schema/types.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/ideMetadata.d.ts +30 -0
- package/bundled/@yep-anywhere/shared/dist/ideMetadata.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/ideMetadata.js +58 -0
- package/bundled/@yep-anywhere/shared/dist/ideMetadata.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/index.d.ts +24 -0
- package/bundled/@yep-anywhere/shared/dist/index.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/index.js +17 -0
- package/bundled/@yep-anywhere/shared/dist/index.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/events.d.ts +457 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/events.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/events.js +217 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/events.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/index.d.ts +23 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/index.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/index.js +23 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/index.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/session.d.ts +149 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/session.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/session.js +158 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/session.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/types.d.ts +7 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/types.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/types.js +6 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/types.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/projectId.d.ts +48 -0
- package/bundled/@yep-anywhere/shared/dist/projectId.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/projectId.js +74 -0
- package/bundled/@yep-anywhere/shared/dist/projectId.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/session/SessionView.d.ts +171 -0
- package/bundled/@yep-anywhere/shared/dist/session/SessionView.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/session/SessionView.js +189 -0
- package/bundled/@yep-anywhere/shared/dist/session/SessionView.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/session/UnifiedSession.d.ts +31 -0
- package/bundled/@yep-anywhere/shared/dist/session/UnifiedSession.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/session/UnifiedSession.js +2 -0
- package/bundled/@yep-anywhere/shared/dist/session/UnifiedSession.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/session/index.d.ts +3 -0
- package/bundled/@yep-anywhere/shared/dist/session/index.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/session/index.js +2 -0
- package/bundled/@yep-anywhere/shared/dist/session/index.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/types.d.ts +172 -0
- package/bundled/@yep-anywhere/shared/dist/types.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/types.js +33 -0
- package/bundled/@yep-anywhere/shared/dist/types.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/upload.d.ts +58 -0
- package/bundled/@yep-anywhere/shared/dist/upload.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/upload.js +6 -0
- package/bundled/@yep-anywhere/shared/dist/upload.js.map +1 -0
- package/bundled/@yep-anywhere/shared/package.json +7 -0
- package/client-dist/assets/index-C7DeAWG4.css +1 -0
- package/client-dist/assets/index-yX0HPwrz.js +147 -0
- package/client-dist/badge-96.png +0 -0
- package/client-dist/badge.svg +20 -0
- package/client-dist/debug-streaming.html +746 -0
- package/client-dist/favicon.ico +0 -0
- package/client-dist/icon-192.png +0 -0
- package/client-dist/icon-512.png +0 -0
- package/client-dist/icon.svg +27 -0
- package/client-dist/index.html +35 -0
- package/client-dist/manifest.json +23 -0
- package/client-dist/sw.js +482 -0
- package/dist/app.d.ts +67 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +236 -0
- package/dist/app.js.map +1 -0
- package/dist/augments/augment-generator.d.ts +30 -0
- package/dist/augments/augment-generator.d.ts.map +1 -0
- package/dist/augments/augment-generator.js +171 -0
- package/dist/augments/augment-generator.js.map +1 -0
- package/dist/augments/block-detector.d.ts +81 -0
- package/dist/augments/block-detector.d.ts.map +1 -0
- package/dist/augments/block-detector.js +615 -0
- package/dist/augments/block-detector.js.map +1 -0
- package/dist/augments/edit-augments.d.ts +138 -0
- package/dist/augments/edit-augments.d.ts.map +1 -0
- package/dist/augments/edit-augments.js +665 -0
- package/dist/augments/edit-augments.js.map +1 -0
- package/dist/augments/index.d.ts +14 -0
- package/dist/augments/index.d.ts.map +1 -0
- package/dist/augments/index.js +20 -0
- package/dist/augments/index.js.map +1 -0
- package/dist/augments/markdown-augments.d.ts +33 -0
- package/dist/augments/markdown-augments.d.ts.map +1 -0
- package/dist/augments/markdown-augments.js +128 -0
- package/dist/augments/markdown-augments.js.map +1 -0
- package/dist/augments/read-augments.d.ts +40 -0
- package/dist/augments/read-augments.d.ts.map +1 -0
- package/dist/augments/read-augments.js +64 -0
- package/dist/augments/read-augments.js.map +1 -0
- package/dist/augments/stream-coordinator.d.ts +32 -0
- package/dist/augments/stream-coordinator.d.ts.map +1 -0
- package/dist/augments/stream-coordinator.js +115 -0
- package/dist/augments/stream-coordinator.js.map +1 -0
- package/dist/augments/write-augments.d.ts +32 -0
- package/dist/augments/write-augments.d.ts.map +1 -0
- package/dist/augments/write-augments.js +27 -0
- package/dist/augments/write-augments.js.map +1 -0
- package/dist/auth/AuthService.d.ts +98 -0
- package/dist/auth/AuthService.d.ts.map +1 -0
- package/dist/auth/AuthService.js +217 -0
- package/dist/auth/AuthService.js.map +1 -0
- package/dist/auth/index.d.ts +3 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +3 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/routes.d.ts +13 -0
- package/dist/auth/routes.d.ts.map +1 -0
- package/dist/auth/routes.js +149 -0
- package/dist/auth/routes.js.map +1 -0
- package/dist/cli.d.ts +19 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +152 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +76 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +124 -0
- package/dist/config.js.map +1 -0
- package/dist/dev-mock.d.ts +18 -0
- package/dist/dev-mock.d.ts.map +1 -0
- package/dist/dev-mock.js +260 -0
- package/dist/dev-mock.js.map +1 -0
- package/dist/frontend/index.d.ts +10 -0
- package/dist/frontend/index.d.ts.map +1 -0
- package/dist/frontend/index.js +10 -0
- package/dist/frontend/index.js.map +1 -0
- package/dist/frontend/proxy.d.ts +70 -0
- package/dist/frontend/proxy.d.ts.map +1 -0
- package/dist/frontend/proxy.js +329 -0
- package/dist/frontend/proxy.js.map +1 -0
- package/dist/frontend/static.d.ts +16 -0
- package/dist/frontend/static.d.ts.map +1 -0
- package/dist/frontend/static.js +106 -0
- package/dist/frontend/static.js.map +1 -0
- package/dist/highlighting/index.d.ts +43 -0
- package/dist/highlighting/index.d.ts.map +1 -0
- package/dist/highlighting/index.js +224 -0
- package/dist/highlighting/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +259 -0
- package/dist/index.js.map +1 -0
- package/dist/indexes/SessionIndexService.d.ts +106 -0
- package/dist/indexes/SessionIndexService.d.ts.map +1 -0
- package/dist/indexes/SessionIndexService.js +356 -0
- package/dist/indexes/SessionIndexService.js.map +1 -0
- package/dist/indexes/index.d.ts +3 -0
- package/dist/indexes/index.d.ts.map +1 -0
- package/dist/indexes/index.js +2 -0
- package/dist/indexes/index.js.map +1 -0
- package/dist/indexes/types.d.ts +55 -0
- package/dist/indexes/types.d.ts.map +1 -0
- package/dist/indexes/types.js +8 -0
- package/dist/indexes/types.js.map +1 -0
- package/dist/logging/index.d.ts +2 -0
- package/dist/logging/index.d.ts.map +1 -0
- package/dist/logging/index.js +2 -0
- package/dist/logging/index.js.map +1 -0
- package/dist/logging/logger.d.ts +81 -0
- package/dist/logging/logger.d.ts.map +1 -0
- package/dist/logging/logger.js +257 -0
- package/dist/logging/logger.js.map +1 -0
- package/dist/maintenance/debug-routes.d.ts +39 -0
- package/dist/maintenance/debug-routes.d.ts.map +1 -0
- package/dist/maintenance/debug-routes.js +561 -0
- package/dist/maintenance/debug-routes.js.map +1 -0
- package/dist/maintenance/index.d.ts +3 -0
- package/dist/maintenance/index.d.ts.map +1 -0
- package/dist/maintenance/index.js +3 -0
- package/dist/maintenance/index.js.map +1 -0
- package/dist/maintenance/server.d.ts +53 -0
- package/dist/maintenance/server.d.ts.map +1 -0
- package/dist/maintenance/server.js +419 -0
- package/dist/maintenance/server.js.map +1 -0
- package/dist/metadata/SessionMetadataService.d.ts +96 -0
- package/dist/metadata/SessionMetadataService.d.ts.map +1 -0
- package/dist/metadata/SessionMetadataService.js +209 -0
- package/dist/metadata/SessionMetadataService.js.map +1 -0
- package/dist/metadata/index.d.ts +2 -0
- package/dist/metadata/index.d.ts.map +1 -0
- package/dist/metadata/index.js +2 -0
- package/dist/metadata/index.js.map +1 -0
- package/dist/middleware/auth.d.ts +18 -0
- package/dist/middleware/auth.d.ts.map +1 -0
- package/dist/middleware/auth.js +53 -0
- package/dist/middleware/auth.js.map +1 -0
- package/dist/middleware/security.d.ts +4 -0
- package/dist/middleware/security.d.ts.map +1 -0
- package/dist/middleware/security.js +28 -0
- package/dist/middleware/security.js.map +1 -0
- package/dist/notifications/NotificationService.d.ts +76 -0
- package/dist/notifications/NotificationService.d.ts.map +1 -0
- package/dist/notifications/NotificationService.js +155 -0
- package/dist/notifications/NotificationService.js.map +1 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.js +2 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/projects/codex-scanner.d.ts +52 -0
- package/dist/projects/codex-scanner.d.ts.map +1 -0
- package/dist/projects/codex-scanner.js +167 -0
- package/dist/projects/codex-scanner.js.map +1 -0
- package/dist/projects/gemini-project-map.d.ts +54 -0
- package/dist/projects/gemini-project-map.d.ts.map +1 -0
- package/dist/projects/gemini-project-map.js +116 -0
- package/dist/projects/gemini-project-map.js.map +1 -0
- package/dist/projects/gemini-scanner.d.ts +58 -0
- package/dist/projects/gemini-scanner.d.ts.map +1 -0
- package/dist/projects/gemini-scanner.js +210 -0
- package/dist/projects/gemini-scanner.js.map +1 -0
- package/dist/projects/index.d.ts +16 -0
- package/dist/projects/index.d.ts.map +1 -0
- package/dist/projects/index.js +17 -0
- package/dist/projects/index.js.map +1 -0
- package/dist/projects/paths.d.ts +127 -0
- package/dist/projects/paths.d.ts.map +1 -0
- package/dist/projects/paths.js +185 -0
- package/dist/projects/paths.js.map +1 -0
- package/dist/projects/scanner.d.ts +45 -0
- package/dist/projects/scanner.d.ts.map +1 -0
- package/dist/projects/scanner.js +287 -0
- package/dist/projects/scanner.js.map +1 -0
- package/dist/push/PushNotifier.d.ts +48 -0
- package/dist/push/PushNotifier.d.ts.map +1 -0
- package/dist/push/PushNotifier.js +145 -0
- package/dist/push/PushNotifier.js.map +1 -0
- package/dist/push/PushService.d.ts +95 -0
- package/dist/push/PushService.d.ts.map +1 -0
- package/dist/push/PushService.js +245 -0
- package/dist/push/PushService.js.map +1 -0
- package/dist/push/index.d.ts +9 -0
- package/dist/push/index.d.ts.map +1 -0
- package/dist/push/index.js +8 -0
- package/dist/push/index.js.map +1 -0
- package/dist/push/routes.d.ts +10 -0
- package/dist/push/routes.d.ts.map +1 -0
- package/dist/push/routes.js +111 -0
- package/dist/push/routes.js.map +1 -0
- package/dist/push/types.d.ts +80 -0
- package/dist/push/types.d.ts.map +1 -0
- package/dist/push/types.js +5 -0
- package/dist/push/types.js.map +1 -0
- package/dist/push/vapid.d.ts +42 -0
- package/dist/push/vapid.d.ts.map +1 -0
- package/dist/push/vapid.js +132 -0
- package/dist/push/vapid.js.map +1 -0
- package/dist/recents/RecentsService.d.ts +77 -0
- package/dist/recents/RecentsService.d.ts.map +1 -0
- package/dist/recents/RecentsService.js +155 -0
- package/dist/recents/RecentsService.js.map +1 -0
- package/dist/recents/index.d.ts +2 -0
- package/dist/recents/index.d.ts.map +1 -0
- package/dist/recents/index.js +2 -0
- package/dist/recents/index.js.map +1 -0
- package/dist/routes/activity.d.ts +7 -0
- package/dist/routes/activity.d.ts.map +1 -0
- package/dist/routes/activity.js +80 -0
- package/dist/routes/activity.js.map +1 -0
- package/dist/routes/beads.d.ts +42 -0
- package/dist/routes/beads.d.ts.map +1 -0
- package/dist/routes/beads.js +101 -0
- package/dist/routes/beads.js.map +1 -0
- package/dist/routes/debug-streaming.d.ts +7 -0
- package/dist/routes/debug-streaming.d.ts.map +1 -0
- package/dist/routes/debug-streaming.js +88 -0
- package/dist/routes/debug-streaming.js.map +1 -0
- package/dist/routes/dev.d.ts +11 -0
- package/dist/routes/dev.d.ts.map +1 -0
- package/dist/routes/dev.js +55 -0
- package/dist/routes/dev.js.map +1 -0
- package/dist/routes/files.d.ts +7 -0
- package/dist/routes/files.d.ts.map +1 -0
- package/dist/routes/files.js +429 -0
- package/dist/routes/files.js.map +1 -0
- package/dist/routes/global-sessions.d.ts +76 -0
- package/dist/routes/global-sessions.d.ts.map +1 -0
- package/dist/routes/global-sessions.js +207 -0
- package/dist/routes/global-sessions.js.map +1 -0
- package/dist/routes/health.d.ts +3 -0
- package/dist/routes/health.d.ts.map +1 -0
- package/dist/routes/health.js +6 -0
- package/dist/routes/health.js.map +1 -0
- package/dist/routes/inbox.d.ts +45 -0
- package/dist/routes/inbox.d.ts.map +1 -0
- package/dist/routes/inbox.js +174 -0
- package/dist/routes/inbox.js.map +1 -0
- package/dist/routes/processes.d.ts +16 -0
- package/dist/routes/processes.d.ts.map +1 -0
- package/dist/routes/processes.js +82 -0
- package/dist/routes/processes.js.map +1 -0
- package/dist/routes/projects.d.ts +30 -0
- package/dist/routes/projects.d.ts.map +1 -0
- package/dist/routes/projects.js +316 -0
- package/dist/routes/projects.js.map +1 -0
- package/dist/routes/providers.d.ts +9 -0
- package/dist/routes/providers.d.ts.map +1 -0
- package/dist/routes/providers.js +63 -0
- package/dist/routes/providers.js.map +1 -0
- package/dist/routes/recents.d.ts +14 -0
- package/dist/routes/recents.d.ts.map +1 -0
- package/dist/routes/recents.js +82 -0
- package/dist/routes/recents.js.map +1 -0
- package/dist/routes/sessions.d.ts +26 -0
- package/dist/routes/sessions.d.ts.map +1 -0
- package/dist/routes/sessions.js +962 -0
- package/dist/routes/sessions.js.map +1 -0
- package/dist/routes/stream.d.ts +7 -0
- package/dist/routes/stream.d.ts.map +1 -0
- package/dist/routes/stream.js +561 -0
- package/dist/routes/stream.js.map +1 -0
- package/dist/routes/upload.d.ts +14 -0
- package/dist/routes/upload.d.ts.map +1 -0
- package/dist/routes/upload.js +278 -0
- package/dist/routes/upload.js.map +1 -0
- package/dist/sdk/cli-detection.d.ts +47 -0
- package/dist/sdk/cli-detection.d.ts.map +1 -0
- package/dist/sdk/cli-detection.js +122 -0
- package/dist/sdk/cli-detection.js.map +1 -0
- package/dist/sdk/messageLogger.d.ts +15 -0
- package/dist/sdk/messageLogger.d.ts.map +1 -0
- package/dist/sdk/messageLogger.js +68 -0
- package/dist/sdk/messageLogger.js.map +1 -0
- package/dist/sdk/messageQueue.d.ts +49 -0
- package/dist/sdk/messageQueue.d.ts.map +1 -0
- package/dist/sdk/messageQueue.js +186 -0
- package/dist/sdk/messageQueue.js.map +1 -0
- package/dist/sdk/mock.d.ts +16 -0
- package/dist/sdk/mock.d.ts.map +1 -0
- package/dist/sdk/mock.js +81 -0
- package/dist/sdk/mock.js.map +1 -0
- package/dist/sdk/providers/__mocks__/base.d.ts +78 -0
- package/dist/sdk/providers/__mocks__/base.d.ts.map +1 -0
- package/dist/sdk/providers/__mocks__/base.js +185 -0
- package/dist/sdk/providers/__mocks__/base.js.map +1 -0
- package/dist/sdk/providers/__mocks__/claude.d.ts +33 -0
- package/dist/sdk/providers/__mocks__/claude.d.ts.map +1 -0
- package/dist/sdk/providers/__mocks__/claude.js +146 -0
- package/dist/sdk/providers/__mocks__/claude.js.map +1 -0
- package/dist/sdk/providers/__mocks__/codex.d.ts +45 -0
- package/dist/sdk/providers/__mocks__/codex.d.ts.map +1 -0
- package/dist/sdk/providers/__mocks__/codex.js +160 -0
- package/dist/sdk/providers/__mocks__/codex.js.map +1 -0
- package/dist/sdk/providers/__mocks__/factory.d.ts +40 -0
- package/dist/sdk/providers/__mocks__/factory.d.ts.map +1 -0
- package/dist/sdk/providers/__mocks__/factory.js +183 -0
- package/dist/sdk/providers/__mocks__/factory.js.map +1 -0
- package/dist/sdk/providers/__mocks__/gemini.d.ts +43 -0
- package/dist/sdk/providers/__mocks__/gemini.d.ts.map +1 -0
- package/dist/sdk/providers/__mocks__/gemini.js +198 -0
- package/dist/sdk/providers/__mocks__/gemini.js.map +1 -0
- package/dist/sdk/providers/__mocks__/index.d.ts +23 -0
- package/dist/sdk/providers/__mocks__/index.d.ts.map +1 -0
- package/dist/sdk/providers/__mocks__/index.js +25 -0
- package/dist/sdk/providers/__mocks__/index.js.map +1 -0
- package/dist/sdk/providers/__mocks__/opencode.d.ts +33 -0
- package/dist/sdk/providers/__mocks__/opencode.d.ts.map +1 -0
- package/dist/sdk/providers/__mocks__/opencode.js +136 -0
- package/dist/sdk/providers/__mocks__/opencode.js.map +1 -0
- package/dist/sdk/providers/__mocks__/types.d.ts +50 -0
- package/dist/sdk/providers/__mocks__/types.d.ts.map +1 -0
- package/dist/sdk/providers/__mocks__/types.js +8 -0
- package/dist/sdk/providers/__mocks__/types.js.map +1 -0
- package/dist/sdk/providers/claude.d.ts +63 -0
- package/dist/sdk/providers/claude.d.ts.map +1 -0
- package/dist/sdk/providers/claude.js +252 -0
- package/dist/sdk/providers/claude.js.map +1 -0
- package/dist/sdk/providers/codex-oss.d.ts +108 -0
- package/dist/sdk/providers/codex-oss.d.ts.map +1 -0
- package/dist/sdk/providers/codex-oss.js +744 -0
- package/dist/sdk/providers/codex-oss.js.map +1 -0
- package/dist/sdk/providers/codex.d.ts +82 -0
- package/dist/sdk/providers/codex.d.ts.map +1 -0
- package/dist/sdk/providers/codex.js +597 -0
- package/dist/sdk/providers/codex.js.map +1 -0
- package/dist/sdk/providers/gemini.d.ts +78 -0
- package/dist/sdk/providers/gemini.d.ts.map +1 -0
- package/dist/sdk/providers/gemini.js +536 -0
- package/dist/sdk/providers/gemini.js.map +1 -0
- package/dist/sdk/providers/index.d.ts +22 -0
- package/dist/sdk/providers/index.d.ts.map +1 -0
- package/dist/sdk/providers/index.js +53 -0
- package/dist/sdk/providers/index.js.map +1 -0
- package/dist/sdk/providers/opencode.d.ts +95 -0
- package/dist/sdk/providers/opencode.d.ts.map +1 -0
- package/dist/sdk/providers/opencode.js +586 -0
- package/dist/sdk/providers/opencode.js.map +1 -0
- package/dist/sdk/providers/types.d.ts +99 -0
- package/dist/sdk/providers/types.d.ts.map +1 -0
- package/dist/sdk/providers/types.js +2 -0
- package/dist/sdk/providers/types.js.map +1 -0
- package/dist/sdk/real.d.ts +20 -0
- package/dist/sdk/real.d.ts.map +1 -0
- package/dist/sdk/real.js +22 -0
- package/dist/sdk/real.js.map +1 -0
- package/dist/sdk/types.d.ts +113 -0
- package/dist/sdk/types.d.ts.map +1 -0
- package/dist/sdk/types.js +3 -0
- package/dist/sdk/types.js.map +1 -0
- package/dist/sessions/Session.d.ts +80 -0
- package/dist/sessions/Session.d.ts.map +1 -0
- package/dist/sessions/Session.js +119 -0
- package/dist/sessions/Session.js.map +1 -0
- package/dist/sessions/codex-reader.d.ts +166 -0
- package/dist/sessions/codex-reader.d.ts.map +1 -0
- package/dist/sessions/codex-reader.js +664 -0
- package/dist/sessions/codex-reader.js.map +1 -0
- package/dist/sessions/dag.d.ts +62 -0
- package/dist/sessions/dag.d.ts.map +1 -0
- package/dist/sessions/dag.js +175 -0
- package/dist/sessions/dag.js.map +1 -0
- package/dist/sessions/fork.d.ts +34 -0
- package/dist/sessions/fork.d.ts.map +1 -0
- package/dist/sessions/fork.js +58 -0
- package/dist/sessions/fork.js.map +1 -0
- package/dist/sessions/gemini-reader.d.ts +103 -0
- package/dist/sessions/gemini-reader.d.ts.map +1 -0
- package/dist/sessions/gemini-reader.js +332 -0
- package/dist/sessions/gemini-reader.js.map +1 -0
- package/dist/sessions/normalization.d.ts +7 -0
- package/dist/sessions/normalization.d.ts.map +1 -0
- package/dist/sessions/normalization.js +429 -0
- package/dist/sessions/normalization.js.map +1 -0
- package/dist/sessions/opencode-reader.d.ts +99 -0
- package/dist/sessions/opencode-reader.d.ts.map +1 -0
- package/dist/sessions/opencode-reader.js +370 -0
- package/dist/sessions/opencode-reader.js.map +1 -0
- package/dist/sessions/reader.d.ts +118 -0
- package/dist/sessions/reader.d.ts.map +1 -0
- package/dist/sessions/reader.js +444 -0
- package/dist/sessions/reader.js.map +1 -0
- package/dist/sessions/types.d.ts +77 -0
- package/dist/sessions/types.d.ts.map +1 -0
- package/dist/sessions/types.js +8 -0
- package/dist/sessions/types.js.map +1 -0
- package/dist/supervisor/ExternalSessionTracker.d.ts +94 -0
- package/dist/supervisor/ExternalSessionTracker.d.ts.map +1 -0
- package/dist/supervisor/ExternalSessionTracker.js +507 -0
- package/dist/supervisor/ExternalSessionTracker.js.map +1 -0
- package/dist/supervisor/Process.d.ts +230 -0
- package/dist/supervisor/Process.d.ts.map +1 -0
- package/dist/supervisor/Process.js +878 -0
- package/dist/supervisor/Process.js.map +1 -0
- package/dist/supervisor/Supervisor.d.ts +191 -0
- package/dist/supervisor/Supervisor.d.ts.map +1 -0
- package/dist/supervisor/Supervisor.js +933 -0
- package/dist/supervisor/Supervisor.js.map +1 -0
- package/dist/supervisor/WorkerQueue.d.ts +113 -0
- package/dist/supervisor/WorkerQueue.d.ts.map +1 -0
- package/dist/supervisor/WorkerQueue.js +148 -0
- package/dist/supervisor/WorkerQueue.js.map +1 -0
- package/dist/supervisor/types.d.ts +176 -0
- package/dist/supervisor/types.d.ts.map +1 -0
- package/dist/supervisor/types.js +7 -0
- package/dist/supervisor/types.js.map +1 -0
- package/dist/testing/mockProjectData.d.ts +5 -0
- package/dist/testing/mockProjectData.d.ts.map +1 -0
- package/dist/testing/mockProjectData.js +27 -0
- package/dist/testing/mockProjectData.js.map +1 -0
- package/dist/uploads/index.d.ts +3 -0
- package/dist/uploads/index.d.ts.map +1 -0
- package/dist/uploads/index.js +2 -0
- package/dist/uploads/index.js.map +1 -0
- package/dist/uploads/manager.d.ts +84 -0
- package/dist/uploads/manager.d.ts.map +1 -0
- package/dist/uploads/manager.js +215 -0
- package/dist/uploads/manager.js.map +1 -0
- package/dist/utils/fileLock.d.ts +57 -0
- package/dist/utils/fileLock.d.ts.map +1 -0
- package/dist/utils/fileLock.js +91 -0
- package/dist/utils/fileLock.js.map +1 -0
- package/dist/watcher/BatchProcessor.d.ts +58 -0
- package/dist/watcher/BatchProcessor.d.ts.map +1 -0
- package/dist/watcher/BatchProcessor.js +105 -0
- package/dist/watcher/BatchProcessor.js.map +1 -0
- package/dist/watcher/EventBus.d.ts +157 -0
- package/dist/watcher/EventBus.d.ts.map +1 -0
- package/dist/watcher/EventBus.js +36 -0
- package/dist/watcher/EventBus.js.map +1 -0
- package/dist/watcher/FileWatcher.d.ts +42 -0
- package/dist/watcher/FileWatcher.d.ts.map +1 -0
- package/dist/watcher/FileWatcher.js +165 -0
- package/dist/watcher/FileWatcher.js.map +1 -0
- package/dist/watcher/SourceWatcher.d.ts +36 -0
- package/dist/watcher/SourceWatcher.d.ts.map +1 -0
- package/dist/watcher/SourceWatcher.js +97 -0
- package/dist/watcher/SourceWatcher.js.map +1 -0
- package/dist/watcher/index.d.ts +9 -0
- package/dist/watcher/index.d.ts.map +1 -0
- package/dist/watcher/index.js +5 -0
- package/dist/watcher/index.js.map +1 -0
- package/package.json +54 -0
- package/scripts/postinstall.js +48 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="iconGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
4
|
+
<stop offset="0%" stop-color="#22c55e" />
|
|
5
|
+
<stop offset="100%" stop-color="#16a34a" />
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<!-- Rounded square background -->
|
|
9
|
+
<rect x="0" y="0" width="120" height="120" rx="26" fill="url(#iconGrad)" />
|
|
10
|
+
<!-- Y-checkmark: checkmark part -->
|
|
11
|
+
<path
|
|
12
|
+
d="M 28 35 L 50 62 L 92 20"
|
|
13
|
+
fill="none"
|
|
14
|
+
stroke="#ffffff"
|
|
15
|
+
stroke-width="10"
|
|
16
|
+
stroke-linecap="round"
|
|
17
|
+
stroke-linejoin="round"
|
|
18
|
+
/>
|
|
19
|
+
<!-- Y-checkmark: tail part -->
|
|
20
|
+
<path
|
|
21
|
+
d="M 50 62 L 50 95"
|
|
22
|
+
fill="none"
|
|
23
|
+
stroke="#ffffff"
|
|
24
|
+
stroke-width="10"
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
/>
|
|
27
|
+
</svg>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, interactive-widget=resizes-content" />
|
|
6
|
+
<title>Yep Anywhere</title>
|
|
7
|
+
<link rel="icon" href="/favicon.ico" sizes="48x48" />
|
|
8
|
+
<link rel="icon" href="/icon-192.png" type="image/png" sizes="192x192" />
|
|
9
|
+
<link rel="apple-touch-icon" href="/icon-192.png" />
|
|
10
|
+
<link rel="manifest" href="/manifest.json" />
|
|
11
|
+
<meta name="theme-color" content="#1a1a2e" />
|
|
12
|
+
<style>
|
|
13
|
+
/* Critical CSS to prevent flash of white background - only html, body/root handled by main CSS */
|
|
14
|
+
html { background-color: #181818; }
|
|
15
|
+
html[data-theme="light"] { background-color: #faf9f5; }
|
|
16
|
+
html[data-theme="dark"] { background-color: #2f2f2f; }
|
|
17
|
+
@media (prefers-color-scheme: light) {
|
|
18
|
+
html:not([data-theme]) { background-color: #faf9f5; }
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
<script>
|
|
22
|
+
// Apply theme before page renders to prevent flash
|
|
23
|
+
(function() {
|
|
24
|
+
var stored = localStorage.getItem('yep-anywhere-theme');
|
|
25
|
+
var theme = stored || (window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'verydark');
|
|
26
|
+
document.documentElement.setAttribute('data-theme', theme);
|
|
27
|
+
})();
|
|
28
|
+
</script>
|
|
29
|
+
<script type="module" crossorigin src="/assets/index-yX0HPwrz.js"></script>
|
|
30
|
+
<link rel="stylesheet" crossorigin href="/assets/index-C7DeAWG4.css">
|
|
31
|
+
</head>
|
|
32
|
+
<body>
|
|
33
|
+
<div id="root"></div>
|
|
34
|
+
</body>
|
|
35
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Yep Anywhere",
|
|
3
|
+
"short_name": "Yep Anywhere",
|
|
4
|
+
"description": "Access your AI agents from anywhere",
|
|
5
|
+
"start_url": "/",
|
|
6
|
+
"display": "standalone",
|
|
7
|
+
"background_color": "#1f1f1f",
|
|
8
|
+
"theme_color": "#1f1f1f",
|
|
9
|
+
"icons": [
|
|
10
|
+
{
|
|
11
|
+
"src": "/icon-192.png",
|
|
12
|
+
"sizes": "192x192",
|
|
13
|
+
"type": "image/png",
|
|
14
|
+
"purpose": "any maskable"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"src": "/icon-512.png",
|
|
18
|
+
"sizes": "512x512",
|
|
19
|
+
"type": "image/png",
|
|
20
|
+
"purpose": "any maskable"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service Worker for Push Notifications
|
|
3
|
+
*
|
|
4
|
+
* Handles:
|
|
5
|
+
* - push: Receives push events and shows notifications
|
|
6
|
+
* - notificationclick: Handles user clicking on notifications
|
|
7
|
+
* - message: Receives settings updates from main thread
|
|
8
|
+
*
|
|
9
|
+
* Payload types (from server):
|
|
10
|
+
* - pending-input: Session needs approval or user question
|
|
11
|
+
* - session-halted: Session stopped working
|
|
12
|
+
* - dismiss: Close notification on other devices
|
|
13
|
+
* - test: Test notification
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
// Settings synced from main thread
|
|
17
|
+
const settings = {
|
|
18
|
+
notifyInApp: false, // When true, notify even when app is focused (if session not viewed)
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// ============ Debug Logging ============
|
|
22
|
+
// Logs are stored in IndexedDB for retrieval via main thread
|
|
23
|
+
|
|
24
|
+
const LOG_DB_NAME = "sw-logs";
|
|
25
|
+
const LOG_STORE_NAME = "logs";
|
|
26
|
+
const MAX_LOGS = 100;
|
|
27
|
+
|
|
28
|
+
async function openLogDb() {
|
|
29
|
+
return new Promise((resolve, reject) => {
|
|
30
|
+
const request = indexedDB.open(LOG_DB_NAME, 1);
|
|
31
|
+
request.onerror = () => reject(request.error);
|
|
32
|
+
request.onsuccess = () => resolve(request.result);
|
|
33
|
+
request.onupgradeneeded = (event) => {
|
|
34
|
+
const db = event.target.result;
|
|
35
|
+
if (!db.objectStoreNames.contains(LOG_STORE_NAME)) {
|
|
36
|
+
db.createObjectStore(LOG_STORE_NAME, {
|
|
37
|
+
keyPath: "id",
|
|
38
|
+
autoIncrement: true,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async function swLog(level, message, data = {}) {
|
|
46
|
+
const timestamp = new Date().toISOString();
|
|
47
|
+
const logEntry = { timestamp, level, message, data };
|
|
48
|
+
|
|
49
|
+
// Always log to console
|
|
50
|
+
const consoleMethod =
|
|
51
|
+
level === "error"
|
|
52
|
+
? console.error
|
|
53
|
+
: level === "warn"
|
|
54
|
+
? console.warn
|
|
55
|
+
: console.log;
|
|
56
|
+
consoleMethod(`[SW ${level.toUpperCase()}]`, message, data);
|
|
57
|
+
|
|
58
|
+
try {
|
|
59
|
+
const db = await openLogDb();
|
|
60
|
+
const tx = db.transaction(LOG_STORE_NAME, "readwrite");
|
|
61
|
+
const store = tx.objectStore(LOG_STORE_NAME);
|
|
62
|
+
|
|
63
|
+
// Add new log
|
|
64
|
+
store.add(logEntry);
|
|
65
|
+
|
|
66
|
+
// Prune old logs
|
|
67
|
+
const countRequest = store.count();
|
|
68
|
+
countRequest.onsuccess = () => {
|
|
69
|
+
if (countRequest.result > MAX_LOGS) {
|
|
70
|
+
const cursor = store.openCursor();
|
|
71
|
+
let deleted = 0;
|
|
72
|
+
const toDelete = countRequest.result - MAX_LOGS;
|
|
73
|
+
cursor.onsuccess = (e) => {
|
|
74
|
+
const c = e.target.result;
|
|
75
|
+
if (c && deleted < toDelete) {
|
|
76
|
+
c.delete();
|
|
77
|
+
deleted++;
|
|
78
|
+
c.continue();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
await tx.complete;
|
|
85
|
+
db.close();
|
|
86
|
+
} catch (e) {
|
|
87
|
+
// Silently fail if IndexedDB not available
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Expose logs retrieval via message
|
|
92
|
+
async function getSwLogs() {
|
|
93
|
+
try {
|
|
94
|
+
const db = await openLogDb();
|
|
95
|
+
const tx = db.transaction(LOG_STORE_NAME, "readonly");
|
|
96
|
+
const store = tx.objectStore(LOG_STORE_NAME);
|
|
97
|
+
|
|
98
|
+
return new Promise((resolve) => {
|
|
99
|
+
const request = store.getAll();
|
|
100
|
+
request.onsuccess = () => {
|
|
101
|
+
db.close();
|
|
102
|
+
resolve(request.result || []);
|
|
103
|
+
};
|
|
104
|
+
request.onerror = () => {
|
|
105
|
+
db.close();
|
|
106
|
+
resolve([]);
|
|
107
|
+
};
|
|
108
|
+
});
|
|
109
|
+
} catch {
|
|
110
|
+
return [];
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
async function clearSwLogs() {
|
|
115
|
+
try {
|
|
116
|
+
const db = await openLogDb();
|
|
117
|
+
const tx = db.transaction(LOG_STORE_NAME, "readwrite");
|
|
118
|
+
tx.objectStore(LOG_STORE_NAME).clear();
|
|
119
|
+
await tx.complete;
|
|
120
|
+
db.close();
|
|
121
|
+
} catch {
|
|
122
|
+
// Ignore
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Service Worker Lifecycle: Install & Activate
|
|
128
|
+
*
|
|
129
|
+
* We use skipWaiting() to activate immediately, but are careful with clients.claim().
|
|
130
|
+
*
|
|
131
|
+
* Problem: Calling clients.claim() while pages are loading can disrupt in-flight
|
|
132
|
+
* network requests (SSE connections, fetches), causing the page to appear to "reload".
|
|
133
|
+
* This is especially noticeable in dev mode where the SW updates frequently, or on
|
|
134
|
+
* mobile browsers with aggressive SW update checking.
|
|
135
|
+
*
|
|
136
|
+
* Solution: Only claim clients if there are no windows currently open. This means:
|
|
137
|
+
* - First visit: SW installs but doesn't claim until next navigation
|
|
138
|
+
* - SW update with tabs open: New SW waits, old SW continues serving
|
|
139
|
+
* - SW update with no tabs: New SW claims immediately
|
|
140
|
+
*
|
|
141
|
+
* Potential drawbacks:
|
|
142
|
+
* - Push notifications may be handled by old SW until user navigates/refreshes
|
|
143
|
+
* - Settings synced via postMessage won't reach new SW until it claims
|
|
144
|
+
* - In production this is rarely an issue; mainly affects dev mode with frequent updates
|
|
145
|
+
*
|
|
146
|
+
* Alternative: Remove skipWaiting() entirely for fully lazy updates, but this delays
|
|
147
|
+
* all SW updates until all tabs close (could be days).
|
|
148
|
+
*/
|
|
149
|
+
self.addEventListener("install", (event) => {
|
|
150
|
+
self.skipWaiting();
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
self.addEventListener("activate", (event) => {
|
|
154
|
+
event.waitUntil(
|
|
155
|
+
self.clients.matchAll({ type: "window" }).then((windowClients) => {
|
|
156
|
+
// Only claim if no windows are open - avoids disrupting active pages
|
|
157
|
+
if (windowClients.length === 0) {
|
|
158
|
+
return self.clients.claim();
|
|
159
|
+
}
|
|
160
|
+
// Otherwise, let pages naturally pick up new SW on next navigation
|
|
161
|
+
console.log(
|
|
162
|
+
`[SW] Skipping claim - ${windowClients.length} window(s) open`,
|
|
163
|
+
);
|
|
164
|
+
}),
|
|
165
|
+
);
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Handle messages from main thread
|
|
170
|
+
*/
|
|
171
|
+
self.addEventListener("message", async (event) => {
|
|
172
|
+
if (event.data?.type === "setting-update") {
|
|
173
|
+
const { key, value } = event.data;
|
|
174
|
+
if (key in settings) {
|
|
175
|
+
settings[key] = value;
|
|
176
|
+
await swLog("info", `Setting updated: ${key} = ${value}`);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Log retrieval for debugging
|
|
181
|
+
if (event.data?.type === "get-sw-logs") {
|
|
182
|
+
const logs = await getSwLogs();
|
|
183
|
+
event.ports[0]?.postMessage({ logs });
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// Clear logs
|
|
187
|
+
if (event.data?.type === "clear-sw-logs") {
|
|
188
|
+
await clearSwLogs();
|
|
189
|
+
event.ports[0]?.postMessage({ cleared: true });
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Handle incoming push notifications
|
|
195
|
+
*/
|
|
196
|
+
self.addEventListener("push", (event) => {
|
|
197
|
+
if (!event.data) {
|
|
198
|
+
event.waitUntil(swLog("warn", "Push event with no data"));
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
let data;
|
|
203
|
+
try {
|
|
204
|
+
data = event.data.json();
|
|
205
|
+
} catch (e) {
|
|
206
|
+
event.waitUntil(
|
|
207
|
+
swLog("error", "Failed to parse push data", { error: e.message }),
|
|
208
|
+
);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
event.waitUntil(
|
|
213
|
+
swLog("info", "Push received", {
|
|
214
|
+
type: data.type,
|
|
215
|
+
sessionId: data.sessionId,
|
|
216
|
+
}).then(() => handlePush(data)),
|
|
217
|
+
);
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
async function handlePush(data) {
|
|
221
|
+
// Check app window state for notification suppression
|
|
222
|
+
const clients = await self.clients.matchAll({
|
|
223
|
+
type: "window",
|
|
224
|
+
includeUncontrolled: true,
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
const focusedClients = clients.filter((client) => client.focused);
|
|
228
|
+
const hasFocusedClient = focusedClients.length > 0;
|
|
229
|
+
|
|
230
|
+
// Handle dismiss payload - close matching notification
|
|
231
|
+
if (data.type === "dismiss") {
|
|
232
|
+
const notifications = await self.registration.getNotifications({
|
|
233
|
+
tag: `session-${data.sessionId}`,
|
|
234
|
+
});
|
|
235
|
+
for (const notification of notifications) {
|
|
236
|
+
notification.close();
|
|
237
|
+
}
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// Test notifications always show (user explicitly requested them)
|
|
242
|
+
if (data.type === "test") {
|
|
243
|
+
return self.registration.showNotification("Yep Anywhere", {
|
|
244
|
+
body: data.message || "Test notification",
|
|
245
|
+
tag: "test",
|
|
246
|
+
icon: "/icon-192.png",
|
|
247
|
+
badge: "/badge-96.png",
|
|
248
|
+
requireInteraction: true,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// Determine if we should suppress notification
|
|
253
|
+
if (hasFocusedClient) {
|
|
254
|
+
if (settings.notifyInApp) {
|
|
255
|
+
// Check if any focused client is viewing THIS session
|
|
256
|
+
const sessionId = data.sessionId;
|
|
257
|
+
const isSessionOpen =
|
|
258
|
+
sessionId &&
|
|
259
|
+
focusedClients.some((client) => {
|
|
260
|
+
return client.url?.includes(`/sessions/${sessionId}`);
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
if (isSessionOpen) {
|
|
264
|
+
console.log(
|
|
265
|
+
"[SW] Session is open in focused window, skipping notification",
|
|
266
|
+
);
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
// Session not open - continue to show notification
|
|
270
|
+
} else {
|
|
271
|
+
// notifyInApp disabled - skip if any window focused
|
|
272
|
+
console.log("[SW] App is focused, skipping notification");
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// Handle different notification types
|
|
278
|
+
if (data.type === "pending-input") {
|
|
279
|
+
return showPendingInputNotification(data);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
if (data.type === "session-halted") {
|
|
283
|
+
return showSessionHaltedNotification(data);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
console.warn("[SW] Unknown push type:", data.type);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
async function showPendingInputNotification(data) {
|
|
290
|
+
const title = data.projectName || "Yep Anywhere";
|
|
291
|
+
const options = {
|
|
292
|
+
body: data.summary || "Waiting for input",
|
|
293
|
+
tag: `session-${data.sessionId}`,
|
|
294
|
+
icon: "/icon-192.png",
|
|
295
|
+
badge: "/badge-96.png",
|
|
296
|
+
data: {
|
|
297
|
+
sessionId: data.sessionId,
|
|
298
|
+
projectId: data.projectId,
|
|
299
|
+
inputType: data.inputType,
|
|
300
|
+
requestId: data.requestId,
|
|
301
|
+
},
|
|
302
|
+
requireInteraction: true,
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
// Only show Approve/Deny buttons for tool approvals
|
|
306
|
+
if (data.inputType === "tool-approval") {
|
|
307
|
+
options.actions = [
|
|
308
|
+
{ action: "approve", title: "Approve" },
|
|
309
|
+
{ action: "deny", title: "Deny" },
|
|
310
|
+
];
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
await swLog("info", "Showing pending-input notification", {
|
|
314
|
+
sessionId: data.sessionId,
|
|
315
|
+
requestId: data.requestId,
|
|
316
|
+
inputType: data.inputType,
|
|
317
|
+
hasActions: !!options.actions,
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
return self.registration.showNotification(title, options);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
function showSessionHaltedNotification(data) {
|
|
324
|
+
const title = data.projectName || "Yep Anywhere";
|
|
325
|
+
const reasonText = {
|
|
326
|
+
completed: "Task completed",
|
|
327
|
+
error: "Task encountered an error",
|
|
328
|
+
idle: "Task stopped",
|
|
329
|
+
};
|
|
330
|
+
const body = reasonText[data.reason] || "Session stopped";
|
|
331
|
+
|
|
332
|
+
const options = {
|
|
333
|
+
body,
|
|
334
|
+
tag: `session-halted-${data.sessionId}`,
|
|
335
|
+
icon: "/icon-192.png",
|
|
336
|
+
badge: "/badge-96.png",
|
|
337
|
+
data: {
|
|
338
|
+
sessionId: data.sessionId,
|
|
339
|
+
projectId: data.projectId,
|
|
340
|
+
},
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
return self.registration.showNotification(title, options);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Handle notification clicks
|
|
348
|
+
*/
|
|
349
|
+
self.addEventListener("notificationclick", (event) => {
|
|
350
|
+
const notification = event.notification;
|
|
351
|
+
const action = event.action;
|
|
352
|
+
const data = notification.data || {};
|
|
353
|
+
|
|
354
|
+
notification.close();
|
|
355
|
+
|
|
356
|
+
event.waitUntil(handleNotificationClick(action, data));
|
|
357
|
+
});
|
|
358
|
+
|
|
359
|
+
async function handleNotificationClick(action, data) {
|
|
360
|
+
const { sessionId, projectId, requestId, inputType } = data;
|
|
361
|
+
|
|
362
|
+
await swLog("info", "Notification clicked", {
|
|
363
|
+
action,
|
|
364
|
+
sessionId,
|
|
365
|
+
projectId,
|
|
366
|
+
requestId,
|
|
367
|
+
inputType,
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
// Handle approve/deny actions via API (don't open the app)
|
|
371
|
+
if ((action === "approve" || action === "deny") && requestId) {
|
|
372
|
+
await swLog("info", `Processing ${action} action for request ${requestId}`);
|
|
373
|
+
|
|
374
|
+
try {
|
|
375
|
+
const url = `/api/sessions/${sessionId}/input`;
|
|
376
|
+
const body = JSON.stringify({ requestId, response: action });
|
|
377
|
+
|
|
378
|
+
await swLog("info", `Fetching ${url}`, { body });
|
|
379
|
+
|
|
380
|
+
const response = await fetch(url, {
|
|
381
|
+
method: "POST",
|
|
382
|
+
headers: { "Content-Type": "application/json" },
|
|
383
|
+
credentials: "include", // Include cookies for auth
|
|
384
|
+
body,
|
|
385
|
+
});
|
|
386
|
+
|
|
387
|
+
if (response.ok) {
|
|
388
|
+
const result = await response.json().catch(() => ({}));
|
|
389
|
+
await swLog(
|
|
390
|
+
"info",
|
|
391
|
+
`Successfully sent '${action}' for session ${sessionId}`,
|
|
392
|
+
{ result },
|
|
393
|
+
);
|
|
394
|
+
return; // Don't open the app
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// API call failed
|
|
398
|
+
const errorText = await response.text().catch(() => "unknown");
|
|
399
|
+
await swLog("error", `API call failed for '${action}'`, {
|
|
400
|
+
status: response.status,
|
|
401
|
+
statusText: response.statusText,
|
|
402
|
+
errorText,
|
|
403
|
+
sessionId,
|
|
404
|
+
requestId,
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
// Show user-friendly notification - tapping opens the session
|
|
408
|
+
await self.registration.showNotification("Couldn't complete action", {
|
|
409
|
+
body: "Tap to open the session and try again",
|
|
410
|
+
tag: "action-error",
|
|
411
|
+
icon: "/icon-192.png",
|
|
412
|
+
badge: "/badge-96.png",
|
|
413
|
+
data: { sessionId, projectId },
|
|
414
|
+
requireInteraction: true,
|
|
415
|
+
});
|
|
416
|
+
|
|
417
|
+
return;
|
|
418
|
+
} catch (e) {
|
|
419
|
+
await swLog("error", "Failed to send action (network error)", {
|
|
420
|
+
error: e.message,
|
|
421
|
+
stack: e.stack,
|
|
422
|
+
sessionId,
|
|
423
|
+
requestId,
|
|
424
|
+
action,
|
|
425
|
+
});
|
|
426
|
+
|
|
427
|
+
// Show user-friendly notification - tapping opens the session
|
|
428
|
+
await self.registration.showNotification("Couldn't complete action", {
|
|
429
|
+
body: "Tap to open the session and try again",
|
|
430
|
+
tag: "action-error",
|
|
431
|
+
icon: "/icon-192.png",
|
|
432
|
+
badge: "/badge-96.png",
|
|
433
|
+
data: { sessionId, projectId },
|
|
434
|
+
requireInteraction: true,
|
|
435
|
+
});
|
|
436
|
+
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
// No action or no requestId - open the session
|
|
442
|
+
await swLog("info", "Opening session (no action or missing requestId)", {
|
|
443
|
+
action,
|
|
444
|
+
requestId,
|
|
445
|
+
});
|
|
446
|
+
return openSession(sessionId, projectId);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Open the session in the app window
|
|
451
|
+
*/
|
|
452
|
+
async function openSession(sessionId, projectId) {
|
|
453
|
+
// Build the URL to open
|
|
454
|
+
let url = "/";
|
|
455
|
+
if (sessionId && projectId) {
|
|
456
|
+
url = `/projects/${encodeURIComponent(projectId)}/sessions/${sessionId}`;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
// Try to focus an existing window with this session, or open a new one
|
|
460
|
+
const clients = await self.clients.matchAll({ type: "window" });
|
|
461
|
+
|
|
462
|
+
// Look for an existing window we can focus
|
|
463
|
+
for (const client of clients) {
|
|
464
|
+
// If already on this session, just focus
|
|
465
|
+
if (sessionId && client.url.includes(sessionId)) {
|
|
466
|
+
return client.focus();
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
// Try to navigate an existing window
|
|
471
|
+
for (const client of clients) {
|
|
472
|
+
if ("navigate" in client) {
|
|
473
|
+
await client.navigate(url);
|
|
474
|
+
return client.focus();
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
// Open a new window as fallback
|
|
479
|
+
if (self.clients.openWindow) {
|
|
480
|
+
return self.clients.openWindow(url);
|
|
481
|
+
}
|
|
482
|
+
}
|
package/dist/app.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { HttpBindings } from "@hono/node-server";
|
|
2
|
+
import { Hono } from "hono";
|
|
3
|
+
import type { AuthService } from "./auth/AuthService.js";
|
|
4
|
+
import type { FrontendProxy } from "./frontend/index.js";
|
|
5
|
+
import type { SessionIndexService } from "./indexes/index.js";
|
|
6
|
+
import type { SessionMetadataService } from "./metadata/index.js";
|
|
7
|
+
import type { NotificationService } from "./notifications/index.js";
|
|
8
|
+
import { ProjectScanner } from "./projects/scanner.js";
|
|
9
|
+
import { type PushService } from "./push/index.js";
|
|
10
|
+
import type { RecentsService } from "./recents/index.js";
|
|
11
|
+
import { type UploadDeps } from "./routes/upload.js";
|
|
12
|
+
import type { ClaudeSDK, PermissionMode, RealClaudeSDKInterface } from "./sdk/types.js";
|
|
13
|
+
import type { ISessionReader } from "./sessions/types.js";
|
|
14
|
+
import { Supervisor } from "./supervisor/Supervisor.js";
|
|
15
|
+
import type { Project } from "./supervisor/types.js";
|
|
16
|
+
import type { EventBus } from "./watcher/index.js";
|
|
17
|
+
export interface AppOptions {
|
|
18
|
+
/** Legacy SDK interface for mock SDK (for testing) */
|
|
19
|
+
sdk?: ClaudeSDK;
|
|
20
|
+
/** Real SDK interface with full features */
|
|
21
|
+
realSdk?: RealClaudeSDKInterface;
|
|
22
|
+
projectsDir?: string;
|
|
23
|
+
idleTimeoutMs?: number;
|
|
24
|
+
defaultPermissionMode?: PermissionMode;
|
|
25
|
+
/** EventBus for file change events */
|
|
26
|
+
eventBus?: EventBus;
|
|
27
|
+
/** WebSocket upgrader from @hono/node-ws (optional) */
|
|
28
|
+
upgradeWebSocket?: UploadDeps["upgradeWebSocket"];
|
|
29
|
+
/** NotificationService for tracking session read state */
|
|
30
|
+
notificationService?: NotificationService;
|
|
31
|
+
/** SessionMetadataService for custom titles and archive status */
|
|
32
|
+
sessionMetadataService?: SessionMetadataService;
|
|
33
|
+
/** SessionIndexService for caching session summaries */
|
|
34
|
+
sessionIndexService?: SessionIndexService;
|
|
35
|
+
/** Maximum concurrent workers. 0 = unlimited (default) */
|
|
36
|
+
maxWorkers?: number;
|
|
37
|
+
/** Idle threshold in milliseconds for preemption */
|
|
38
|
+
idlePreemptThresholdMs?: number;
|
|
39
|
+
/** Frontend proxy for dev mode (proxies non-API requests to Vite) */
|
|
40
|
+
frontendProxy?: FrontendProxy;
|
|
41
|
+
/** PushService for web push notifications */
|
|
42
|
+
pushService?: PushService;
|
|
43
|
+
/** RecentsService for tracking recently visited sessions */
|
|
44
|
+
recentsService?: RecentsService;
|
|
45
|
+
/** Maximum upload file size in bytes. 0 = unlimited */
|
|
46
|
+
maxUploadSizeBytes?: number;
|
|
47
|
+
/** Maximum queue size for pending requests. 0 = unlimited */
|
|
48
|
+
maxQueueSize?: number;
|
|
49
|
+
/** AuthService for cookie-based auth (optional) */
|
|
50
|
+
authService?: AuthService;
|
|
51
|
+
/** Whether auth is enabled */
|
|
52
|
+
authEnabled?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface AppResult {
|
|
55
|
+
app: Hono<{
|
|
56
|
+
Bindings: HttpBindings;
|
|
57
|
+
}>;
|
|
58
|
+
/** Supervisor instance for debug API access */
|
|
59
|
+
supervisor: Supervisor;
|
|
60
|
+
/** Project scanner for debug API access */
|
|
61
|
+
scanner: ProjectScanner;
|
|
62
|
+
/** Session reader factory for debug API access */
|
|
63
|
+
readerFactory: (project: Project) => ISessionReader;
|
|
64
|
+
}
|
|
65
|
+
export declare function createApp(options: AppOptions): AppResult;
|
|
66
|
+
export declare const app: Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
67
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AASpE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAezD,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AAKxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,WAAW,UAAU;IACzB,sDAAsD;IACtD,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,cAAc,CAAC;IACvC,sCAAsC;IACtC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAClD,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,kEAAkE;IAClE,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,wDAAwD;IACxD,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,qEAAqE;IACrE,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,4DAA4D;IAC5D,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,8BAA8B;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,IAAI,CAAC;QAAE,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC,CAAC;IACtC,+CAA+C;IAC/C,UAAU,EAAE,UAAU,CAAC;IACvB,2CAA2C;IAC3C,OAAO,EAAE,cAAc,CAAC;IACxB,kDAAkD;IAClD,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,cAAc,CAAC;CACrD;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,UAAU,GAAG,SAAS,CA6PxD;AAID,eAAO,MAAM,GAAG,4EAAa,CAAC"}
|