@kimuson/claude-code-viewer 0.6.0 → 0.6.1-beta.2
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/README.md +78 -59
- package/dist/main.js +5241 -5070
- package/dist/main.js.map +4 -4
- package/dist/migrations/20260401113328_cute_stryfe/migration.sql +34 -0
- package/dist/migrations/20260401113328_cute_stryfe/snapshot.json +315 -0
- package/dist/static/apple-touch-icon.png +0 -0
- package/dist/static/assets/AuthProvider-BKc7q7ka.js +22 -0
- package/dist/static/assets/ProtectedRoute-DvQQEf13.js +1 -0
- package/dist/static/assets/card-DGrqtTaC.js +1 -0
- package/dist/static/assets/createLucideIcon-BL_meogc.js +1 -0
- package/dist/static/assets/dist-CG2L4mx5.js +1 -0
- package/dist/static/assets/dist-DiGJ7VFi.js +84 -0
- package/dist/static/assets/eye-SsvAY8oF.js +1 -0
- package/dist/static/assets/index-CxG0FuBy.css +2 -0
- package/dist/static/assets/index-Dmx9Pg1o.js +20 -0
- package/dist/static/assets/input-B_6IT1CP.js +1 -0
- package/dist/static/assets/label-Cw6sZ5kQ.js +1 -0
- package/dist/static/assets/login-pLhQHKNI.js +1 -0
- package/dist/static/assets/markdown-parser-vendor-D9j1a-bm.js +29 -0
- package/dist/static/assets/messages-C8LOJGiE.js +1 -0
- package/dist/static/assets/messages-DdODLCjv.js +1 -0
- package/dist/static/assets/messages-V7iLbj1C.js +1 -0
- package/dist/static/assets/projects-DdfUtEAX.js +1 -0
- package/dist/static/assets/refractor-vendor-B-OUwWR7.js +4 -0
- package/dist/static/assets/rolldown-runtime-Dw2cE7zH.js +1 -0
- package/dist/static/assets/routes-9aZugTrf.js +1 -0
- package/dist/static/assets/session-B8VBnvYB.js +8 -0
- package/dist/static/assets/session-BZFmVWep.js +1 -0
- package/dist/static/assets/syntax-highlighter-vendor-CwGXx8v4.js +6 -0
- package/dist/static/assets/workbox-window.prod.es5-DaBTyiAs.js +2 -0
- package/dist/static/assets/xterm-vendor-BrP-ENHg.css +1 -0
- package/dist/static/assets/xterm-vendor-DRG2K165.js +36 -0
- package/dist/static/favicon.ico +0 -0
- package/dist/static/icon-192x192.png +0 -0
- package/dist/static/icon-512x512.png +0 -0
- package/dist/static/icon-maskable-192x192.png +0 -0
- package/dist/static/icon-maskable-512x512.png +0 -0
- package/dist/static/index.html +20 -9
- package/dist/static/manifest.webmanifest +1 -0
- package/dist/static/sw.js +1 -0
- package/package.json +79 -66
- package/dist/static/assets/ProtectedRoute-KMCDjFpr.js +0 -1
- package/dist/static/assets/eye-DsqhY3YQ.js +0 -1
- package/dist/static/assets/index-BU5VCG8M.js +0 -1
- package/dist/static/assets/index-BUy-hZ_L.js +0 -1
- package/dist/static/assets/index-CTq99aOX.css +0 -1
- package/dist/static/assets/index-DhqtKAUx.js +0 -101
- package/dist/static/assets/label-Bx75JYJV.js +0 -1
- package/dist/static/assets/login-CIKB0Oew.js +0 -1
- package/dist/static/assets/messages-D_2afeYc.js +0 -1
- package/dist/static/assets/messages-lrmcxVGh.js +0 -1
- package/dist/static/assets/messages-m0e3n_U5.js +0 -1
- package/dist/static/assets/session-D50bOHyT.js +0 -58
- package/dist/static/assets/session-DDGTF8rc.css +0 -1
- package/dist/static/assets/session-WhX_gGJt.js +0 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/static/index.html
CHANGED
|
@@ -1,17 +1,28 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<meta
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/>
|
|
6
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
7
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
8
|
+
<meta name="apple-mobile-web-app-title" content="CCV" />
|
|
9
|
+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
10
|
+
<link rel="icon" href="/favicon.ico" />
|
|
11
|
+
<meta name="theme-color" content="#0a0a0a" />
|
|
12
|
+
<meta name="description" content="Web Viewer for Claude Code history" />
|
|
10
13
|
<title>Claude Code Viewer</title>
|
|
11
|
-
<script type="module" crossorigin src="/assets/index-
|
|
12
|
-
<link rel="
|
|
13
|
-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-Dmx9Pg1o.js"></script>
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-Dw2cE7zH.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="/assets/markdown-parser-vendor-D9j1a-bm.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/dist-CG2L4mx5.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="/assets/card-DGrqtTaC.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/createLucideIcon-BL_meogc.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/AuthProvider-BKc7q7ka.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/assets/input-B_6IT1CP.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/assets/dist-DiGJ7VFi.js">
|
|
23
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CxG0FuBy.css">
|
|
24
|
+
<link rel="manifest" href="/manifest.webmanifest"></head>
|
|
14
25
|
<body>
|
|
15
26
|
<div id="app"></div>
|
|
16
27
|
</body>
|
|
17
|
-
</html>
|
|
28
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Claude Code Viewer","short_name":"CCV","description":"A full-featured web-based Claude Code client that provides complete interactive functionality for managing Claude Code projects.","start_url":"/","display":"standalone","background_color":"#0a0a0a","theme_color":"#0a0a0a","lang":"en","scope":"/","icons":[{"src":"icon-192x192.png","sizes":"192x192","type":"image/png"},{"src":"icon-512x512.png","sizes":"512x512","type":"image/png"},{"src":"icon-maskable-192x192.png","sizes":"192x192","type":"image/png","purpose":"maskable"},{"src":"icon-maskable-512x512.png","sizes":"512x512","type":"image/png","purpose":"maskable"}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
try{self[`workbox:core:7.3.0`]&&_()}catch{}var e=(e,...t)=>{let n=e;return t.length>0&&(n+=` :: ${JSON.stringify(t)}`),n},t=class extends Error{constructor(t,n){let r=e(t,n);super(r),this.name=t,this.details=n}};function n(e){e.then(()=>{})}var r=(e,t)=>t.some(t=>e instanceof t),i,a;function o(){return i||=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]}function s(){return a||=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey]}var c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap;function ee(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`success`,i),e.removeEventListener(`error`,a)},i=()=>{t(v(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(`success`,i),e.addEventListener(`error`,a)});return t.then(t=>{t instanceof IDBCursor&&c.set(t,e)}).catch(()=>{}),f.set(t,e),t}function te(e){if(l.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`complete`,i),e.removeEventListener(`error`,a),e.removeEventListener(`abort`,a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(`AbortError`,`AbortError`)),r()};e.addEventListener(`complete`,i),e.addEventListener(`error`,a),e.addEventListener(`abort`,a)});l.set(e,t)}var p={get(e,t,n){if(e instanceof IDBTransaction){if(t===`done`)return l.get(e);if(t===`objectStoreNames`)return e.objectStoreNames||u.get(e);if(t===`store`)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return v(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t===`done`||t===`store`)?!0:t in e}};function m(e){p=e(p)}function h(e){return e===IDBDatabase.prototype.transaction&&!(`objectStoreNames`in IDBTransaction.prototype)?function(t,...n){let r=e.call(y(this),t,...n);return u.set(r,t.sort?t.sort():[t]),v(r)}:s().includes(e)?function(...t){return e.apply(y(this),t),v(c.get(this))}:function(...t){return v(e.apply(y(this),t))}}function g(e){return typeof e==`function`?h(e):(e instanceof IDBTransaction&&te(e),r(e,o())?new Proxy(e,p):e)}function v(e){if(e instanceof IDBRequest)return ee(e);if(d.has(e))return d.get(e);let t=g(e);return t!==e&&(d.set(e,t),f.set(t,e)),t}var y=e=>f.get(e);function ne(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){let o=indexedDB.open(e,t),s=v(o);return r&&o.addEventListener(`upgradeneeded`,e=>{r(v(o.result),e.oldVersion,e.newVersion,v(o.transaction),e)}),n&&o.addEventListener(`blocked`,e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{a&&e.addEventListener(`close`,()=>a()),i&&e.addEventListener(`versionchange`,e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}function re(e,{blocked:t}={}){let n=indexedDB.deleteDatabase(e);return t&&n.addEventListener(`blocked`,e=>t(e.oldVersion,e)),v(n).then(()=>void 0)}var ie=[`get`,`getKey`,`getAll`,`getAllKeys`,`count`],b=[`put`,`add`,`delete`,`clear`],x=new Map;function S(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t==`string`))return;if(x.get(t))return x.get(t);let n=t.replace(/FromIndex$/,``),r=t!==n,i=b.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||ie.includes(n)))return;let a=async function(e,...t){let a=this.transaction(e,i?`readwrite`:`readonly`),o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return x.set(t,a),a}m(e=>({...e,get:(t,n,r)=>S(t,n)||e.get(t,n,r),has:(t,n)=>!!S(t,n)||e.has(t,n)}));try{self[`workbox:expiration:7.3.0`]&&_()}catch{}var C=`workbox-expiration`,w=`cache-entries`,T=e=>{let t=new URL(e,location.href);return t.hash=``,t.href},ae=class{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){let t=e.createObjectStore(w,{keyPath:`id`});t.createIndex(`cacheName`,`cacheName`,{unique:!1}),t.createIndex(`timestamp`,`timestamp`,{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&re(this._cacheName)}async setTimestamp(e,t){e=T(e);let n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(w,`readwrite`,{durability:`relaxed`});await r.store.put(n),await r.done}async getTimestamp(e){return(await(await this.getDb()).get(w,this._getId(e)))?.timestamp}async expireEntries(e,t){let n=await this.getDb(),r=await n.transaction(w).store.index(`timestamp`).openCursor(null,`prev`),i=[],a=0;for(;r;){let n=r.value;n.cacheName===this._cacheName&&(e&&n.timestamp<e||t&&a>=t?i.push(r.value):a++),r=await r.continue()}let o=[];for(let e of i)await n.delete(w,e.id),o.push(e.url);return o}_getId(e){return this._cacheName+`|`+T(e)}async getDb(){return this._db||=await ne(C,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)}),this._db}},oe=class{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ae(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;let e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(let e of t)await r.delete(e,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,n(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){let t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t===void 0?!0:t<n}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}},E={googleAnalytics:`googleAnalytics`,precache:`precache-v2`,prefix:`workbox`,runtime:`runtime`,suffix:typeof registration<`u`?registration.scope:``},D=e=>[E.prefix,e,E.suffix].filter(e=>e&&e.length>0).join(`-`),se=e=>{for(let t of Object.keys(E))e(t)},O={updateDetails:e=>{se(t=>{typeof e[t]==`string`&&(E[t]=e[t])})},getGoogleAnalyticsName:e=>e||D(E.googleAnalytics),getPrecacheName:e=>e||D(E.precache),getPrefix:()=>E.prefix,getRuntimeName:e=>e||D(E.runtime),getSuffix:()=>E.suffix},ce=e=>new URL(String(e),location.href).href.replace(RegExp(`^${location.origin}`),``),k=new Set;function le(e){k.add(e)}var A=class{constructor(e={}){this.cachedResponseWillBeUsed=async({event:e,request:t,cacheName:r,cachedResponse:i})=>{if(!i)return null;let a=this._isResponseDateFresh(i),o=this._getCacheExpiration(r);n(o.expireEntries());let s=o.updateTimestamp(t.url);if(e)try{e.waitUntil(s)}catch{}return a?i:null},this.cacheDidUpdate=async({cacheName:e,request:t})=>{let n=this._getCacheExpiration(e);await n.updateTimestamp(t.url),await n.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&le(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===O.getRuntimeName())throw new t(`expire-custom-caches-only`);let n=this._cacheExpirations.get(e);return n||(n=new oe(e,this._config),this._cacheExpirations.set(e,n)),n}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;let t=this._getDateHeaderTimestamp(e);return t===null?!0:t>=Date.now()-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has(`date`))return null;let t=e.headers.get(`date`),n=new Date(t).getTime();return isNaN(n)?null:n}async deleteCacheAndMetadata(){for(let[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}};function j(e,t){let n=t();return e.waitUntil(n),n}try{self[`workbox:precaching:7.3.0`]&&_()}catch{}var M=`__WB_REVISION__`;function N(e){if(!e)throw new t(`add-to-cache-list-unexpected-type`,{entry:e});if(typeof e==`string`){let t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}let{revision:n,url:r}=e;if(!r)throw new t(`add-to-cache-list-unexpected-type`,{entry:e});if(!n){let e=new URL(r,location.href);return{cacheKey:e.href,url:e.href}}let i=new URL(r,location.href),a=new URL(r,location.href);return i.searchParams.set(M,n),{cacheKey:i.href,url:a.href}}var P=class{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type===`install`&&t&&t.originalRequest&&t.originalRequest instanceof Request){let e=t.originalRequest.url;n?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return n}}},F=class{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{let n=t?.cacheKey||this._precacheController.getCacheKeyForURL(e.url);return n?new Request(n,{headers:e.headers}):e},this._precacheController=e}},I;function L(){if(I===void 0){let e=new Response(``);if(`body`in e)try{new Response(e.body),I=!0}catch{I=!1}I=!1}return I}async function R(e,n){let r=null;if(e.url&&(r=new URL(e.url).origin),r!==self.location.origin)throw new t(`cross-origin-copy-response`,{origin:r});let i=e.clone(),a={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=n?n(a):a,s=L()?i.body:await i.blob();return new Response(s,o)}function z(e,t){let n=new URL(e);for(let e of t)n.searchParams.delete(e);return n.href}async function B(e,t,n,r){let i=z(t.url,n);if(t.url===i)return e.match(t,r);let a=Object.assign(Object.assign({},r),{ignoreSearch:!0}),o=await e.keys(t,a);for(let t of o)if(i===z(t.url,n))return e.match(t,r)}var V=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function H(){for(let e of k)await e()}function U(e){return new Promise(t=>setTimeout(t,e))}try{self[`workbox:strategies:7.3.0`]&&_()}catch{}function W(e){return typeof e==`string`?new Request(e):e}var ue=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new V,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(let e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){let{event:n}=this,r=W(e);if(r.mode===`navigate`&&n instanceof FetchEvent&&n.preloadResponse){let e=await n.preloadResponse;if(e)return e}let i=this.hasCallback(`fetchDidFail`)?r.clone():null;try{for(let e of this.iterateCallbacks(`requestWillFetch`))r=await e({request:r.clone(),event:n})}catch(e){if(e instanceof Error)throw new t(`plugin-error-request-will-fetch`,{thrownErrorMessage:e.message})}let a=r.clone();try{let e;e=await fetch(r,r.mode===`navigate`?void 0:this._strategy.fetchOptions);for(let t of this.iterateCallbacks(`fetchDidSucceed`))e=await t({event:n,request:a,response:e});return e}catch(e){throw i&&await this.runCallbacks(`fetchDidFail`,{error:e,event:n,originalRequest:i.clone(),request:a.clone()}),e}}async fetchAndCachePut(e){let t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){let t=W(e),n,{cacheName:r,matchOptions:i}=this._strategy,a=await this.getCacheKey(t,`read`),o=Object.assign(Object.assign({},i),{cacheName:r});n=await caches.match(a,o);for(let e of this.iterateCallbacks(`cachedResponseWillBeUsed`))n=await e({cacheName:r,matchOptions:i,cachedResponse:n,request:a,event:this.event})||void 0;return n}async cachePut(e,n){let r=W(e);await U(0);let i=await this.getCacheKey(r,`write`);if(!n)throw new t(`cache-put-with-no-response`,{url:ce(i.url)});let a=await this._ensureResponseSafeToCache(n);if(!a)return!1;let{cacheName:o,matchOptions:s}=this._strategy,c=await self.caches.open(o),l=this.hasCallback(`cacheDidUpdate`),u=l?await B(c,i.clone(),[`__WB_REVISION__`],s):null;try{await c.put(i,l?a.clone():a)}catch(e){if(e instanceof Error)throw e.name===`QuotaExceededError`&&await H(),e}for(let e of this.iterateCallbacks(`cacheDidUpdate`))await e({cacheName:o,oldResponse:u,newResponse:a.clone(),request:i,event:this.event});return!0}async getCacheKey(e,t){let n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let r=e;for(let e of this.iterateCallbacks(`cacheKeyWillBeUsed`))r=W(await e({mode:t,request:r,event:this.event,params:this.params}));this._cacheKeys[n]=r}return this._cacheKeys[n]}hasCallback(e){for(let t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(let n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(let t of this._strategy.plugins)if(typeof t[e]==`function`){let n=this._pluginStateMap.get(t);yield r=>{let i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){for(;this._extendLifetimePromises.length;){let e=this._extendLifetimePromises.splice(0),t=(await Promise.allSettled(e)).find(e=>e.status===`rejected`);if(t)throw t.reason}}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(let e of this.iterateCallbacks(`cacheWillUpdate`))if(t=await e({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}},G=class{constructor(e={}){this.cacheName=O.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){let[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});let t=e.event,n=typeof e.request==`string`?new Request(e.request):e.request,r=`params`in e?e.params:void 0,i=new ue(this,{event:t,request:n,params:r}),a=this._getResponse(i,n,t);return[a,this._awaitComplete(a,i,n,t)]}async _getResponse(e,n,r){await e.runCallbacks(`handlerWillStart`,{event:r,request:n});let i;try{if(i=await this._handle(n,e),!i||i.type===`error`)throw new t(`no-response`,{url:n.url})}catch(t){if(t instanceof Error){for(let a of e.iterateCallbacks(`handlerDidError`))if(i=await a({error:t,event:r,request:n}),i)break}if(!i)throw t}for(let t of e.iterateCallbacks(`handlerWillRespond`))i=await t({event:r,request:n,response:i});return i}async _awaitComplete(e,t,n,r){let i,a;try{i=await e}catch{}try{await t.runCallbacks(`handlerDidRespond`,{event:r,request:n,response:i}),await t.doneWaiting()}catch(e){e instanceof Error&&(a=e)}if(await t.runCallbacks(`handlerDidComplete`,{event:r,request:n,response:i,error:a}),t.destroy(),a)throw a}},K=class e extends G{constructor(t={}){t.cacheName=O.getPrecacheName(t.cacheName),super(t),this._fallbackToNetwork=t.fallbackToNetwork!==!1,this.plugins.push(e.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){return await t.cacheMatch(e)||(t.event&&t.event.type===`install`?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,n){let r,i=n.params||{};if(this._fallbackToNetwork){let t=i.integrity,a=e.integrity,o=!a||a===t;r=await n.fetch(new Request(e,{integrity:e.mode===`no-cors`?void 0:a||t})),t&&o&&e.mode!==`no-cors`&&(this._useDefaultCacheabilityPluginIfNeeded(),await n.cachePut(e,r.clone()))}else throw new t(`missing-precache-entry`,{cacheName:this.cacheName,url:e.url});return r}async _handleInstall(e,n){this._useDefaultCacheabilityPluginIfNeeded();let r=await n.fetch(e);if(!await n.cachePut(e,r.clone()))throw new t(`bad-precaching-response`,{url:e.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let t=null,n=0;for(let[r,i]of this.plugins.entries())i!==e.copyRedirectedCacheableResponsesPlugin&&(i===e.defaultPrecacheCacheabilityPlugin&&(t=r),i.cacheWillUpdate&&n++);n===0?this.plugins.push(e.defaultPrecacheCacheabilityPlugin):n>1&&t!==null&&this.plugins.splice(t,1)}};K.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:e}){return!e||e.status>=400?null:e}},K.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:e}){return e.redirected?await R(e):e}};var de=class{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new K({cacheName:O.getPrecacheName(e),plugins:[...t,new F({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||=(self.addEventListener(`install`,this.install),self.addEventListener(`activate`,this.activate),!0)}addToCacheList(e){let n=[];for(let r of e){typeof r==`string`?n.push(r):r&&r.revision===void 0&&n.push(r.url);let{cacheKey:e,url:i}=N(r),a=typeof r!=`string`&&r.revision?`reload`:`default`;if(this._urlsToCacheKeys.has(i)&&this._urlsToCacheKeys.get(i)!==e)throw new t(`add-to-cache-list-conflicting-entries`,{firstEntry:this._urlsToCacheKeys.get(i),secondEntry:e});if(typeof r!=`string`&&r.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==r.integrity)throw new t(`add-to-cache-list-conflicting-integrities`,{url:i});this._cacheKeysToIntegrities.set(e,r.integrity)}if(this._urlsToCacheKeys.set(i,e),this._urlsToCacheModes.set(i,a),n.length>0){let e=`Workbox is precaching URLs without revision info: ${n.join(`, `)}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return j(e,async()=>{let t=new P;this.strategy.plugins.push(t);for(let[t,n]of this._urlsToCacheKeys){let r=this._cacheKeysToIntegrities.get(n),i=this._urlsToCacheModes.get(t),a=new Request(t,{integrity:r,cache:i,credentials:`same-origin`});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:a,event:e}))}let{updatedURLs:n,notUpdatedURLs:r}=t;return{updatedURLs:n,notUpdatedURLs:r}})}activate(e){return j(e,async()=>{let e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),n=new Set(this._urlsToCacheKeys.values()),r=[];for(let i of t)n.has(i.url)||(await e.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){let t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){let t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){let n=this.getCacheKeyForURL(e);if(!n)throw new t(`non-precached-url`,{url:e});return t=>(t.request=new Request(e),t.params=Object.assign({cacheKey:n},t.params),this.strategy.handle(t))}},q,J=()=>(q||=new de,q);try{self[`workbox:routing:7.3.0`]&&_()}catch{}var Y=e=>e&&typeof e==`object`?e:{handle:e},X=class{constructor(e,t,n=`GET`){this.handler=Y(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=Y(e)}},fe=class extends X{constructor(e,t,n){super(({url:t})=>{let n=e.exec(t.href);if(n&&!(t.origin!==location.origin&&n.index!==0))return n.slice(1)},t,n)}},pe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener(`fetch`,(e=>{let{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)}))}addCacheListener(){self.addEventListener(`message`,(e=>{if(e.data&&e.data.type===`CACHE_URLS`){let{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(t=>{typeof t==`string`&&(t=[t]);let n=new Request(...t);return this.handleRequest({request:n,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}}))}handleRequest({request:e,event:t}){let n=new URL(e.url,location.href);if(!n.protocol.startsWith(`http`))return;let r=n.origin===location.origin,{params:i,route:a}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:n}),o=a&&a.handler,s=e.method;if(!o&&this._defaultHandlerMap.has(s)&&(o=this._defaultHandlerMap.get(s)),!o)return;let c;try{c=o.handle({url:n,request:e,event:t,params:i})}catch(e){c=Promise.reject(e)}let l=a&&a.catchHandler;return c instanceof Promise&&(this._catchHandler||l)&&(c=c.catch(async r=>{if(l)try{return await l.handle({url:n,request:e,event:t,params:i})}catch(e){e instanceof Error&&(r=e)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw r})),c}findMatchingRoute({url:e,sameOrigin:t,request:n,event:r}){let i=this._routes.get(n.method)||[];for(let a of i){let i,o=a.match({url:e,sameOrigin:t,request:n,event:r});if(o)return i=o,(Array.isArray(i)&&i.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o==`boolean`)&&(i=void 0),{route:a,params:i}}return{}}setDefaultHandler(e,t=`GET`){this._defaultHandlerMap.set(t,Y(e))}setCatchHandler(e){this._catchHandler=Y(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new t(`unregister-route-but-not-found-with-method`,{method:e.method});let n=this._routes.get(e.method).indexOf(e);if(n>-1)this._routes.get(e.method).splice(n,1);else throw new t(`unregister-route-route-not-registered`)}},Z,me=()=>(Z||(Z=new pe,Z.addFetchListener(),Z.addCacheListener()),Z);function Q(e,n,r){let i;if(typeof e==`string`){let t=new URL(e,location.href);i=new X(({url:e})=>e.href===t.href,n,r)}else if(e instanceof RegExp)i=new fe(e,n,r);else if(typeof e==`function`)i=new X(e,n,r);else if(e instanceof X)i=e;else throw new t(`unsupported-route-type`,{moduleName:`workbox-routing`,funcName:`registerRoute`,paramName:`capture`});return me().registerRoute(i),i}function he(e,t=[]){for(let n of[...e.searchParams.keys()])t.some(e=>e.test(n))&&e.searchParams.delete(n);return e}function*ge(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:n=`index.html`,cleanURLs:r=!0,urlManipulation:i}={}){let a=new URL(e,location.href);a.hash=``,yield a.href;let o=he(a,t);if(yield o.href,n&&o.pathname.endsWith(`/`)){let e=new URL(o.href);e.pathname+=n,yield e.href}if(r){let e=new URL(o.href);e.pathname+=`.html`,yield e.href}if(i){let e=i({url:a});for(let t of e)yield t.href}}var _e=class extends X{constructor(e,t){super(({request:n})=>{let r=e.getURLsToCacheKeys();for(let i of ge(n.url,t)){let t=r.get(i);if(t)return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}},e.strategy)}};function ve(e){Q(new _e(J(),e))}var ye=`-precache-`,be=async(e,t=ye)=>{let n=(await self.caches.keys()).filter(n=>n.includes(t)&&n.includes(self.registration.scope)&&n!==e);return await Promise.all(n.map(e=>self.caches.delete(e))),n};function xe(){self.addEventListener(`activate`,(e=>{let t=O.getPrecacheName();e.waitUntil(be(t).then(e=>{}))}))}function $(e){return J().createHandlerBoundToURL(e)}function Se(e){J().precache(e)}function Ce(e,t){Se(e),ve(t)}var we=class extends X{constructor(e,{allowlist:t=[/./],denylist:n=[]}={}){super(e=>this._match(e),e),this._allowlist=t,this._denylist=n}_match({url:e,request:t}){if(t&&t.mode!==`navigate`)return!1;let n=e.pathname+e.search;for(let e of this._denylist)if(e.test(n))return!1;return!!this._allowlist.some(e=>e.test(n))}},Te={cacheWillUpdate:async({response:e})=>e.status===200||e.status===0?e:null},Ee=class extends G{constructor(e={}){super(e),this.plugins.some(e=>`cacheWillUpdate`in e)||this.plugins.unshift(Te),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,n){let r=[],i=[],a;if(this._networkTimeoutSeconds){let{id:t,promise:o}=this._getTimeoutPromise({request:e,logs:r,handler:n});a=t,i.push(o)}let o=this._getNetworkPromise({timeoutId:a,request:e,logs:r,handler:n});i.push(o);let s=await n.waitUntil((async()=>await n.waitUntil(Promise.race(i))||await o)());if(!s)throw new t(`no-response`,{url:e.url});return s}_getTimeoutPromise({request:e,logs:t,handler:n}){let r;return{promise:new Promise(t=>{r=setTimeout(async()=>{t(await n.cacheMatch(e))},this._networkTimeoutSeconds*1e3)}),id:r}}async _getNetworkPromise({timeoutId:e,request:t,logs:n,handler:r}){let i,a;try{a=await r.fetchAndCachePut(t)}catch(e){e instanceof Error&&(i=e)}return e&&clearTimeout(e),(i||!a)&&(a=await r.cacheMatch(t)),a}},De=class extends G{constructor(e={}){super(e),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,n){let r,i;try{let t=[n.fetch(e)];if(this._networkTimeoutSeconds){let e=U(this._networkTimeoutSeconds*1e3);t.push(e)}if(i=await Promise.race(t),!i)throw Error(`Timed out the network response after ${this._networkTimeoutSeconds} seconds.`)}catch(e){e instanceof Error&&(r=e)}if(!i)throw new t(`no-response`,{url:e.url,error:r});return i}};Ce([{"revision":"818c2a7829428423531253b59b5d95e1","url":"index.html"},{"revision":"0a7e80e9473442094efb046593c43015","url":"icon-maskable-512x512.png"},{"revision":"fe457dd920ac9f486d1449ff90e9877d","url":"icon-maskable-192x192.png"},{"revision":"0a7e80e9473442094efb046593c43015","url":"icon-512x512.png"},{"revision":"fe457dd920ac9f486d1449ff90e9877d","url":"icon-192x192.png"},{"revision":"895255da10daba9d266770cf1689d23d","url":"favicon.ico"},{"revision":"c2b3cc1a48883fb30ab77863fa838654","url":"apple-touch-icon.png"},{"revision":null,"url":"assets/xterm-vendor-DRG2K165.js"},{"revision":null,"url":"assets/xterm-vendor-BrP-ENHg.css"},{"revision":null,"url":"assets/workbox-window.prod.es5-DaBTyiAs.js"},{"revision":null,"url":"assets/syntax-highlighter-vendor-CwGXx8v4.js"},{"revision":null,"url":"assets/session-BZFmVWep.js"},{"revision":null,"url":"assets/session-B8VBnvYB.js"},{"revision":null,"url":"assets/routes-9aZugTrf.js"},{"revision":null,"url":"assets/rolldown-runtime-Dw2cE7zH.js"},{"revision":null,"url":"assets/refractor-vendor-B-OUwWR7.js"},{"revision":null,"url":"assets/projects-DdfUtEAX.js"},{"revision":null,"url":"assets/messages-V7iLbj1C.js"},{"revision":null,"url":"assets/messages-DdODLCjv.js"},{"revision":null,"url":"assets/messages-C8LOJGiE.js"},{"revision":null,"url":"assets/markdown-parser-vendor-D9j1a-bm.js"},{"revision":null,"url":"assets/login-pLhQHKNI.js"},{"revision":null,"url":"assets/label-Cw6sZ5kQ.js"},{"revision":null,"url":"assets/input-B_6IT1CP.js"},{"revision":null,"url":"assets/index-Dmx9Pg1o.js"},{"revision":null,"url":"assets/index-CxG0FuBy.css"},{"revision":null,"url":"assets/eye-SsvAY8oF.js"},{"revision":null,"url":"assets/dist-DiGJ7VFi.js"},{"revision":null,"url":"assets/dist-CG2L4mx5.js"},{"revision":null,"url":"assets/createLucideIcon-BL_meogc.js"},{"revision":null,"url":"assets/card-DGrqtTaC.js"},{"revision":null,"url":"assets/ProtectedRoute-DvQQEf13.js"},{"revision":null,"url":"assets/AuthProvider-BKc7q7ka.js"},{"revision":"c2b3cc1a48883fb30ab77863fa838654","url":"apple-touch-icon.png"},{"revision":"895255da10daba9d266770cf1689d23d","url":"favicon.ico"},{"revision":"fe457dd920ac9f486d1449ff90e9877d","url":"icon-192x192.png"},{"revision":"0a7e80e9473442094efb046593c43015","url":"icon-512x512.png"},{"revision":"fe457dd920ac9f486d1449ff90e9877d","url":"icon-maskable-192x192.png"},{"revision":"0a7e80e9473442094efb046593c43015","url":"icon-maskable-512x512.png"},{"revision":"aba1d187e457a57dabd71890aaf77577","url":"manifest.webmanifest"}]),xe(),Q(new we($(`/index.html`),{denylist:[/^\/api\//]})),Q(/\/api\/sse/,new De),Q(/^.*\/api\/.*/i,new Ee({cacheName:`api-cache`,plugins:[new A({maxEntries:100,maxAgeSeconds:3600})]})),self.addEventListener(`push`,e=>{if(!e.data)return;let t=e.data.json();e.waitUntil(self.registration.showNotification(t.title,{body:t.body,icon:`/icon-192x192.png`,badge:`/icon-192x192.png`,data:{url:t.url}}))}),self.addEventListener(`notificationclick`,e=>{e.notification.close();let t=e.notification.data?.url??`/`;e.waitUntil(self.clients.matchAll({type:`window`}).then(e=>{for(let t of e)if(`focus`in t)return t.focus();return self.clients.openWindow(t)}))});
|
package/package.json
CHANGED
|
@@ -1,39 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kimuson/claude-code-viewer",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1-beta.2",
|
|
4
4
|
"description": "A full-featured web-based Claude Code client that provides complete interactive functionality for managing Claude Code projects.",
|
|
5
|
-
"
|
|
5
|
+
"homepage": "https://github.com/d-kimuson/claude-code-viewer",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/d-kimuson/claude-code-viewer.git"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://github.com/d-kimuson/claude-code-viewer",
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=20.19.0"
|
|
17
|
-
},
|
|
18
11
|
"bin": {
|
|
19
12
|
"claude-code-viewer": "./dist/main.js"
|
|
20
13
|
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"type": "module",
|
|
21
18
|
"dependencies": {
|
|
22
|
-
"@anthropic-ai/claude-agent-sdk": "0.2.
|
|
23
|
-
"@anthropic-ai/claude-code": "2.1.
|
|
24
|
-
"@anthropic-ai/sdk": "0.
|
|
25
|
-
"@effect/cluster": "0.
|
|
26
|
-
"@effect/experimental": "0.
|
|
27
|
-
"@effect/platform": "0.
|
|
28
|
-
"@effect/platform-node": "0.
|
|
29
|
-
"@effect/rpc": "0.
|
|
30
|
-
"@effect/sql": "0.
|
|
31
|
-
"@effect/workflow": "0.
|
|
32
|
-
"@hono/node-server": "1.19.
|
|
19
|
+
"@anthropic-ai/claude-agent-sdk": "0.2.90",
|
|
20
|
+
"@anthropic-ai/claude-code": "2.1.90",
|
|
21
|
+
"@anthropic-ai/sdk": "0.82.0",
|
|
22
|
+
"@effect/cluster": "0.58.0",
|
|
23
|
+
"@effect/experimental": "0.60.0",
|
|
24
|
+
"@effect/platform": "0.96.0",
|
|
25
|
+
"@effect/platform-node": "0.106.0",
|
|
26
|
+
"@effect/rpc": "0.75.0",
|
|
27
|
+
"@effect/sql": "0.51.0",
|
|
28
|
+
"@effect/workflow": "0.18.0",
|
|
29
|
+
"@hono/node-server": "1.19.12",
|
|
33
30
|
"@hono/zod-validator": "0.7.6",
|
|
34
31
|
"@hookform/resolvers": "5.2.2",
|
|
35
|
-
"@lingui/core": "5.9.
|
|
36
|
-
"@lingui/react": "5.9.
|
|
32
|
+
"@lingui/core": "5.9.4",
|
|
33
|
+
"@lingui/react": "5.9.4",
|
|
37
34
|
"@radix-ui/react-avatar": "1.1.11",
|
|
38
35
|
"@radix-ui/react-checkbox": "1.3.3",
|
|
39
36
|
"@radix-ui/react-collapsible": "1.1.12",
|
|
@@ -44,12 +41,12 @@
|
|
|
44
41
|
"@radix-ui/react-slot": "1.2.4",
|
|
45
42
|
"@radix-ui/react-tabs": "1.1.13",
|
|
46
43
|
"@radix-ui/react-tooltip": "1.2.8",
|
|
47
|
-
"@replit/ruspty": "3.
|
|
48
|
-
"@tailwindcss/vite": "4.
|
|
49
|
-
"@tanstack/react-devtools": "0.
|
|
50
|
-
"@tanstack/react-query": "5.
|
|
51
|
-
"@tanstack/react-router": "1.
|
|
52
|
-
"@tanstack/react-router-devtools": "1.
|
|
44
|
+
"@replit/ruspty": "3.7.0",
|
|
45
|
+
"@tailwindcss/vite": "4.2.2",
|
|
46
|
+
"@tanstack/react-devtools": "0.10.1",
|
|
47
|
+
"@tanstack/react-query": "5.96.1",
|
|
48
|
+
"@tanstack/react-router": "1.168.10",
|
|
49
|
+
"@tanstack/react-router-devtools": "1.166.11",
|
|
53
50
|
"@xterm/addon-fit": "0.11.0",
|
|
54
51
|
"@xterm/xterm": "6.0.0",
|
|
55
52
|
"class-variance-authority": "0.7.1",
|
|
@@ -57,74 +54,90 @@
|
|
|
57
54
|
"cmdk": "1.1.1",
|
|
58
55
|
"commander": "14.0.3",
|
|
59
56
|
"date-fns": "4.1.0",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
57
|
+
"drizzle-orm": "1.0.0-beta.20",
|
|
58
|
+
"effect": "3.21.0",
|
|
59
|
+
"es-toolkit": "1.45.1",
|
|
60
|
+
"hono": "4.12.9",
|
|
61
|
+
"jotai": "2.19.0",
|
|
62
|
+
"lucide-react": "1.7.0",
|
|
66
63
|
"parse-git-diff": "0.0.20",
|
|
67
64
|
"prexit": "2.3.0",
|
|
68
65
|
"radix-ui": "1.4.3",
|
|
69
66
|
"react": "19.2.4",
|
|
70
67
|
"react-dom": "19.2.4",
|
|
71
68
|
"react-error-boundary": "6.1.1",
|
|
72
|
-
"react-hook-form": "7.
|
|
69
|
+
"react-hook-form": "7.72.0",
|
|
73
70
|
"react-markdown": "10.1.0",
|
|
74
|
-
"react-syntax-highlighter": "16.1.
|
|
71
|
+
"react-syntax-highlighter": "16.1.1",
|
|
75
72
|
"remark-gfm": "4.0.1",
|
|
76
73
|
"sonner": "2.0.7",
|
|
77
|
-
"tailwind-merge": "3.
|
|
74
|
+
"tailwind-merge": "3.5.0",
|
|
78
75
|
"ulid": "3.0.2",
|
|
79
|
-
"
|
|
76
|
+
"web-push": "^3.6.7",
|
|
77
|
+
"ws": "8.20.0",
|
|
80
78
|
"zod": "4.3.6"
|
|
81
79
|
},
|
|
82
80
|
"devDependencies": {
|
|
83
|
-
"@
|
|
84
|
-
"@effect/
|
|
85
|
-
"@lingui/cli": "5.9.
|
|
86
|
-
"@lingui/conf": "5.9.
|
|
87
|
-
"@lingui/format-json": "5.9.
|
|
88
|
-
"@lingui/loader": "5.9.
|
|
89
|
-
"@lingui/vite-plugin": "5.9.
|
|
90
|
-
"@tailwindcss/postcss": "4.
|
|
91
|
-
"@tanstack/router-plugin": "1.
|
|
81
|
+
"@effect/language-service": "0.84.2",
|
|
82
|
+
"@effect/vitest": "^0.29.0",
|
|
83
|
+
"@lingui/cli": "5.9.4",
|
|
84
|
+
"@lingui/conf": "5.9.4",
|
|
85
|
+
"@lingui/format-json": "5.9.4",
|
|
86
|
+
"@lingui/loader": "5.9.4",
|
|
87
|
+
"@lingui/vite-plugin": "5.9.4",
|
|
88
|
+
"@tailwindcss/postcss": "4.2.2",
|
|
89
|
+
"@tanstack/router-plugin": "1.167.12",
|
|
92
90
|
"@tsconfig/strictest": "2.0.8",
|
|
93
|
-
"@types/node": "25.
|
|
91
|
+
"@types/node": "25.5.0",
|
|
94
92
|
"@types/react": "19.2.14",
|
|
95
93
|
"@types/react-dom": "19.2.3",
|
|
96
94
|
"@types/react-syntax-highlighter": "15.5.13",
|
|
95
|
+
"@types/web-push": "^3.6.4",
|
|
97
96
|
"@types/ws": "8.18.1",
|
|
98
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
99
|
-
"@vitejs/plugin-react-swc": "4.
|
|
100
|
-
"dotenv": "17.
|
|
101
|
-
"
|
|
102
|
-
"
|
|
97
|
+
"@typescript/native-preview": "7.0.0-dev.20260401.1",
|
|
98
|
+
"@vitejs/plugin-react-swc": "4.3.0",
|
|
99
|
+
"dotenv": "17.4.0",
|
|
100
|
+
"drizzle-kit": "1.0.0-beta.20",
|
|
101
|
+
"esbuild": "0.27.5",
|
|
102
|
+
"gatecheck": "0.0.1-beta.5",
|
|
103
|
+
"jsdom": "^29.0.1",
|
|
104
|
+
"lefthook": "2.1.4",
|
|
103
105
|
"npm-run-all2": "8.0.4",
|
|
104
|
-
"
|
|
106
|
+
"oxfmt": "^0.43.0",
|
|
107
|
+
"oxlint": "^1.58.0",
|
|
108
|
+
"oxlint-tsgolint": "^0.19.0",
|
|
109
|
+
"playwright": "1.59.1",
|
|
105
110
|
"release-it": "19.2.4",
|
|
106
111
|
"release-it-pnpm": "4.6.6",
|
|
107
|
-
"tailwindcss": "4.
|
|
108
|
-
"tsx": "4.21.0",
|
|
112
|
+
"tailwindcss": "4.2.2",
|
|
109
113
|
"tw-animate-css": "1.4.0",
|
|
110
|
-
"
|
|
111
|
-
"vite": "
|
|
112
|
-
"vitest": "4.
|
|
114
|
+
"vite": "8.0.3",
|
|
115
|
+
"vite-plugin-pwa": "^1.2.0",
|
|
116
|
+
"vitest": "4.1.2",
|
|
117
|
+
"workbox-build": "^7.4.0",
|
|
118
|
+
"workbox-expiration": "^7.4.0",
|
|
119
|
+
"workbox-precaching": "^7.4.0",
|
|
120
|
+
"workbox-routing": "^7.4.0",
|
|
121
|
+
"workbox-strategies": "^7.4.0",
|
|
122
|
+
"workbox-window": "^7.4.0"
|
|
123
|
+
},
|
|
124
|
+
"engines": {
|
|
125
|
+
"node": ">=22.13.0"
|
|
113
126
|
},
|
|
114
127
|
"scripts": {
|
|
115
128
|
"dev": "run-p 'dev:*'",
|
|
116
129
|
"dev:frontend": "vite",
|
|
117
|
-
"dev:backend": "CCV_ENV=development
|
|
130
|
+
"dev:backend": "CCV_ENV=development node --watch --env-file-if-exists=.env.local src/server/main.ts",
|
|
118
131
|
"start": "node dist/main.js",
|
|
119
132
|
"build": "./scripts/build.sh",
|
|
120
133
|
"build:frontend": "vite build",
|
|
121
134
|
"build:backend": "esbuild src/server/main.ts --format=esm --bundle --packages=external --sourcemap --platform=node --outfile=dist/main.js",
|
|
122
|
-
"lint": "run-
|
|
123
|
-
"lint:
|
|
124
|
-
"lint:
|
|
125
|
-
"fix": "run-
|
|
126
|
-
"fix:
|
|
127
|
-
"fix:
|
|
135
|
+
"lint": "run-p 'lint:*'",
|
|
136
|
+
"lint:oxlint": "oxlint --ignore-path .gitignore",
|
|
137
|
+
"lint:oxfmt": "pnpm fix:oxfmt --check",
|
|
138
|
+
"fix": "run-p 'fix:*'",
|
|
139
|
+
"fix:oxlint": "pnpm lint:oxlint --fix",
|
|
140
|
+
"fix:oxfmt": "oxfmt --ignore-path .gitignore --no-error-on-unmatched-pattern",
|
|
128
141
|
"typecheck": "tsgo --noEmit",
|
|
129
142
|
"test": "vitest --run",
|
|
130
143
|
"test:watch": "vitest",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as y,r as c,X as T,j as s,W as D,P,S as $,M as j,V as N,K,a7 as W,u as X,a as G}from"./index-DhqtKAUx.js";const U=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],V=y("check",U);const Z=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ce=y("chevron-right",Z);const J=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],ae=y("folder",J);const Q=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ie=y("plus",Q);function Y(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function ee(e){const[t,o]=c.useState(void 0);return T(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const d=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const r=n[0];let u,l;if("borderBoxSize"in r){const a=r.borderBoxSize,f=Array.isArray(a)?a[0]:a;u=f.inlineSize,l=f.blockSize}else u=e.offsetWidth,l=e.offsetHeight;o({width:u,height:l})});return d.observe(e,{box:"border-box"}),()=>d.unobserve(e)}else o(void 0)},[e]),t}var _="Checkbox",[te]=K(_),[re,S]=te(_);function oe(e){const{__scopeCheckbox:t,checked:o,children:d,defaultChecked:n,disabled:r,form:u,name:l,onCheckedChange:a,required:f,value:x="on",internal_do_not_use_render:p}=e,[b,m]=$({prop:o,defaultProp:n??!1,onChange:a,caller:_}),[v,C]=c.useState(null),[g,i]=c.useState(null),h=c.useRef(!1),E=v?!!u||!!v.closest("form"):!0,R={checked:b,disabled:r,setChecked:m,control:v,setControl:C,name:l,form:u,value:x,hasConsumerStoppedPropagationRef:h,required:f,defaultChecked:k(n)?!1:n,isFormControl:E,bubbleInput:g,setBubbleInput:i};return s.jsx(re,{scope:t,...R,children:ne(p)?p(R):d})}var w="CheckboxTrigger",z=c.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:o,...d},n)=>{const{control:r,value:u,disabled:l,checked:a,required:f,setControl:x,setChecked:p,hasConsumerStoppedPropagationRef:b,isFormControl:m,bubbleInput:v}=S(w,e),C=j(n,x),g=c.useRef(a);return c.useEffect(()=>{const i=r?.form;if(i){const h=()=>p(g.current);return i.addEventListener("reset",h),()=>i.removeEventListener("reset",h)}},[r,p]),s.jsx(P.button,{type:"button",role:"checkbox","aria-checked":k(a)?"mixed":a,"aria-required":f,"data-state":q(a),"data-disabled":l?"":void 0,disabled:l,value:u,...d,ref:C,onKeyDown:N(t,i=>{i.key==="Enter"&&i.preventDefault()}),onClick:N(o,i=>{p(h=>k(h)?!0:!h),v&&m&&(b.current=i.isPropagationStopped(),b.current||i.stopPropagation())})})});z.displayName=w;var A=c.forwardRef((e,t)=>{const{__scopeCheckbox:o,name:d,checked:n,defaultChecked:r,required:u,disabled:l,value:a,onCheckedChange:f,form:x,...p}=e;return s.jsx(oe,{__scopeCheckbox:o,checked:n,defaultChecked:r,disabled:l,required:u,onCheckedChange:f,name:d,form:x,value:a,internal_do_not_use_render:({isFormControl:b})=>s.jsxs(s.Fragment,{children:[s.jsx(z,{...p,ref:t,__scopeCheckbox:o}),b&&s.jsx(L,{__scopeCheckbox:o})]})})});A.displayName=_;var M="CheckboxIndicator",B=c.forwardRef((e,t)=>{const{__scopeCheckbox:o,forceMount:d,...n}=e,r=S(M,o);return s.jsx(D,{present:d||k(r.checked)||r.checked===!0,children:s.jsx(P.span,{"data-state":q(r.checked),"data-disabled":r.disabled?"":void 0,...n,ref:t,style:{pointerEvents:"none",...e.style}})})});B.displayName=M;var F="CheckboxBubbleInput",L=c.forwardRef(({__scopeCheckbox:e,...t},o)=>{const{control:d,hasConsumerStoppedPropagationRef:n,checked:r,defaultChecked:u,required:l,disabled:a,name:f,value:x,form:p,bubbleInput:b,setBubbleInput:m}=S(F,e),v=j(o,m),C=Y(r),g=ee(d);c.useEffect(()=>{const h=b;if(!h)return;const E=window.HTMLInputElement.prototype,I=Object.getOwnPropertyDescriptor(E,"checked").set,H=!n.current;if(C!==r&&I){const O=new Event("click",{bubbles:H});h.indeterminate=k(r),I.call(h,k(r)?!1:r),h.dispatchEvent(O)}},[b,C,r,n]);const i=c.useRef(k(r)?!1:r);return s.jsx(P.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??i.current,required:l,disabled:a,name:f,value:x,form:p,...t,tabIndex:-1,ref:v,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});L.displayName=F;function ne(e){return typeof e=="function"}function k(e){return e==="indeterminate"}function q(e){return k(e)?"indeterminate":e?"checked":"unchecked"}function de({className:e,...t}){return s.jsx(A,{"data-slot":"checkbox",className:W("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:s.jsx(B,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:s.jsx(V,{className:"size-3.5"})})})}function ue({children:e}){const{isAuthenticated:t}=X(),o=G();return c.useEffect(()=>{t||o({to:"/login"})},[t,o]),t?s.jsx(s.Fragment,{children:e}):null}export{de as C,ae as F,ie as P,ce as a,ue as b,Y as c,V as d,ee as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c}from"./index-DhqtKAUx.js";const e=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],r=c("eye",e);export{r as E};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n,u as a,r as o,j as s,L as r}from"./index-DhqtKAUx.js";function c(){const e=n(),{isAuthenticated:t}=a();return o.useEffect(()=>{e(t?{to:"/projects"}:{to:"/login"})},[t,e]),s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:s.jsx(r,{className:"h-8 w-8 animate-spin text-muted-foreground"})})}export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g,p as j,h as N,j as e,C as v,b as w,d as y,e as P,f as h,T as s,i as C,B as l,k as b,r as o,l as k,m as D,a as _,n as F,t as u,o as L,D as S,q as I,s as E,v as q,w as T,x as H,y as M,L as Q}from"./index-DhqtKAUx.js";import{F as p,C as R,a as $,P as A,b as B}from"./ProtectedRoute-KMCDjFpr.js";import{L as K}from"./label-Bx75JYJV.js";const O=()=>g({queryKey:j.queryKey,queryFn:j.queryFn}),W=()=>{const{data:{projects:n}}=O(),{config:c}=N();return n.length,e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:n.map(t=>e.jsxs(v,{className:"hover:shadow-md transition-shadow",children:[e.jsxs(w,{children:[e.jsxs(y,{className:"flex items-center gap-2 justify-start items-start",children:[e.jsx(p,{className:"w-5 h-5 flex-shrink-0"}),e.jsx("span",{className:"text-wrap flex-1",children:t.meta.projectName??t.claudeProjectPath})]}),t.meta.projectPath?e.jsx(P,{children:t.meta.projectPath}):null]}),e.jsxs(h,{className:"space-y-2",children:[e.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.jsx(s,{id:"project_list.last_modified"})," ",t.lastModifiedAt?C(t.lastModifiedAt,{locale:c.locale,target:"time"}):""]}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[e.jsx(s,{id:"project_list.messages"})," ",t.meta.sessionCount]})]}),e.jsx(h,{className:"pt-0",children:e.jsx(l,{asChild:!0,className:"w-full",children:e.jsx(b,{to:"/projects/$projectId/session",params:{projectId:t.id},children:e.jsx(s,{id:"project_list.view_conversations"})})})})]},t.id))})},z=({onPathChange:n})=>{const[c,t]=o.useState(void 0),[d,x]=o.useState(!1),{data:r,isLoading:i}=k(D(c,d));o.useEffect(()=>{r?.currentPath&&n(r.currentPath)},[r?.currentPath,n]);const m=a=>{if(a===""){t(void 0);return}const f=`/${a}`;t(f)};return e.jsxs("div",{className:"border rounded-md",children:[e.jsx("div",{className:"p-3 border-b bg-muted/50",children:e.jsxs("p",{className:"text-sm font-medium",children:[e.jsx(s,{id:"directory_picker.current"})," ",e.jsx("span",{className:"font-mono",children:r?.currentPath||"~"})]})}),e.jsxs("div",{className:"p-3 border-b flex items-center gap-2",children:[e.jsx(R,{id:"show-hidden",checked:d,onCheckedChange:a=>x(a===!0)}),e.jsx(K,{htmlFor:"show-hidden",className:"text-sm cursor-pointer",children:e.jsx(s,{id:"directory_picker.show_hidden"})})]}),e.jsx("div",{className:"max-h-96 overflow-auto",children:i?e.jsx("div",{className:"p-8 text-center text-sm text-muted-foreground",children:e.jsx(s,{id:"directory_picker.loading"})}):r?.entries&&r.entries.length>0?e.jsx("div",{className:"divide-y",children:r.entries.filter(a=>a.type==="directory").filter(a=>d||a.name===".."||!a.name.startsWith(".")).map(a=>e.jsxs("button",{type:"button",onClick:()=>m(a.path),className:"w-full px-3 py-2 flex items-center gap-2 hover:bg-muted/50 transition-colors text-left",children:[a.name===".."?e.jsx($,{className:"w-4 h-4 rotate-180"}):e.jsx(p,{className:"w-4 h-4 text-blue-500"}),e.jsx("span",{className:"text-sm",children:a.name})]},a.path))}):e.jsx("div",{className:"p-8 text-center text-sm text-muted-foreground",children:e.jsx(s,{id:"directory_picker.no_directories"})})})]})},G=()=>{const[n,c]=o.useState(!1),[t,d]=o.useState(""),x=_(),r=F({mutationFn:async()=>{const i=await L.api.projects.$post({json:{projectPath:t}});if(!i.ok)throw new Error("Failed to set up project");return await i.json()},onSuccess:i=>{u.success("Project set up successfully"),c(!1),x({to:"/projects/$projectId/session",params:{projectId:i.projectId},search:m=>({...m,sessionId:i.sessionId})})},onError:i=>{u.error(i instanceof Error?i.message:"Failed to set up project")}});return e.jsxs(S,{open:n,onOpenChange:c,children:[e.jsx(I,{asChild:!0,children:e.jsxs(l,{"data-testid":"new-project-button",children:[e.jsx(A,{className:"w-4 h-4 mr-2"}),e.jsx(s,{id:"project.new"})]})}),e.jsxs(E,{className:"max-w-2xl","data-testid":"new-project-modal",children:[e.jsxs(q,{children:[e.jsx(T,{children:e.jsx(s,{id:"project.setup.title"})}),e.jsx(H,{children:e.jsx(s,{id:"project.setup.description",components:{0:e.jsx("code",{className:"text-sm bg-muted px-1 py-0.5 rounded"})}})})]}),e.jsx("div",{className:"py-4",children:e.jsx(z,{onPathChange:d})}),e.jsxs(M,{children:[e.jsx(l,{variant:"outline",onClick:()=>c(!1),children:e.jsx(s,{id:"common.action.cancel"})}),e.jsx(l,{onClick:async()=>await r.mutateAsync(),disabled:!t||r.isPending,children:r.isPending?e.jsxs(e.Fragment,{children:[e.jsx(Q,{className:"w-4 h-4 mr-2 animate-spin"}),e.jsx(s,{id:"project.setup.action.setting_up"})]}):e.jsx(s,{id:"project.setup.action.setup"})})]})]})]})},J=()=>e.jsx("div",{className:"flex h-screen max-h-screen overflow-hidden",children:e.jsx("div",{className:"flex-1 overflow-auto",children:e.jsxs("div",{className:"container mx-auto px-4 py-8",children:[e.jsx("header",{className:"mb-8",children:e.jsx("p",{className:"text-muted-foreground",children:e.jsx(s,{id:"projects.page.description"})})}),e.jsx("main",{children:e.jsxs("section",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h2",{className:"text-xl font-semibold",children:e.jsx(s,{id:"projects.page.title"})}),e.jsx(G,{})]}),e.jsx(o.Suspense,{fallback:e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx("div",{className:"text-muted-foreground",children:e.jsx(s,{id:"projects.page.loading"})})}),children:e.jsx(W,{})})]})})]})})});function Y(){return e.jsx(B,{children:e.jsx(J,{})})}export{Y as component};
|