@cuongtran001/kanna 1.30.0 → 1.32.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 (71) hide show
  1. package/README.md +33 -0
  2. package/dist/client/assets/{arc-BOYEUU0d.js → arc-D4GyYglR.js} +1 -1
  3. package/dist/client/assets/{architectureDiagram-3BPJPVTR-DxrVR9Kn.js → architectureDiagram-3BPJPVTR-C3l_Q6Ax.js} +1 -1
  4. package/dist/client/assets/{blockDiagram-GPEHLZMM-CC8k1IkD.js → blockDiagram-GPEHLZMM-BQ8JBucb.js} +1 -1
  5. package/dist/client/assets/{c4Diagram-AAUBKEIU-CgZOAiCt.js → c4Diagram-AAUBKEIU-BYomZAEE.js} +1 -1
  6. package/dist/client/assets/channel-dZwXdS5r.js +1 -0
  7. package/dist/client/assets/{chunk-2J33WTMH-D6vljUVJ.js → chunk-2J33WTMH-CSuMJsR5.js} +1 -1
  8. package/dist/client/assets/{chunk-4BX2VUAB-BfAlRJWY.js → chunk-4BX2VUAB-3KYcfeqk.js} +1 -1
  9. package/dist/client/assets/{chunk-55IACEB6-BMzPqqV_.js → chunk-55IACEB6-ED6vOHJb.js} +1 -1
  10. package/dist/client/assets/{chunk-727SXJPM-uuOVqqPD.js → chunk-727SXJPM-wLLXXuZX.js} +1 -1
  11. package/dist/client/assets/{chunk-AQP2D5EJ-CNhpyJbo.js → chunk-AQP2D5EJ-CKUxRB1L.js} +1 -1
  12. package/dist/client/assets/{chunk-FMBD7UC4-ghIgYkde.js → chunk-FMBD7UC4-CVhXC5uf.js} +1 -1
  13. package/dist/client/assets/{chunk-ND2GUHAM-CikTPTTm.js → chunk-ND2GUHAM-Y1ZZ2b5o.js} +1 -1
  14. package/dist/client/assets/{chunk-QZHKN3VN-D2kbrJdy.js → chunk-QZHKN3VN-71_N8C_Y.js} +1 -1
  15. package/dist/client/assets/classDiagram-4FO5ZUOK-B8BUmQox.js +1 -0
  16. package/dist/client/assets/classDiagram-v2-Q7XG4LA2-B8BUmQox.js +1 -0
  17. package/dist/client/assets/{cose-bilkent-S5V4N54A-DzsC1q7o.js → cose-bilkent-S5V4N54A-BqNxnfGJ.js} +1 -1
  18. package/dist/client/assets/{dagre-BM42HDAG-8q0msxd6.js → dagre-BM42HDAG-CXgF4MIo.js} +1 -1
  19. package/dist/client/assets/{diagram-2AECGRRQ-E53ZKDlI.js → diagram-2AECGRRQ-BzU2UPvi.js} +1 -1
  20. package/dist/client/assets/{diagram-5GNKFQAL-CvuxTArc.js → diagram-5GNKFQAL-CCj2GrOS.js} +1 -1
  21. package/dist/client/assets/{diagram-KO2AKTUF-BYcdzWQr.js → diagram-KO2AKTUF-CVhRNZEi.js} +1 -1
  22. package/dist/client/assets/{diagram-LMA3HP47-4zRWHp3L.js → diagram-LMA3HP47-DCy38v_L.js} +1 -1
  23. package/dist/client/assets/{diagram-OG6HWLK6-CvACBB96.js → diagram-OG6HWLK6-qfjKjB4D.js} +1 -1
  24. package/dist/client/assets/{erDiagram-TEJ5UH35-BROwbMc6.js → erDiagram-TEJ5UH35-BxLD4ahs.js} +1 -1
  25. package/dist/client/assets/{flowDiagram-I6XJVG4X-D-h6Yqbo.js → flowDiagram-I6XJVG4X-3A0JhKnm.js} +1 -1
  26. package/dist/client/assets/{ganttDiagram-6RSMTGT7-BhrrwGfV.js → ganttDiagram-6RSMTGT7-BX_HBVpr.js} +1 -1
  27. package/dist/client/assets/{gitGraphDiagram-PVQCEYII-BRMvHvSK.js → gitGraphDiagram-PVQCEYII-DZiMhMiW.js} +1 -1
  28. package/dist/client/assets/{index-Bo7yfp6O.js → index-BkXgrXYg.js} +264 -264
  29. package/dist/client/assets/{index-Ce9nXDhf.js → index-DeWpFuws.js} +1 -1
  30. package/dist/client/assets/{infoDiagram-5YYISTIA-CivuBKtK.js → infoDiagram-5YYISTIA-B7iLd0Jv.js} +1 -1
  31. package/dist/client/assets/{ishikawaDiagram-YF4QCWOH-Dlx7Va8R.js → ishikawaDiagram-YF4QCWOH-BNFsfe2_.js} +1 -1
  32. package/dist/client/assets/{journeyDiagram-JHISSGLW-DrgRqwF0.js → journeyDiagram-JHISSGLW-CucK3ekr.js} +1 -1
  33. package/dist/client/assets/{kanban-definition-UN3LZRKU-BSsLqa9o.js → kanban-definition-UN3LZRKU-CbHyCrxz.js} +1 -1
  34. package/dist/client/assets/{linear-B9dq863O.js → linear-807Ci9ff.js} +1 -1
  35. package/dist/client/assets/{mermaid.core-BQluhCKL.js → mermaid.core-CLOnzT6B.js} +4 -4
  36. package/dist/client/assets/{mindmap-definition-RKZ34NQL-BMbEyXgG.js → mindmap-definition-RKZ34NQL-BXeNDqk4.js} +1 -1
  37. package/dist/client/assets/{pieDiagram-4H26LBE5-D8jmPu-b.js → pieDiagram-4H26LBE5-C5_EnB5A.js} +1 -1
  38. package/dist/client/assets/{quadrantDiagram-W4KKPZXB-tsxE0Laj.js → quadrantDiagram-W4KKPZXB-LyPoQHQM.js} +1 -1
  39. package/dist/client/assets/{requirementDiagram-4Y6WPE33-BcWXv7_h.js → requirementDiagram-4Y6WPE33-uSBrur2Q.js} +1 -1
  40. package/dist/client/assets/{sankeyDiagram-5OEKKPKP-CAB-xh-d.js → sankeyDiagram-5OEKKPKP-Cpq-5nUO.js} +1 -1
  41. package/dist/client/assets/{sequenceDiagram-3UESZ5HK-Dfk3CynU.js → sequenceDiagram-3UESZ5HK-9oih0nLW.js} +1 -1
  42. package/dist/client/assets/{stateDiagram-AJRCARHV-CB5uQwDW.js → stateDiagram-AJRCARHV-CDvFGjks.js} +1 -1
  43. package/dist/client/assets/stateDiagram-v2-BHNVJYJU-CEwPp65e.js +1 -0
  44. package/dist/client/assets/{timeline-definition-PNZ67QCA-C28yzY56.js → timeline-definition-PNZ67QCA-DYCcv4FU.js} +1 -1
  45. package/dist/client/assets/{vennDiagram-CIIHVFJN-Drn5Agc4.js → vennDiagram-CIIHVFJN-YCuNhonH.js} +1 -1
  46. package/dist/client/assets/{wardley-L42UT6IY-CvNGW2q4.js → wardley-L42UT6IY-D8HqN7BH.js} +1 -1
  47. package/dist/client/assets/{wardleyDiagram-YWT4CUSO-CW6-4a0a.js → wardleyDiagram-YWT4CUSO-BB_bbixH.js} +1 -1
  48. package/dist/client/assets/{xychartDiagram-2RQKCTM6-DnrZll74.js → xychartDiagram-2RQKCTM6-DK7cYKcm.js} +1 -1
  49. package/dist/client/index.html +1 -1
  50. package/package.json +1 -1
  51. package/src/server/agent-deps-builders.ts +8 -0
  52. package/src/server/claude-send-command.test.ts +44 -0
  53. package/src/server/claude-send-command.ts +16 -2
  54. package/src/server/cron/fire.test.ts +59 -0
  55. package/src/server/cron/fire.ts +11 -0
  56. package/src/server/event-store-messages.adapter.test.ts +216 -15
  57. package/src/server/event-store-messages.adapter.ts +101 -1
  58. package/src/server/event-store.test.ts +35 -0
  59. package/src/server/event-store.ts +4 -0
  60. package/src/server/proactive-compact.test.ts +54 -0
  61. package/src/server/proactive-compact.ts +26 -5
  62. package/src/server/read-models.test.ts +165 -1
  63. package/src/server/read-models.ts +59 -5
  64. package/src/server/ws-router-broadcast.ts +3 -1
  65. package/src/server/ws-router-envelope.ts +6 -1
  66. package/src/server/ws-router.test.ts +7 -7
  67. package/src/shared/types.ts +19 -1
  68. package/dist/client/assets/channel-BBABskye.js +0 -1
  69. package/dist/client/assets/classDiagram-4FO5ZUOK-DhbOI66Z.js +0 -1
  70. package/dist/client/assets/classDiagram-v2-Q7XG4LA2-DhbOI66Z.js +0 -1
  71. package/dist/client/assets/stateDiagram-v2-BHNVJYJU-FljxK_8v.js +0 -1
package/README.md CHANGED
@@ -568,6 +568,39 @@ To add another reload mechanism (e.g., docker, systemd) at the strategy layer, i
568
568
  </picture>
569
569
  </a>
570
570
 
571
+ ## Releasing
572
+
573
+ Releases are automated. Merging to `main` runs
574
+ [release-please](.github/workflows/release-please.yml), which opens a release PR;
575
+ merging that PR tags the version, creates the GitHub Release, and publishes
576
+ `@cuongtran001/kanna` to npm with a provenance attestation.
577
+
578
+ ### Recovering a failed publish
579
+
580
+ If the `publish` job fails, the version is tagged on GitHub but missing from npm.
581
+ **Re-running the workflow will not fix it** — release-please reports
582
+ `release_created: false` once the release exists, so `publish` is skipped.
583
+ Publish the existing tag instead:
584
+
585
+ ```bash
586
+ gh workflow run release-please.yml -f tag=v1.32.0
587
+ ```
588
+
589
+ This rebuilds and republishes from the tag through CI, so the package keeps its
590
+ provenance signature. A local `npm publish` would not.
591
+
592
+ ### npm token expiry
593
+
594
+ `NPM_TOKEN` is an npm granular access token, and npm caps those at **90 days**.
595
+ When it expires, `npm publish` fails with a misleading `E404 Not Found` rather
596
+ than an auth error — npm masks a permission failure as a missing package. Rotate
597
+ the token at [npmjs.com](https://www.npmjs.com/settings/cuongtran001/tokens)
598
+ (scope: all packages, permission: read/write), then:
599
+
600
+ ```bash
601
+ gh secret set NPM_TOKEN
602
+ ```
603
+
571
604
  ## Contributing
572
605
 
573
606
  Contributions are welcome! Feel free to open PRs
@@ -1 +1 @@
1
- import{M as ln,N as an,O as Y,P as O,Q,R as un,S as y,T as tn,V as j,W as _,X as rn,Y as o,Z as on,$ as sn,a0 as fn}from"./mermaid.core-BQluhCKL.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,D,S,v,R,V,a){var E=D-l,i=S-h,n=V-v,d=a-R,u=d*E-n*i;if(!(u*u<y))return u=(n*(h-R)-d*(l-v))/u,[l+u*E,h+u*i]}function H(l,h,D,S,v,R,V){var a=l-D,E=h-S,i=(V?R:-R)/j(a*a+E*E),n=i*E,d=-i*a,u=l+n,s=h+d,f=D+n,c=S+d,W=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,A=m*m+g*g,T=v-R,P=u*c-f*s,I=(g<0?-1:1)*j(on(0,T*T*A-P*P)),M=(P*g-m*I)/A,N=(-P*m-g*I)/A,w=(P*g+m*I)/A,p=(-P*m+g*I)/A,x=M-W,e=N-t,r=w-W,X=p-t;return x*x+e*e>r*r+X*X&&(M=w,N=p),{cx:M,cy:N,x01:-n,y01:-d,x11:M*(v/T-1),y11:N*(v/T-1)}}function hn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=dn,V=mn,a=null,E=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=R.apply(this,arguments)-un,W=rn(c-f),t=c>f;if(a||(a=n=E()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(W>tn-y)a.moveTo(s*Y(f),s*O(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*Y(c),u*O(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):j(u*u+s*s)),w=_(rn(s-u)/2,+D.apply(this,arguments)),p=w,x=w,e,r;if(N>y){var X=sn(N/u*O(M)),z=sn(N/s*O(M));(P-=X*2)>y?(X*=t?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(I=0,m=g=(f+c)/2)}var Z=s*Y(m),$=s*O(m),B=u*Y(T),C=u*O(T);if(w>y){var F=s*Y(g),G=s*O(g),J=u*Y(A),K=u*O(A),q;if(W<an)if(q=pn(Z,$,J,K,F,G,B,C)){var L=Z-q[0],U=$-q[1],k=F-q[0],b=G-q[1],nn=1/O(fn((L*k+U*b)/(j(L*L+U*U)*j(k*k+b*b)))/2),en=j(q[0]*q[0]+q[1]*q[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}I>y?x>y?(e=H(J,K,Z,$,s,x,t),r=H(F,G,B,C,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(Z,$),a.arc(0,0,s,m,g,!t)):a.moveTo(Z,$),!(u>y)||!(P>y)?a.lineTo(B,C):p>y?(e=H(B,C,F,G,u,-p,t),r=H(Z,$,J,K,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,A,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-an/2;return[Y(d)*n,O(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:Q(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:Q(+n),i):h},i.cornerRadius=function(n){return arguments.length?(D=typeof n=="function"?n:Q(+n),i):D},i.padRadius=function(n){return arguments.length?(S=n==null?null:typeof n=="function"?n:Q(+n),i):S},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:Q(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:Q(+n),i):R},i.padAngle=function(n){return arguments.length?(V=typeof n=="function"?n:Q(+n),i):V},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
1
+ import{M as ln,N as an,O as Y,P as O,Q,R as un,S as y,T as tn,V as j,W as _,X as rn,Y as o,Z as on,$ as sn,a0 as fn}from"./mermaid.core-CLOnzT6B.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,D,S,v,R,V,a){var E=D-l,i=S-h,n=V-v,d=a-R,u=d*E-n*i;if(!(u*u<y))return u=(n*(h-R)-d*(l-v))/u,[l+u*E,h+u*i]}function H(l,h,D,S,v,R,V){var a=l-D,E=h-S,i=(V?R:-R)/j(a*a+E*E),n=i*E,d=-i*a,u=l+n,s=h+d,f=D+n,c=S+d,W=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,A=m*m+g*g,T=v-R,P=u*c-f*s,I=(g<0?-1:1)*j(on(0,T*T*A-P*P)),M=(P*g-m*I)/A,N=(-P*m-g*I)/A,w=(P*g+m*I)/A,p=(-P*m+g*I)/A,x=M-W,e=N-t,r=w-W,X=p-t;return x*x+e*e>r*r+X*X&&(M=w,N=p),{cx:M,cy:N,x01:-n,y01:-d,x11:M*(v/T-1),y11:N*(v/T-1)}}function hn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=dn,V=mn,a=null,E=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=R.apply(this,arguments)-un,W=rn(c-f),t=c>f;if(a||(a=n=E()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(W>tn-y)a.moveTo(s*Y(f),s*O(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*Y(c),u*O(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):j(u*u+s*s)),w=_(rn(s-u)/2,+D.apply(this,arguments)),p=w,x=w,e,r;if(N>y){var X=sn(N/u*O(M)),z=sn(N/s*O(M));(P-=X*2)>y?(X*=t?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(I=0,m=g=(f+c)/2)}var Z=s*Y(m),$=s*O(m),B=u*Y(T),C=u*O(T);if(w>y){var F=s*Y(g),G=s*O(g),J=u*Y(A),K=u*O(A),q;if(W<an)if(q=pn(Z,$,J,K,F,G,B,C)){var L=Z-q[0],U=$-q[1],k=F-q[0],b=G-q[1],nn=1/O(fn((L*k+U*b)/(j(L*L+U*U)*j(k*k+b*b)))/2),en=j(q[0]*q[0]+q[1]*q[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}I>y?x>y?(e=H(J,K,Z,$,s,x,t),r=H(F,G,B,C,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(Z,$),a.arc(0,0,s,m,g,!t)):a.moveTo(Z,$),!(u>y)||!(P>y)?a.lineTo(B,C):p>y?(e=H(B,C,F,G,u,-p,t),r=H(Z,$,J,K,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,A,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-an/2;return[Y(d)*n,O(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:Q(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:Q(+n),i):h},i.cornerRadius=function(n){return arguments.length?(D=typeof n=="function"?n:Q(+n),i):D},i.padRadius=function(n){return arguments.length?(S=n==null?null:typeof n=="function"?n:Q(+n),i):S},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:Q(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:Q(+n),i):R},i.padAngle=function(n){return arguments.length?(V=typeof n=="function"?n:Q(+n),i):V},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};