@codori/client 0.0.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.
Files changed (47) hide show
  1. package/README.md +16 -0
  2. package/app/app.config.ts +8 -0
  3. package/app/app.vue +7 -0
  4. package/app/assets/css/main.css +75 -0
  5. package/app/components/ChatWorkspace.vue +1499 -0
  6. package/app/components/MessageContent.vue +27 -0
  7. package/app/components/MessagePartRenderer.ts +55 -0
  8. package/app/components/ProjectSidebar.vue +146 -0
  9. package/app/components/ProjectStatusDot.vue +76 -0
  10. package/app/components/ThreadList.vue +165 -0
  11. package/app/components/ThreadPanel.vue +94 -0
  12. package/app/components/TunnelNotice.vue +27 -0
  13. package/app/components/VisualSubagentStack.vue +267 -0
  14. package/app/components/message-item/CommandExecution.vue +66 -0
  15. package/app/components/message-item/ContextCompaction.vue +9 -0
  16. package/app/components/message-item/DynamicToolCall.vue +108 -0
  17. package/app/components/message-item/FileChange.vue +114 -0
  18. package/app/components/message-item/McpToolCall.vue +86 -0
  19. package/app/components/message-item/SubagentActivity.vue +181 -0
  20. package/app/components/message-item/UnifiedDiffViewer.vue +190 -0
  21. package/app/components/message-item/WebSearch.vue +24 -0
  22. package/app/components/message-item/use-chat-tool-state.ts +27 -0
  23. package/app/components/message-part/Event.vue +57 -0
  24. package/app/components/message-part/Item.ts +50 -0
  25. package/app/components/message-part/Text.vue +35 -0
  26. package/app/composables/useChatSession.ts +59 -0
  27. package/app/composables/useChatSubmitGuard.ts +28 -0
  28. package/app/composables/useProjects.ts +102 -0
  29. package/app/composables/useRpc.ts +34 -0
  30. package/app/composables/useThreadPanel.ts +18 -0
  31. package/app/composables/useVisualSubagentPanels.ts +20 -0
  32. package/app/layouts/default.vue +81 -0
  33. package/app/pages/index.vue +62 -0
  34. package/app/pages/projects/[...projectId]/index.vue +104 -0
  35. package/app/pages/projects/[...projectId]/threads/[threadId].vue +303 -0
  36. package/nuxt.config.ts +19 -0
  37. package/package.json +50 -0
  38. package/server/api/codori/projects/[projectId]/start.post.ts +17 -0
  39. package/server/api/codori/projects/[projectId]/status.get.ts +16 -0
  40. package/server/api/codori/projects/[projectId]/stop.post.ts +17 -0
  41. package/server/api/codori/projects/[projectId].get.ts +13 -0
  42. package/server/api/codori/projects/index.get.ts +7 -0
  43. package/server/utils/server-proxy.ts +25 -0
  44. package/shared/codex-chat.ts +340 -0
  45. package/shared/codex-rpc.ts +467 -0
  46. package/shared/codori.ts +62 -0
  47. package/shared/network.ts +34 -0
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # @codori/client
2
+
3
+ Codori Nuxt dashboard for project browsing, Codex chat, and thread resume.
4
+
5
+ This package can be run standalone in development against a remote Codori server:
6
+
7
+ ```bash
8
+ CODORI_SERVER_BASE=https://your-codori-host.example.com \
9
+ CODORI_SERVER_WS_BASE=wss://your-codori-host.example.com \
10
+ pnpm dev
11
+ ```
12
+
13
+ When those variables are omitted, the dashboard uses same-origin `/api/projects/*` and `/api/projects/:id/rpc`.
14
+
15
+ For the complete product documentation, see the repository README:
16
+ [https://github.com/comfuture/codori](https://github.com/comfuture/codori)
@@ -0,0 +1,8 @@
1
+ export default {
2
+ ui: {
3
+ colors: {
4
+ primary: 'blue',
5
+ neutral: 'zinc'
6
+ }
7
+ }
8
+ }
package/app/app.vue ADDED
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <UApp>
3
+ <NuxtLayout>
4
+ <NuxtPage />
5
+ </NuxtLayout>
6
+ </UApp>
7
+ </template>
@@ -0,0 +1,75 @@
1
+ @import "tailwindcss";
2
+ @import "@nuxt/ui";
3
+
4
+ html,
5
+ body,
6
+ #__nuxt {
7
+ min-height: 100%;
8
+ }
9
+
10
+ body {
11
+ margin: 0;
12
+ }
13
+
14
+ .cd-markdown {
15
+ font-size: 0.95rem;
16
+ line-height: 1.8;
17
+ color: var(--ui-text-highlighted);
18
+ }
19
+
20
+ .cd-markdown p,
21
+ .cd-markdown ul,
22
+ .cd-markdown ol,
23
+ .cd-markdown pre,
24
+ .cd-markdown blockquote {
25
+ margin: 0;
26
+ }
27
+
28
+ .cd-markdown > * + * {
29
+ margin-top: 0.85rem;
30
+ }
31
+
32
+ .cd-markdown ul,
33
+ .cd-markdown ol {
34
+ padding-left: 1.25rem;
35
+ }
36
+
37
+ .cd-markdown li + li {
38
+ margin-top: 0.35rem;
39
+ }
40
+
41
+ .cd-markdown a {
42
+ color: var(--ui-primary);
43
+ text-decoration: underline;
44
+ text-decoration-color: color-mix(in srgb, var(--ui-primary) 45%, transparent);
45
+ text-underline-offset: 0.18em;
46
+ }
47
+
48
+ .cd-markdown code {
49
+ border: 1px solid color-mix(in srgb, var(--ui-border) 85%, transparent);
50
+ background: color-mix(in srgb, var(--ui-bg-elevated) 55%, transparent);
51
+ border-radius: 0.5rem;
52
+ padding: 0.14rem 0.4rem;
53
+ font-size: 0.85em;
54
+ }
55
+
56
+ .cd-markdown pre {
57
+ overflow-x: auto;
58
+ border: 1px solid color-mix(in srgb, var(--ui-border) 85%, transparent);
59
+ background: color-mix(in srgb, var(--ui-bg-elevated) 60%, transparent);
60
+ border-radius: 1rem;
61
+ padding: 0.9rem 1rem;
62
+ }
63
+
64
+ .cd-markdown pre code {
65
+ border: 0;
66
+ background: transparent;
67
+ border-radius: 0;
68
+ padding: 0;
69
+ }
70
+
71
+ .cd-markdown blockquote {
72
+ border-left: 3px solid color-mix(in srgb, var(--ui-primary) 45%, transparent);
73
+ padding-left: 1rem;
74
+ color: var(--ui-text-toned);
75
+ }