gsd-pi 2.67.0-dev.fe39184 → 2.68.0-dev.4cf2433

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 (105) hide show
  1. package/dist/resources/extensions/gsd/auto/session.js +4 -0
  2. package/dist/resources/extensions/gsd/auto-dispatch.js +1 -1
  3. package/dist/resources/extensions/gsd/auto-start.js +5 -31
  4. package/dist/resources/extensions/gsd/auto-worktree.js +62 -15
  5. package/dist/resources/extensions/gsd/auto.js +94 -59
  6. package/dist/resources/extensions/gsd/bootstrap/system-context.js +7 -2
  7. package/dist/resources/extensions/gsd/doctor.js +8 -4
  8. package/dist/resources/extensions/gsd/gsd-db.js +11 -0
  9. package/dist/resources/extensions/gsd/guided-flow.js +40 -31
  10. package/dist/resources/extensions/gsd/interrupted-session.js +146 -0
  11. package/dist/resources/extensions/gsd/state.js +7 -2
  12. package/dist/web/standalone/.next/BUILD_ID +1 -1
  13. package/dist/web/standalone/.next/app-path-routes-manifest.json +16 -16
  14. package/dist/web/standalone/.next/build-manifest.json +3 -3
  15. package/dist/web/standalone/.next/prerender-manifest.json +3 -3
  16. package/dist/web/standalone/.next/react-loadable-manifest.json +2 -2
  17. package/dist/web/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  18. package/dist/web/standalone/.next/server/app/_global-error.html +1 -1
  19. package/dist/web/standalone/.next/server/app/_global-error.rsc +1 -1
  20. package/dist/web/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  21. package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  22. package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  23. package/dist/web/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  24. package/dist/web/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  25. package/dist/web/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  26. package/dist/web/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  27. package/dist/web/standalone/.next/server/app/_not-found.html +1 -1
  28. package/dist/web/standalone/.next/server/app/_not-found.rsc +1 -1
  29. package/dist/web/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  30. package/dist/web/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  31. package/dist/web/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  32. package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  33. package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  34. package/dist/web/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  35. package/dist/web/standalone/.next/server/app/index.html +1 -1
  36. package/dist/web/standalone/.next/server/app/index.rsc +2 -2
  37. package/dist/web/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  38. package/dist/web/standalone/.next/server/app/index.segments/_full.segment.rsc +2 -2
  39. package/dist/web/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  40. package/dist/web/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
  41. package/dist/web/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  42. package/dist/web/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  43. package/dist/web/standalone/.next/server/app-paths-manifest.json +16 -16
  44. package/dist/web/standalone/.next/server/middleware-build-manifest.js +1 -1
  45. package/dist/web/standalone/.next/server/middleware-react-loadable-manifest.js +1 -1
  46. package/dist/web/standalone/.next/server/pages/404.html +1 -1
  47. package/dist/web/standalone/.next/server/pages/500.html +1 -1
  48. package/dist/web/standalone/.next/server/server-reference-manifest.json +1 -1
  49. package/dist/web/standalone/.next/static/chunks/2826.821e01b07d92e948.js +9 -0
  50. package/dist/web/standalone/.next/static/chunks/app/{page-0c485498795110d6.js → page-f1e30ab6bb269149.js} +1 -1
  51. package/dist/web/standalone/.next/static/chunks/{webpack-42a66876b763aa26.js → webpack-6e4d7e9a4f57bed4.js} +1 -1
  52. package/package.json +1 -1
  53. package/packages/pi-coding-agent/dist/core/contextual-tips.d.ts +43 -0
  54. package/packages/pi-coding-agent/dist/core/contextual-tips.d.ts.map +1 -0
  55. package/packages/pi-coding-agent/dist/core/contextual-tips.js +208 -0
  56. package/packages/pi-coding-agent/dist/core/contextual-tips.js.map +1 -0
  57. package/packages/pi-coding-agent/dist/core/contextual-tips.test.d.ts +2 -0
  58. package/packages/pi-coding-agent/dist/core/contextual-tips.test.d.ts.map +1 -0
  59. package/packages/pi-coding-agent/dist/core/contextual-tips.test.js +227 -0
  60. package/packages/pi-coding-agent/dist/core/contextual-tips.test.js.map +1 -0
  61. package/packages/pi-coding-agent/dist/core/index.d.ts +1 -0
  62. package/packages/pi-coding-agent/dist/core/index.d.ts.map +1 -1
  63. package/packages/pi-coding-agent/dist/core/index.js +1 -0
  64. package/packages/pi-coding-agent/dist/core/index.js.map +1 -1
  65. package/packages/pi-coding-agent/dist/modes/interactive/controllers/input-controller.d.ts +4 -0
  66. package/packages/pi-coding-agent/dist/modes/interactive/controllers/input-controller.d.ts.map +1 -1
  67. package/packages/pi-coding-agent/dist/modes/interactive/controllers/input-controller.js +14 -0
  68. package/packages/pi-coding-agent/dist/modes/interactive/controllers/input-controller.js.map +1 -1
  69. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +3 -0
  70. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  71. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js +13 -0
  72. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
  73. package/packages/pi-coding-agent/package.json +1 -1
  74. package/packages/pi-coding-agent/src/core/contextual-tips.test.ts +259 -0
  75. package/packages/pi-coding-agent/src/core/contextual-tips.ts +232 -0
  76. package/packages/pi-coding-agent/src/core/index.ts +2 -0
  77. package/packages/pi-coding-agent/src/modes/interactive/controllers/input-controller.ts +19 -0
  78. package/packages/pi-coding-agent/src/modes/interactive/interactive-mode.ts +17 -0
  79. package/pkg/package.json +1 -1
  80. package/src/resources/extensions/gsd/auto/session.ts +4 -0
  81. package/src/resources/extensions/gsd/auto-dispatch.ts +1 -1
  82. package/src/resources/extensions/gsd/auto-start.ts +8 -54
  83. package/src/resources/extensions/gsd/auto-worktree.ts +59 -15
  84. package/src/resources/extensions/gsd/auto.ts +104 -63
  85. package/src/resources/extensions/gsd/bootstrap/system-context.ts +8 -2
  86. package/src/resources/extensions/gsd/doctor.ts +9 -5
  87. package/src/resources/extensions/gsd/gsd-db.ts +12 -0
  88. package/src/resources/extensions/gsd/guided-flow.ts +42 -36
  89. package/src/resources/extensions/gsd/interrupted-session.ts +224 -0
  90. package/src/resources/extensions/gsd/state.ts +7 -1
  91. package/src/resources/extensions/gsd/tests/auto-recovery.test.ts +668 -2
  92. package/src/resources/extensions/gsd/tests/cold-resume-db-reopen.test.ts +14 -4
  93. package/src/resources/extensions/gsd/tests/copy-planning-artifacts-samepath.test.ts +21 -0
  94. package/src/resources/extensions/gsd/tests/crash-recovery.test.ts +380 -2
  95. package/src/resources/extensions/gsd/tests/forensics-context-persist.test.ts +30 -0
  96. package/src/resources/extensions/gsd/tests/gsd-db.test.ts +12 -0
  97. package/src/resources/extensions/gsd/tests/guided-flow-session-isolation.test.ts +2 -2
  98. package/src/resources/extensions/gsd/tests/integration/doctor-fixlevel.test.ts +52 -1
  99. package/src/resources/extensions/gsd/tests/integration/merge-cwd-restore.test.ts +169 -0
  100. package/src/resources/extensions/gsd/tests/interrupted-session-auto.test.ts +146 -0
  101. package/src/resources/extensions/gsd/tests/interrupted-session-ui.test.ts +136 -0
  102. package/src/resources/extensions/gsd/tests/verification-operational-gate.test.ts +11 -0
  103. package/dist/web/standalone/.next/static/chunks/6502.5dcdcf1e1432e20d.js +0 -9
  104. /package/dist/web/standalone/.next/static/{gbSATDX4Jt2ufxzUr5nYm → gd7sngpqfUCltp8w_pCwF}/_buildManifest.js +0 -0
  105. /package/dist/web/standalone/.next/static/{gbSATDX4Jt2ufxzUr5nYm → gd7sngpqfUCltp8w_pCwF}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{2600:(e,t,n)=>{Promise.resolve().then(n.bind(n,66919))},5214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=n(17828)},17828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(64054).createAsyncLocalStorage)()},21957:(e,t,n)=>{"use strict";function r({moduleIds:e}){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return r}}),n(95155),n(47650),n(5214),n(2451),n(53887)},37206:(e,t,n)=>{"use strict";n.d(t,{default:()=>u.a});var r=n(75707),u=n.n(r)},41112:(e,t,n)=>{"use strict";function r({reason:e,children:t}){return t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),n(1980)},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={bindSnapshot:function(){return s},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return i}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let u=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class l{disable(){throw u}getStore(){}run(){throw u}exit(){throw u}enterWith(){throw u}static bind(e){return e}}let o="u">typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return o?new o:new l}function s(e){return o?o.bind(e):l.bind(e)}function i(){return o?o.snapshot():function(e,...t){return e(...t)}}},66919:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(95155);let u=(0,n(37206).default)(()=>Promise.all([n.e(1838),n.e(6079),n.e(4986),n.e(2008),n.e(6502)]).then(n.bind(n,46502)).then(e=>e.GSDAppShell),{loadableGenerated:{webpack:()=>[46502]},ssr:!1,loading:()=>(0,r.jsx)("div",{className:"flex h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace…"})});function l(){return(0,r.jsx)(u,{})}},68635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=n(95155),u=n(12115),l=n(41112);function o(e){return{default:e&&"default"in e?e.default:e}}n(21957);let a={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},s=function(e){let t={...a,...e},n=(0,u.lazy)(()=>t.loader().then(o)),s=t.loading;function i(e){let o=s?(0,r.jsx)(s,{isLoading:!0,pastDelay:!0,error:null}):null,a=!t.ssr||!!t.loading,i=a?u.Suspense:u.Fragment,c=t.ssr?(0,r.jsxs)(r.Fragment,{children:[null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(i,{...a?{fallback:o}:{},children:c})}return i.displayName="LoadableComponent",i}},75707:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(73623)._(n(68635));function u(e,t){let n={};"function"==typeof e&&(n.loader=e);let u={...n,...t};return(0,r.default)({...u,modules:u.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=2600)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{2600:(e,t,n)=>{Promise.resolve().then(n.bind(n,66919))},5214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=n(17828)},17828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(64054).createAsyncLocalStorage)()},21957:(e,t,n)=>{"use strict";function r({moduleIds:e}){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return r}}),n(95155),n(47650),n(5214),n(2451),n(53887)},37206:(e,t,n)=>{"use strict";n.d(t,{default:()=>u.a});var r=n(75707),u=n.n(r)},41112:(e,t,n)=>{"use strict";function r({reason:e,children:t}){return t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),n(1980)},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={bindSnapshot:function(){return s},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return i}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let u=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class l{disable(){throw u}getStore(){}run(){throw u}exit(){throw u}enterWith(){throw u}static bind(e){return e}}let o="u">typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return o?new o:new l}function s(e){return o?o.bind(e):l.bind(e)}function i(){return o?o.snapshot():function(e,...t){return e(...t)}}},66919:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(95155);let u=(0,n(37206).default)(()=>Promise.all([n.e(1838),n.e(6079),n.e(4986),n.e(2008),n.e(2826)]).then(n.bind(n,62826)).then(e=>e.GSDAppShell),{loadableGenerated:{webpack:()=>[62826]},ssr:!1,loading:()=>(0,r.jsx)("div",{className:"flex h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace…"})});function l(){return(0,r.jsx)(u,{})}},68635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=n(95155),u=n(12115),l=n(41112);function o(e){return{default:e&&"default"in e?e.default:e}}n(21957);let a={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},s=function(e){let t={...a,...e},n=(0,u.lazy)(()=>t.loader().then(o)),s=t.loading;function i(e){let o=s?(0,r.jsx)(s,{isLoading:!0,pastDelay:!0,error:null}):null,a=!t.ssr||!!t.loading,i=a?u.Suspense:u.Fragment,c=t.ssr?(0,r.jsxs)(r.Fragment,{children:[null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(i,{...a?{fallback:o}:{},children:c})}return i.displayName="LoadableComponent",i}},75707:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(73623)._(n(68635));function u(e,t){let n={};"function"==typeof e&&(n.loader=e);let u={...n,...t};return(0,r.default)({...u,modules:u.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=2600)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (()=>{"use strict";var e,a,f,c,d,b,t,r,o,n={},i={};function l(e){var a=i[e];if(void 0!==a)return a.exports;var f=i[e]={exports:{}},c=!0;try{n[e].call(f.exports,f,f.exports,l),c=!1}finally{c&&delete i[e]}return f.exports}l.m=n,e=[],l.O=(a,f,c,d)=>{if(f){d=d||0;for(var b=e.length;b>0&&e[b-1][2]>d;b--)e[b]=e[b-1];e[b]=[f,c,d];return}for(var t=1/0,b=0;b<e.length;b++){for(var[f,c,d]=e[b],r=!0,o=0;o<f.length;o++)(!1&d||t>=d)&&Object.keys(l.O).every(e=>l.O[e](f[o]))?f.splice(o--,1):(r=!1,d<t&&(t=d));if(r){e.splice(b--,1);var n=c();void 0!==n&&(a=n)}}return a},l.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return l.d(a,{a:a}),a},f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,c){if(1&c&&(e=this(e)),8&c||"object"==typeof e&&e&&(4&c&&e.__esModule||16&c&&"function"==typeof e.then))return e;var d=Object.create(null);l.r(d);var b={};a=a||[null,f({}),f([]),f(f)];for(var t=2&c&&e;"object"==typeof t&&!~a.indexOf(t);t=f(t))Object.getOwnPropertyNames(t).forEach(a=>b[a]=()=>e[a]);return b.default=()=>e,l.d(d,b),d},l.d=(e,a)=>{for(var f in a)l.o(a,f)&&!l.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((a,f)=>(l.f[f](e,a),a),[])),l.u=e=>4986===e?"static/chunks/4986-c2fc8845ce785303.js":"static/chunks/"+(({535:"4ca0cff5",1290:"cee15710",1630:"53c1bd3f",2577:"d1c28714",3879:"cfdf2ac7",3888:"e868780c",4763:"4402d2ac",4814:"799ebd4e",6079:"363642f4",6666:"570e4624",6814:"7d29de82",7442:"92e53eb0",8835:"ce16f5a9",9312:"1cd6e1d3"})[e]||e)+"."+({10:"6cf001c181ce1098",34:"ce581867cf95e24b",36:"b4a553bf2106f6d3",194:"76dbdc07cdc2311d",214:"f6bba63dfa159e01",252:"a9e22657cbf67b42",327:"8ecab0b86d52b597",376:"9e742ff6919b2b54",392:"3cad93691f1b7360",400:"59979e0d3ae126e4",425:"9a3434a28926566a",535:"07efe2bc8f09d72e",541:"cfa15b606745131a",579:"33fc87fb95163c6a",583:"b3efc73cb21097e2",624:"2dd909fbfce98c5e",640:"5bf1e25d0bddf875",698:"e0dda03fd303b96b",794:"06b1ae4fc9cc10a9",816:"f909c891b91aa79f",830:"e49b226c07876df4",840:"a9c535f8868cc4bd",862:"fe3b86ecfb9c0716",893:"c469257bbbbca4f5",966:"57e4cd93c2368d34",968:"237f19aca13543fe",1078:"02294b2934d5bf21",1142:"8248bfb76c695146",1161:"06b33878b495da50",1184:"e80a999422621ed9",1188:"1d4ce94ddc297119",1198:"2a5c215f01a8b74d",1215:"88ed89521e915107",1219:"e27b0bd10b029e40",1247:"64e212daa5bb3925",1248:"36af3903f037c1f5",1274:"ce6906b1fe2e04b8",1280:"1651bb5167170457",1290:"869cef5f741d40c2",1335:"716cc5924662708e",1365:"d7391145ca7f8791",1379:"03e1e0f31bdaa2cc",1410:"77acea37535dbbef",1413:"117c5958c59cc695",1453:"3c24c777a3deca2d",1456:"217c3832b3e76b7f",1501:"549af2c91a889a08",1534:"918a25b2e3daab22",1556:"96abc9ff91b0c383",1583:"03a06dbdde85ac56",1595:"ee61519fde230f60",1630:"2911e2bac119d910",1642:"8c00543baa1aef54",1656:"a9efc78185a5a85f",1664:"6d5b5e3112b66906",1898:"e07b2b1c5e789b06",1932:"b0aea9b52cabe5e8",1977:"a06c8e8d2198f765",2008:"71ee9230ad78df21",2013:"598558c40e51e107",2031:"3877441c49bff5cd",2041:"00f4fa0ab26c6ba5",2062:"4a0ab3400fea0e34",2107:"c627112b02b9e1c8",2130:"441ae0f68863efeb",2160:"e38d781fd5c4cde0",2179:"1bf5fe315e6e132c",2215:"9d2d6fbe90ffcc80",2278:"0b14de1cb2041bfd",2349:"ca15d465c4260b4b",2374:"7560cc5c4b8ed6b0",2397:"0e4dce0a557ac7cf",2403:"3dda71b6482dce3b",2485:"3188870375e9fbee",2489:"fcc70bd67329a70e",2501:"4e65b56602faa956",2503:"bb9d3528c3c7ccae",2504:"159b28843e61aae9",2577:"f52cffdd449a2d14",2614:"8349e4b407470a30",2710:"fe0656d4ebae4d30",2728:"5fed9ac13dfcd1d1",2735:"5a3e65a580bd5af9",2747:"1d85d388314f2904",2765:"2c6d9772af50feed",2783:"e8bbf2c794ef9750",2812:"dcd8179a6b1d76c9",2839:"c9a657d5b4031a19",2895:"0339e755e79ee794",2937:"7e724516d5e6ce42",2954:"7d8daeae6410d4a4",2957:"2dd93db1a16e96b0",2964:"1a0e15f7327680a2",3072:"b6da96c10080c967",3074:"911584369786c26c",3077:"bf82c0c332cc9fec",3082:"159e4ab8f0572597",3095:"8cd478c42cee505a",3111:"1cf85db2faeb20cc",3175:"538ce7aec634bddb",3186:"3665756f8aae3eb7",3194:"5a331fb5e3dc34e9",3229:"5e91f7d0b135266b",3274:"858f7f9216c8b074",3286:"196c508356bb0b66",3288:"f23c8a5183e6b910",3290:"b5ba2646ad49c9fd",3304:"16305e84f4ff6598",3313:"471138e5504646a9",3324:"85e21e3313d0901c",3392:"460f5a753531f501",3419:"78b520dab7e2f96d",3437:"0ad1ecc8c5b8a679",3476:"246c30b47bded3b7",3483:"fc2a0b1185dbaa5d",3492:"ca55498822ad7796",3526:"24826331ab265b39",3606:"e5c833cdda239583",3633:"2526b2d018636ff0",3782:"8d7b66d0e37dbe76",3787:"78ebe68a043f50ce",3860:"be5b243bf7d6618c",3873:"72a9a21509f713f7",3879:"f50abf4e93e943ea",3888:"abc48b70a10fc2d6",3942:"085da8d58242eeab",3979:"cea8623f6e9f83ea",4053:"90d71fcbe4ffd852",4080:"08a21dae9e93c547",4163:"c6ebefdd9aa5c358",4174:"b6ff75dd91a2a32e",4223:"c10556cd92fc8018",4242:"3a66c58375424a5b",4275:"8f2e531757c2a813",4295:"6c0f4838b0c9c69d",4309:"a887a10e84c44f9e",4350:"b9d80827e8eee01a",4357:"ac4f251cdac34fbe",4358:"f89b14cf7a988731",4370:"ac13b62c811f7ede",4417:"0b5ee948c3518db3",4447:"5bad7871be61ca73",4474:"053807fa34066566",4539:"559c223da16b0282",4540:"03df20c499bca840",4553:"ce3eab65a260353e",4567:"7dc81a6e1c7df565",4583:"2a5df6eb3a6ea30b",4593:"676ac488744e1af5",4608:"1ff246d6b4c771f8",4634:"0332a56fdb8e26c0",4650:"61aec912b756287b",4659:"0b14de1cb2041bfd",4678:"867dfae26694be02",4763:"d0d1b1777a45e0b2",4801:"17596dbc1818c262",4814:"ccb85c56e9216a38",4823:"907850963b2bcb70",4829:"402ec60139d36417",4846:"c563765de65a34c7",4900:"b723a916eafdf743",4903:"004f583a12223dac",4963:"0f6678151a159143",4969:"1cb10af9489ea295",4976:"8870319ffbd1c31f",5005:"73745d7fcae6989e",5025:"b597364f0cf8b85a",5061:"025d30c3123eeaf6",5136:"ac897c2a56ee392f",5183:"2e5c895a2be76262",5269:"2e771096652dc113",5320:"00f00028b9163a43",5326:"adc4bf49a22f4e67",5331:"4d5d42e5253dbee2",5347:"3192e0021174aaa8",5375:"ebc026e6140b52f1",5424:"4d62f7ee887cd8b9",5482:"0907421e6bf5eeec",5491:"5cc285c4b84dac30",5498:"117ef4b6035a90c5",5518:"6c3dc9afe81a566b",5520:"eab85d7487e77510",5553:"75df19e3cc1246d6",5575:"3d90c643343a1329",5645:"0b86853ae26d9ee3",5670:"2a1b27a6fdb7aa6b",5690:"d30877807cf5c7eb",5712:"574fca2d5f06483a",5728:"8ef773d61765855e",5750:"aa57d25b74640d23",5755:"00015c284ed6fb39",5920:"9db223329ee9e11a",5922:"ce56021f8cc6ebbc",5937:"0827b5b3eb831ff0",5968:"63d5869783fad06f",5997:"226c07d9e6c496e0",6046:"00d36aea7fd5b147",6079:"cf8b455e0d94b478",6089:"2dd351186ec85cc3",6099:"43e6595fcf24fc33",6110:"5ce3f75fced27aaf",6144:"f967a8228bcdf663",6155:"19719cff570d6559",6166:"ecd82a9dcb484b97",6290:"e14cf4fc52dd4539",6293:"5914fa73a9f7e777",6311:"5b9c1f74df9a8f67",6331:"758f2f66b92cada9",6339:"bc9301cc22898be0",6360:"ff0a9063773daeeb",6402:"a0070d7688ed986b",6412:"089ee787a294d10b",6455:"12b78a2660d609eb",6502:"5dcdcf1e1432e20d",6563:"5d618b608750f4dc",6572:"ca2463823b9b01a0",6580:"75d53830b434451f",6588:"0fbca957af7d9e6a",6647:"584c5d5cd8dfdb5a",6666:"a82467c542429379",6686:"796c782c33ab8ca9",6701:"bff0efb979f71a17",6704:"f280f0ad0f5d8644",6729:"77a5381ac8f5c9ae",6741:"06fdaf122961074e",6814:"30ff86a90cbfd921",6846:"91283f709c40802c",6859:"bacad166ee995fe0",6887:"6c81234d73740fb9",6927:"aa3914b5fb0d14d4",6931:"3c90e9fe0f7f1e66",6938:"0ccf683bd8aa8410",6948:"2719ed8731963209",6959:"5a803faf27f88e9f",7021:"b71240b1d5f6fbe4",7040:"0b14de1cb2041bfd",7041:"174bf29bd837f06d",7082:"fc816f91214026d7",7113:"39704408fef3d26e",7130:"8d24694735826c22",7142:"dbd2cf8141eece5e",7152:"c7b7f1f5e9622f21",7227:"a6b2f01487bb3d9d",7258:"6cbe24c3bcb63d1d",7425:"8b47c8e398a12dd8",7442:"097194be4a0e7d55",7455:"71d54397710b923c",7465:"867e8ff655666413",7524:"9528295a19a5837a",7525:"f433aaf1fe40c90a",7557:"bdc743175125b3d8",7610:"b1439345dbcf285d",7625:"ab66bd50d2fb61a4",7635:"166d83de1d29e758",7636:"bf91320a9ff695af",7785:"1402a4110c300764",7799:"40b047a634f96a24",7819:"3c56f48c0dc5ad5d",7844:"2bb29faa262f313e",7846:"c9705c044ab8f87a",7884:"390ae2efbbf230c4",7889:"af3e581842f34c28",7921:"c361f794cc208e06",7977:"80e4daa080a79c39",8113:"907baefc7227cfb8",8132:"74491162f08af899",8192:"5918d83ac6a0e2dc",8243:"1450514f8390977e",8257:"dd8f651f1a43fee2",8288:"9bd1d26060cb00a1",8318:"81c7ac586fcbb728",8406:"955ccfbb4b70b8c3",8430:"b1f802dcffa41626",8432:"bd66ac287c569996",8457:"b61d96d8d30215fc",8496:"046efd6301dd804f",8545:"be0c9eea6aae5971",8555:"ab3ee6358f1d64da",8656:"2ceb4e5ff5df2fca",8670:"90ede75068758e82",8704:"a1003918da6654da",8773:"614f1f4f0f845c5e",8835:"5c7821b201f35593",8848:"7c6e47cca9f0059a",8921:"fb24a4d4d4d3265b",8947:"31d3d834d8281fd9",8977:"01b9c429327004e9",9005:"33cf91e617920d4f",9006:"11537833945ec4b8",9015:"c4e40321a6503a1b",9136:"191be42a2fee842c",9178:"48a90097ee3f0b0c",9186:"3af6fcd13ab752fa",9189:"3e9d29bf275ec462",9220:"bc767ebb5adb9f49",9224:"401f9320ee58570b",9240:"d38ddbe94e0bf128",9267:"fbfd65ea31e7448c",9294:"a20485f3282321b3",9302:"726b065f2df0323a",9312:"8121a74b2042bff3",9377:"f9db706e76f04afe",9382:"bc0e11ecc88dd62c",9421:"a5c1dbcfbfdd8f52",9448:"2668b3cd408e86de",9466:"c9d8f45d14235087",9521:"e1240eb862eb32dc",9547:"7729788fff21926f",9565:"8de0671f99d12abe",9569:"2f36b2b1c2f838d7",9605:"dfac539f89cea7a2",9615:"3b62c13af671f714",9648:"8235b6fea7087b3a",9666:"a515fa6d89a71f1c",9680:"d5ceac8967e0b6a8",9690:"7773c72f0eff6dec",9841:"422321143547591a",9842:"3b71b65b30d8ef2a",9996:"18b7bca2f0ab222e"})[e]+".js",l.miniCssF=e=>"static/css/659eccb5db697b76.css",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},l.l=(e,a,f,d)=>{if(c[e])return void c[e].push(a);if(void 0!==f)for(var b,t,r=document.getElementsByTagName("script"),o=0;o<r.length;o++){var n=r[o];if(n.getAttribute("src")==e||n.getAttribute("data-webpack")=="_N_E:"+f){b=n;break}}b||(t=!0,(b=document.createElement("script")).charset="utf-8",b.timeout=120,l.nc&&b.setAttribute("nonce",l.nc),b.setAttribute("data-webpack","_N_E:"+f),b.src=l.tu(e)),c[e]=[a];var i=(a,f)=>{b.onerror=b.onload=null,clearTimeout(s);var d=c[e];if(delete c[e],b.parentNode&&b.parentNode.removeChild(b),d&&d.forEach(e=>e(f)),a)return a(f)},s=setTimeout(i.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=i.bind(null,b.onerror),b.onload=i.bind(null,b.onload),t&&document.head.appendChild(b)},l.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.tt=()=>(void 0===d&&(d={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(d=trustedTypes.createPolicy("nextjs#bundler",d))),d),l.tu=e=>l.tt().createScriptURL(e),l.p="/_next/",b={8068:0},l.f.miniCss=(e,a)=>{if(b[e])a.push(b[e]);else 0!==b[e]&&({1838:1})[e]&&a.push(b[e]=new Promise((a,f)=>{var c=l.miniCssF(e),d=l.p+c;if(((e,a)=>{for(var f=document.getElementsByTagName("link"),c=0;c<f.length;c++){var d=f[c],b=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(b===e||b===a))return d}for(var t=document.getElementsByTagName("style"),c=0;c<t.length;c++){var d=t[c],b=d.getAttribute("data-href");if(b===e||b===a)return d}})(c,d))return a();((e,a,f,c)=>{var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onerror=d.onload=b=>{if(d.onerror=d.onload=null,"load"===b.type)f();else{var t=b&&("load"===b.type?"missing":b.type),r=b&&b.target&&b.target.href||a,o=Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.type=t,o.request=r,d.parentNode.removeChild(d),c(o)}},d.href=a;if("function"==typeof _N_E_STYLE_LOAD){var b=d.href,t=d.onload,r=d.onerror;_N_E_STYLE_LOAD(0===b.indexOf(window.location.origin)?new URL(b).pathname:b).then(function(){t&&t.call(d,{type:"load"})},function(){r&&r.call(d,{})})}else document.head.appendChild(d)})(e,d,a,f)}).then(()=>{b[e]=0},a=>{throw delete b[e],a}))},t={8068:0,2557:0,7513:0},l.f.j=(e,a)=>{var f=l.o(t,e)?t[e]:void 0;if(0!==f)if(f)a.push(f[2]);else if(/^(1838|2557|7513|8068)$/.test(e))t[e]=0;else{var c=new Promise((a,c)=>f=t[e]=[a,c]);a.push(f[2]=c);var d=l.p+l.u(e),b=Error();l.l(d,a=>{if(l.o(t,e)&&(0!==(f=t[e])&&(t[e]=void 0),f)){var c=a&&("load"===a.type?"missing":a.type),d=a&&a.target&&a.target.src;b.message="Loading chunk "+e+" failed.\n("+c+": "+d+")",b.name="ChunkLoadError",b.type=c,b.request=d,f[1](b)}},"chunk-"+e,e)}},l.O.j=e=>0===t[e],r=(e,a)=>{var f,c,[d,b,r]=a,o=0;if(d.some(e=>0!==t[e])){for(f in b)l.o(b,f)&&(l.m[f]=b[f]);if(r)var n=r(l)}for(e&&e(a);o<d.length;o++)c=d[o],l.o(t,c)&&t[c]&&t[c][0](),t[c]=0;return l.O(n)},(o=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o)),l.nc=void 0})();
1
+ (()=>{"use strict";var e,a,c,f,d,b,t,r,o,n={},i={};function l(e){var a=i[e];if(void 0!==a)return a.exports;var c=i[e]={exports:{}},f=!0;try{n[e].call(c.exports,c,c.exports,l),f=!1}finally{f&&delete i[e]}return c.exports}l.m=n,e=[],l.O=(a,c,f,d)=>{if(c){d=d||0;for(var b=e.length;b>0&&e[b-1][2]>d;b--)e[b]=e[b-1];e[b]=[c,f,d];return}for(var t=1/0,b=0;b<e.length;b++){for(var[c,f,d]=e[b],r=!0,o=0;o<c.length;o++)(!1&d||t>=d)&&Object.keys(l.O).every(e=>l.O[e](c[o]))?c.splice(o--,1):(r=!1,d<t&&(t=d));if(r){e.splice(b--,1);var n=f();void 0!==n&&(a=n)}}return a},l.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return l.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,f){if(1&f&&(e=this(e)),8&f||"object"==typeof e&&e&&(4&f&&e.__esModule||16&f&&"function"==typeof e.then))return e;var d=Object.create(null);l.r(d);var b={};a=a||[null,c({}),c([]),c(c)];for(var t=2&f&&e;"object"==typeof t&&!~a.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach(a=>b[a]=()=>e[a]);return b.default=()=>e,l.d(d,b),d},l.d=(e,a)=>{for(var c in a)l.o(a,c)&&!l.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((a,c)=>(l.f[c](e,a),a),[])),l.u=e=>4986===e?"static/chunks/4986-c2fc8845ce785303.js":"static/chunks/"+(({535:"4ca0cff5",1290:"cee15710",1630:"53c1bd3f",2577:"d1c28714",3879:"cfdf2ac7",3888:"e868780c",4763:"4402d2ac",4814:"799ebd4e",6079:"363642f4",6666:"570e4624",6814:"7d29de82",7442:"92e53eb0",8835:"ce16f5a9",9312:"1cd6e1d3"})[e]||e)+"."+({10:"6cf001c181ce1098",34:"ce581867cf95e24b",36:"b4a553bf2106f6d3",194:"76dbdc07cdc2311d",214:"f6bba63dfa159e01",252:"a9e22657cbf67b42",327:"8ecab0b86d52b597",376:"9e742ff6919b2b54",392:"3cad93691f1b7360",400:"59979e0d3ae126e4",425:"9a3434a28926566a",535:"07efe2bc8f09d72e",541:"cfa15b606745131a",579:"33fc87fb95163c6a",583:"b3efc73cb21097e2",624:"2dd909fbfce98c5e",640:"5bf1e25d0bddf875",698:"e0dda03fd303b96b",794:"06b1ae4fc9cc10a9",816:"f909c891b91aa79f",830:"e49b226c07876df4",840:"a9c535f8868cc4bd",862:"fe3b86ecfb9c0716",893:"c469257bbbbca4f5",966:"57e4cd93c2368d34",968:"237f19aca13543fe",1078:"02294b2934d5bf21",1142:"8248bfb76c695146",1161:"06b33878b495da50",1184:"e80a999422621ed9",1188:"1d4ce94ddc297119",1198:"2a5c215f01a8b74d",1215:"88ed89521e915107",1219:"e27b0bd10b029e40",1247:"64e212daa5bb3925",1248:"36af3903f037c1f5",1274:"ce6906b1fe2e04b8",1280:"1651bb5167170457",1290:"869cef5f741d40c2",1335:"716cc5924662708e",1365:"d7391145ca7f8791",1379:"03e1e0f31bdaa2cc",1410:"77acea37535dbbef",1413:"117c5958c59cc695",1453:"3c24c777a3deca2d",1456:"217c3832b3e76b7f",1501:"549af2c91a889a08",1534:"918a25b2e3daab22",1556:"96abc9ff91b0c383",1583:"03a06dbdde85ac56",1595:"ee61519fde230f60",1630:"2911e2bac119d910",1642:"8c00543baa1aef54",1656:"a9efc78185a5a85f",1664:"6d5b5e3112b66906",1898:"e07b2b1c5e789b06",1932:"b0aea9b52cabe5e8",1977:"a06c8e8d2198f765",2008:"71ee9230ad78df21",2013:"598558c40e51e107",2031:"3877441c49bff5cd",2041:"00f4fa0ab26c6ba5",2062:"4a0ab3400fea0e34",2107:"c627112b02b9e1c8",2130:"441ae0f68863efeb",2160:"e38d781fd5c4cde0",2179:"1bf5fe315e6e132c",2215:"9d2d6fbe90ffcc80",2278:"0b14de1cb2041bfd",2349:"ca15d465c4260b4b",2374:"7560cc5c4b8ed6b0",2397:"0e4dce0a557ac7cf",2403:"3dda71b6482dce3b",2485:"3188870375e9fbee",2489:"fcc70bd67329a70e",2501:"4e65b56602faa956",2503:"bb9d3528c3c7ccae",2504:"159b28843e61aae9",2577:"f52cffdd449a2d14",2614:"8349e4b407470a30",2710:"fe0656d4ebae4d30",2728:"5fed9ac13dfcd1d1",2735:"5a3e65a580bd5af9",2747:"1d85d388314f2904",2765:"2c6d9772af50feed",2783:"e8bbf2c794ef9750",2812:"dcd8179a6b1d76c9",2826:"821e01b07d92e948",2839:"c9a657d5b4031a19",2895:"0339e755e79ee794",2937:"7e724516d5e6ce42",2954:"7d8daeae6410d4a4",2957:"2dd93db1a16e96b0",2964:"1a0e15f7327680a2",3072:"b6da96c10080c967",3074:"911584369786c26c",3077:"bf82c0c332cc9fec",3082:"159e4ab8f0572597",3095:"8cd478c42cee505a",3111:"1cf85db2faeb20cc",3175:"538ce7aec634bddb",3186:"3665756f8aae3eb7",3194:"5a331fb5e3dc34e9",3229:"5e91f7d0b135266b",3274:"858f7f9216c8b074",3286:"196c508356bb0b66",3288:"f23c8a5183e6b910",3290:"b5ba2646ad49c9fd",3304:"16305e84f4ff6598",3313:"471138e5504646a9",3324:"85e21e3313d0901c",3392:"460f5a753531f501",3419:"78b520dab7e2f96d",3437:"0ad1ecc8c5b8a679",3476:"246c30b47bded3b7",3483:"fc2a0b1185dbaa5d",3492:"ca55498822ad7796",3526:"24826331ab265b39",3606:"e5c833cdda239583",3633:"2526b2d018636ff0",3782:"8d7b66d0e37dbe76",3787:"78ebe68a043f50ce",3860:"be5b243bf7d6618c",3873:"72a9a21509f713f7",3879:"f50abf4e93e943ea",3888:"abc48b70a10fc2d6",3942:"085da8d58242eeab",3979:"cea8623f6e9f83ea",4053:"90d71fcbe4ffd852",4080:"08a21dae9e93c547",4163:"c6ebefdd9aa5c358",4174:"b6ff75dd91a2a32e",4223:"c10556cd92fc8018",4242:"3a66c58375424a5b",4275:"8f2e531757c2a813",4295:"6c0f4838b0c9c69d",4309:"a887a10e84c44f9e",4350:"b9d80827e8eee01a",4357:"ac4f251cdac34fbe",4358:"f89b14cf7a988731",4370:"ac13b62c811f7ede",4417:"0b5ee948c3518db3",4447:"5bad7871be61ca73",4474:"053807fa34066566",4539:"559c223da16b0282",4540:"03df20c499bca840",4553:"ce3eab65a260353e",4567:"7dc81a6e1c7df565",4583:"2a5df6eb3a6ea30b",4593:"676ac488744e1af5",4608:"1ff246d6b4c771f8",4634:"0332a56fdb8e26c0",4650:"61aec912b756287b",4659:"0b14de1cb2041bfd",4678:"867dfae26694be02",4763:"d0d1b1777a45e0b2",4801:"17596dbc1818c262",4814:"ccb85c56e9216a38",4823:"907850963b2bcb70",4829:"402ec60139d36417",4846:"c563765de65a34c7",4900:"b723a916eafdf743",4903:"004f583a12223dac",4963:"0f6678151a159143",4969:"1cb10af9489ea295",4976:"8870319ffbd1c31f",5005:"73745d7fcae6989e",5025:"b597364f0cf8b85a",5061:"025d30c3123eeaf6",5136:"ac897c2a56ee392f",5183:"2e5c895a2be76262",5269:"2e771096652dc113",5320:"00f00028b9163a43",5326:"adc4bf49a22f4e67",5331:"4d5d42e5253dbee2",5347:"3192e0021174aaa8",5375:"ebc026e6140b52f1",5424:"4d62f7ee887cd8b9",5482:"0907421e6bf5eeec",5491:"5cc285c4b84dac30",5498:"117ef4b6035a90c5",5518:"6c3dc9afe81a566b",5520:"eab85d7487e77510",5553:"75df19e3cc1246d6",5575:"3d90c643343a1329",5645:"0b86853ae26d9ee3",5670:"2a1b27a6fdb7aa6b",5690:"d30877807cf5c7eb",5712:"574fca2d5f06483a",5728:"8ef773d61765855e",5750:"aa57d25b74640d23",5755:"00015c284ed6fb39",5920:"9db223329ee9e11a",5922:"ce56021f8cc6ebbc",5937:"0827b5b3eb831ff0",5968:"63d5869783fad06f",5997:"226c07d9e6c496e0",6046:"00d36aea7fd5b147",6079:"cf8b455e0d94b478",6089:"2dd351186ec85cc3",6099:"43e6595fcf24fc33",6110:"5ce3f75fced27aaf",6144:"f967a8228bcdf663",6155:"19719cff570d6559",6166:"ecd82a9dcb484b97",6290:"e14cf4fc52dd4539",6293:"5914fa73a9f7e777",6311:"5b9c1f74df9a8f67",6331:"758f2f66b92cada9",6339:"bc9301cc22898be0",6360:"ff0a9063773daeeb",6402:"a0070d7688ed986b",6412:"089ee787a294d10b",6455:"12b78a2660d609eb",6563:"5d618b608750f4dc",6572:"ca2463823b9b01a0",6580:"75d53830b434451f",6588:"0fbca957af7d9e6a",6647:"584c5d5cd8dfdb5a",6666:"a82467c542429379",6686:"796c782c33ab8ca9",6701:"bff0efb979f71a17",6704:"f280f0ad0f5d8644",6729:"77a5381ac8f5c9ae",6741:"06fdaf122961074e",6814:"30ff86a90cbfd921",6846:"91283f709c40802c",6859:"bacad166ee995fe0",6887:"6c81234d73740fb9",6927:"aa3914b5fb0d14d4",6931:"3c90e9fe0f7f1e66",6938:"0ccf683bd8aa8410",6948:"2719ed8731963209",6959:"5a803faf27f88e9f",7021:"b71240b1d5f6fbe4",7040:"0b14de1cb2041bfd",7041:"174bf29bd837f06d",7082:"fc816f91214026d7",7113:"39704408fef3d26e",7130:"8d24694735826c22",7142:"dbd2cf8141eece5e",7152:"c7b7f1f5e9622f21",7227:"a6b2f01487bb3d9d",7258:"6cbe24c3bcb63d1d",7425:"8b47c8e398a12dd8",7442:"097194be4a0e7d55",7455:"71d54397710b923c",7465:"867e8ff655666413",7524:"9528295a19a5837a",7525:"f433aaf1fe40c90a",7557:"bdc743175125b3d8",7610:"b1439345dbcf285d",7625:"ab66bd50d2fb61a4",7635:"166d83de1d29e758",7636:"bf91320a9ff695af",7785:"1402a4110c300764",7799:"40b047a634f96a24",7819:"3c56f48c0dc5ad5d",7844:"2bb29faa262f313e",7846:"c9705c044ab8f87a",7884:"390ae2efbbf230c4",7889:"af3e581842f34c28",7921:"c361f794cc208e06",7977:"80e4daa080a79c39",8113:"907baefc7227cfb8",8132:"74491162f08af899",8192:"5918d83ac6a0e2dc",8243:"1450514f8390977e",8257:"dd8f651f1a43fee2",8288:"9bd1d26060cb00a1",8318:"81c7ac586fcbb728",8406:"955ccfbb4b70b8c3",8430:"b1f802dcffa41626",8432:"bd66ac287c569996",8457:"b61d96d8d30215fc",8496:"046efd6301dd804f",8545:"be0c9eea6aae5971",8555:"ab3ee6358f1d64da",8656:"2ceb4e5ff5df2fca",8670:"90ede75068758e82",8704:"a1003918da6654da",8773:"614f1f4f0f845c5e",8835:"5c7821b201f35593",8848:"7c6e47cca9f0059a",8921:"fb24a4d4d4d3265b",8947:"31d3d834d8281fd9",8977:"01b9c429327004e9",9005:"33cf91e617920d4f",9006:"11537833945ec4b8",9015:"c4e40321a6503a1b",9136:"191be42a2fee842c",9178:"48a90097ee3f0b0c",9186:"3af6fcd13ab752fa",9189:"3e9d29bf275ec462",9220:"bc767ebb5adb9f49",9224:"401f9320ee58570b",9240:"d38ddbe94e0bf128",9267:"fbfd65ea31e7448c",9294:"a20485f3282321b3",9302:"726b065f2df0323a",9312:"8121a74b2042bff3",9377:"f9db706e76f04afe",9382:"bc0e11ecc88dd62c",9421:"a5c1dbcfbfdd8f52",9448:"2668b3cd408e86de",9466:"c9d8f45d14235087",9521:"e1240eb862eb32dc",9547:"7729788fff21926f",9565:"8de0671f99d12abe",9569:"2f36b2b1c2f838d7",9605:"dfac539f89cea7a2",9615:"3b62c13af671f714",9648:"8235b6fea7087b3a",9666:"a515fa6d89a71f1c",9680:"d5ceac8967e0b6a8",9690:"7773c72f0eff6dec",9841:"422321143547591a",9842:"3b71b65b30d8ef2a",9996:"18b7bca2f0ab222e"})[e]+".js",l.miniCssF=e=>"static/css/659eccb5db697b76.css",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),f={},l.l=(e,a,c,d)=>{if(f[e])return void f[e].push(a);if(void 0!==c)for(var b,t,r=document.getElementsByTagName("script"),o=0;o<r.length;o++){var n=r[o];if(n.getAttribute("src")==e||n.getAttribute("data-webpack")=="_N_E:"+c){b=n;break}}b||(t=!0,(b=document.createElement("script")).charset="utf-8",b.timeout=120,l.nc&&b.setAttribute("nonce",l.nc),b.setAttribute("data-webpack","_N_E:"+c),b.src=l.tu(e)),f[e]=[a];var i=(a,c)=>{b.onerror=b.onload=null,clearTimeout(s);var d=f[e];if(delete f[e],b.parentNode&&b.parentNode.removeChild(b),d&&d.forEach(e=>e(c)),a)return a(c)},s=setTimeout(i.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=i.bind(null,b.onerror),b.onload=i.bind(null,b.onload),t&&document.head.appendChild(b)},l.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.tt=()=>(void 0===d&&(d={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(d=trustedTypes.createPolicy("nextjs#bundler",d))),d),l.tu=e=>l.tt().createScriptURL(e),l.p="/_next/",b={8068:0},l.f.miniCss=(e,a)=>{if(b[e])a.push(b[e]);else 0!==b[e]&&({1838:1})[e]&&a.push(b[e]=new Promise((a,c)=>{var f=l.miniCssF(e),d=l.p+f;if(((e,a)=>{for(var c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var d=c[f],b=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(b===e||b===a))return d}for(var t=document.getElementsByTagName("style"),f=0;f<t.length;f++){var d=t[f],b=d.getAttribute("data-href");if(b===e||b===a)return d}})(f,d))return a();((e,a,c,f)=>{var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onerror=d.onload=b=>{if(d.onerror=d.onload=null,"load"===b.type)c();else{var t=b&&("load"===b.type?"missing":b.type),r=b&&b.target&&b.target.href||a,o=Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.type=t,o.request=r,d.parentNode.removeChild(d),f(o)}},d.href=a;if("function"==typeof _N_E_STYLE_LOAD){var b=d.href,t=d.onload,r=d.onerror;_N_E_STYLE_LOAD(0===b.indexOf(window.location.origin)?new URL(b).pathname:b).then(function(){t&&t.call(d,{type:"load"})},function(){r&&r.call(d,{})})}else document.head.appendChild(d)})(e,d,a,c)}).then(()=>{b[e]=0},a=>{throw delete b[e],a}))},t={8068:0,2557:0,7513:0},l.f.j=(e,a)=>{var c=l.o(t,e)?t[e]:void 0;if(0!==c)if(c)a.push(c[2]);else if(/^(1838|2557|7513|8068)$/.test(e))t[e]=0;else{var f=new Promise((a,f)=>c=t[e]=[a,f]);a.push(c[2]=f);var d=l.p+l.u(e),b=Error();l.l(d,a=>{if(l.o(t,e)&&(0!==(c=t[e])&&(t[e]=void 0),c)){var f=a&&("load"===a.type?"missing":a.type),d=a&&a.target&&a.target.src;b.message="Loading chunk "+e+" failed.\n("+f+": "+d+")",b.name="ChunkLoadError",b.type=f,b.request=d,c[1](b)}},"chunk-"+e,e)}},l.O.j=e=>0===t[e],r=(e,a)=>{var c,f,[d,b,r]=a,o=0;if(d.some(e=>0!==t[e])){for(c in b)l.o(b,c)&&(l.m[c]=b[c]);if(r)var n=r(l)}for(e&&e(a);o<d.length;o++)f=d[o],l.o(t,f)&&t[f]&&t[f][0](),t[f]=0;return l.O(n)},(o=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o)),l.nc=void 0})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gsd-pi",
3
- "version": "2.67.0-dev.fe39184",
3
+ "version": "2.68.0-dev.4cf2433",
4
4
  "description": "GSD — Get Shit Done coding agent",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Contextual tips system — shows non-intrusive, session-scoped hints
3
+ * when user behavior suggests they'd benefit from knowing a feature.
4
+ *
5
+ * Each tip fires at most `maxShows` times per session. Tips are
6
+ * evaluated in order; the first match wins per input event.
7
+ */
8
+ export interface TipContext {
9
+ /** The raw input text the user submitted */
10
+ input: string;
11
+ /** Whether the agent is currently streaming */
12
+ isStreaming: boolean;
13
+ /** Current thinking level (e.g. "off", "low", "high", "xhigh") */
14
+ thinkingLevel?: string;
15
+ /** Number of `!` (included) bash commands run this session */
16
+ bashIncludedCount: number;
17
+ /** Approximate context usage percentage (0–100), if known */
18
+ contextPercent?: number;
19
+ }
20
+ export interface Tip {
21
+ id: string;
22
+ /** Maximum times this tip is shown per session */
23
+ maxShows: number;
24
+ /** Returns the tip message if the tip should fire, or null to skip */
25
+ evaluate: (ctx: TipContext) => string | null;
26
+ }
27
+ export declare class ContextualTips {
28
+ /** Map of tip ID → number of times shown this session */
29
+ private showCounts;
30
+ /** Track ! bash commands for double-bang reminder */
31
+ private _bashIncludedCount;
32
+ /** Increment the bash-included counter. Call when user runs ! (not !!) command. */
33
+ recordBashIncluded(): void;
34
+ get bashIncludedCount(): number;
35
+ /**
36
+ * Evaluate all tips against the current input context.
37
+ * Returns the first matching tip message, or null if none apply.
38
+ */
39
+ evaluate(ctx: Omit<TipContext, "bashIncludedCount">): string | null;
40
+ /** Reset all counters (e.g. on new session). */
41
+ reset(): void;
42
+ }
43
+ //# sourceMappingURL=contextual-tips.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contextual-tips.d.ts","sourceRoot":"","sources":["../../src/core/contextual-tips.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,WAAW,UAAU;IAC1B,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,WAAW,EAAE,OAAO,CAAC;IACrB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8DAA8D;IAC9D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,kDAAkD;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,QAAQ,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,MAAM,GAAG,IAAI,CAAC;CAC7C;AA8JD,qBAAa,cAAc;IAC1B,yDAAyD;IACzD,OAAO,CAAC,UAAU,CAA6B;IAC/C,qDAAqD;IACrD,OAAO,CAAC,kBAAkB,CAAK;IAE/B,mFAAmF;IACnF,kBAAkB,IAAI,IAAI;IAI1B,IAAI,iBAAiB,IAAI,MAAM,CAE9B;IAED;;;OAGG;IACH,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,EAAE,mBAAmB,CAAC,GAAG,MAAM,GAAG,IAAI;IAoBnE,gDAAgD;IAChD,KAAK,IAAI,IAAI;CAIb"}
@@ -0,0 +1,208 @@
1
+ /**
2
+ * Contextual tips system — shows non-intrusive, session-scoped hints
3
+ * when user behavior suggests they'd benefit from knowing a feature.
4
+ *
5
+ * Each tip fires at most `maxShows` times per session. Tips are
6
+ * evaluated in order; the first match wins per input event.
7
+ */
8
+ // Shell commands that obviously run locally and don't need the LLM.
9
+ // Intentionally conservative — these are unambiguous filesystem/info commands.
10
+ const LOCAL_SHELL_COMMANDS = new Set([
11
+ "ls",
12
+ "ll",
13
+ "la",
14
+ "pwd",
15
+ "cd",
16
+ "dir",
17
+ "cat",
18
+ "head",
19
+ "tail",
20
+ "wc",
21
+ "file",
22
+ "which",
23
+ "whoami",
24
+ "echo",
25
+ "date",
26
+ "tree",
27
+ "find",
28
+ "grep",
29
+ "rg",
30
+ "clear",
31
+ "env",
32
+ "df",
33
+ "du",
34
+ "uname",
35
+ "hostname",
36
+ "mkdir",
37
+ "rm",
38
+ "cp",
39
+ "mv",
40
+ "touch",
41
+ "chmod",
42
+ "less",
43
+ "more",
44
+ "sort",
45
+ "uniq",
46
+ "sed",
47
+ "awk",
48
+ "curl",
49
+ "wget",
50
+ "tar",
51
+ "zip",
52
+ "unzip",
53
+ "git",
54
+ "docker",
55
+ "npm",
56
+ "npx",
57
+ "yarn",
58
+ "pnpm",
59
+ "node",
60
+ "python",
61
+ "python3",
62
+ "pip",
63
+ "pip3",
64
+ "make",
65
+ "cargo",
66
+ "go",
67
+ "ruby",
68
+ "brew",
69
+ ]);
70
+ /**
71
+ * Extract the first token from input, ignoring leading whitespace.
72
+ * Returns lowercase for case-insensitive matching.
73
+ */
74
+ function firstToken(input) {
75
+ const trimmed = input.trimStart();
76
+ const spaceIdx = trimmed.search(/\s/);
77
+ const token = spaceIdx === -1 ? trimmed : trimmed.slice(0, spaceIdx);
78
+ return token.toLowerCase();
79
+ }
80
+ /**
81
+ * Check if input looks like a bare shell command (no !, //, or slash prefix).
82
+ */
83
+ function looksLikeShellCommand(input) {
84
+ const trimmed = input.trimStart();
85
+ // Already prefixed — user knows what they're doing
86
+ if (trimmed.startsWith("!") || trimmed.startsWith("/"))
87
+ return false;
88
+ // Multi-line or very long inputs are probably prompts
89
+ if (trimmed.includes("\n") || trimmed.length > 120)
90
+ return false;
91
+ return LOCAL_SHELL_COMMANDS.has(firstToken(trimmed));
92
+ }
93
+ const TIPS = [
94
+ // 1. Shell command reminder
95
+ {
96
+ id: "shell-command-prefix",
97
+ maxShows: 2,
98
+ evaluate(ctx) {
99
+ if (!looksLikeShellCommand(ctx.input))
100
+ return null;
101
+ const cmd = firstToken(ctx.input);
102
+ return `Tip: "${cmd}" looks like a shell command. Prefix with ! to run locally, or !! to run without using tokens.`;
103
+ },
104
+ },
105
+ // 2. Large paste warning
106
+ {
107
+ id: "large-paste",
108
+ maxShows: 2,
109
+ evaluate(ctx) {
110
+ if (ctx.input.length < 2000)
111
+ return null;
112
+ // Slash commands and bash prefixes are intentional
113
+ if (ctx.input.trimStart().startsWith("/") || ctx.input.trimStart().startsWith("!"))
114
+ return null;
115
+ return "Tip: Large inputs consume many tokens. Consider saving to a file and asking the agent to read it.";
116
+ },
117
+ },
118
+ // 3. Thinking level awareness
119
+ {
120
+ id: "thinking-level-high",
121
+ maxShows: 1,
122
+ evaluate(ctx) {
123
+ const level = ctx.thinkingLevel?.toLowerCase();
124
+ if (level !== "high" && level !== "xhigh")
125
+ return null;
126
+ // Only fire for short, simple-looking inputs (likely simple questions)
127
+ const trimmed = ctx.input.trim();
128
+ if (trimmed.length > 80 || trimmed.includes("\n"))
129
+ return null;
130
+ // Don't fire on slash or bash commands
131
+ if (trimmed.startsWith("/") || trimmed.startsWith("!"))
132
+ return null;
133
+ return `Tip: Thinking is set to ${level}. Use Ctrl+T to lower it for simple questions — saves tokens.`;
134
+ },
135
+ },
136
+ // 4. Double-bang reminder
137
+ {
138
+ id: "double-bang-reminder",
139
+ maxShows: 2,
140
+ evaluate(ctx) {
141
+ // Fire after user has run 3+ included (!) bash commands
142
+ if (ctx.bashIncludedCount < 3)
143
+ return null;
144
+ // Only trigger on a ! command (not !!)
145
+ const trimmed = ctx.input.trimStart();
146
+ if (!trimmed.startsWith("!") || trimmed.startsWith("!!"))
147
+ return null;
148
+ return "Tip: Use !! instead of ! to keep command output out of agent context and save tokens.";
149
+ },
150
+ },
151
+ // 5. Compaction nudge
152
+ {
153
+ id: "compaction-nudge",
154
+ maxShows: 1,
155
+ evaluate(ctx) {
156
+ if (ctx.contextPercent === undefined || ctx.contextPercent < 70)
157
+ return null;
158
+ // Don't nag on slash/bash
159
+ const trimmed = ctx.input.trimStart();
160
+ if (trimmed.startsWith("/") || trimmed.startsWith("!"))
161
+ return null;
162
+ return "Tip: Context is getting full. Use /compact to summarize the conversation and free up space.";
163
+ },
164
+ },
165
+ ];
166
+ // ─── Session-scoped tracker ──────────────────────────────────────────────────
167
+ export class ContextualTips {
168
+ constructor() {
169
+ /** Map of tip ID → number of times shown this session */
170
+ this.showCounts = new Map();
171
+ /** Track ! bash commands for double-bang reminder */
172
+ this._bashIncludedCount = 0;
173
+ }
174
+ /** Increment the bash-included counter. Call when user runs ! (not !!) command. */
175
+ recordBashIncluded() {
176
+ this._bashIncludedCount++;
177
+ }
178
+ get bashIncludedCount() {
179
+ return this._bashIncludedCount;
180
+ }
181
+ /**
182
+ * Evaluate all tips against the current input context.
183
+ * Returns the first matching tip message, or null if none apply.
184
+ */
185
+ evaluate(ctx) {
186
+ const fullCtx = {
187
+ ...ctx,
188
+ bashIncludedCount: this._bashIncludedCount,
189
+ };
190
+ for (const tip of TIPS) {
191
+ const shown = this.showCounts.get(tip.id) ?? 0;
192
+ if (shown >= tip.maxShows)
193
+ continue;
194
+ const message = tip.evaluate(fullCtx);
195
+ if (message) {
196
+ this.showCounts.set(tip.id, shown + 1);
197
+ return message;
198
+ }
199
+ }
200
+ return null;
201
+ }
202
+ /** Reset all counters (e.g. on new session). */
203
+ reset() {
204
+ this.showCounts.clear();
205
+ this._bashIncludedCount = 0;
206
+ }
207
+ }
208
+ //# sourceMappingURL=contextual-tips.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contextual-tips.js","sourceRoot":"","sources":["../../src/core/contextual-tips.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * Contextual tips system — shows non-intrusive, session-scoped hints\n * when user behavior suggests they'd benefit from knowing a feature.\n *\n * Each tip fires at most `maxShows` times per session. Tips are\n * evaluated in order; the first match wins per input event.\n */\n\n// ─── Tip definitions ─────────────────────────────────────────────────────────\n\nexport interface TipContext {\n\t/** The raw input text the user submitted */\n\tinput: string;\n\t/** Whether the agent is currently streaming */\n\tisStreaming: boolean;\n\t/** Current thinking level (e.g. \"off\", \"low\", \"high\", \"xhigh\") */\n\tthinkingLevel?: string;\n\t/** Number of `!` (included) bash commands run this session */\n\tbashIncludedCount: number;\n\t/** Approximate context usage percentage (0–100), if known */\n\tcontextPercent?: number;\n}\n\nexport interface Tip {\n\tid: string;\n\t/** Maximum times this tip is shown per session */\n\tmaxShows: number;\n\t/** Returns the tip message if the tip should fire, or null to skip */\n\tevaluate: (ctx: TipContext) => string | null;\n}\n\n// Shell commands that obviously run locally and don't need the LLM.\n// Intentionally conservative — these are unambiguous filesystem/info commands.\nconst LOCAL_SHELL_COMMANDS = new Set([\n\t\"ls\",\n\t\"ll\",\n\t\"la\",\n\t\"pwd\",\n\t\"cd\",\n\t\"dir\",\n\t\"cat\",\n\t\"head\",\n\t\"tail\",\n\t\"wc\",\n\t\"file\",\n\t\"which\",\n\t\"whoami\",\n\t\"echo\",\n\t\"date\",\n\t\"tree\",\n\t\"find\",\n\t\"grep\",\n\t\"rg\",\n\t\"clear\",\n\t\"env\",\n\t\"df\",\n\t\"du\",\n\t\"uname\",\n\t\"hostname\",\n\t\"mkdir\",\n\t\"rm\",\n\t\"cp\",\n\t\"mv\",\n\t\"touch\",\n\t\"chmod\",\n\t\"less\",\n\t\"more\",\n\t\"sort\",\n\t\"uniq\",\n\t\"sed\",\n\t\"awk\",\n\t\"curl\",\n\t\"wget\",\n\t\"tar\",\n\t\"zip\",\n\t\"unzip\",\n\t\"git\",\n\t\"docker\",\n\t\"npm\",\n\t\"npx\",\n\t\"yarn\",\n\t\"pnpm\",\n\t\"node\",\n\t\"python\",\n\t\"python3\",\n\t\"pip\",\n\t\"pip3\",\n\t\"make\",\n\t\"cargo\",\n\t\"go\",\n\t\"ruby\",\n\t\"brew\",\n]);\n\n/**\n * Extract the first token from input, ignoring leading whitespace.\n * Returns lowercase for case-insensitive matching.\n */\nfunction firstToken(input: string): string {\n\tconst trimmed = input.trimStart();\n\tconst spaceIdx = trimmed.search(/\\s/);\n\tconst token = spaceIdx === -1 ? trimmed : trimmed.slice(0, spaceIdx);\n\treturn token.toLowerCase();\n}\n\n/**\n * Check if input looks like a bare shell command (no !, //, or slash prefix).\n */\nfunction looksLikeShellCommand(input: string): boolean {\n\tconst trimmed = input.trimStart();\n\t// Already prefixed — user knows what they're doing\n\tif (trimmed.startsWith(\"!\") || trimmed.startsWith(\"/\")) return false;\n\t// Multi-line or very long inputs are probably prompts\n\tif (trimmed.includes(\"\\n\") || trimmed.length > 120) return false;\n\treturn LOCAL_SHELL_COMMANDS.has(firstToken(trimmed));\n}\n\nconst TIPS: Tip[] = [\n\t// 1. Shell command reminder\n\t{\n\t\tid: \"shell-command-prefix\",\n\t\tmaxShows: 2,\n\t\tevaluate(ctx) {\n\t\t\tif (!looksLikeShellCommand(ctx.input)) return null;\n\t\t\tconst cmd = firstToken(ctx.input);\n\t\t\treturn `Tip: \"${cmd}\" looks like a shell command. Prefix with ! to run locally, or !! to run without using tokens.`;\n\t\t},\n\t},\n\n\t// 2. Large paste warning\n\t{\n\t\tid: \"large-paste\",\n\t\tmaxShows: 2,\n\t\tevaluate(ctx) {\n\t\t\tif (ctx.input.length < 2000) return null;\n\t\t\t// Slash commands and bash prefixes are intentional\n\t\t\tif (ctx.input.trimStart().startsWith(\"/\") || ctx.input.trimStart().startsWith(\"!\")) return null;\n\t\t\treturn \"Tip: Large inputs consume many tokens. Consider saving to a file and asking the agent to read it.\";\n\t\t},\n\t},\n\n\t// 3. Thinking level awareness\n\t{\n\t\tid: \"thinking-level-high\",\n\t\tmaxShows: 1,\n\t\tevaluate(ctx) {\n\t\t\tconst level = ctx.thinkingLevel?.toLowerCase();\n\t\t\tif (level !== \"high\" && level !== \"xhigh\") return null;\n\t\t\t// Only fire for short, simple-looking inputs (likely simple questions)\n\t\t\tconst trimmed = ctx.input.trim();\n\t\t\tif (trimmed.length > 80 || trimmed.includes(\"\\n\")) return null;\n\t\t\t// Don't fire on slash or bash commands\n\t\t\tif (trimmed.startsWith(\"/\") || trimmed.startsWith(\"!\")) return null;\n\t\t\treturn `Tip: Thinking is set to ${level}. Use Ctrl+T to lower it for simple questions — saves tokens.`;\n\t\t},\n\t},\n\n\t// 4. Double-bang reminder\n\t{\n\t\tid: \"double-bang-reminder\",\n\t\tmaxShows: 2,\n\t\tevaluate(ctx) {\n\t\t\t// Fire after user has run 3+ included (!) bash commands\n\t\t\tif (ctx.bashIncludedCount < 3) return null;\n\t\t\t// Only trigger on a ! command (not !!)\n\t\t\tconst trimmed = ctx.input.trimStart();\n\t\t\tif (!trimmed.startsWith(\"!\") || trimmed.startsWith(\"!!\")) return null;\n\t\t\treturn \"Tip: Use !! instead of ! to keep command output out of agent context and save tokens.\";\n\t\t},\n\t},\n\n\t// 5. Compaction nudge\n\t{\n\t\tid: \"compaction-nudge\",\n\t\tmaxShows: 1,\n\t\tevaluate(ctx) {\n\t\t\tif (ctx.contextPercent === undefined || ctx.contextPercent < 70) return null;\n\t\t\t// Don't nag on slash/bash\n\t\t\tconst trimmed = ctx.input.trimStart();\n\t\t\tif (trimmed.startsWith(\"/\") || trimmed.startsWith(\"!\")) return null;\n\t\t\treturn \"Tip: Context is getting full. Use /compact to summarize the conversation and free up space.\";\n\t\t},\n\t},\n];\n\n// ─── Session-scoped tracker ──────────────────────────────────────────────────\n\nexport class ContextualTips {\n\t/** Map of tip ID → number of times shown this session */\n\tprivate showCounts = new Map<string, number>();\n\t/** Track ! bash commands for double-bang reminder */\n\tprivate _bashIncludedCount = 0;\n\n\t/** Increment the bash-included counter. Call when user runs ! (not !!) command. */\n\trecordBashIncluded(): void {\n\t\tthis._bashIncludedCount++;\n\t}\n\n\tget bashIncludedCount(): number {\n\t\treturn this._bashIncludedCount;\n\t}\n\n\t/**\n\t * Evaluate all tips against the current input context.\n\t * Returns the first matching tip message, or null if none apply.\n\t */\n\tevaluate(ctx: Omit<TipContext, \"bashIncludedCount\">): string | null {\n\t\tconst fullCtx: TipContext = {\n\t\t\t...ctx,\n\t\t\tbashIncludedCount: this._bashIncludedCount,\n\t\t};\n\n\t\tfor (const tip of TIPS) {\n\t\t\tconst shown = this.showCounts.get(tip.id) ?? 0;\n\t\t\tif (shown >= tip.maxShows) continue;\n\n\t\t\tconst message = tip.evaluate(fullCtx);\n\t\t\tif (message) {\n\t\t\t\tthis.showCounts.set(tip.id, shown + 1);\n\t\t\t\treturn message;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\t/** Reset all counters (e.g. on new session). */\n\treset(): void {\n\t\tthis.showCounts.clear();\n\t\tthis._bashIncludedCount = 0;\n\t}\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=contextual-tips.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contextual-tips.test.d.ts","sourceRoot":"","sources":["../../src/core/contextual-tips.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,227 @@
1
+ import { describe, it } from "node:test";
2
+ import assert from "node:assert/strict";
3
+ import { ContextualTips } from "./contextual-tips.js";
4
+ const baseCtx = {
5
+ input: "hello world",
6
+ isStreaming: false,
7
+ thinkingLevel: "off",
8
+ contextPercent: undefined,
9
+ };
10
+ describe("ContextualTips", () => {
11
+ describe("shell-command-prefix tip", () => {
12
+ it("fires for bare shell commands", () => {
13
+ const tips = new ContextualTips();
14
+ const result = tips.evaluate({ ...baseCtx, input: "ls -la" });
15
+ assert.ok(result);
16
+ assert.ok(result.includes("looks like a shell command"));
17
+ assert.ok(result.includes("!"));
18
+ });
19
+ it("fires for various known commands", () => {
20
+ for (const cmd of ["pwd", "cd src", "cat file.txt", "grep foo bar", "git status", "npm install", "docker ps"]) {
21
+ const tips = new ContextualTips();
22
+ const result = tips.evaluate({ ...baseCtx, input: cmd });
23
+ assert.ok(result, `Expected tip for "${cmd}"`);
24
+ assert.ok(result.includes("looks like a shell command"));
25
+ }
26
+ });
27
+ it("does not fire for commands already prefixed with !", () => {
28
+ const tips = new ContextualTips();
29
+ const result = tips.evaluate({ ...baseCtx, input: "!ls -la" });
30
+ assert.equal(result, null);
31
+ });
32
+ it("does not fire for commands prefixed with !!", () => {
33
+ const tips = new ContextualTips();
34
+ const result = tips.evaluate({ ...baseCtx, input: "!!ls -la" });
35
+ assert.equal(result, null);
36
+ });
37
+ it("does not fire for slash commands", () => {
38
+ const tips = new ContextualTips();
39
+ const result = tips.evaluate({ ...baseCtx, input: "/clear" });
40
+ assert.equal(result, null);
41
+ });
42
+ it("does not fire for unknown commands", () => {
43
+ const tips = new ContextualTips();
44
+ const result = tips.evaluate({ ...baseCtx, input: "please help me fix this bug" });
45
+ assert.equal(result, null);
46
+ });
47
+ it("does not fire for very long inputs", () => {
48
+ const tips = new ContextualTips();
49
+ const longInput = "ls " + "a".repeat(200);
50
+ const result = tips.evaluate({ ...baseCtx, input: longInput });
51
+ assert.equal(result, null);
52
+ });
53
+ it("respects maxShows (2)", () => {
54
+ const tips = new ContextualTips();
55
+ tips.evaluate({ ...baseCtx, input: "ls" });
56
+ tips.evaluate({ ...baseCtx, input: "pwd" });
57
+ const third = tips.evaluate({ ...baseCtx, input: "cat foo" });
58
+ assert.equal(third, null);
59
+ });
60
+ });
61
+ describe("large-paste tip", () => {
62
+ it("fires for large inputs", () => {
63
+ const tips = new ContextualTips();
64
+ const largeInput = "a".repeat(2500);
65
+ const result = tips.evaluate({ ...baseCtx, input: largeInput });
66
+ assert.ok(result);
67
+ assert.ok(result.includes("Large inputs"));
68
+ });
69
+ it("does not fire for normal-length inputs", () => {
70
+ const tips = new ContextualTips();
71
+ const result = tips.evaluate({ ...baseCtx, input: "fix the login bug" });
72
+ assert.equal(result, null);
73
+ });
74
+ it("does not fire for large bash commands", () => {
75
+ const tips = new ContextualTips();
76
+ const result = tips.evaluate({ ...baseCtx, input: "!" + "a".repeat(2500) });
77
+ assert.equal(result, null);
78
+ });
79
+ it("respects maxShows (2)", () => {
80
+ const tips = new ContextualTips();
81
+ const large = "x".repeat(3000);
82
+ tips.evaluate({ ...baseCtx, input: large });
83
+ tips.evaluate({ ...baseCtx, input: large });
84
+ const third = tips.evaluate({ ...baseCtx, input: large });
85
+ assert.equal(third, null);
86
+ });
87
+ });
88
+ describe("thinking-level-high tip", () => {
89
+ it("fires for short inputs with high thinking", () => {
90
+ const tips = new ContextualTips();
91
+ const result = tips.evaluate({ ...baseCtx, input: "what is 2+2?", thinkingLevel: "high" });
92
+ assert.ok(result);
93
+ assert.ok(result.includes("Thinking is set to high"));
94
+ });
95
+ it("fires for xhigh thinking", () => {
96
+ const tips = new ContextualTips();
97
+ const result = tips.evaluate({ ...baseCtx, input: "what time is it?", thinkingLevel: "xhigh" });
98
+ assert.ok(result);
99
+ assert.ok(result.includes("Thinking is set to xhigh"));
100
+ });
101
+ it("does not fire for low/medium thinking", () => {
102
+ const tips = new ContextualTips();
103
+ const result = tips.evaluate({ ...baseCtx, input: "what is 2+2?", thinkingLevel: "medium" });
104
+ assert.equal(result, null);
105
+ });
106
+ it("does not fire for long inputs", () => {
107
+ const tips = new ContextualTips();
108
+ const longInput = "Please help me refactor this entire authentication module to use JWT tokens instead of session cookies. " +
109
+ "I need to update the middleware, the login handler, and the user model.";
110
+ const result = tips.evaluate({ ...baseCtx, input: longInput, thinkingLevel: "high" });
111
+ assert.equal(result, null);
112
+ });
113
+ it("does not fire for slash commands", () => {
114
+ const tips = new ContextualTips();
115
+ const result = tips.evaluate({ ...baseCtx, input: "/model", thinkingLevel: "high" });
116
+ assert.equal(result, null);
117
+ });
118
+ it("respects maxShows (1)", () => {
119
+ const tips = new ContextualTips();
120
+ tips.evaluate({ ...baseCtx, input: "hi", thinkingLevel: "high" });
121
+ const second = tips.evaluate({ ...baseCtx, input: "hello", thinkingLevel: "high" });
122
+ assert.equal(second, null);
123
+ });
124
+ });
125
+ describe("double-bang-reminder tip", () => {
126
+ it("fires after 3+ included bash commands", () => {
127
+ const tips = new ContextualTips();
128
+ tips.recordBashIncluded();
129
+ tips.recordBashIncluded();
130
+ tips.recordBashIncluded();
131
+ const result = tips.evaluate({ ...baseCtx, input: "!ls" });
132
+ assert.ok(result);
133
+ assert.ok(result.includes("!!"));
134
+ });
135
+ it("does not fire with fewer than 3 included commands", () => {
136
+ const tips = new ContextualTips();
137
+ tips.recordBashIncluded();
138
+ tips.recordBashIncluded();
139
+ const result = tips.evaluate({ ...baseCtx, input: "!ls" });
140
+ assert.equal(result, null);
141
+ });
142
+ it("does not fire for !! commands", () => {
143
+ const tips = new ContextualTips();
144
+ tips.recordBashIncluded();
145
+ tips.recordBashIncluded();
146
+ tips.recordBashIncluded();
147
+ const result = tips.evaluate({ ...baseCtx, input: "!!ls" });
148
+ assert.equal(result, null);
149
+ });
150
+ it("respects maxShows (2)", () => {
151
+ const tips = new ContextualTips();
152
+ for (let i = 0; i < 5; i++)
153
+ tips.recordBashIncluded();
154
+ tips.evaluate({ ...baseCtx, input: "!ls" });
155
+ tips.evaluate({ ...baseCtx, input: "!pwd" });
156
+ const third = tips.evaluate({ ...baseCtx, input: "!cat foo" });
157
+ assert.equal(third, null);
158
+ });
159
+ });
160
+ describe("compaction-nudge tip", () => {
161
+ it("fires when context is >= 70%", () => {
162
+ const tips = new ContextualTips();
163
+ const result = tips.evaluate({ ...baseCtx, input: "fix the bug", contextPercent: 75 });
164
+ assert.ok(result);
165
+ assert.ok(result.includes("/compact"));
166
+ });
167
+ it("does not fire when context is < 70%", () => {
168
+ const tips = new ContextualTips();
169
+ const result = tips.evaluate({ ...baseCtx, input: "fix the bug", contextPercent: 50 });
170
+ assert.equal(result, null);
171
+ });
172
+ it("does not fire when contextPercent is undefined", () => {
173
+ const tips = new ContextualTips();
174
+ const result = tips.evaluate({ ...baseCtx, input: "fix the bug", contextPercent: undefined });
175
+ assert.equal(result, null);
176
+ });
177
+ it("does not fire for slash commands", () => {
178
+ const tips = new ContextualTips();
179
+ const result = tips.evaluate({ ...baseCtx, input: "/model", contextPercent: 90 });
180
+ assert.equal(result, null);
181
+ });
182
+ it("respects maxShows (1)", () => {
183
+ const tips = new ContextualTips();
184
+ tips.evaluate({ ...baseCtx, input: "hello", contextPercent: 80 });
185
+ const second = tips.evaluate({ ...baseCtx, input: "world", contextPercent: 85 });
186
+ assert.equal(second, null);
187
+ });
188
+ });
189
+ describe("reset", () => {
190
+ it("resets all show counters", () => {
191
+ const tips = new ContextualTips();
192
+ // Exhaust shell-command-prefix tip
193
+ tips.evaluate({ ...baseCtx, input: "ls" });
194
+ tips.evaluate({ ...baseCtx, input: "pwd" });
195
+ assert.equal(tips.evaluate({ ...baseCtx, input: "cat foo" }), null);
196
+ tips.reset();
197
+ // Should fire again after reset
198
+ const result = tips.evaluate({ ...baseCtx, input: "ls" });
199
+ assert.ok(result);
200
+ assert.ok(result.includes("looks like a shell command"));
201
+ });
202
+ it("resets bash included count", () => {
203
+ const tips = new ContextualTips();
204
+ for (let i = 0; i < 5; i++)
205
+ tips.recordBashIncluded();
206
+ assert.equal(tips.bashIncludedCount, 5);
207
+ tips.reset();
208
+ assert.equal(tips.bashIncludedCount, 0);
209
+ });
210
+ });
211
+ describe("priority — first match wins", () => {
212
+ it("shell-command-prefix takes priority over compaction nudge", () => {
213
+ const tips = new ContextualTips();
214
+ const result = tips.evaluate({ ...baseCtx, input: "ls", contextPercent: 80 });
215
+ assert.ok(result);
216
+ assert.ok(result.includes("looks like a shell command"));
217
+ });
218
+ it("large-paste takes priority over compaction nudge", () => {
219
+ const tips = new ContextualTips();
220
+ const largeInput = "x".repeat(3000);
221
+ const result = tips.evaluate({ ...baseCtx, input: largeInput, contextPercent: 80 });
222
+ assert.ok(result);
223
+ assert.ok(result.includes("Large inputs"));
224
+ });
225
+ });
226
+ });
227
+ //# sourceMappingURL=contextual-tips.test.js.map