pine2profit 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +243 -2
  2. package/build/.gitkeep +0 -0
  3. package/build/index.cjs +1152 -0
  4. package/build/index.mjs +1142 -0
  5. package/build/modules/frontend/build/.nojekyll +0 -0
  6. package/build/modules/frontend/build/404/index.html +1 -0
  7. package/build/modules/frontend/build/404.html +1 -0
  8. package/build/modules/frontend/build/_next/static/chunks/11.78c5bec5897e1148.js +1 -0
  9. package/build/modules/frontend/build/_next/static/chunks/195.64632be71175c993.js +63 -0
  10. package/build/modules/frontend/build/_next/static/chunks/204.008bcbcf48844ee2.js +1 -0
  11. package/build/modules/frontend/build/_next/static/chunks/255-da04dc9178303a31.js +1 -0
  12. package/build/modules/frontend/build/_next/static/chunks/2738385b.306f7750ad5b8be4.js +372 -0
  13. package/build/modules/frontend/build/_next/static/chunks/338-31711140cb6d61e5.js +1 -0
  14. package/build/modules/frontend/build/_next/static/chunks/4bd1b696-c023c6e3521b1417.js +1 -0
  15. package/build/modules/frontend/build/_next/static/chunks/50e49f97.75feacc2b3cc7709.js +433 -0
  16. package/build/modules/frontend/build/_next/static/chunks/554.dd4ac9a0aff9b782.js +1 -0
  17. package/build/modules/frontend/build/_next/static/chunks/570-33c81efca66c4bc9.js +3 -0
  18. package/build/modules/frontend/build/_next/static/chunks/5957d0c3.7b96612772854e2d.js +2 -0
  19. package/build/modules/frontend/build/_next/static/chunks/619-f09bc47e24909021.js +1 -0
  20. package/build/modules/frontend/build/_next/static/chunks/7589b812.60f2b16513f3aa42.js +1 -0
  21. package/build/modules/frontend/build/_next/static/chunks/771.5c62ba94f930669e.js +1 -0
  22. package/build/modules/frontend/build/_next/static/chunks/796.4b04b2b64c066b03.js +1 -0
  23. package/build/modules/frontend/build/_next/static/chunks/897-b727cc7229802490.js +1 -0
  24. package/build/modules/frontend/build/_next/static/chunks/app/_not-found/page-b6d9300903c2ab41.js +1 -0
  25. package/build/modules/frontend/build/_next/static/chunks/app/layout-0da8bd54f47c9e1b.js +1 -0
  26. package/build/modules/frontend/build/_next/static/chunks/app/page-7ab911a70ef48cfe.js +1 -0
  27. package/build/modules/frontend/build/_next/static/chunks/app/run/page-42836fc705c46a59.js +1 -0
  28. package/build/modules/frontend/build/_next/static/chunks/c525c9ef.018edb9552a70fc2.js +143 -0
  29. package/build/modules/frontend/build/_next/static/chunks/e1865c21-8d63eb0f5b25cb0c.js +1 -0
  30. package/build/modules/frontend/build/_next/static/chunks/framework-28b60818f5cffd83.js +1 -0
  31. package/build/modules/frontend/build/_next/static/chunks/main-45ecedd1f28e3a74.js +1 -0
  32. package/build/modules/frontend/build/_next/static/chunks/main-app-4ff0bbe1b367fcb5.js +1 -0
  33. package/build/modules/frontend/build/_next/static/chunks/pages/_app-7d307437aca18ad4.js +1 -0
  34. package/build/modules/frontend/build/_next/static/chunks/pages/_error-cb2a52f75f2162e2.js +1 -0
  35. package/build/modules/frontend/build/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  36. package/build/modules/frontend/build/_next/static/chunks/webpack-bb5ccf34ea47f1d7.js +1 -0
  37. package/build/modules/frontend/build/_next/static/css/91363587ff8467b5.css +1 -0
  38. package/build/modules/frontend/build/_next/static/media/29b98dbfba401fa9-s.p.woff2 +0 -0
  39. package/build/modules/frontend/build/_next/static/media/313510e2713fb214-s.p.woff2 +0 -0
  40. package/build/modules/frontend/build/_next/static/media/558ca1a6aa3cb55e-s.p.woff2 +0 -0
  41. package/build/modules/frontend/build/_next/static/media/64d784ea54a4acde-s.woff2 +0 -0
  42. package/build/modules/frontend/build/_next/static/media/6d831b18ae5b01dc-s.woff2 +0 -0
  43. package/build/modules/frontend/build/_next/static/media/8048a25e80cc4179-s.woff2 +0 -0
  44. package/build/modules/frontend/build/_next/static/media/851c4691abdf3def-s.woff2 +0 -0
  45. package/build/modules/frontend/build/_next/static/media/87bc17f7c8b98e48-s.woff2 +0 -0
  46. package/build/modules/frontend/build/_next/static/media/982ceffe7b733b3b-s.p.woff2 +0 -0
  47. package/build/modules/frontend/build/_next/static/media/a6c19694cd327cd4-s.woff2 +0 -0
  48. package/build/modules/frontend/build/_next/static/media/a8a8dd7277bab4cf-s.woff2 +0 -0
  49. package/build/modules/frontend/build/_next/static/media/ac0e76ddaeeb7981-s.woff2 +0 -0
  50. package/build/modules/frontend/build/_next/static/media/b8bfb68ab9ab617c-s.woff2 +0 -0
  51. package/build/modules/frontend/build/_next/static/media/d76fe899475ae4d7-s.woff2 +0 -0
  52. package/build/modules/frontend/build/_next/static/media/e546cf32c9d4702c-s.woff2 +0 -0
  53. package/build/modules/frontend/build/_next/static/media/edc640959b0c7826-s.woff2 +0 -0
  54. package/build/modules/frontend/build/_next/static/media/ff71da380fbe67dd-s.woff2 +0 -0
  55. package/build/modules/frontend/build/_next/static/vHsenj52Jy0T31oXW8dJX/_buildManifest.js +1 -0
  56. package/build/modules/frontend/build/_next/static/vHsenj52Jy0T31oXW8dJX/_ssgManifest.js +1 -0
  57. package/build/modules/frontend/build/icon.svg +1 -0
  58. package/build/modules/frontend/build/index.html +1 -0
  59. package/build/modules/frontend/build/index.txt +23 -0
  60. package/build/modules/frontend/build/run/index.html +1 -0
  61. package/build/modules/frontend/build/run/index.txt +23 -0
  62. package/package.json +93 -4
  63. package/types.d.ts +124 -0
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><!--vHsenj52Jy0T31oXW8dJX--><html lang="en" class="__variable_7981a2 __variable_fd3dff __variable_a74ce6 __variable_c9ff80"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/29b98dbfba401fa9-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/313510e2713fb214-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/558ca1a6aa3cb55e-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/982ceffe7b733b3b-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/91363587ff8467b5.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-bb5ccf34ea47f1d7.js"/><script src="/_next/static/chunks/4bd1b696-c023c6e3521b1417.js" async=""></script><script src="/_next/static/chunks/255-da04dc9178303a31.js" async=""></script><script src="/_next/static/chunks/main-app-4ff0bbe1b367fcb5.js" async=""></script><script src="/_next/static/chunks/e1865c21-8d63eb0f5b25cb0c.js" async=""></script><script src="/_next/static/chunks/570-33c81efca66c4bc9.js" async=""></script><script src="/_next/static/chunks/619-f09bc47e24909021.js" async=""></script><script src="/_next/static/chunks/338-31711140cb6d61e5.js" async=""></script><script src="/_next/static/chunks/app/layout-0da8bd54f47c9e1b.js" async=""></script><script src="/_next/static/chunks/app/run/page-42836fc705c46a59.js" async=""></script><meta name="next-size-adjust" content=""/><title>Can money be made on this?</title><meta name="description" content="An agent loops over Pine Script indicators and strategies with one question: can money be made on them. Chart + the agent&#x27;s answers linked to bars."/><link rel="icon" href="/icon.svg"/><script>(function(){try{var t=localStorage.getItem('pm-theme');if(t==='dark'||t==='light'){document.documentElement.dataset.theme=t;}}catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><header class="top"><div class="wrap inner"><a class="brand" href="/"><span class="mark">$?</span><span>Can money be made on this?</span></a><nav><a href="/">Scripts</a></nav><div class="right"><button class="pill-btn" title="Switch theme" aria-label="Switch theme">Dark</button><a class="pill-btn ink" href="https://github.com/pine2profit" target="_blank" rel="noreferrer">GitHub ↗</a></div></div></header><main><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="wrap"><div class="run-head"><h1>loading…</h1></div></div><!--/$--><!--$--><!--/$--></main><footer class="wrap">All amounts are on a notional $10,000 account without compounding. A verdict is the agent&#x27;s answer under its protocol on the stated data, not a recommendation. Pine Script® and TradingView® are trademarks of TradingView, Inc.</footer><script src="/_next/static/chunks/webpack-bb5ccf34ea47f1d7.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[2619,[\"112\",\"static/chunks/e1865c21-8d63eb0f5b25cb0c.js\",\"570\",\"static/chunks/570-33c81efca66c4bc9.js\",\"619\",\"static/chunks/619-f09bc47e24909021.js\",\"338\",\"static/chunks/338-31711140cb6d61e5.js\",\"177\",\"static/chunks/app/layout-0da8bd54f47c9e1b.js\"],\"\"]\n3:I[9196,[\"112\",\"static/chunks/e1865c21-8d63eb0f5b25cb0c.js\",\"570\",\"static/chunks/570-33c81efca66c4bc9.js\",\"619\",\"static/chunks/619-f09bc47e24909021.js\",\"338\",\"static/chunks/338-31711140cb6d61e5.js\",\"177\",\"static/chunks/app/layout-0da8bd54f47c9e1b.js\"],\"ThemeToggle\"]\n4:I[9766,[],\"\"]\n5:I[8924,[],\"\"]\n6:\"$Sreact.suspense\"\n7:I[3520,[\"112\",\"static/chunks/e1865c21-8d63eb0f5b25cb0c.js\",\"570\",\"static/chunks/570-33c81efca66c4bc9.js\",\"338\",\"static/chunks/338-31711140cb6d61e5.js\",\"64\",\"static/chunks/app/run/page-42836fc705c46a59.js\"],\"RunView\"]\n8:I[4431,[],\"OutletBoundary\"]\na:I[5278,[],\"AsyncMetadataOutlet\"]\nc:I[4431,[],\"ViewportBoundary\"]\ne:I[4431,[],\"MetadataBoundary\"]\n10:I[7150,[],\"\"]\n:HL[\"/_next/static/media/29b98dbfba401fa9-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/313510e2713fb214-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/558ca1a6aa3cb55e-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/982ceffe7b733b3b-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/91363587ff8467b5.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"vHsenj52Jy0T31oXW8dJX\",\"p\":\"\",\"c\":[\"\",\"run\",\"\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"run\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/91363587ff8467b5.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"className\":\"__variable_7981a2 __variable_fd3dff __variable_a74ce6 __variable_c9ff80\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var t=localStorage.getItem('pm-theme');if(t==='dark'||t==='light'){document.documentElement.dataset.theme=t;}}catch(e){}})();\"}}]}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"header\",null,{\"className\":\"top\",\"children\":[\"$\",\"div\",null,{\"className\":\"wrap inner\",\"children\":[[\"$\",\"$L2\",null,{\"className\":\"brand\",\"href\":\"/\",\"children\":[[\"$\",\"span\",null,{\"className\":\"mark\",\"children\":\"$$?\"}],[\"$\",\"span\",null,{\"children\":\"Can money be made on this?\"}]]}],[\"$\",\"nav\",null,{\"children\":[\"$\",\"$L2\",null,{\"href\":\"/\",\"children\":\"Scripts\"}]}],[\"$\",\"div\",null,{\"className\":\"right\",\"children\":[[\"$\",\"$L3\",null,{}],[\"$\",\"a\",null,{\"className\":\"pill-btn ink\",\"href\":\"https://github.com/pine2profit\",\"target\":\"_blank\",\"rel\":\"noreferrer\",\"children\":\"GitHub ↗\"}]]}]]}]}],[\"$\",\"main\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"footer\",null,{\"className\":\"wrap\",\"children\":\"All amounts are on a notional $10,000 account without compounding. A verdict is the agent's answer under its protocol on the stated data, not a recommendation. Pine Script® and TradingView® are trademarks of TradingView, Inc.\"}]]}]]}]]}],{\"children\":[\"run\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$6\",null,{\"fallback\":[\"$\",\"div\",null,{\"className\":\"wrap\",\"children\":[\"$\",\"div\",null,{\"className\":\"run-head\",\"children\":[\"$\",\"h1\",null,{\"children\":\"loading…\"}]}]}],\"children\":[\"$\",\"$L7\",null,{}]}],null,[\"$\",\"$L8\",null,{\"children\":[\"$L9\",[\"$\",\"$La\",null,{\"promise\":\"$@b\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$Le\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$6\",null,{\"fallback\":null,\"children\":\"$Lf\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n9:null\n"])</script><script>self.__next_f.push([1,"11:I[622,[],\"IconMark\"]\nb:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Can money be made on this?\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"An agent loops over Pine Script indicators and strategies with one question: can money be made on them. Chart + the agent's answers linked to bars.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg\"}],[\"$\",\"$L11\",\"3\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"f:\"$b:metadata\"\n"])</script></body></html>
@@ -0,0 +1,23 @@
1
+ 1:"$Sreact.fragment"
2
+ 2:I[2619,["112","static/chunks/e1865c21-8d63eb0f5b25cb0c.js","570","static/chunks/570-33c81efca66c4bc9.js","619","static/chunks/619-f09bc47e24909021.js","338","static/chunks/338-31711140cb6d61e5.js","177","static/chunks/app/layout-0da8bd54f47c9e1b.js"],""]
3
+ 3:I[9196,["112","static/chunks/e1865c21-8d63eb0f5b25cb0c.js","570","static/chunks/570-33c81efca66c4bc9.js","619","static/chunks/619-f09bc47e24909021.js","338","static/chunks/338-31711140cb6d61e5.js","177","static/chunks/app/layout-0da8bd54f47c9e1b.js"],"ThemeToggle"]
4
+ 4:I[9766,[],""]
5
+ 5:I[8924,[],""]
6
+ 6:"$Sreact.suspense"
7
+ 7:I[3520,["112","static/chunks/e1865c21-8d63eb0f5b25cb0c.js","570","static/chunks/570-33c81efca66c4bc9.js","338","static/chunks/338-31711140cb6d61e5.js","64","static/chunks/app/run/page-42836fc705c46a59.js"],"RunView"]
8
+ 8:I[4431,[],"OutletBoundary"]
9
+ a:I[5278,[],"AsyncMetadataOutlet"]
10
+ c:I[4431,[],"ViewportBoundary"]
11
+ e:I[4431,[],"MetadataBoundary"]
12
+ 10:I[7150,[],""]
13
+ :HL["/_next/static/media/29b98dbfba401fa9-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
14
+ :HL["/_next/static/media/313510e2713fb214-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
15
+ :HL["/_next/static/media/558ca1a6aa3cb55e-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
16
+ :HL["/_next/static/media/982ceffe7b733b3b-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
17
+ :HL["/_next/static/css/91363587ff8467b5.css","style"]
18
+ 0:{"P":null,"b":"vHsenj52Jy0T31oXW8dJX","p":"","c":["","run",""],"i":false,"f":[[["",{"children":["run",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/91363587ff8467b5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"className":"__variable_7981a2 __variable_fd3dff __variable_a74ce6 __variable_c9ff80","children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var t=localStorage.getItem('pm-theme');if(t==='dark'||t==='light'){document.documentElement.dataset.theme=t;}}catch(e){}})();"}}]}],["$","body",null,{"children":[["$","header",null,{"className":"top","children":["$","div",null,{"className":"wrap inner","children":[["$","$L2",null,{"className":"brand","href":"/","children":[["$","span",null,{"className":"mark","children":"$$?"}],["$","span",null,{"children":"Can money be made on this?"}]]}],["$","nav",null,{"children":["$","$L2",null,{"href":"/","children":"Scripts"}]}],["$","div",null,{"className":"right","children":[["$","$L3",null,{}],["$","a",null,{"className":"pill-btn ink","href":"https://github.com/pine2profit","target":"_blank","rel":"noreferrer","children":"GitHub ↗"}]]}]]}]}],["$","main",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","footer",null,{"className":"wrap","children":"All amounts are on a notional $10,000 account without compounding. A verdict is the agent's answer under its protocol on the stated data, not a recommendation. Pine Script® and TradingView® are trademarks of TradingView, Inc."}]]}]]}]]}],{"children":["run",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$6",null,{"fallback":["$","div",null,{"className":"wrap","children":["$","div",null,{"className":"run-head","children":["$","h1",null,{"children":"loading…"}]}]}],"children":["$","$L7",null,{}]}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$6",null,{"fallback":null,"children":"$Lf"}]}]}]]}],false]],"m":"$undefined","G":["$10",[]],"s":false,"S":true}
19
+ d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
20
+ 9:null
21
+ 11:I[622,[],"IconMark"]
22
+ b:{"metadata":[["$","title","0",{"children":"Can money be made on this?"}],["$","meta","1",{"name":"description","content":"An agent loops over Pine Script indicators and strategies with one question: can money be made on them. Chart + the agent's answers linked to bars."}],["$","link","2",{"rel":"icon","href":"/icon.svg"}],["$","$L11","3",{}]],"error":null,"digest":"$undefined"}
23
+ f:"$b:metadata"
package/package.json CHANGED
@@ -1,6 +1,95 @@
1
1
  {
2
2
  "name": "pine2profit",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Can money be made on this? A static dashboard for an AI agent that loops over TradingView Pine Script indicators and strategies and reports whether trading their alerts makes money. Ships the site, a local preview server for the agent's data folder (plain GET, no API) and a strict validator of the data contract; the same files publish to GitHub Pages unchanged.",
5
+ "keywords": [
6
+ "pine-script",
7
+ "pinescript",
8
+ "tradingview",
9
+ "trading",
10
+ "backtest",
11
+ "backtesting",
12
+ "paper-trading",
13
+ "trading-strategy",
14
+ "indicator",
15
+ "strategy",
16
+ "alerts",
17
+ "cryptocurrency",
18
+ "crypto",
19
+ "ai-agent",
20
+ "agent-loop",
21
+ "llm",
22
+ "claude-code",
23
+ "dashboard",
24
+ "report",
25
+ "static-site",
26
+ "github-pages",
27
+ "nextjs",
28
+ "react",
29
+ "candlestick",
30
+ "chart",
31
+ "jsonl",
32
+ "cli",
33
+ "typescript"
34
+ ],
35
+ "author": {
36
+ "name": "Petr Tripolsky",
37
+ "email": "tripolskypetr@gmail.com",
38
+ "url": "https://github.com/tripolskypetr"
39
+ },
40
+ "license": "MIT",
41
+ "files": [
42
+ "build",
43
+ "types.d.ts",
44
+ "README.md"
45
+ ],
46
+ "scripts": {
47
+ "start": "npm run build:modules && npm run serve",
48
+ "serve": "node ./build/index.mjs .",
49
+ "build": "rollup -c",
50
+ "build:modules": "npm run build:modules:x",
51
+ "build:modules:x": "sh ./scripts/linux/build.sh && npm run build:copy && npm run build:postbuild",
52
+ "build:modules:win": ".\\scripts\\win\\build.bat && npm run build:copy && npm run build:postbuild",
53
+ "build:copy": "node ./scripts/copy.mjs",
54
+ "build:postbuild": "node ./scripts/postbuild.mjs",
55
+ "prepublishOnly": "npm run build:modules"
56
+ },
57
+ "main": "build/index.cjs",
58
+ "module": "build/index.mjs",
59
+ "source": "src/index.ts",
60
+ "types": "./types.d.ts",
61
+ "exports": {
62
+ "types": "./types.d.ts",
63
+ "require": "./build/index.cjs",
64
+ "import": "./build/index.mjs",
65
+ "default": "./build/index.cjs"
66
+ },
67
+ "devDependencies": {
68
+ "@rollup/plugin-replace": "6.0.3",
69
+ "@rollup/plugin-typescript": "11.1.6",
70
+ "@types/finalhandler": "1.2.3",
71
+ "@types/mime-types": "2.1.4",
72
+ "@types/node": "22.9.0",
73
+ "@types/serve-handler": "6.1.4",
74
+ "glob": "11.0.1",
75
+ "rimraf": "6.0.1",
76
+ "rollup": "3.29.5",
77
+ "rollup-plugin-dts": "6.1.1",
78
+ "rollup-plugin-peer-deps-external": "2.2.4",
79
+ "touch": "3.1.1",
80
+ "tslib": "2.7.0",
81
+ "typescript": "5.8.3"
82
+ },
83
+ "dependencies": {
84
+ "di-kit": "1.1.1",
85
+ "finalhandler": "1.3.2",
86
+ "functools-kit": "5.0.0",
87
+ "micro": "10.0.1",
88
+ "mime-types": "2.1.18",
89
+ "router": "1.3.8",
90
+ "serve-handler": "6.1.6"
91
+ },
92
+ "bin": {
93
+ "pine2profit": "./build/index.mjs"
94
+ }
95
+ }
package/types.d.ts ADDED
@@ -0,0 +1,124 @@
1
+ import http from 'http';
2
+ import { ReadStream } from 'fs';
3
+
4
+ type CallbackFn = (error?: Error) => void;
5
+ /**
6
+ * Starts the server. `cwd` is the project root whose data/ folder is served: the argument wins,
7
+ * then the CC_DATA_PATH environment variable, then process.cwd().
8
+ */
9
+ declare function serve(host?: string, port?: number, cwd?: string, callback?: CallbackFn): () => void;
10
+ declare function getRouter(): http.RequestListener;
11
+
12
+ interface ILogger {
13
+ log(topic: string, ...args: any[]): void;
14
+ debug(topic: string, ...args: any[]): void;
15
+ info(topic: string, ...args: any[]): void;
16
+ warn(topic: string, ...args: any[]): void;
17
+ }
18
+
19
+ declare const setLogger: (logger: ILogger) => void;
20
+
21
+ type IssueLevel = "error" | "warning";
22
+ interface DataIssue {
23
+ level: IssueLevel;
24
+ /** relative to the project root: data/index_1.jsonl */
25
+ file: string;
26
+ /** 1-based line of a .jsonl file */
27
+ line?: number;
28
+ /** location inside a JSON document: messages[2].md */
29
+ at?: string;
30
+ message: string;
31
+ }
32
+ /** The return value of the validate() generator, available once every issue has been yielded. */
33
+ interface DataSummary {
34
+ root: string;
35
+ scripts: number;
36
+ chunks: number;
37
+ errors: number;
38
+ warnings: number;
39
+ }
40
+ /**
41
+ * Validates <root>/data against the contract and yields every problem the moment it is found:
42
+ * the index files are read line by line, the files of each script one script at a time, so memory
43
+ * holds one document at once whatever the size of the folder. The generator's return value is
44
+ * the summary (counts) once everything has been yielded.
45
+ */
46
+ declare class DataValidationService {
47
+ private readonly loggerService;
48
+ validate: (this: DataValidationService, root: string) => AsyncGenerator<DataIssue, DataSummary>;
49
+ private readJson;
50
+ /** Yields issues, and the set of trade ids as the last item when the file is usable. */
51
+ private checkCandles;
52
+ private checkMessages;
53
+ }
54
+
55
+ /**
56
+ * Checks <root>/data against the contract. Yields each problem as soon as it is found; the
57
+ * generator's return value is the summary. Consume it with `for await`, or step with next()
58
+ * when the summary is needed:
59
+ * const it = validate(root); let r; while (!(r = await it.next()).done) report(r.value); const summary = r.value;
60
+ */
61
+ declare function validate(root: string): AsyncGenerator<DataIssue, DataSummary>;
62
+
63
+ declare const GLOBAL_CONFIG: {
64
+ CC_WWWROOT_PATH: string;
65
+ CC_WWWROOT_HOST: string;
66
+ CC_WWWROOT_PORT: number;
67
+ CC_DATA_PATH: string;
68
+ };
69
+ type Config = typeof GLOBAL_CONFIG;
70
+ declare const getConfig: () => {
71
+ CC_WWWROOT_PATH: string;
72
+ CC_WWWROOT_HOST: string;
73
+ CC_WWWROOT_PORT: number;
74
+ CC_DATA_PATH: string;
75
+ };
76
+ declare const setConfig: (config: Partial<Config>) => void;
77
+
78
+ /**
79
+ * Static root of the dashboard: <package>/build/modules/frontend/build.
80
+ * Resolved against the installed package (self-reference via package.json "exports"),
81
+ * so it works from any cwd. Override with CC_WWWROOT_PATH or setConfig().
82
+ */
83
+ declare function getPublicPath(): string;
84
+
85
+ declare class LoggerService implements ILogger {
86
+ private _commonLogger;
87
+ log: (topic: string, ...args: any[]) => void;
88
+ debug: (topic: string, ...args: any[]) => void;
89
+ info: (topic: string, ...args: any[]) => void;
90
+ warn: (topic: string, ...args: any[]) => void;
91
+ setLogger: (logger: ILogger) => void;
92
+ }
93
+
94
+ interface DataFile {
95
+ path: string;
96
+ /** size of the file that `stream` reads, taken from the same open handle */
97
+ size: number;
98
+ stream: ReadStream;
99
+ }
100
+ declare class DataViewService {
101
+ private readonly loggerService;
102
+ /** <root>/data; serve() resolves root once (its cwd argument, else CC_DATA_PATH, else process.cwd()). */
103
+ getRoot: () => string;
104
+ /**
105
+ * Absolute path of a file inside the data root, or null when the request points
106
+ * outside of it: checked on the lexical path and again on the real path, so a
107
+ * symlink inside data/ cannot lead out either.
108
+ */
109
+ resolve: (relPath: string) => Promise<string | null>;
110
+ /**
111
+ * Opens a file for streaming. The handle is opened first and the size read from it, so the
112
+ * Content-Length matches the bytes the stream will deliver even if the agent replaces the
113
+ * file (rename) meanwhile; the stream closes the handle when it ends or fails.
114
+ */
115
+ open: (relPath: string) => Promise<DataFile | null>;
116
+ }
117
+
118
+ declare const ioc: {
119
+ dataValidationService: DataValidationService;
120
+ dataViewService: DataViewService;
121
+ loggerService: LoggerService;
122
+ };
123
+
124
+ export { type Config, type DataIssue, type DataSummary, type ILogger, type IssueLevel, getConfig, getPublicPath, getRouter, ioc as lib, serve, setConfig, setLogger, validate };