[{"data":1,"prerenderedAt":434},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fv2\u002Fcognets\u002Ffolder\u002Fpackage":3},{"id":4,"title":5,"body":6,"description":426,"extension":427,"meta":428,"navigation":429,"path":430,"seo":431,"stem":432,"__hash__":433},"docs\u002Fdocs\u002Fv2\u002Fcognets\u002Ffolder\u002Fpackage.md","package.json",{"type":7,"value":8,"toc":419},"minimark",[9,13,17,124,129,132,178,191,222,225,263,267,270,290,302,306,312,315,320,347,354,365,369,372,408,415],[10,11,5],"h1",{"id":12},"packagejson",[14,15,16],"p",{},"A cognet is a real package. This file carries the identity the registry uses and the\ndependencies the compile step bundles.",[18,19,24],"pre",{"className":20,"code":21,"language":22,"meta":23,"style":23},"language-json shiki shiki-themes dark-plus","{\n  \"name\": \"@axon\u002Fzero\",\n  \"version\": \"0.1.0\",\n  \"description\": \"The default Axon cognet — the cognitive loop every agent runs unless it selects another.\",\n  \"type\": \"module\",\n  \"files\": [\"cognet.config.ts\", \"src\", \"plugins\"]\n}\n","json","",[25,26,27,36,53,66,79,92,118],"code",{"__ignoreMap":23},[28,29,32],"span",{"class":30,"line":31},"line",1,[28,33,35],{"class":34},"sTNBD","{\n",[28,37,39,43,46,50],{"class":30,"line":38},2,[28,40,42],{"class":41},"s3F5K","  \"name\"",[28,44,45],{"class":34},": ",[28,47,49],{"class":48},"sKc5r","\"@axon\u002Fzero\"",[28,51,52],{"class":34},",\n",[28,54,56,59,61,64],{"class":30,"line":55},3,[28,57,58],{"class":41},"  \"version\"",[28,60,45],{"class":34},[28,62,63],{"class":48},"\"0.1.0\"",[28,65,52],{"class":34},[28,67,69,72,74,77],{"class":30,"line":68},4,[28,70,71],{"class":41},"  \"description\"",[28,73,45],{"class":34},[28,75,76],{"class":48},"\"The default Axon cognet — the cognitive loop every agent runs unless it selects another.\"",[28,78,52],{"class":34},[28,80,82,85,87,90],{"class":30,"line":81},5,[28,83,84],{"class":41},"  \"type\"",[28,86,45],{"class":34},[28,88,89],{"class":48},"\"module\"",[28,91,52],{"class":34},[28,93,95,98,101,104,107,110,112,115],{"class":30,"line":94},6,[28,96,97],{"class":41},"  \"files\"",[28,99,100],{"class":34},": [",[28,102,103],{"class":48},"\"cognet.config.ts\"",[28,105,106],{"class":34},", ",[28,108,109],{"class":48},"\"src\"",[28,111,106],{"class":34},[28,113,114],{"class":48},"\"plugins\"",[28,116,117],{"class":34},"]\n",[28,119,121],{"class":30,"line":120},7,[28,122,123],{"class":34},"}\n",[125,126,128],"h2",{"id":127},"identity-lives-here-not-in-the-config","Identity lives here, not in the config",[14,130,131],{},"Two files carry a name and version, and they answer different questions.",[133,134,135,148],"table",{},[136,137,138],"thead",{},[139,140,141,145],"tr",{},[142,143,144],"th",{},"File",[142,146,147],{},"Owns",[149,150,151,165],"tbody",{},[139,152,153,158],{},[154,155,156],"td",{},[25,157,5],{},[154,159,160,164],{},[161,162,163],"strong",{},"registry"," identity — the scoped name you publish and install",[139,166,167,172],{},[154,168,169],{},[25,170,171],{},"cognet.config.ts",[154,173,174,177],{},[161,175,176],{},"runtime"," identity — the name the store namespaces by, the ABI",[14,179,180,183,184,186,187,190],{},[25,181,182],{},"axon publish"," reads ",[25,185,5],{},". The registry name must be scoped (",[25,188,189],{},"@you\u002Fmy-cognet",");\npublishing to the flat global namespace is refused.",[18,192,194],{"className":20,"code":193,"language":22,"meta":23,"style":23},"{ \"name\": \"@cody\u002Ffast-loop\", \"version\": \"0.2.0\" }\n",[25,195,196],{"__ignoreMap":23},[28,197,198,201,204,206,209,211,214,216,219],{"class":30,"line":31},[28,199,200],{"class":34},"{ ",[28,202,203],{"class":41},"\"name\"",[28,205,45],{"class":34},[28,207,208],{"class":48},"\"@cody\u002Ffast-loop\"",[28,210,106],{"class":34},[28,212,213],{"class":41},"\"version\"",[28,215,45],{"class":34},[28,217,218],{"class":48},"\"0.2.0\"",[28,220,221],{"class":34}," }\n",[14,223,224],{},"That's what an agent selects:",[18,226,230],{"className":227,"code":228,"language":229,"meta":23,"style":23},"language-ts shiki shiki-themes dark-plus","export default defineAgent({\n    cognet: \"@cody\u002Ffast-loop@^0.2.0\",\n})\n","ts",[25,231,232,248,258],{"__ignoreMap":23},[28,233,234,238,241,245],{"class":30,"line":31},[28,235,237],{"class":236},"sYbnZ","export",[28,239,240],{"class":236}," default",[28,242,244],{"class":243},"sCudf"," defineAgent",[28,246,247],{"class":34},"({\n",[28,249,250,253,256],{"class":30,"line":38},[28,251,252],{"class":41},"    cognet:",[28,254,255],{"class":48}," \"@cody\u002Ffast-loop@^0.2.0\"",[28,257,52],{"class":34},[28,259,260],{"class":30,"line":55},[28,261,262],{"class":34},"})\n",[125,264,266],{"id":265},"visibility","Visibility",[14,268,269],{},"npm convention, and it is the only visibility contract:",[18,271,273],{"className":20,"code":272,"language":22,"meta":23,"style":23},"{ \"private\": true }\n",[25,274,275],{"__ignoreMap":23},[28,276,277,279,282,284,288],{"class":30,"line":31},[28,278,200],{"class":34},[28,280,281],{"class":41},"\"private\"",[28,283,45],{"class":34},[28,285,287],{"class":286},"scz_3","true",[28,289,221],{"class":34},[14,291,292,294,295,298,299,301],{},[25,293,287],{}," keeps it private. Absent or ",[25,296,297],{},"false"," publishes publicly. ",[25,300,182],{}," syncs this\nto the registry on every publish, so the file is the source of truth rather than\nsomething you set once in a UI.",[125,303,305],{"id":304},"versions-are-immutable","Versions are immutable",[14,307,308,309,311],{},"A published version can never be replaced. Bump before republishing — or let the CLI do\nit: on a version collision ",[25,310,182],{}," patches the version, rebuilds so the tarball and\nregistry metadata agree, and retries.",[14,313,314],{},"Consumers pin with ordinary semver, resolved and locked by Bun like any other dependency.",[125,316,318],{"id":317},"files",[25,319,317],{},[18,321,323],{"className":20,"code":322,"language":22,"meta":23,"style":23},"{ \"files\": [\"cognet.config.ts\", \"src\", \"plugins\"] }\n",[25,324,325],{"__ignoreMap":23},[28,326,327,329,332,334,336,338,340,342,344],{"class":30,"line":31},[28,328,200],{"class":34},[28,330,331],{"class":41},"\"files\"",[28,333,100],{"class":34},[28,335,103],{"class":48},[28,337,106],{"class":34},[28,339,109],{"class":48},[28,341,106],{"class":34},[28,343,114],{"class":48},[28,345,346],{"class":34},"] }\n",[14,348,349,350,353],{},"What ships in the published tarball. A cognet is published as ",[161,351,352],{},"source"," — the consumer\ncompiles it against the kernel it will actually run against — so this should carry\neverything the compile step needs and nothing else.",[14,355,356,357,360,361,364],{},"Leave out tests, fixtures, and local scratch. Leave in anything ",[25,358,359],{},"main.ts"," or ",[25,362,363],{},"plugins\u002F","\nimports.",[125,366,368],{"id":367},"dependencies","Dependencies",[14,370,371],{},"Ordinary npm dependencies, bundled into the artifact by the compile step:",[18,373,375],{"className":20,"code":374,"language":22,"meta":23,"style":23},"{\n  \"dependencies\": {\n    \"gpt-tokenizer\": \"^2.5.0\"\n  }\n}\n",[25,376,377,381,389,399,404],{"__ignoreMap":23},[28,378,379],{"class":30,"line":31},[28,380,35],{"class":34},[28,382,383,386],{"class":30,"line":38},[28,384,385],{"class":41},"  \"dependencies\"",[28,387,388],{"class":34},": {\n",[28,390,391,394,396],{"class":30,"line":55},[28,392,393],{"class":41},"    \"gpt-tokenizer\"",[28,395,45],{"class":34},[28,397,398],{"class":48},"\"^2.5.0\"\n",[28,400,401],{"class":30,"line":68},[28,402,403],{"class":34},"  }\n",[28,405,406],{"class":30,"line":81},[28,407,123],{"class":34},[14,409,410,411,414],{},"Pure computation is the right shape here — tokenizers, math, parsers, data structures.\nPackages that want I\u002FO won't work: a cognet has no filesystem and no network, and a\ndependency that opens a socket at import time will fail. Everything outward goes through\n",[25,412,413],{},"kernel.run()",".",[416,417,418],"style",{},"html pre.shiki code .sTNBD, html code.shiki .sTNBD{--shiki-default:#D4D4D4}html pre.shiki code .s3F5K, html code.shiki .s3F5K{--shiki-default:#9CDCFE}html pre.shiki code .sKc5r, html code.shiki .sKc5r{--shiki-default:#CE9178}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sYbnZ, html code.shiki .sYbnZ{--shiki-default:#C586C0}html pre.shiki code .sCudf, html code.shiki .sCudf{--shiki-default:#DCDCAA}html pre.shiki code .scz_3, html code.shiki .scz_3{--shiki-default:#569CD6}",{"title":23,"searchDepth":38,"depth":38,"links":420},[421,422,423,424,425],{"id":127,"depth":38,"text":128},{"id":265,"depth":38,"text":266},{"id":304,"depth":38,"text":305},{"id":317,"depth":38,"text":317},{"id":367,"depth":38,"text":368},"Registry identity, version, visibility, and npm dependencies.","md",{},true,"\u002Fdocs\u002Fv2\u002Fcognets\u002Ffolder\u002Fpackage",{"title":5,"description":426},"docs\u002Fv2\u002Fcognets\u002Ffolder\u002Fpackage","U3y4EacoaAQ6eQo5KVPhg8yvH5JmbeCcvUlH3CiD-gQ",1785156432096]