Deploy feat/wallet-service
Browse filesFiles changed (40)
- .devcontainer/devcontainer.jsonAdded+4
- .dockerignoreAdded+5
- .gitignoreAdded+12
- DockerfileAdded+20
- LICENSEAdded+201
- ProjectOS.schAdded+114
- ProjectOS.xsdAdded+318
- README.md+81-4
- app.jsAdded+140
- bootstrap.xmlAdded+215
- clickable.cssAdded+1
- features.cssAdded+1
- index.htmlAdded+75
- interactions.cssAdded+1
- package.jsonAdded+32
- pnpm-lock.yamlAdded+1737
- pnpm-workspace.yamlAdded+4
- services/wallet/.env.exampleAdded+11
- services/wallet/README.mdAdded+5
- services/wallet/package-lock.jsonAdded
- services/wallet/package.jsonAdded+27
- services/wallet/src/app.tsAdded+39
- services/wallet/src/config.tsAdded+38
- services/wallet/src/index.tsAdded+11
- services/wallet/src/ledger.tsAdded+52
- services/wallet/src/memoryStore.tsAdded+22
- services/wallet/src/routing.tsAdded+52
- services/wallet/src/stripe.tsAdded+38
- services/wallet/src/supabaseStore.tsAdded+74
- services/wallet/src/types.tsAdded+17
- services/wallet/supabase/migrations/20261031000000_wallet_ledger.sqlAdded+65
- services/wallet/test/ledger.test.tsAdded+40
- services/wallet/test/routing.test.tsAdded+42
- services/wallet/tsconfig.jsonAdded+8
- snapshots.cssAdded+1
- styles.cssAdded+1
- tsconfig.base.jsonAdded+22
- tsconfig.jsonAdded+16
- turbo.jsonAdded+15
- validate.ymlAdded+34
1234{ "image": "mcr.microsoft.com/devcontainers/universal:2", "features": {}}12345**/node_modules**/dist.git.env.env.*123456789101112data/*.sqlitedata/*.sqlite-shmdata/*.sqlite-walnode_modules/.pnpm-store/.turbo/**/dist/*.tsbuildinfo.env.env.*!.env.example!configs/mcp.credentials.example.env1234567891011121314151617181920# Hugging Face Docker Space entrypoint (port 7860). Currently runs the wallet service# in TEST mode; secrets come from Space secrets/env vars only.FROM node:20-slim AS buildWORKDIR /app/services/walletCOPY services/wallet/package.json services/wallet/package-lock.json ./RUN npm ci --no-audit --no-fundCOPY services/wallet/tsconfig.json ./COPY services/wallet/src ./srcRUN npm run build && npm prune --omit=dev
FROM node:20-slimRUN useradd -m -u 1000 userUSER userWORKDIR /home/user/appCOPY --from=build --chown=user /app/services/wallet/node_modules ./node_modulesCOPY --from=build --chown=user /app/services/wallet/dist ./distCOPY --chown=user services/wallet/package.json ./ENV NODE_ENV=production PORT=7860EXPOSE 7860CMD ["node", "dist/index.js"]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114<?xml version="1.0" encoding="UTF-8"?><sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt"> <sch:title>ProjectOS v2 manifest rules</sch:title> <sch:pattern id="manifest-shape"> <sch:rule context="ProjectOS"> <sch:assert test="@version = '2.0'">The manifest version must be 2.0.</sch:assert> <sch:assert test="count(decisionFormula/step) = 15">The decision formula must define all 15 stages.</sch:assert> <sch:assert test="count(decisionFormula/step[@gate = 'true']) = 2">The decision formula must include logic and governance gates.</sch:assert> <sch:assert test="count(projectLifecycle/stage) = 12">The project lifecycle must define all 12 stages.</sch:assert> <sch:assert test="count(fabrics/fabric) = 11">The manifest must define the 11 ProjectOS fabrics.</sch:assert> <sch:assert test="count(councils/council) = 6">The manifest must define six council templates.</sch:assert> <sch:assert test="count(agents/agent) = 12">The manifest must define 12 specialist agents.</sch:assert> <sch:assert test="count(models/model) >= 1">At least one model routing entry is required.</sch:assert> <sch:assert test="count(workspaces/workspace) >= 1">At least one workspace route is required.</sch:assert> <sch:assert test="count(permissions/permission) >= 1">At least one permission rule is required.</sch:assert> <sch:assert test="normalize-space(runtime/@profile) != ''">The runtime profile must be named.</sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="catalog-quality"> <sch:rule context="fabrics/fabric"> <sch:assert test="normalize-space(@name) != ''">Every fabric needs a name.</sch:assert> <sch:assert test="normalize-space(@description) != ''">Every fabric needs a description for the dashboard.</sch:assert> <sch:assert test="count(capability) >= 1">Every fabric must declare at least one capability.</sch:assert> </sch:rule> <sch:rule context="councils/council"> <sch:assert test="normalize-space(@description) != ''">Every council needs a description.</sch:assert> <sch:assert test="count(member) >= 1">Every council must assign at least one member.</sch:assert> </sch:rule> <sch:rule context="agents/agent"> <sch:assert test="normalize-space(@description) != ''">Every agent needs a description.</sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="unique-registries"> <sch:rule context="ProjectOS"> <sch:assert test="count(fabrics/fabric) = count(fabrics/fabric[not(@name = preceding-sibling::fabric/@name)])">Fabric names must be unique.</sch:assert> <sch:assert test="count(councils/council) = count(councils/council[not(@name = preceding-sibling::council/@name)])">Council names must be unique.</sch:assert> <sch:assert test="count(agents/agent) = count(agents/agent[not(@name = preceding-sibling::agent/@name)])">Agent names must be unique.</sch:assert> <sch:assert test="count(models/model) = count(models/model[not(@role = preceding-sibling::model/@role)])">Model roles must be unique.</sch:assert> <sch:assert test="count(workspaces/workspace) = count(workspaces/workspace[not(@role = preceding-sibling::workspace/@role)])">Workspace roles must be unique.</sch:assert> <sch:assert test="count(permissions/permission) = count(permissions/permission[not(@id = preceding-sibling::permission/@id)])">Permission rule identifiers must be unique.</sch:assert> <sch:assert test="normalize-space(storage/@local) != '' and normalize-space(storage/@enterprise) != ''">Both local and enterprise storage targets must be named.</sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="registry-quality"> <sch:rule context="models/model"> <sch:assert test="normalize-space(@role) != '' and normalize-space(@provider) != ''">Each model route needs a role and provider.</sch:assert> </sch:rule> <sch:rule context="workspaces/workspace"> <sch:assert test="normalize-space(@role) != '' and normalize-space(@name) != ''">Each workspace route needs a role and workspace name.</sch:assert> </sch:rule> <sch:rule context="permissions/permission"> <sch:assert test="@effect = 'allow' or @effect = 'deny' or @effect = 'require-approval'">Permission effects must be allow, deny, or require-approval.</sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="logic-required"> <sch:rule context="CouncilTemplate"> <sch:assert test="Member[@Ref='LogicAgent']">LogicAgent required.</sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="storage-provider"> <sch:rule context="storage"> <sch:assert test="count(providers/provider[@enabled='true' or @enabled='1']) > 0">At least one storage provider must be enabled.</sch:assert> <sch:assert test="count(vectorStores/vectorStore) > 0">At least one vector store must be configured.</sch:assert> <sch:assert test="count(vectorStores/vectorStore[@provider='sqlite-vec']) = 0 or count(providers/provider[@name='SQLite' and (@enabled='true' or @enabled='1')]) > 0">sqlite-vec requires the SQLite provider to be enabled.</sch:assert> <sch:assert test="count(vectorStores/vectorStore[@provider='pgvector']) = 0 or count(providers/provider[@name='PostgreSQL' and (@enabled='true' or @enabled='1')]) > 0">pgvector requires the PostgreSQL provider to be enabled.</sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="canon-retention"> <sch:rule context="storage/retention"> <sch:assert test="@keepCanonForever='true' or @keepCanonForever='1'">Canon storage must be retained permanently.</sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="migration-backup"> <sch:rule context="storage/migration"> <sch:assert test="@autoMigrate='false' or @autoMigrate='0' or @backupBeforeMigration='true' or @backupBeforeMigration='1'">Automatic migrations require backups.</sch:assert> <sch:assert test="@autoMigrate='false' or @autoMigrate='0' or @validateSchema='true' or @validateSchema='1'">Automatic migrations require schema validation.</sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="symbol-registry"> <sch:rule context="namingConventions"> <sch:assert test="count(convention) > 0">At least one canonical symbol convention is required.</sch:assert> <sch:assert test="count(convention/alias[. = /ProjectOS/namingConventions/convention/@canonical]) = 0">A symbol alias cannot collide with a canonical symbol name.</sch:assert> </sch:rule> <sch:rule context="convention"> <sch:assert test="normalize-space(@canonical) != ''">Each symbol convention needs a canonical name.</sch:assert> <sch:assert test="count(alias) > 0">Each canonical symbol needs at least one alias.</sch:assert> </sch:rule> <sch:rule context="languageProfiles/languageProfile"> <sch:assert test="normalize-space(@name) != ''">Each language profile needs a name.</sch:assert> <sch:assert test="@interfacePrefix or @interfacePrefix = ''">Each language profile must define its interface prefix, which may be empty.</sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="documentation-outputs"> <sch:rule context="documentation"> <sch:assert test="count(output[@enabled='true' or @enabled='1']) > 0">At least one documentation output must be enabled.</sch:assert> <sch:assert test="count(output[@name='Architecture' and (@enabled='true' or @enabled='1')]) = 1">Architecture documentation must be enabled.</sch:assert> <sch:assert test="count(output[@name='Bootstrap' and (@enabled='true' or @enabled='1')]) = 1">Bootstrap documentation must be enabled.</sch:assert> <sch:assert test="count(output[@name='Schema' and (@enabled='true' or @enabled='1')]) = 1">Schema documentation must be enabled.</sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="mcp-registry"> <sch:rule context="mcpServers"> <sch:assert test="count(server) > 0">At least one MCP server entry is required.</sch:assert> <sch:assert test="count(server) = count(server[normalize-space(@name) != ''])">Every MCP server needs a name.</sch:assert> <sch:assert test="count(server) = count(server[normalize-space(@adapter) != ''])">Every MCP server needs a registered adapter name.</sch:assert> <sch:assert test="count(server[@authMode='environment' or @authMode='keyring']) = count(server[@authMode='environment' or @authMode='keyring'][normalize-space(@credentialRef) != ''])">Environment and keyring authentication require a credential reference.</sch:assert> <sch:assert test="count(profiles/profile) > 0">At least one MCP profile is required.</sch:assert> </sch:rule> <sch:rule context="mcpServers/profiles"> <sch:assert test="count(profile[@name='database-write' and @enabled='true']) = 0">The database-write profile must stay disabled until a write role and approval policy are configured.</sch:assert> <sch:assert test="count(../server[@name='github-write' and @enabled='true']) = 0">GitHub write access must stay disabled until a write-scoped credential is configured.</sch:assert> </sch:rule> </sch:pattern></sch:schema>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="ProjectOS"> <xs:complexType> <xs:sequence> <xs:element name="bootstrap" type="bootstrapType" /> <xs:element name="runtime" type="runtimeType" /> <xs:element name="decisionFormula" type="stepsType" /> <xs:element name="projectLifecycle" type="stagesType" /> <xs:element name="fabrics" type="fabricsType" /> <xs:element name="councils" type="councilsType" /> <xs:element name="agents" type="agentsType" /> <xs:element name="models" type="modelsType" /> <xs:element name="storage" type="storageType" /> <xs:element name="governanceControls" type="controlsType" /> <xs:element name="knowledgeAreas" type="knowledgeAreasType" /> <xs:element name="permissions" type="permissionsType" /> <xs:element name="workspaces" type="workspacesType" /> <xs:element name="mcpServers" type="mcpServersType" /> <xs:element name="namingConventions" type="namingConventionsType" /> <xs:element name="documentation" type="documentationType" /> </xs:sequence> <xs:attribute name="version" type="xs:string" use="required" /> <xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="mode" type="xs:string" use="required" /> </xs:complexType> <xs:key name="storageProviderNames"> <xs:selector xpath="storage/providers/provider" /> <xs:field xpath="@name" /> </xs:key> <xs:key name="storageVectorProviders"> <xs:selector xpath="storage/vectorStores/vectorStore" /> <xs:field xpath="@provider" /> </xs:key> <xs:key name="canonicalSymbols"> <xs:selector xpath="namingConventions/convention" /> <xs:field xpath="@canonical" /> </xs:key> <xs:key name="symbolAliases"> <xs:selector xpath="namingConventions/convention/alias" /> <xs:field xpath="." /> </xs:key> <xs:key name="languageProfileNames"> <xs:selector xpath="namingConventions/languageProfiles/languageProfile" /> <xs:field xpath="@name" /> </xs:key> <xs:key name="documentationOutputs"> <xs:selector xpath="documentation/output" /> <xs:field xpath="@name" /> </xs:key> <xs:key name="mcpServerNames"> <xs:selector xpath="mcpServers/server" /> <xs:field xpath="@name" /> </xs:key> <xs:key name="mcpProfileNames"> <xs:selector xpath="mcpServers/profiles/profile" /> <xs:field xpath="@name" /> </xs:key> <xs:keyref name="mcpProfileServerRefs" refer="mcpServerNames"> <xs:selector xpath="mcpServers/profiles/profile/serverRef" /> <xs:field xpath="@name" /> </xs:keyref> </xs:element> <xs:complexType name="bootstrapType"> <xs:attribute name="schema" type="xs:string" use="required" /> <xs:attribute name="schematron" type="xs:string" use="required" /> <xs:attribute name="output" type="xs:string" use="required" /> </xs:complexType> <xs:complexType name="runtimeType"> <xs:attribute name="startupOrder" type="xs:string" use="required" /> <xs:attribute name="profile" type="xs:string" use="required" /> <xs:attribute name="snapshots" type="xs:boolean" use="required" /> <xs:attribute name="automaticRouting" type="xs:boolean" use="required" /> <xs:attribute name="consolidation" type="xs:boolean" use="required" /> </xs:complexType> <xs:complexType name="stepsType"> <xs:sequence><xs:element name="step" type="stepType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> </xs:complexType> <xs:complexType name="stepType"> <xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="description" type="xs:string" /> <xs:attribute name="gate" type="xs:boolean" /> </xs:complexType> <xs:complexType name="stagesType"> <xs:sequence><xs:element name="stage" type="stageType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> </xs:complexType> <xs:complexType name="stageType"> <xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="description" type="xs:string" /> </xs:complexType> <xs:complexType name="fabricsType"> <xs:sequence><xs:element name="fabric" type="fabricType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> </xs:complexType> <xs:complexType name="fabricType"> <xs:sequence><xs:element name="capability" type="namedItemType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence> <xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="icon" type="xs:string" /> <xs:attribute name="description" type="xs:string" /> </xs:complexType> <xs:complexType name="councilsType"> <xs:sequence><xs:element name="council" type="councilType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> </xs:complexType> <xs:complexType name="councilType"> <xs:sequence><xs:element name="member" type="xs:string" minOccurs="0" maxOccurs="unbounded" /></xs:sequence> <xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="icon" type="xs:string" /> <xs:attribute name="description" type="xs:string" /> </xs:complexType> <xs:complexType name="agentsType"> <xs:sequence><xs:element name="agent" type="describedItemType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> </xs:complexType> <xs:complexType name="describedItemType"> <xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="description" type="xs:string" /> <xs:attribute name="icon" type="xs:string" /> </xs:complexType> <xs:simpleType name="storageProviderName"> <xs:restriction base="xs:string"> <xs:enumeration value="SQLite" /> <xs:enumeration value="PostgreSQL" /> <xs:enumeration value="Archive" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="vectorProviderName"> <xs:restriction base="xs:string"> <xs:enumeration value="sqlite-vec" /> <xs:enumeration value="pgvector" /> </xs:restriction> </xs:simpleType> <xs:complexType name="storageProviderType"> <xs:attribute name="name" type="storageProviderName" use="required" /> <xs:attribute name="enabled" type="xs:boolean" use="required" /> </xs:complexType> <xs:complexType name="storageProvidersType"> <xs:sequence> <xs:element name="provider" type="storageProviderType" minOccurs="1" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="vectorStoreType"> <xs:attribute name="provider" type="vectorProviderName" use="required" /> <xs:attribute name="dimensions" type="xs:positiveInteger" use="required" /> </xs:complexType> <xs:complexType name="vectorStoresType"> <xs:sequence> <xs:element name="vectorStore" type="vectorStoreType" minOccurs="1" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="storageRetentionType"> <xs:attribute name="snapshotDays" type="xs:positiveInteger" use="required" /> <xs:attribute name="archiveYears" type="xs:positiveInteger" use="required" /> <xs:attribute name="keepCanonForever" type="xs:boolean" use="required" /> </xs:complexType> <xs:complexType name="storageMigrationType"> <xs:attribute name="autoMigrate" type="xs:boolean" use="required" /> <xs:attribute name="backupBeforeMigration" type="xs:boolean" use="required" /> <xs:attribute name="validateSchema" type="xs:boolean" use="required" /> </xs:complexType> <xs:complexType name="storageType"> <xs:sequence> <xs:element name="providers" type="storageProvidersType" /> <xs:element name="vectorStores" type="vectorStoresType" /> <xs:element name="retention" type="storageRetentionType" /> <xs:element name="migration" type="storageMigrationType" /> </xs:sequence> <xs:attribute name="local" type="xs:string" use="required" /> <xs:attribute name="enterprise" type="xs:string" use="required" /> </xs:complexType> <xs:complexType name="controlsType"> <xs:sequence><xs:element name="control" type="describedItemType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> </xs:complexType> <xs:complexType name="knowledgeAreasType"> <xs:sequence><xs:element name="area" type="describedItemType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> </xs:complexType> <xs:complexType name="modelsType"> <xs:sequence><xs:element name="model" type="modelType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> </xs:complexType> <xs:complexType name="modelType"> <xs:attribute name="role" type="xs:string" use="required" /> <xs:attribute name="provider" type="xs:string" use="required" /> </xs:complexType> <xs:complexType name="permissionsType"> <xs:sequence><xs:element name="permission" type="permissionType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> </xs:complexType> <xs:complexType name="permissionType"> <xs:attribute name="id" type="xs:string" use="required" /> <xs:attribute name="resource" type="xs:string" use="required" /> <xs:attribute name="action" type="xs:string" use="required" /> <xs:attribute name="effect" type="xs:string" use="required" /> <xs:attribute name="requiresApproval" type="xs:boolean" use="required" /> </xs:complexType> <xs:complexType name="workspacesType"> <xs:sequence><xs:element name="workspace" type="workspaceType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> </xs:complexType> <xs:complexType name="workspaceType"> <xs:attribute name="role" type="xs:string" use="required" /> <xs:attribute name="name" type="xs:string" use="required" /> </xs:complexType> <xs:simpleType name="mcpTrustLevelType"> <xs:restriction base="xs:token"> <xs:enumeration value="Low" /> <xs:enumeration value="Medium" /> <xs:enumeration value="High" /> <xs:enumeration value="Verified" /> </xs:restriction> </xs:simpleType> <xs:complexType name="mcpServersType"> <xs:sequence> <xs:element name="server" type="mcpServerType" minOccurs="1" maxOccurs="unbounded" /> <xs:element name="profiles" type="mcpProfilesType" minOccurs="1" maxOccurs="1" /> </xs:sequence> </xs:complexType> <xs:complexType name="mcpServerType"> <xs:attribute name="name" type="symbolNameType" use="required" /> <xs:attribute name="adapter" type="symbolNameType" use="required" /> <xs:attribute name="trust" type="mcpTrustLevelType" use="required" /> <xs:attribute name="enabled" type="xs:boolean" use="optional" default="true" /> <xs:attribute name="credentialRef" type="environmentVariableNameType" use="optional" /> <xs:attribute name="authMode" type="mcpAuthModeType" use="required" /> <xs:attribute name="accessMode" type="mcpAccessModeType" use="optional" default="read-only" /> </xs:complexType> <xs:complexType name="mcpProfilesType"> <xs:sequence><xs:element name="profile" type="mcpProfileType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> </xs:complexType> <xs:complexType name="mcpProfileType"> <xs:sequence><xs:element name="serverRef" type="mcpServerRefType" minOccurs="1" maxOccurs="unbounded" /></xs:sequence> <xs:attribute name="name" type="symbolNameType" use="required" /> <xs:attribute name="description" type="xs:string" use="required" /> <xs:attribute name="enabled" type="xs:boolean" use="optional" default="true" /> </xs:complexType> <xs:complexType name="mcpServerRefType"> <xs:attribute name="name" type="symbolNameType" use="required" /> </xs:complexType> <xs:simpleType name="mcpAccessModeType"> <xs:restriction base="xs:token"> <xs:enumeration value="read-only" /> <xs:enumeration value="read-write" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="mcpAuthModeType"> <xs:restriction base="xs:token"> <xs:enumeration value="none" /> <xs:enumeration value="oauth" /> <xs:enumeration value="environment" /> <xs:enumeration value="keyring" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="environmentVariableNameType"> <xs:restriction base="xs:token"> <xs:pattern value="[A-Z_][A-Z0-9_]*" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="symbolNameType"> <xs:restriction base="xs:token"> <xs:minLength value="1" /> </xs:restriction> </xs:simpleType> <xs:complexType name="namingConventionsType"> <xs:sequence> <xs:element name="convention" type="symbolConventionType" minOccurs="1" maxOccurs="unbounded" /> <xs:element name="languageProfiles" type="languageProfilesType" /> </xs:sequence> </xs:complexType> <xs:complexType name="symbolConventionType"> <xs:sequence> <xs:element name="alias" type="symbolNameType" minOccurs="1" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="canonical" type="symbolNameType" use="required" /> </xs:complexType> <xs:complexType name="languageProfilesType"> <xs:sequence> <xs:element name="languageProfile" type="languageProfileType" minOccurs="1" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="languageProfileType"> <xs:attribute name="name" type="symbolNameType" use="required" /> <xs:attribute name="interfacePrefix" type="xs:string" use="required" /> </xs:complexType> <xs:simpleType name="documentationOutputNameType"> <xs:restriction base="xs:token"> <xs:enumeration value="Architecture" /> <xs:enumeration value="Bootstrap" /> <xs:enumeration value="Schema" /> <xs:enumeration value="Agents" /> <xs:enumeration value="Councils" /> <xs:enumeration value="Fabrics" /> <xs:enumeration value="Storage" /> <xs:enumeration value="Knowledge" /> <xs:enumeration value="Canon" /> <xs:enumeration value="Frontier" /> <xs:enumeration value="Delta" /> <xs:enumeration value="Dependency" /> <xs:enumeration value="Governance" /> <xs:enumeration value="Identity" /> <xs:enumeration value="Trust" /> <xs:enumeration value="Runtime" /> <xs:enumeration value="Database" /> <xs:enumeration value="API" /> <xs:enumeration value="MCP" /> <xs:enumeration value="Workspaces" /> <xs:enumeration value="Models" /> <xs:enumeration value="Providers" /> <xs:enumeration value="Snapshots" /> <xs:enumeration value="Archive" /> </xs:restriction> </xs:simpleType> <xs:complexType name="documentationType"> <xs:sequence> <xs:element name="output" type="documentationOutputType" minOccurs="1" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="documentationOutputType"> <xs:attribute name="name" type="documentationOutputNameType" use="required" /> <xs:attribute name="enabled" type="xs:boolean" use="required" /> </xs:complexType> <xs:complexType name="namedItemType"> <xs:attribute name="name" type="xs:string" use="required" /> </xs:complexType></xs:schema>12345678910---title: ProjectOSemoji: 🌍colorFrom: greencolorTo: yellowsdk: dockerpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687---title: ProjectOSemoji: 🧭colorFrom: indigocolorTo: graysdk: dockerapp_port: 7860pinned: false---# ProjectOS Operations ConsoleA pnpm and Turborepo monorepo scaffold with a React dashboard, local SQLite API, runtime entry point, and initial fabric packages.## Run the local appInstall Node.js 24.22.1 or later in the 24.x line (or 26.12.1+) and pnpm 10, then run `pnpm install` and `pnpm dev` from this folder. The React dashboard runs at `http://127.0.0.1:5173`; the API runs at `http://127.0.0.1:4173`. The local API stores projects, governance decisions, plans, and snapshots in `data/projectos.sqlite`. Run `pnpm build` to compile the referenced TypeScript projects and build the dashboard.The original no-build dashboard remains available by opening the root `index.html` directly or by browsing to the API port. In browser-only mode, changes use local storage instead of SQLite.## What is included- Overview dashboard with system health and recent project examples- Project directory with search and stage filters- Persistent project creation, editing, and lifecycle stage updates- Project snapshots saved as recoverable project-state records- Decision formula with logic and governance gates- Project lifecycle map- Fabrics, agents, councils, governance, and knowledge pages- Clickable detail cards for fabrics, agents, councils, governance controls, and knowledge areas- Local question-to-plan previews with council and agent suggestions and saved history- Governance proposals that can be approved or declined- Local HTTP API with a health endpoint and validated state routes- SQLite persistence with no external database server- Workspace modules for intent classification, council selection, and execution governance gates- Fabric packages for knowledge lifecycle, delta analysis, dependency tracking, identity, trust, logic, governance, execution, and storage- `bootstrap.xml` as the sole human-edited project manifest, including runtime settings, routing, and permission rules- `packages/schema-engine`, which validates bootstrap.xml against the XSD and Schematron rules and generates runtime artifacts- Canonical repository symbols, aliases, and language naming profiles generated from `bootstrap.xml`; Logic Fabric resolves aliases before symbol lookup- `configs/*.generated.json` and `configs/generated/*.generated.json` as generated runtime, model, workspace, agent, permission, storage, symbol, and dashboard configuration- `packages/common`, which loads and validates the generated runtime and environment values- `packages/storage-fabric`, with idempotent local SQLite tables, Drizzle schemas for SQLite and PostgreSQL, and a pgvector schema- SQLite repositories for projects, canon, frontier promotion, and checksummed project snapshots with restore support- Schema-engine generated documentation, registries, storage manifests, snapshot manifests, and release bundles under `generated/` and `release/`- Governed Frontier → Logic → Governance → Canon → Snapshot promotion, with deterministic consolidation candidates- Persistent delta runs, target gaps, dependency blockers, and a bootstrap-generated MCP trust registry- Storage retention and migration settings in `bootstrap.xml`, compiled to `configs/generated/storage.generated.json`- Bootstrap defaults that supply `bootstrap.xml` only when it is missing- Windows bootstrap and manifest validation scripts- Schematron rules for manifest completeness, uniqueness, and lifecycle countsThe dashboard reads generated JSON and never parses the bootstrap XML. Intent classification is rule based. Model providers, datasets, identity systems, and execution runtimes are not connected. Planning previews are drafts and are never executed. Dashboard/API snapshots currently preserve the project record; the storage-fabric snapshot service captures project, canon, and frontier rows. Neither captures project files or external service state. The initial project records and governance proposals are illustrative.Run `pnpm generate` to validate the manifest with both schema layers and regenerate the JSON artifacts. `pnpm dev`, `pnpm build`, and Windows bootstrap run this pipeline before starting or compiling the apps. The PowerShell validator remains available for XSD-only checks.Run `pnpm generate`, `pnpm build`, and `pnpm test` to validate bootstrap output, compile the workspace, and exercise schema, repositories, snapshots, migrations, aliases, documentation, knowledge promotion, delta analysis, and dependency findings. `pnpm release` runs those checks before creating the release bundle. `pnpm validate:generated` verifies snapshot hashes, and `pnpm validate:release` checks the release layout. CI runs the same sequence on Windows and creates the release bundle only after the checks pass.The API applies SQLite storage schema v2 when it opens the local database. It includes project events, snapshots and snapshot items, versioned canon entries, frontier candidates and observations, archive records, embeddings, dependency findings, delta runs and gaps, governance reviews, and the existing `app_state` compatibility table. PostgreSQL DDL is in `packages/storage-fabric/pgvector/schema.sql`; it enables pgvector and stores 1536-dimensional embeddings with an HNSW cosine index. Update that dimension in the SQL and Drizzle definition if the selected embedding model uses a different size. SQLite keeps embeddings as JSON arrays and does not create a vector index.Naming conventions are authored in `bootstrap.xml` and emitted as `configs/generated/symbol-aliases.generated.json` and `configs/generated/language-profiles.generated.json`. `SymbolResolver` canonicalizes aliases such as `IProjectRepository` to `ProjectRepository`, then formats known symbols with a target language profile.The migration sequence from `app_state` to normalized repositories is documented in [docs/storage-migration-plan.md](docs/storage-migration-plan.md).The canonical symbol registry and language-profile behavior are described in [docs/symbol-resolution.md](docs/symbol-resolution.md).`bootstrap.xml` owns the documentation and MCP server lists. `pnpm generate` creates runtime settings, registries, storage manifests, snapshot manifests, and enabled documentation under `generated/`. `pnpm release` creates the reproducible bundle under `release/` with bootstrap, XSD, Schematron, generated configs/docs, migration manifest, and snapshot manifest. Generated files are not hand-maintained.## MCP adapter libraryThe MCP Fabric loads the generated server and named-profile registries. The curated adapter catalog includes the official MCP filesystem, GitHub, PostgreSQL, fetch, memory, and Git servers. Profiles select one or more servers: `workspace`, `research`, `implementation`, and `database-readonly` are enabled; GitHub/PostgreSQL write access and the `database-write` profile are disabled by default. Check a profile with `pnpm mcp:check workspace`; keep it connected with `pnpm mcp:connect workspace`; list available adapters and profiles with `pnpm mcp:profiles`.Credentials are referenced by environment-variable name or OS keyring profile in `bootstrap.xml`; they are not copied into generated registries, docs, snapshots, or release bundles. GitHub defaults to browser OAuth with no user-managed token value; PostgreSQL passwords belong in the server's OS keyring profile (Windows Credential Manager, macOS Keychain, or Linux Secret Service). See `configs/mcp.credentials.example.env` and [docs/mcp-adapters.md](docs/mcp-adapters.md) for setup. Profile checks start each server, negotiate MCP over stdio, and list its tools. The database profile also connects the selected saved PostgreSQL profile. Missing prerequisites are reported by name without printing credential values.The filesystem adapter confines access to the ProjectOS workspace by default. Windows has a documented junction race limitation in the upstream filesystem server, so keep the permitted root narrow and avoid granting access to paths writable by untrusted local processes. MCP write-capable tools require explicit approval through the library API; read-only profiles reject tools the server does not mark read-only.## Wallet service (`services/wallet`) — TEST mode onlyPersonal-use wallet backend: double-entry ledger (integer minor units, every transaction sums to zero, idempotency keys), Stripe **test-mode** funding via Checkout or PaymentIntents with signature-verified webhooks (`/webhooks/stripe`), and payment routing that pays a QR-scanned invoice from wallet balance (`/invoices/pay`). Persistence is Supabase (`services/wallet/supabase/migrations`), keyed by `user_id` for later multi-user.Safety: the service refuses to start with `sk_live_`/non-test keys or any Apple Pay / private-relay env vars, rejects live-mode webhook events, and has no external payout path — invoice payments move value only inside the ledger (`merchant_payable`). Paying real merchants will require a licensed card-issuer integration.```bashcd services/wallet && cp .env.example .env # fill TEST values; WALLET_STORE=memory for no Supabasenpm install && npm test && npm run dev```The root `Dockerfile` builds this service for a Hugging Face Docker Space on port 7860; set the env vars from `.env.example` as Space secrets.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140let decisionSteps = [ ['Question','Capture the request'],['Operations Agent','Coordinate the response'],['Determine intent','Classify the desired outcome'],['Choose council template','Select the specialist group'],['Assign models','Route the right model capability'],['Assign datasets','Connect trusted context'],['Assign tools','Select approved tools'],['Assign workspace','Choose the project environment'],['Validate through logic','Check feasibility and consistency'],['Validate through governance','Check policy, trust, and approval',true],['Execute','Run the approved plan'],['Store knowledge','Record useful outcomes'],['Snapshot','Preserve the execution state'],['Consolidate','Resolve and organize knowledge'],['Update canon','Publish durable project truth']];let lifecycle = [ ['01','Research','Discover the problem and evidence'],['02','Active','Coordinate work and decisions'],['03','Production','Deliver stable project outcomes'],['04','Evolving','Improve capabilities continuously'],['05','Frontier comparison','Compare current and emerging state'],['06','Delta analysis','Identify gaps and opportunities'],['07','Missing dependencies','Surface unavailable requirements'],['08','Evolution suggestions','Propose the next improvements'],['09','Obsolete','Mark work ready for retirement'],['10','Snapshot','Preserve a durable project state'],['11','Archive','Store the completed project'],['12','Template','Make proven patterns reusable']];const seedProjects = [ {name:'Atlas Research',initial:'A',tone:'violet',stage:'Active',kind:'Research',updated:'12 min ago',health:'Healthy'}, {name:'Northstar Platform',initial:'N',tone:'blue',stage:'Production',kind:'Platform',updated:'1 hr ago',health:'Healthy'}, {name:'Signal Intelligence',initial:'S',tone:'orange',stage:'Evolving',kind:'Research',updated:'Yesterday',health:'Attention'}, {name:'Common Ground',initial:'C',tone:'green',stage:'Active',kind:'Knowledge',updated:'Oct 28',health:'Healthy'}];function readStore(key,fallback){try{const value=JSON.parse(localStorage.getItem(key));return value??fallback}catch{return fallback}}const apiKeys={'projectos.projects':'projects','projectos.policies':'policies','projectos.plans':'plans','projectos.snapshots':'snapshots'};function writeStore(key,value){try{localStorage.setItem(key,JSON.stringify(value))}catch{};const collection=apiKeys[key];if(collection&&location.protocol==='http:'&&['localhost','127.0.0.1'].includes(location.hostname)){fetch(`/api/state/${collection}`,{method:'POST',headers:{'content-type':'application/json'},body:JSON.stringify(value)}).catch(()=>{})}return true}let projects=readStore('projectos.projects',seedProjects);let fabrics = [ ['Identity','Ownership, roles, and enterprise identity providers.','◉'],['Trust','Source, dataset, and model verification with trust scores.','⬡'],['Research','Research connectors for web, papers, docs, and knowledge bases.','⌕'],['Knowledge','Memory, research, lessons, canon, frontier, and archives.','▧'],['Logic','Planning, validation, consensus, contradictions, and intent.','⌘'],['Delta','State comparison, gap analysis, evolution, and obsolescence.','Δ'],['Dependency','Find missing tools, models, permissions, libraries, and data.','⛓'],['Governance','Policies, approvals, trust checks, overrides, and audit.','⬡'],['Execution','Route approved work to PowerShell, Python, Node, Docker, Git, or MCP.','▶'],['Storage','Local SQLite and enterprise PostgreSQL with snapshots.','▤'],['Canvas','Whiteboards, diagrams, and knowledge views.','▱']];let agents = ['Research Agent','ML Agent','Logic Agent','Knowledge Agent','Dependency Agent','Delta Agent','Evolution Agent','Infrastructure Agent','Tool Execution Agent','Governance Agent','Canonicalization Agent','Implementation Agent'];let councils = [['Research Council','Evidence gathering, source review, and discovery.'],['Architecture Council','System boundaries, interfaces, and technical direction.'],['Implementation Council','Code changes, integration, and delivery planning.'],['Infrastructure Council','Environments, runtime, storage, and deployment.'],['Evolution Council','Frontier comparison and continuous improvement.'],['Governance Council','Policy, trust, risk, and approval decisions.']];let governance = [['Policy Engine','Evaluate plans against the active policy registry.'],['Approval Engine','Route gated actions to the right reviewer.'],['Trust Validation','Check identity, sources, datasets, and models.'],['Override Engine','Record scoped exceptions with justification.'],['Audit Log','Keep an attributable record of decisions and actions.'],['Policy Registry','Maintain versioned rules for the workspace.']];let knowledge = [['Project memory','Working context and decisions'],['Research','Sources, findings, and evidence'],['Lessons','Reusable outcomes and reflections'],['Canon','The current trusted project record'],['Frontier','Emerging ideas and state of the art'],['Snapshots','Point in time project state'],['Archive','Preserved retired work']];const seedPolicies=[{id:'workspace-access',title:'Workspace permission defaults',description:'Proposal to restrict project write access to assigned contributors.',status:'Pending'},{id:'dataset-trust',title:'Dataset trust profile updates',description:'Proposal to require a verified source for new external datasets.',status:'Pending'}];
const $ = (q, root=document) => root.querySelector(q);const $$ = (q, root=document) => [...root.querySelectorAll(q)];const esc = s => String(s??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));const stageClass = s => s==='Production'?'status-prod':s==='Evolving'?'status-evolve':'status-active';const initials = p => `<span class="project-symbol sym-${p.tone}">${esc(p.initial||p.name?.[0]||'?')}</span>`;const projectStatus = p => `<span class="project-status ${stageClass(p.stage)}"><i></i> ${p.stage}</span>`;
const catalogDetails={ fabrics:{ Identity:['Resolves who is acting, what they own, and what roles apply.','Ownership graph','Role registry','LDAP / Entra / OAuth / SAML connectors','Identity is a placeholder until an identity provider is configured.'], Trust:['Evaluates whether sources, datasets, and models meet workspace trust requirements.','Source verification','Dataset and model verification','Trust scores','No external attestation provider is connected yet.'], Research:['Connects research sources and organizes evidence for project decisions.','Web and paper discovery','Documentation connectors','Research source attribution','Configure endpoints and credentials to enable connectors.'], Knowledge:['Organizes project memory into research, lessons, canon, frontier, and archive.','Project memory','Canonical knowledge','Snapshots and archive','Prototype content is stored locally in this browser.'], Logic:['Builds plans and checks feasibility, consistency, and competing claims.','Intent analysis','Planning and validation','Consensus and contradictions','Decision planning currently runs as a local illustrative preview.'], Delta:['Compares current and target states to identify gaps and useful evolution.','Current and frontier state','Gap analysis','Evolution and obsolescence','State comparison needs configured repositories.'], Dependency:['Finds unmet runtime, access, model, tool, library, and dataset requirements.','Missing permissions','Missing tools and models','Missing libraries, datasets, infrastructure','Dependency checks need environment and provider probes.'], Governance:['Applies policy gates, approval decisions, overrides, and audit recording.','Policy registry','Approval queue','Audit history','The local review queue is persistent; real action enforcement needs a runtime service.'], Execution:['Dispatches approved work to the appropriate execution adapter.','PowerShell / Python / Node','Docker and Git','MCP tools','This dashboard does not execute commands.'], Storage:['Defines local and enterprise storage options for project artifacts and vectors.','SQLite and sqlite-vec','PostgreSQL and pgvector','Snapshots, consolidation, archives','This prototype currently uses browser localStorage.'], Canvas:['Provides visual workspaces for diagrams, whiteboards, and knowledge views.','Whiteboard canvas','Diagram engine','Knowledge views','Canvas workspaces are planned surfaces, not connected editors yet.'] }, agents:{'Research Agent':'Finds evidence and records sources relevant to a question.','ML Agent':'Reviews model choices, evaluation needs, and model-specific constraints.','Logic Agent':'Checks plans for feasibility, consistency, and contradictions.','Knowledge Agent':'Retrieves and organizes project memory and research.','Dependency Agent':'Identifies missing tools, permissions, libraries, data, or infrastructure.','Delta Agent':'Compares current project state with a target or frontier.','Evolution Agent':'Turns comparison results into sequenced improvement suggestions.','Infrastructure Agent':'Plans runtime, storage, and environment requirements.','Tool Execution Agent':'Coordinates approved tool calls through configured adapters.','Governance Agent':'Applies policy checks and identifies human approval needs.','Canonicalization Agent':'Turns verified outcomes into structured, reusable canon.','Implementation Agent':'Plans approved implementation work.'}, councils:{'Research Council':['Combines research and knowledge specialists to answer evidence questions.','Research Agent','Knowledge Agent','Trust review'],'Architecture Council':['Reviews boundaries, dependencies, and system-level trade-offs.','Logic Agent','Dependency Agent','Infrastructure Agent'],'Implementation Council':['Coordinates implementation from an approved plan through a reviewable change.','Implementation Agent','Logic Agent','Tool Execution Agent'],'Infrastructure Council':['Checks environments, storage, runtime, and deployment dependencies.','Infrastructure Agent','Dependency Agent','Governance Agent'],'Evolution Council':['Compares project state with the frontier and ranks improvement opportunities.','Delta Agent','Evolution Agent','Knowledge Agent'],'Governance Council':['Reviews policies, trust, approvals, and recorded exceptions.','Governance Agent','Trust validation','Approval engine']}, governance:Object.fromEntries(governance.map(x=>[x[0],[x[1],'Policy scope and version','Decision rationale','Review and audit record']])), knowledge:Object.fromEntries(knowledge.map(x=>[x[0],[x[1],'Project and source metadata','Validated updates','History and provenance']]))};let decisionGuidance=[ 'A person or connected system submits a question or requested outcome.','The Operations Agent coordinates intent analysis, routing, validation, and execution planning.','Classify whether the request is research, implementation, infrastructure, evolution, or governance work.','Choose a council template that brings the relevant specialists into the decision.','Select model providers and capabilities that match the task and trust requirements.','Attach project knowledge and datasets with source and permission context.','Select tools required by the plan, with each tool subject to policy and permission checks.','Bind the plan to the project workspace and runtime boundaries.','Check feasibility, consistency, assumptions, and contradictions before action.','Check trust, policies, permissions, and approval requirements before action.','Run only actions that are available, authorized, and within the configured runtime.','Record useful evidence, decisions, and outcomes with provenance.','Capture the project state needed to reproduce or review the work.','Merge compatible learning into organized project knowledge.','Update the canonical project record with reviewed, durable findings.'];
$('#flow-mini').innerHTML = decisionSteps.slice(0,6).map((s,i)=>`<div class="mini-step"><span class="step-n">${String(i+1).padStart(2,'0')}</span>${s[0]}</div>`).join('');$('#formula-list').innerHTML = decisionSteps.map((s,i)=>`<button class="formula-step ${s[2]?'gate':''}" data-step="${i}"><span class="formula-num">${String(i+1).padStart(2,'0')}</span><div><strong>${s[0]}</strong><small>${s[1]}</small></div></button>`).join('');$('#lifecycle-board').innerHTML = lifecycle.map((s,i)=>`<button class="life-card ${[2,3,7,9,11].includes(i)?'highlight':''}" data-stage="${i}"><span class="life-num">STAGE ${s[0]}</span><strong>${s[1]}</strong><small>${s[2]}</small></button>`).join('');function infoCards(selector,items,icon,category){$(selector).innerHTML=items.map((item,i)=>{const name=Array.isArray(item)?item[0]:item;const desc=Array.isArray(item)?item[1]:'Specialist available in the local agent pool.';return `<button class="info-card" data-category="${category}" data-index="${i}"><span class="card-symbol">${Array.isArray(item)?item[2]||icon:name[0]}</span><strong>${esc(name)}</strong><p>${esc(desc)}</p><span class="card-open-label">View details ↗</span></button>`}).join('')}infoCards('#fabric-grid',fabrics,'◈','fabrics'); infoCards('#agent-grid',agents,'♧','agents'); infoCards('#council-grid',councils,'◎','councils'); infoCards('#governance-grid',governance,'⬡','governance'); infoCards('#knowledge-grid',knowledge,'▧','knowledge');function renderKnowledgePipeline(){const selected=['Project memory','Research','Lessons','Canon','Snapshots'];const icons=['◉','⌕','✦','▧','◷'];$('#knowledge-pipeline').innerHTML=selected.map((name,i)=>{const index=knowledge.findIndex(x=>x[0].toLowerCase()===name.toLowerCase());if(index<0)return '';return `${i?'<span class="pipeline-arrow">→</span>':''}<button class="pipeline-step" data-category="knowledge" data-index="${index}"><span>${icons[i]}</span>${esc(name.replace(/^Project /,''))}</button>`}).join('')}renderKnowledgePipeline();function renderProjectList(){ $('#project-list').innerHTML=projects.slice(0,4).map(p=>`<button class="project-row" data-project="${esc(p.name)}">${initials(p)}<span class="project-info"><strong>${esc(p.name)}</strong><small>${esc(p.stage)} · Updated ${esc(p.updated)}</small></span>${projectStatus(p)}<span class="row-arrow">↗</span></button>`).join('')||'<p class="empty-note">No projects yet. Create one to get started.</p>' }function renderDirectory(query=''){const selected=$('.active-filter')?.textContent.trim().split(' ')[0]||'All';$('#project-directory').innerHTML=projects.filter(p=>p.name.toLowerCase().includes(query.toLowerCase())&&(selected==='All'||p.stage===selected||p.kind===selected)).map(p=>`<button class="directory-row" data-project="${esc(p.name)}"><div class="directory-project">${initials(p)}<span><strong>${esc(p.name)}</strong><small>${esc(p.kind)} workspace</small></span></div>${projectStatus(p)}<span>${esc(p.updated)}</span><span style="color:${p.health==='Healthy'?'#4f9b73':'#c88c40'}">● ${esc(p.health)}</span><span>↗</span></button>`).join('')||'<div class="directory-row">No projects match your search.</div>'}function persistProjects(){writeStore('projectos.projects',projects);renderDirectory($('#project-search')?.value||'');renderProjectList();updateOverviewStats()}function renderPlanHistory(){const plans=readStore('projectos.plans',[]);$('#plan-history').innerHTML=plans.length?`<h3 class="history-title">Recent planning runs</h3>${plans.slice(0,5).map((p,i)=>`<div class="history-entry"><span>⌘</span><div><strong>${esc(p.question)}</strong><small>${esc(p.council)} · ${new Date(p.created).toLocaleString()}</small></div><button data-plan="${i}">View plan</button></div>`).join('')}`:''}function renderPolicyQueue(){const items=readStore('projectos.policies',seedPolicies);const pending=items.filter(x=>x.status==='Pending').length;$('#policy-count').textContent=pending?`${pending} sample proposal${pending===1?'':'s'} need review`:'No sample proposals pending';$('#policy-queue').innerHTML=`<div class="panel-head"><div><h3>Review queue</h3><p>Decisions are saved in this browser and local database when running the API.</p></div><span class="detail-chip">${pending} pending</span></div>${items.length?items.map(item=>`<article class="policy-item"><div><strong>${esc(item.title)}</strong><p>${esc(item.description)}</p></div><span class="policy-state ${item.status==='Pending'?'pending':'resolved'}">${esc(item.status)}</span>${item.status==='Pending'?`<span class="governance-action"><button class="approve" data-policy="${esc(item.id)}" data-decision="Approved">Approve</button><button data-policy="${esc(item.id)}" data-decision="Declined">Decline</button></span>`:''}</article>`).join(''):'<p class="empty-note">No policy proposals. The review queue is clear.</p>'}`}function applyGeneratedManifest(data){const capabilityMap=items=>Object.fromEntries((items||[]).map(item=>[item.name,[item.description||'Defined in generated ProjectOS configuration.',...(item.capabilities||[])]]));decisionGuidance=(data.steps||[]).map(item=>item.description||'Defined in generated ProjectOS configuration.');decisionSteps=(data.steps||[]).map((item,i)=>[item.name||`Step ${i+1}`,item.description||'Configured in generated settings',Boolean(item.gate)]);lifecycle=(data.stages||[]).map((item,i)=>[String(i+1).padStart(2,'0'),item.name||`Stage ${i+1}`,item.description||'Defined in generated ProjectOS configuration.']);fabrics=(data.fabrics||[]).map(item=>[item.name,item.description||'',item.icon||'◈']);catalogDetails.fabrics=capabilityMap(data.fabrics);agents=(data.agents||[]).map(item=>item.name);catalogDetails.agents=capabilityMap(data.agents);councils=(data.councils||[]).map(item=>[item.name,item.description||'',item.icon||'◎']);catalogDetails.councils=capabilityMap(data.councils);governance=(data.governance||[]).map(item=>[item.name,item.description||'',item.icon||'⬡']);catalogDetails.governance=capabilityMap(data.governance);knowledge=(data.knowledge||[]).map(item=>[item.name,item.description||'',item.icon||'▧']);catalogDetails.knowledge=capabilityMap(data.knowledge);$('#flow-mini').innerHTML=decisionSteps.slice(0,6).map((s,i)=>`<div class="mini-step"><span class="step-n">${String(i+1).padStart(2,'0')}</span>${esc(s[0])}</div>`).join('');$('#formula-list').innerHTML=decisionSteps.map((s,i)=>`<button class="formula-step ${s[2]?'gate':''}" data-step="${i}"><span class="formula-num">${String(i+1).padStart(2,'0')}</span><div><strong>${esc(s[0])}</strong><small>${esc(s[1])}</small></div></button>`).join('');$('#lifecycle-board').innerHTML=lifecycle.map((s,i)=>`<button class="life-card ${[2,3,7,9,11].includes(i)?'highlight':''}" data-stage="${i}"><span class="life-num">STAGE ${esc(s[0])}</span><strong>${esc(s[1])}</strong><small>${esc(s[2])}</small></button>`).join('');infoCards('#fabric-grid',fabrics,'◈','fabrics');infoCards('#agent-grid',agents,'♧','agents');infoCards('#council-grid',councils,'◎','councils');infoCards('#governance-grid',governance,'⬡','governance');infoCards('#knowledge-grid',knowledge,'▧','knowledge');renderKnowledgePipeline();}async function loadGeneratedConfig(){if(location.protocol!=='http:'||!['localhost','127.0.0.1'].includes(location.hostname))return;const response=await fetch('./configs/projectos.generated.json',{cache:'no-store'});if(!response.ok)throw new Error('Generated ProjectOS configuration not available');applyGeneratedManifest(await response.json())}function updateOverviewStats(){const count=projects.filter(p=>!['Archive','Template','Obsolete'].includes(p.stage)).length;const projectStat=$('.stat-grid .stat-card .stat-number');if(projectStat)projectStat.textContent=String(count).padStart(2,'0');const pending=readStore('projectos.policies',seedPolicies).filter(x=>x.status==='Pending').length;const governanceStat=$$('.stat-grid .stat-card .stat-number')[2];if(governanceStat)governanceStat.textContent=String(pending).padStart(2,'0');const snapshotCount=$('#snapshot-count');if(snapshotCount)snapshotCount.textContent=String(readStore('projectos.snapshots',[]).length).padStart(2,'0')}function renderSnapshots(){const snapshots=readStore('projectos.snapshots',[]);$('#snapshot-list').innerHTML=`<div class="panel-head"><div><h3>Project snapshots</h3><p>Saved state records stored locally.</p></div><span class="detail-chip">${snapshots.length} total</span></div>${snapshots.length?snapshots.slice(0,8).map(s=>`<button class="snapshot-row" data-snapshot-view="${esc(s.id)}"><span class="snapshot-icon">◷</span><span><strong>${esc(s.project)}</strong><small>${new Date(s.created).toLocaleString()} · ${esc(s.state.stage||'Project state')}</small></span><span class="row-arrow">↗</span></button>`).join(''):'<p class="empty-note">No snapshots yet. Open a project and choose “Create snapshot” to preserve its current state.</p>'}`}renderDirectory();renderProjectList();renderPolicyQueue();renderPlanHistory();renderSnapshots();updateOverviewStats();
const views=['overview','projects','decision','lifecycle','fabrics','agents','councils','governance','knowledge'];function go(view){if(!views.includes(view))view='overview';$$('.view').forEach(x=>x.classList.remove('active-view'));$('#view-'+view).classList.add('active-view');$$('.nav-item').forEach(x=>x.classList.toggle('active',x.dataset.view===view));const label=$(`[data-view="${view}"]`);$('#crumb').textContent=label?label.textContent.trim().replace(/\s+\d+$/,''):view[0].toUpperCase()+view.slice(1);history.replaceState(null,'','#'+view);window.scrollTo(0,0)}$$('[data-view]').forEach(a=>a.addEventListener('click',e=>{e.preventDefault();go(a.dataset.view)}));$$('[data-open]').forEach(b=>b.addEventListener('click',()=>go(b.dataset.open)));window.addEventListener('hashchange',()=>go(location.hash.slice(1)));$('#project-search').addEventListener('input',e=>renderDirectory(e.target.value));$$('.filter').forEach(btn=>btn.addEventListener('click',()=>{$$('.filter').forEach(x=>x.classList.remove('active-filter'));btn.classList.add('active-filter');renderDirectory($('#project-search').value)}));let toastTimer;function toast(message){const el=$('#toast');el.textContent=message;el.classList.add('show');clearTimeout(toastTimer);toastTimer=setTimeout(()=>el.classList.remove('show'),2500)}function openModal(content){$('#modal-content').innerHTML=content;$('#modal').classList.add('open');$('#modal').setAttribute('aria-hidden','false');$('#modal-close').focus()}function closeModal(){$('#modal').classList.remove('open');$('#modal').setAttribute('aria-hidden','true')}$('#modal-close').addEventListener('click',closeModal);$('#modal').addEventListener('click',e=>{if(e.target===$('#modal'))closeModal()});document.addEventListener('keydown',e=>{if(e.key==='Escape')closeModal()});function showDetails(category,index){const collection={fabrics,agents,councils,governance,knowledge}[category];if(!collection)return;const item=collection[index];const name=Array.isArray(item)?item[0]:item;const base=Array.isArray(item)?item[1]:'';const data=catalogDetails[category]?.[name];let description=base;let caps=[];let note='';if(category==='fabrics'&&data){description=data[0];caps=data.slice(1,4);note=data[4]}else if(category==='agents'){description=Array.isArray(data)?data[0]:data||base;caps=Array.isArray(data)?data.slice(1):['Receives a scoped task and project context','Returns findings, recommendations, or artifacts','Runs through council and governance routing'];note='Agent implementation and model assignment are not connected in this prototype.'}else if(data){description=Array.isArray(data)?data[0]:data;caps=Array.isArray(data)?data.slice(1):[];note=category==='governance'?'Governance actions in this prototype are stored locally in your browser.':category==='councils'?'Council members are defined in the manifest; live agent execution is not connected yet.':'Project knowledge is currently a local prototype.'}const labels={fabrics:'FABRIC SUBSYSTEM',agents:'SPECIALIST AGENT',councils:'COUNCIL TEMPLATE',governance:'GOVERNANCE CONTROL',knowledge:'KNOWLEDGE AREA'};const related={fabrics:'fabrics',agents:'agents',councils:'councils',governance:'governance',knowledge:'knowledge'}[category];openModal(`<div class="modal-kicker">${labels[category]}</div><h2 id="modal-title">${esc(name)}</h2><p class="modal-description">${esc(description)}</p>${caps.length?`<div class="modal-section"><h4>RESPONSIBILITIES AND CAPABILITIES</h4><div class="capability-list">${caps.map(x=>`<div class="capability">${esc(x)}</div>`).join('')}</div></div>`:''}${note?`<div class="modal-section"><h4>IMPLEMENTATION STATUS</h4><p>${esc(note)}</p></div>`:''}<div class="modal-actions"><button class="secondary-button" data-modal-nav="${related}">Open ${related}</button><button class="primary-button" data-close-modal>Done</button></div>`)}function showStep(index){const step=decisionSteps[index];openModal(`<div class="modal-kicker">DECISION FORMULA · STAGE ${String(index+1).padStart(2,'0')}</div><h2 id="modal-title">${esc(step[0])}</h2><p class="modal-description">${esc(decisionGuidance[index])}</p><div class="modal-section"><h4>WHAT THIS STAGE NEEDS</h4><div class="capability-list"><div class="capability">${esc(step[1])}</div><div class="capability">Project context and provenance</div>${step[2]?'<div class="capability">Explicit policy and trust result</div><div class="capability">Human approval when policy requires it</div>':''}</div></div><div class="modal-section"><h4>PROTOTYPE BOUNDARY</h4><p>This stage is modeled in the interface. Connecting live providers requires a configured service, credentials, and runtime policy.</p></div><div class="modal-actions"><button class="secondary-button" data-modal-nav="decision">Decision formula</button><button class="primary-button" data-close-modal>Done</button></div>`)}function stageSelect(value,name='stage'){return `<select name="${name}">${lifecycle.map(x=>`<option ${x[1]===value?'selected':''}>${esc(x[1])}</option>`).join('')}</select>`}function openProject(name){const p=projects.find(x=>x.name===name);if(!p)return;const ownSnapshots=readStore('projectos.snapshots',[]).filter(s=>s.project===p.name);openModal(`<div class="modal-kicker">PROJECT WORKSPACE</div><h2 id="modal-title">${esc(p.name)}</h2><p class="modal-description">${esc(p.description||`${p.kind} workspace. Project records are stored locally.`)}</p><form class="modal-form" id="edit-project-form"><label>Lifecycle stage ${stageSelect(p.stage)}</label><label>Project type<input name="kind" value="${esc(p.kind)}" maxlength="50"></label><div class="modal-status">Current state: ${esc(p.stage)} · ${esc(p.health)}. Moving to Archive or Template records that stage; it does not delete this project.</div>${ownSnapshots.length?`<div class="modal-section"><h4>RECENT SNAPSHOTS</h4>${ownSnapshots.slice(0,3).map(s=>`<p>${new Date(s.created).toLocaleString()} · ${esc(s.state.stage||'Project state')}</p>`).join('')}</div>`:''}<div class="modal-actions"><button type="button" class="secondary-button" data-snapshot="${esc(p.name)}">Create snapshot</button><button type="button" class="secondary-button" data-close-modal>Cancel</button><button type="submit" class="primary-button">Save project</button></div></form>`);$('#edit-project-form').addEventListener('submit',e=>{e.preventDefault();const fd=new FormData(e.currentTarget);p.stage=fd.get('stage');p.kind=fd.get('kind').trim()||'Project';p.updated='Just now';persistProjects();closeModal();toast(`${p.name} updated.`)})}function createSnapshot(name){const project=projects.find(p=>p.name===name);if(!project)return;const snapshots=readStore('projectos.snapshots',[]);const state=JSON.parse(JSON.stringify(project));snapshots.unshift({id:globalThis.crypto?.randomUUID?.()||`${Date.now()}-${Math.random().toString(36).slice(2)}`,project:project.name,created:new Date().toISOString(),state});writeStore('projectos.snapshots',snapshots);renderSnapshots();updateOverviewStats();closeModal();toast(`Snapshot saved for ${project.name}.`)}function openSnapshot(id){const snapshot=readStore('projectos.snapshots',[]).find(s=>s.id===id);if(!snapshot)return;openModal(`<div class="modal-kicker">PROJECT SNAPSHOT · ${new Date(snapshot.created).toLocaleString()}</div><h2 id="modal-title">${esc(snapshot.project)}</h2><p class="modal-description">Saved state: ${esc(snapshot.state.stage)} · ${esc(snapshot.state.kind||'Project')}</p>${snapshot.state.description?`<div class="modal-section"><h4>PROJECT DESCRIPTION</h4><p>${esc(snapshot.state.description)}</p></div>`:''}<div class="modal-status">This snapshot preserves the project record at the time it was created. It does not yet capture files or external service state.</div><div class="modal-actions"><button class="primary-button" data-close-modal>Done</button></div>`)}function openNewProject(){openModal(`<div class="modal-kicker">PROJECTS · CREATE</div><h2 id="modal-title">Start a project</h2><p class="modal-description">Create a local project workspace. You can update its stage and type as it evolves.</p><form class="modal-form" id="new-project-form"><label>Project name<input name="name" required maxlength="70" placeholder="For example, Atlas Research"></label><label>Project type<input name="kind" maxlength="50" placeholder="Research, platform, knowledge…"></label><label>Initial description<textarea name="description" maxlength="300" placeholder="What outcome should this project support?"></textarea></label><div class="modal-actions"><button type="button" class="secondary-button" data-close-modal>Cancel</button><button type="submit" class="primary-button">Create project</button></div></form>`);$('#new-project-form').addEventListener('submit',e=>{e.preventDefault();const fd=new FormData(e.currentTarget);const name=String(fd.get('name')).trim();if(projects.some(p=>p.name.toLowerCase()===name.toLowerCase())){toast('A project with that name already exists.');return}const tones=['violet','blue','orange','green'];projects.unshift({name,initial:name[0].toUpperCase(),tone:tones[projects.length%tones.length],stage:'Research',kind:String(fd.get('kind')).trim()||'General',description:String(fd.get('description')).trim(),updated:'Just now',health:'Healthy'});persistProjects();closeModal();go('projects');toast(`Project “${name}” created.`)})}function openStageChange(initial='Active'){if(!projects.length){toast('Create a project before updating its lifecycle stage.');return}openModal(`<div class="modal-kicker">LIFECYCLE · UPDATE</div><h2 id="modal-title">Move a project to a new stage</h2><p class="modal-description">Lifecycle changes are saved to the local project record.</p><form class="modal-form" id="stage-form"><label>Project<select name="project">${projects.map(p=>`<option value="${esc(p.name)}">${esc(p.name)} · ${esc(p.stage)}</option>`).join('')}</select></label><label>New stage ${stageSelect(initial)}</label><div class="modal-actions"><button type="button" class="secondary-button" data-close-modal>Cancel</button><button type="submit" class="primary-button">Update stage</button></div></form>`);$('#stage-form').addEventListener('submit',e=>{e.preventDefault();const fd=new FormData(e.currentTarget);const p=projects.find(x=>x.name===fd.get('project'));if(p){p.stage=fd.get('stage');p.updated='Just now';persistProjects();closeModal();toast(`${p.name} moved to ${p.stage}.`)}})}function openStageDetail(index){const [number,name,short]=lifecycle[index];openModal(`<div class="modal-kicker">PROJECT LIFECYCLE · STAGE ${number}</div><h2 id="modal-title">${esc(name)}</h2><p class="modal-description">${esc(short)}. This stage represents a distinct project state in the ProjectOS lifecycle.</p><div class="modal-section"><h4>HOW IT FITS</h4><p>${index<3?'A project establishes context and becomes active work before it moves into production.':index<8?'The evolution stages compare the current state with a target, expose gaps, and turn them into improvement suggestions.': 'Retirement preserves project state in snapshots, then archives the work so its proven patterns can become a template.'}</p></div><div class="modal-actions"><button class="secondary-button" data-close-modal>Close</button><button class="primary-button" data-set-stage="${esc(name)}">Set project stage</button></div>`)}function localPlan(question,project){const q=question.toLowerCase();const council=/policy|permission|trust|privacy|risk|approval|audit/.test(q)?'Governance Council':/deploy|database|docker|runtime|infrastructure|install|server/.test(q)?'Infrastructure Council':/design|architecture|system|structure|interface/.test(q)?'Architecture Council':/build|implement|code|create|app|feature|fix/.test(q)?'Implementation Council':/improv|evol|compare|roadmap|gap|frontier/.test(q)?'Evolution Council':'Research Council';return{question,project:project||'Workspace level',intent:'local-preview',council,agents:council==='Research Council'?['Research Agent','Knowledge Agent']:council==='Governance Council'?['Governance Agent','Logic Agent']:council==='Infrastructure Council'?['Infrastructure Agent','Dependency Agent']:council==='Evolution Council'?['Delta Agent','Evolution Agent']:council==='Architecture Council'?['Logic Agent','Infrastructure Agent']:['Implementation Agent','Logic Agent'],model:'Not configured',datasets:project?`${project} project context (local prototype)`:'No dataset connected',tools:'No tool adapters configured',logic:'Draft created; feasibility has not been verified against a runtime.',governance:'Blocked: execution requires configured providers, policies, and approval.',created:new Date().toISOString()}}function savePlan(plan){const plans=readStore('projectos.plans',[]).filter(x=>x.id!==plan.id);plans.unshift(plan);writeStore('projectos.plans',plans.slice(0,100));renderPlanHistory();showPlan(plan)}function openPlanner(){openModal(`<div class="modal-kicker">OPERATIONS AGENT · LOCAL PLANNING PREVIEW</div><h2 id="modal-title">Plan a question</h2><p class="modal-description">Describe the outcome you want. ProjectOS drafts an intent, council, and specialist plan for review; it will not execute external actions.</p><form class="modal-form" id="plan-form"><label>Your question<textarea name="question" required maxlength="700" placeholder="What are you trying to learn or build?"></textarea></label><label>Project context<select name="project"><option value="">Workspace level</option>${projects.map(p=>`<option value="${esc(p.name)}">${esc(p.name)}</option>`).join('')}</select></label><div class="modal-actions"><button type="button" class="secondary-button" data-close-modal>Cancel</button><button type="submit" class="primary-button">Generate plan</button></div></form>`);$('#plan-form').addEventListener('submit',async e=>{e.preventDefault();const form=e.currentTarget;const fd=new FormData(form);const question=String(fd.get('question')).trim();const selected=projects.find(p=>p.name===fd.get('project'));const project=selected?.name||'';const submit=form.querySelector('[type="submit"]');submit.disabled=true;submit.textContent='Planning…';let plan;if(location.protocol==='http:'&&['localhost','127.0.0.1'].includes(location.hostname)){try{const response=await fetch('/api/plans/draft',{method:'POST',headers:{'content-type':'application/json'},body:JSON.stringify({question,project})});if(!response.ok)throw new Error('Planner unavailable');plan=await response.json()}catch{toast('Local planning service unavailable; using the browser planner.')}}plan??=localPlan(question,project);savePlan(plan)})}function showPlan(plan){const missing=plan.governanceGate?.missingIntegrations||[];const names={modelProvider:'Model provider',datasetProvider:'Dataset provider',toolAdapter:'Tool adapter',identityProvider:'Identity provider'};openModal(`<div class="modal-kicker">PLANNING PREVIEW · NOT EXECUTED</div><h2 id="modal-title">${esc(plan.question)}</h2><p class="modal-description">${esc(plan.project)} · ${plan.intent?`${esc(plan.intent)} intent · `:''}Suggested ${esc(plan.council)}</p><div class="modal-section"><h4>ASSIGNED SPECIALISTS</h4><div class="capability-list">${plan.agents.map(a=>`<div class="capability">${esc(a)}</div>`).join('')}</div></div><div class="modal-section"><h4>ROUTING</h4><p><strong>Model:</strong> ${esc(plan.model)}</p><p><strong>Dataset:</strong> ${esc(plan.datasets)}</p><p><strong>Tools:</strong> ${esc(plan.tools)}</p></div><div class="modal-section"><h4>VALIDATION GATES</h4><p><strong>Logic:</strong> ${esc(plan.logic)}</p><p><strong>Governance:</strong> ${esc(plan.governance)}</p>${missing.length?`<div class="capability-list">${missing.map(x=>`<div class="capability">Missing: ${esc(names[x]||x)}</div>`).join('')}</div><p>Human approval: ${plan.governanceGate.approvalRequired?'required':'not required'}</p>`:''}</div><div class="modal-status">This is a local planning draft. It is saved for review and cannot execute until its integrations and governance requirements are satisfied.</div><div class="modal-actions"><button class="secondary-button" data-modal-nav="decision">View decision flow</button><button class="primary-button" data-close-modal>Done</button></div>`)}$('#new-project').addEventListener('click',openNewProject);$('#new-project-2').addEventListener('click',openNewProject);$('#start-planning').addEventListener('click',openPlanner);$('#advance-project').addEventListener('click',()=>openStageChange());$('#review-policies').addEventListener('click',()=>$('#policy-queue').scrollIntoView({behavior:'smooth',block:'center'}));document.addEventListener('click',e=>{ const card=e.target.closest('[data-category]');if(card){showDetails(card.dataset.category,Number(card.dataset.index));return} const step=e.target.closest('[data-step]');if(step){showStep(Number(step.dataset.step));return} const stage=e.target.closest('[data-stage]');if(stage){openStageDetail(Number(stage.dataset.stage));return} const snapshotButton=e.target.closest('[data-snapshot]');if(snapshotButton){createSnapshot(snapshotButton.dataset.snapshot);return} const snapshotRow=e.target.closest('[data-snapshot-view]');if(snapshotRow){openSnapshot(snapshotRow.dataset.snapshotView);return} const project=e.target.closest('[data-project]');if(project){openProject(project.dataset.project);return} const close=e.target.closest('[data-close-modal]');if(close){closeModal();return} const nav=e.target.closest('[data-modal-nav]');if(nav){const target=nav.dataset.modalNav;closeModal();go(target);return} const setStage=e.target.closest('[data-set-stage]');if(setStage){openStageChange(setStage.dataset.setStage);return} const policy=e.target.closest('[data-policy]');if(policy){const items=readStore('projectos.policies',seedPolicies);const item=items.find(x=>x.id===policy.dataset.policy);if(item){item.status=policy.dataset.decision;item.reviewed=new Date().toISOString();writeStore('projectos.policies',items);renderPolicyQueue();updateOverviewStats();toast(`${item.title}: ${item.status.toLowerCase()}.`)}return} const historyEntry=e.target.closest('[data-plan]');if(historyEntry){const plan=readStore('projectos.plans',[])[Number(historyEntry.dataset.plan)];if(plan)showPlan(plan)}});if(location.hash)go(location.hash.slice(1));async function connectLocalApi(){ if(location.protocol!=='http:'||!['localhost','127.0.0.1'].includes(location.hostname))return; try{ const response=await fetch('/api/state');if(!response.ok)throw new Error('Local state API unavailable'); const state=await response.json(); for(const [name,key,fallback] of [['projects','projectos.projects',projects],['policies','projectos.policies',seedPolicies],['plans','projectos.plans',[]],['snapshots','projectos.snapshots',[]]]){ if(Array.isArray(state[name])){try{localStorage.setItem(key,JSON.stringify(state[name]))}catch{};if(name==='projects')projects=state[name]} else writeStore(key,readStore(key,fallback)); } renderDirectory($('#project-search').value);renderProjectList();renderPolicyQueue();renderPlanHistory();renderSnapshots();updateOverviewStats(); }catch{toast('Local database is unavailable; using browser storage for this session.')}}connectLocalApi();loadGeneratedConfig().catch(()=>toast('Generated ProjectOS configuration could not be loaded.'));123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215<?xml version="1.0" encoding="UTF-8"?><ProjectOS version="2.0" name="ProjectOS" mode="local"> <bootstrap schema="schemas/ProjectOS.xsd" schematron="schemas/ProjectOS.sch" output="configs" /> <runtime profile="Privileged" snapshots="true" automaticRouting="true" consolidation="true" startupOrder="schema,bootstrap,fabrics,identity,trust,storage,knowledge,logic,governance,operations,agents,registries,council,mcp,desktop" /> <decisionFormula> <step name="Question" description="A person or connected system submits a question or requested outcome." /> <step name="Operations Agent" description="Coordinates intent analysis, routing, validation, and execution planning." /> <step name="Determine Intent" description="Classifies the request as research, implementation, infrastructure, evolution, or governance work." /> <step name="Choose Council Template" description="Selects a council template with the relevant specialists." /> <step name="Assign Models" description="Selects model providers and capabilities that match the task and trust requirements." /> <step name="Assign Datasets" description="Attaches project knowledge and datasets with source and permission context." /> <step name="Assign Tools" description="Selects tools required by the plan, subject to policy and permission checks." /> <step name="Assign Workspace" description="Binds the plan to a project workspace and runtime boundary." /> <step name="Validate Through Logic" description="Checks feasibility, consistency, assumptions, and contradictions before action." gate="true" /> <step name="Validate Through Governance" description="Checks trust, policies, permissions, and approval requirements before action." gate="true" /> <step name="Execute" description="Runs only actions that are available, authorized, and within the configured runtime." /> <step name="Store Knowledge" description="Records useful evidence, decisions, and outcomes with provenance." /> <step name="Snapshot" description="Captures the project state needed to reproduce or review the work." /> <step name="Consolidate" description="Merges compatible learning into organized project knowledge." /> <step name="Update Canon" description="Updates the canonical project record with reviewed, durable findings." /> </decisionFormula> <projectLifecycle> <stage name="Research" description="Discover the problem and evidence." /> <stage name="Active" description="Coordinate work and decisions." /> <stage name="Production" description="Deliver stable project outcomes." /> <stage name="Evolving" description="Improve capabilities continuously." /> <stage name="Frontier Comparison" description="Compare current project state with emerging approaches." /> <stage name="Delta Analysis" description="Identify the gaps between current and target state." /> <stage name="Missing Dependencies" description="Surface unavailable requirements." /> <stage name="Evolution Suggestions" description="Propose the next improvements." /> <stage name="Obsolete" description="Mark work that is ready for retirement." /> <stage name="Snapshot" description="Preserve a durable project state." /> <stage name="Archive" description="Store completed work and its history." /> <stage name="Template" description="Make proven project patterns reusable." /> </projectLifecycle> <fabrics> <fabric name="Identity" icon="◉" description="Resolves who is acting, what they own, and which roles apply."><capability name="Ownership graph" /><capability name="Role registry" /><capability name="LDAP, Entra, OAuth, and SAML connectors" /></fabric> <fabric name="Trust" icon="⬡" description="Evaluates sources, datasets, and models against workspace trust requirements."><capability name="Source verification" /><capability name="Dataset and model verification" /><capability name="Trust scores" /></fabric> <fabric name="Research" icon="⌕" description="Connects research sources and organizes evidence for project decisions."><capability name="Web and paper discovery" /><capability name="Documentation connectors" /><capability name="Research source attribution" /></fabric> <fabric name="Knowledge" icon="▧" description="Organizes project memory into research, lessons, canon, frontier, and archive."><capability name="Project memory" /><capability name="Canonical knowledge" /><capability name="Snapshots and archive" /></fabric> <fabric name="Logic" icon="⌘" description="Builds plans and checks feasibility, consistency, and competing claims."><capability name="Intent analysis" /><capability name="Planning and validation" /><capability name="Consensus and contradictions" /></fabric> <fabric name="Delta" icon="Δ" description="Compares current and target states to identify gaps and useful evolution."><capability name="Current and frontier state" /><capability name="Gap analysis" /><capability name="Evolution and obsolescence" /></fabric> <fabric name="Dependency" icon="⛓" description="Finds unmet runtime, access, model, tool, library, and dataset requirements."><capability name="Missing permissions" /><capability name="Missing tools and models" /><capability name="Missing libraries, datasets, and infrastructure" /></fabric> <fabric name="Governance" icon="⬡" description="Applies policy gates, approval decisions, overrides, and audit recording."><capability name="Policy registry" /><capability name="Approval queue" /><capability name="Audit history" /></fabric> <fabric name="Execution" icon="▶" description="Dispatches approved work to the appropriate execution adapter."><capability name="PowerShell, Python, and Node" /><capability name="Docker and Git" /><capability name="MCP tools" /></fabric> <fabric name="Storage" icon="▤" description="Defines local and enterprise storage for project artifacts and vectors."><capability name="SQLite and sqlite-vec" /><capability name="PostgreSQL and pgvector" /><capability name="Snapshots, consolidation, and archives" /></fabric> <fabric name="Canvas" icon="▱" description="Provides visual workspaces for diagrams, whiteboards, and knowledge views."><capability name="Whiteboard canvas" /><capability name="Diagram engine" /><capability name="Knowledge views" /></fabric> </fabrics> <councils> <council name="Research Council" icon="◎" description="Combines research and knowledge specialists to answer evidence questions."><member>Research Agent</member><member>Knowledge Agent</member><member>Trust review</member></council> <council name="Architecture Council" icon="◇" description="Reviews boundaries, dependencies, and system-level trade-offs."><member>Logic Agent</member><member>Dependency Agent</member><member>Infrastructure Agent</member></council> <council name="Implementation Council" icon="⚒" description="Coordinates implementation from an approved plan through a reviewable change."><member>Implementation Agent</member><member>Logic Agent</member><member>Tool Execution Agent</member></council> <council name="Infrastructure Council" icon="⌂" description="Checks environments, storage, runtime, and deployment dependencies."><member>Infrastructure Agent</member><member>Dependency Agent</member><member>Governance Agent</member></council> <council name="Evolution Council" icon="↻" description="Compares project state with the frontier and ranks improvement opportunities."><member>Delta Agent</member><member>Evolution Agent</member><member>Knowledge Agent</member></council> <council name="Governance Council" icon="⬡" description="Reviews policies, trust, approvals, and recorded exceptions."><member>Governance Agent</member><member>Trust validation</member><member>Approval engine</member></council> </councils> <agents> <agent name="Research Agent" description="Finds evidence and records sources relevant to a question." /> <agent name="ML Agent" description="Reviews model choices, evaluation needs, and model-specific constraints." /> <agent name="Logic Agent" description="Checks plans for feasibility, consistency, and contradictions." /> <agent name="Knowledge Agent" description="Retrieves and organizes project memory and research." /> <agent name="Dependency Agent" description="Identifies missing tools, permissions, libraries, data, or infrastructure." /> <agent name="Delta Agent" description="Compares current project state with a target or frontier." /> <agent name="Evolution Agent" description="Turns comparison results into sequenced improvement suggestions." /> <agent name="Infrastructure Agent" description="Plans runtime, storage, and environment requirements." /> <agent name="Tool Execution Agent" description="Coordinates approved tool calls through configured adapters." /> <agent name="Governance Agent" description="Applies policy checks and identifies human approval needs." /> <agent name="Canonicalization Agent" description="Turns verified outcomes into structured, reusable canon." /> <agent name="Implementation Agent" description="Plans approved implementation work." /> </agents> <models> <model role="operations" provider="omni" /> <model role="research" provider="sonar" /> <model role="implementation" provider="copilot" /> <model role="ml" provider="qwen" /> <model role="logic" provider="claude" /> </models> <storage local="SQLite,sqlite-vec" enterprise="PostgreSQL,pgvector"> <providers> <provider name="SQLite" enabled="true" /> <provider name="PostgreSQL" enabled="true" /> </providers> <vectorStores> <vectorStore provider="sqlite-vec" dimensions="1536" /> <vectorStore provider="pgvector" dimensions="1536" /> </vectorStores> <retention snapshotDays="90" archiveYears="7" keepCanonForever="true" /> <migration autoMigrate="true" backupBeforeMigration="true" validateSchema="true" /> </storage> <governanceControls> <control name="Policy Engine" description="Evaluates plans against the active policy registry." /> <control name="Approval Engine" description="Routes gated actions to the right reviewer." /> <control name="Trust Validation" description="Checks identity, sources, datasets, and models." /> <control name="Override Engine" description="Records scoped exceptions with justification." /> <control name="Audit Log" description="Keeps an attributable record of decisions and actions." /> <control name="Policy Registry" description="Maintains versioned workspace rules." /> </governanceControls> <knowledgeAreas> <area name="Project memory" description="Working context and decisions." /> <area name="Research" description="Sources, findings, and evidence." /> <area name="Lessons" description="Reusable outcomes and reflections." /> <area name="Canon" description="The current trusted project record." /> <area name="Frontier" description="Emerging ideas and state of the art." /> <area name="Snapshots" description="Point-in-time project state." /> <area name="Archive" description="Preserved retired work." /> </knowledgeAreas> <permissions> <permission id="workspace-read" resource="workspace" action="read" effect="allow" requiresApproval="false" /> <permission id="workspace-write" resource="workspace" action="write" effect="require-approval" requiresApproval="true" /> <permission id="tool-execution" resource="tools" action="execute" effect="require-approval" requiresApproval="true" /> <permission id="external-network" resource="external-network" action="access" effect="deny" requiresApproval="true" /> </permissions> <workspaces> <workspace role="research" name="VSCode" /> <workspace role="implementation" name="Zed" /> <workspace role="ml" name="PyCharm" /> <workspace role="logic" name="IntelliJ" /> <workspace role="database" name="DataGrip" /> <workspace role="canvas" name="HFSpace" /> </workspaces> <mcpServers> <server name="filesystem" adapter="filesystem" trust="High" enabled="true" authMode="none" /> <server name="git" adapter="git" trust="High" enabled="false" authMode="none" /> <server name="github-readonly" adapter="github" trust="Verified" enabled="true" authMode="oauth" accessMode="read-only" /> <server name="github-write" adapter="github" trust="High" enabled="false" authMode="oauth" accessMode="read-write" /> <server name="postgres-readonly" adapter="postgres" trust="Verified" enabled="true" credentialRef="PROJECTOS_POSTGRES_READ_PROFILE" authMode="keyring" accessMode="read-only" /> <server name="postgres-write" adapter="postgres" trust="High" enabled="false" credentialRef="PROJECTOS_POSTGRES_WRITE_PROFILE" authMode="keyring" accessMode="read-write" /> <server name="fetch" adapter="fetch" trust="Medium" enabled="true" authMode="none" /> <server name="memory" adapter="memory" trust="High" enabled="true" authMode="none" /> <profiles> <profile name="workspace" enabled="true" description="Workspace files and persistent MCP memory."> <serverRef name="filesystem" /> <serverRef name="memory" /> </profile> <profile name="research" enabled="true" description="Public web research and read-only GitHub context."> <serverRef name="fetch" /> <serverRef name="github-readonly" /> </profile> <profile name="implementation" enabled="true" description="Workspace files and read-only GitHub context."> <serverRef name="filesystem" /> <serverRef name="github-readonly" /> </profile> <profile name="database-readonly" enabled="true" description="Read-only PostgreSQL access using an OS keyring profile."> <serverRef name="postgres-readonly" /> </profile> <profile name="database-write" enabled="false" description="Explicitly disabled write access; requires a separate least-privilege database role and approval policy."> <serverRef name="postgres-write" /> </profile> </profiles> </mcpServers> <namingConventions> <convention canonical="ProjectRepository"> <alias>IProjectRepository</alias> <alias>ProjectRepo</alias> <alias>ProjectStore</alias> </convention> <convention canonical="CanonRepository"> <alias>ICanonRepository</alias> <alias>CanonRepo</alias> <alias>CanonStore</alias> </convention> <convention canonical="SnapshotRepository"> <alias>ISnapshotRepository</alias> <alias>SnapshotRepo</alias> <alias>SnapshotStore</alias> </convention> <convention canonical="FrontierRepository"> <alias>IFrontierRepository</alias> <alias>FrontierRepo</alias> <alias>FrontierStore</alias> </convention> <convention canonical="ArchiveRepository"> <alias>IArchiveRepository</alias> <alias>ArchiveRepo</alias> <alias>ArchiveStore</alias> </convention> <convention canonical="EmbeddingRepository"> <alias>IEmbeddingRepository</alias> <alias>EmbeddingRepo</alias> <alias>EmbeddingStore</alias> </convention> <languageProfiles> <languageProfile name="CSharp" interfacePrefix="I" /> <languageProfile name="TypeScript" interfacePrefix="" /> <languageProfile name="Java" interfacePrefix="" /> <languageProfile name="OpenAPITypeScript" interfacePrefix="I" /> </languageProfiles> </namingConventions> <documentation> <output name="Architecture" enabled="true" /> <output name="Bootstrap" enabled="true" /> <output name="Schema" enabled="true" /> <output name="Agents" enabled="true" /> <output name="Councils" enabled="true" /> <output name="Fabrics" enabled="true" /> <output name="Storage" enabled="true" /> <output name="Knowledge" enabled="true" /> <output name="Canon" enabled="true" /> <output name="Frontier" enabled="true" /> <output name="Delta" enabled="true" /> <output name="Dependency" enabled="true" /> <output name="Governance" enabled="true" /> <output name="Identity" enabled="true" /> <output name="Trust" enabled="true" /> <output name="Runtime" enabled="true" /> <output name="Database" enabled="true" /> <output name="API" enabled="true" /> <output name="MCP" enabled="true" /> <output name="Workspaces" enabled="true" /> <output name="Models" enabled="true" /> <output name="Providers" enabled="true" /> <output name="Snapshots" enabled="true" /> <output name="Archive" enabled="true" /> </documentation></ProjectOS>1.stat-card{display:block;width:100%;text-align:left;color:var(--ink);font-family:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s}.stat-card:hover,.health-card:hover{border-color:#d8d2ef;box-shadow:0 5px 15px #352d680d}.health-card{width:100%;text-align:left;color:var(--ink);font-family:inherit;cursor:pointer}.life-card{display:block;width:100%;text-align:left;color:var(--ink);font-family:inherit}.pipeline-step{border:0;background:transparent;font:inherit;font-size:9px;cursor:pointer;padding:0 4px}.pipeline-step:hover{color:#665ab0}.pipeline-step:hover span{background:#e9e5fb}1.info-card{display:block;width:100%;text-align:left;color:var(--ink);font-family:inherit}.card-open-label{display:block;color:#766abf;font-size:9px;font-weight:600;margin-top:11px}.directory-row{width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #f1f0f3;font-family:inherit;cursor:pointer}.directory-row:hover{background:#fcfbff}.directory-row:last-child{border-bottom:0}.policy-queue{margin-top:18px;padding:16px 18px}.policy-item{display:flex;align-items:center;gap:12px;border-top:1px solid #f0eff3;padding:13px 0}.policy-item>div:first-child{flex:1}.policy-item strong{font-size:10px}.policy-item p{font-size:9px;color:#918e99;margin:5px 0 0}.policy-state{font-size:8px;padding:5px 7px;border-radius:5px}.policy-state.pending{background:#fff5e7;color:#b88748}.policy-state.resolved{background:#eef7f1;color:#4d956b}.policy-item .governance-action{margin:0}.empty-note{padding:16px 0;color:#96939e;font-size:10px}@media(max-width:700px){.policy-item{align-items:flex-start;flex-wrap:wrap}.policy-item>div:first-child{flex-basis:100%}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475<!doctype html><html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="theme-color" content="#f5f3ee" /> <title>ProjectOS — Operations Console</title> <link rel="stylesheet" href="./styles.css" /> <link rel="stylesheet" href="./interactions.css" /> <link rel="stylesheet" href="./features.css" /> <link rel="stylesheet" href="./clickable.css" /> <link rel="stylesheet" href="./snapshots.css" /> </head> <body> <div class="app-shell"> <aside class="sidebar"> <a class="brand" href="#overview" aria-label="ProjectOS home"><span class="brand-mark">P</span><span>project<span class="brand-light">os</span><small>OPERATIONS CONSOLE</small></span></a> <div class="nav-label">WORKSPACE</div> <nav aria-label="Main navigation"> <a class="nav-item active" href="#overview" data-view="overview"><span>◫</span> Overview</a> <a class="nav-item" href="#projects" data-view="projects"><span>▤</span> Projects <b>4</b></a> <a class="nav-item" href="#decision" data-view="decision"><span>⌘</span> Decision flow</a> <a class="nav-item" href="#lifecycle" data-view="lifecycle"><span>⟳</span> Lifecycle</a> </nav> <div class="nav-label systems-label">SYSTEMS</div> <nav aria-label="Systems"> <a class="nav-item" href="#fabrics" data-view="fabrics"><span>◈</span> Fabrics <i class="dot green"></i></a> <a class="nav-item" href="#agents" data-view="agents"><span>♧</span> Agents <i class="dot green"></i></a> <a class="nav-item" href="#councils" data-view="councils"><span>◎</span> Councils</a> <a class="nav-item" href="#governance" data-view="governance"><span>⬡</span> Governance <i class="dot amber"></i></a> <a class="nav-item" href="#knowledge" data-view="knowledge"><span>▧</span> Knowledge</a> </nav> <div class="sidebar-bottom"><div class="runtime-card"><span class="dot amber"></span><div><strong>UI prototype</strong><small>No services connected</small></div><span class="more">···</span></div><div class="profile"><div class="avatar">U</div><div><strong>Workspace owner</strong><small>Local workspace</small></div><span class="more">⌄</span></div></div> </aside>
<main class="main-content"> <header class="topbar"><div class="breadcrumbs">Workspace <span>/</span> <strong id="crumb">Overview</strong></div><div class="top-actions"><span class="system-state"><i class="dot amber"></i> Local prototype</span><button class="icon-button" aria-label="Notifications">♧<em></em></button><div class="avatar small-avatar">U</div></div></header> <div class="page-wrap"> <section class="view active-view" id="view-overview"> <div class="welcome-row"><div><div class="eyebrow">LOCAL PROTOTYPE <span class="eyebrow-rule"></span> SAMPLE WORKSPACE</div><h1>Good morning, <span>Workspace.</span></h1><p class="lead">Explore the ProjectOS workflow. Sample records are illustrative; changes you make are stored in this browser.</p></div><button class="primary-button" id="new-project"><span>+</span> New project</button></div> <div class="stat-grid"> <button class="stat-card" data-open="projects"><div class="stat-top"><span>SAMPLE PROJECTS</span><span class="stat-icon lavender">▤</span></div><div class="stat-number">04</div><div class="stat-foot">Saved locally when edited</div></button> <button class="stat-card" data-open="agents"><div class="stat-top"><span>AGENTS DEFINED</span><span class="stat-icon mint">♧</span></div><div class="stat-number">12<span class="denom"> / 12</span></div><div class="stat-foot">Listed in the architecture</div></button> <button class="stat-card" data-open="governance"><div class="stat-top"><span>EXAMPLE REVIEWS</span><span class="stat-icon peach">⬡</span></div><div class="stat-number">02</div><div class="stat-foot"><span class="review-tag">Sample queue</span> proposals</div></button> <button class="stat-card" data-open="knowledge"><div class="stat-top"><span>KNOWLEDGE AREAS</span><span class="stat-icon blue">▧</span></div><div class="stat-number">07</div><div class="stat-foot">Stores defined in the architecture</div></button> </div> <div class="section-heading"><div><h2>Workspace preview</h2><p>Illustrative project records for exploring the workflow.</p></div><button class="text-button" data-open="projects">View all projects <span>→</span></button></div> <div class="content-grid"> <section class="panel projects-panel"><div class="panel-head"><div><h3>Recent projects</h3><p>Your latest workspaces</p></div><button class="more-button" aria-label="More project options">···</button></div><div class="project-list" id="project-list"> <button class="project-row" data-project="Atlas Research"><span class="project-symbol sym-violet">A</span><span class="project-info"><strong>Atlas Research</strong><small>Research · Updated 12 min ago</small></span><span class="project-status status-active"><i></i> Active</span><span class="row-arrow">↗</span></button> <button class="project-row" data-project="Northstar Platform"><span class="project-symbol sym-blue">N</span><span class="project-info"><strong>Northstar Platform</strong><small>Production · Updated 1 hr ago</small></span><span class="project-status status-prod"><i></i> Production</span><span class="row-arrow">↗</span></button> <button class="project-row" data-project="Signal Intelligence"><span class="project-symbol sym-orange">S</span><span class="project-info"><strong>Signal Intelligence</strong><small>Evolution · Updated yesterday</small></span><span class="project-status status-evolve"><i></i> Evolving</span><span class="row-arrow">↗</span></button> <button class="project-row" data-project="Common Ground"><span class="project-symbol sym-green">C</span><span class="project-info"><strong>Common Ground</strong><small>Research · Updated Oct 28</small></span><span class="project-status status-active"><i></i> Active</span><span class="row-arrow">↗</span></button> </div><button class="full-link" data-open="projects">Open project directory <span>→</span></button></section> <section class="panel flow-panel"><div class="panel-head"><div><h3>Decision flow</h3><p>From question to canonical knowledge</p></div><span class="live-pill"><i></i> READY</span></div><div class="flow-mini" id="flow-mini"></div><button class="full-link" data-open="decision">Explore decision formula <span>→</span></button></section> </div> <div class="section-heading lower-heading"><div><h2>Architecture coverage</h2><p>Subsystems represented in this local prototype.</p></div><button class="text-button" data-open="fabrics">System details <span>→</span></button></div> <div class="health-grid"><button class="health-card" data-open="fabrics"><span class="health-icon">◈</span><div><strong>Fabrics</strong><small>11 defined</small></div><span class="health-ok">Listed</span></button><button class="health-card" data-open="agents"><span class="health-icon">♧</span><div><strong>Agent pool</strong><small>12 defined</small></div><span class="health-ok">Listed</span></button><button class="health-card" data-open="councils"><span class="health-icon">◎</span><div><strong>Council engine</strong><small>6 templates</small></div><span class="health-ok">Listed</span></button><button class="health-card" data-open="governance"><span class="health-icon">⬡</span><div><strong>Governance</strong><small>Sample review queue</small></div><span class="health-warn">Local demo</span></button></div> </section> <section class="view" id="view-projects"><div class="eyebrow">WORKSPACE <span class="eyebrow-rule"></span> DIRECTORY</div><div class="page-title-row"><div><h1>Projects</h1><p class="lead">Manage the full lifecycle of your project workspaces.</p></div><button class="primary-button" id="new-project-2"><span>+</span> New project</button></div><div class="filter-bar"><button class="filter active-filter">All projects <b>4</b></button><button class="filter">Research <b>2</b></button><button class="filter">Production <b>1</b></button><button class="filter">Evolving <b>1</b></button><span class="search-box">⌕ <input placeholder="Search projects" id="project-search" /></span></div><div class="panel directory-panel"><div class="directory-head"><span>PROJECT</span><span>STAGE</span><span>LAST UPDATED</span><span>HEALTH</span><span></span></div><div id="project-directory"></div></div></section> <section class="view" id="view-decision"><div class="eyebrow">OPERATIONS <span class="eyebrow-rule"></span> DECISION FORMULA</div><div class="page-title-row"><div><h1>From question <span>to canon.</span></h1><p class="lead">A governed path from intent to durable, consolidated knowledge.</p></div><button class="primary-button" id="start-planning"><span>+</span> Plan a question</button></div><div class="formula-layout"><div class="formula-list" id="formula-list"></div><aside class="formula-aside"><div class="aside-kicker">THE OPERATIONS AGENT</div><h3>Every request starts with intent.</h3><p>The Operations Agent translates a question into a plan, selects the right council, and assembles the models, datasets, tools, and workspace needed to act.</p><div class="aside-divider"></div><div class="aside-stat"><span>15</span><small>decision stages</small></div><div class="aside-stat"><span>2</span><small>validation gates</small></div><div class="aside-stat"><span>1</span><small>canonical outcome</small></div></aside></div><section class="panel plan-history" id="plan-history"></section></section> <section class="view" id="view-lifecycle"><div class="eyebrow">PROJECTS <span class="eyebrow-rule"></span> LIFECYCLE</div><h1>Built to <span>keep evolving.</span></h1><p class="lead">Projects move through research, delivery, and continuous improvement.</p><div class="lifecycle-board" id="lifecycle-board"></div><div class="lifecycle-note"><span>↻</span><div><strong>Evolution is a continuous loop.</strong><p>Frontier comparison and delta analysis surface the next best improvements. When a project becomes obsolete, preserve its knowledge in a snapshot before archiving it as a reusable template.</p></div><button id="advance-project">Update a project stage <span>→</span></button></div></section> <section class="view" id="view-fabrics"><div class="eyebrow">SYSTEMS <span class="eyebrow-rule"></span> FABRICS</div><h1>Connected <span>by design.</span></h1><p class="lead">Eleven foundational fabrics coordinate the trust, reasoning, execution, and memory of ProjectOS.</p><div class="cards-grid" id="fabric-grid"></div></section> <section class="view" id="view-agents"><div class="eyebrow">SYSTEMS <span class="eyebrow-rule"></span> AGENT POOL</div><h1>Specialists, <span>one system.</span></h1><p class="lead">Twelve agents coordinate through the Operations Agent and Council Engine.</p><div class="cards-grid" id="agent-grid"></div></section> <section class="view" id="view-councils"><div class="eyebrow">SYSTEMS <span class="eyebrow-rule"></span> COUNCIL ENGINE</div><h1>Better decisions <span>together.</span></h1><p class="lead">Council templates bring the right specialists together for each kind of work.</p><div class="cards-grid" id="council-grid"></div></section> <section class="view" id="view-governance"><div class="eyebrow">SYSTEMS <span class="eyebrow-rule"></span> GOVERNANCE</div><h1>Trust with <span>clear boundaries.</span></h1><p class="lead">Policy checks, approvals, overrides, and audit trails are part of the execution path.</p><div class="governance-banner"><span>⬡</span><div><strong id="policy-count">2 sample proposals need review</strong><p>Illustrative workspace permission and dataset trust proposals.</p></div><button id="review-policies">Review queue <span>→</span></button></div><div class="panel policy-queue" id="policy-queue"></div><div class="cards-grid" id="governance-grid"></div></section> <section class="view" id="view-knowledge"><div class="eyebrow">SYSTEMS <span class="eyebrow-rule"></span> KNOWLEDGE FABRIC</div><h1>Keep what <span>you learn.</span></h1><p class="lead">Knowledge moves through project memory, research, lessons, canon, and snapshots.</p><div class="knowledge-stats"><div class="knowledge-big"><small>PROJECT SNAPSHOTS</small><strong id="snapshot-count">00</strong><span>Saved state records</span></div><div class="knowledge-pipeline" id="knowledge-pipeline"></div></div><section class="panel snapshot-list" id="snapshot-list"></section><div class="cards-grid" id="knowledge-grid"></div></section> </div> </main> </div> <div class="modal-backdrop" id="modal" aria-hidden="true"><section class="modal" role="dialog" aria-modal="true" aria-labelledby="modal-title"><button class="modal-close" id="modal-close" aria-label="Close">×</button><div class="modal-content" id="modal-content"></div></section></div> <div class="toast" id="toast" role="status"></div> <script src="./app.js"></script> </body></html>1.info-card{cursor:pointer;transition:border-color .16s,transform .16s,box-shadow .16s}.info-card:hover,.formula-step:hover,.life-card:hover{border-color:#d6d0ef;transform:translateY(-1px);box-shadow:0 5px 16px #352d6810}.formula-step,.life-card{cursor:pointer;transition:border-color .16s,transform .16s,box-shadow .16s}.project-row:focus-visible,.info-card:focus-visible,.formula-step:focus-visible,.life-card:focus-visible,button:focus-visible{outline:2px solid #867bd0;outline-offset:2px}.modal-backdrop{position:fixed;inset:0;background:#211f2c73;z-index:20;display:none;align-items:center;justify-content:center;padding:20px}.modal-backdrop.open{display:flex;animation:appear .15s ease}.modal{position:relative;width:min(570px,100%);max-height:min(85vh,760px);overflow:auto;background:#fff;border-radius:12px;padding:28px;box-shadow:0 20px 70px #16142140}.modal-close{position:absolute;right:15px;top:12px;background:#f5f4f7;border:0;border-radius:50%;width:29px;height:29px;font-size:20px;color:#74717c;line-height:1}.modal-kicker{color:#9995a4;font-weight:700;font-size:9px;letter-spacing:1.2px}.modal h2{font:700 21px Manrope,sans-serif;letter-spacing:-.6px;margin:9px 35px 8px 0}.modal-description{font-size:12px;line-height:1.65;color:#777580;margin:0 0 19px}.modal-section{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.modal-section h4{font-size:9px;letter-spacing:.8px;color:#9b98a3;margin:0 0 9px}.modal-section p{font-size:10px;line-height:1.6;color:#777580;margin:4px 0}.capability-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.capability{font-size:10px;color:#5e5a68;background:#f7f6fa;border-radius:5px;padding:8px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.secondary-button{border:1px solid #e9e7ee;background:#fff;color:#6f6c77;padding:9px 12px;border-radius:6px;font-size:10px;font-weight:600}.modal-form{display:grid;gap:12px}.modal-form label{display:grid;gap:6px;font-size:10px;color:#777580;font-weight:600}.modal-form input,.modal-form textarea,.modal-form select{border:1px solid #e6e4eb;border-radius:6px;padding:10px;font-size:11px;color:#33313b;background:#fff}.modal-form textarea{min-height:92px;resize:vertical}.modal-status{padding:10px;border-radius:6px;background:#f3f1fb;color:#665cae;font-size:10px;line-height:1.55}.plan-history{margin-top:18px;padding:15px}.plan-history:empty{display:none}.history-title{font:700 11px Manrope,sans-serif;margin:0}.history-entry{display:flex;align-items:center;gap:10px;border-top:1px solid #f0eff3;padding:10px 0 0;margin-top:10px}.history-entry>span:first-child{width:23px;height:23px;border-radius:6px;background:#f0edfb;color:#7165bd;display:grid;place-items:center;font-size:10px}.history-entry>div{flex:1;min-width:0}.history-entry strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-entry small{display:block;color:#9b99a3;font-size:9px;margin-top:3px}.history-entry button{border:0;background:none;color:#7065bb;font-size:9px;font-weight:600}.lifecycle-note button{margin-left:auto;border:0;background:transparent;color:#7064b7;white-space:nowrap;font-size:9px;font-weight:700}.detail-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.detail-chip{padding:5px 8px;border-radius:5px;background:#f4f2fa;color:#6d64a9;font-size:9px}.governance-action{display:flex;gap:8px;margin-top:13px}.governance-action button{border:1px solid #eadfce;background:#fff;border-radius:5px;padding:8px 10px;color:#8d6c3b;font-size:9px;font-weight:600}.governance-action button.approve{background:#edf7f0;color:#448765;border-color:#dceddf}.modal select{width:100%}@media(max-width:700px){.modal{padding:23px 18px}.capability-list{grid-template-columns:1fr}.lifecycle-note{align-items:flex-start;flex-wrap:wrap}.lifecycle-note button{margin-left:27px}}1234567891011121314151617181920212223242526272829303132{ "name": "projectos", "version": "0.1.0", "private": true, "packageManager": "pnpm@10.0.0", "engines": { "node": ">=24.22.1 <25 || >=26.12.1", "pnpm": ">=10" }, "scripts": { "generate": "pnpm --filter @projectos/schema-engine generate", "release": "pnpm build && pnpm test && pnpm --filter @projectos/schema-engine release && pnpm validate:release", "build": "pnpm generate && tsc -b && turbo build", "dev": "pnpm generate && tsc -b && pnpm --filter @projectos/runtime dev && turbo dev --filter=@projectos/api --filter=@projectos/dashboard", "lint": "turbo lint", "typecheck": "pnpm generate && tsc -b --pretty false", "bootstrap": "powershell -ExecutionPolicy Bypass -File bootstrap/bootstrap-projectos.ps1", "runtime": "pnpm generate && pnpm --filter @projectos/common build && pnpm --filter @projectos/runtime dev", "dashboard": "pnpm generate && pnpm --filter @projectos/dashboard dev", "validate:manifest": "pnpm --filter @projectos/schema-engine validate", "validate:generated": "node scripts/validate-generated-snapshots.mjs", "validate:release": "node scripts/validate-release.mjs", "mcp:profiles": "pnpm --filter @projectos/mcp-fabric profiles", "mcp:check": "pnpm --filter @projectos/mcp-fabric check", "mcp:connect": "pnpm --filter @projectos/mcp-fabric connect", "test": "pnpm --filter @projectos/schema-engine test && pnpm --filter @projectos/storage-fabric test && pnpm --filter @projectos/governance-fabric test && pnpm --filter @projectos/logic-fabric test && pnpm --filter @projectos/dependency-fabric test && pnpm --filter @projectos/delta-fabric test && pnpm --filter @projectos/knowledge-fabric test" }, "devDependencies": { "turbo": "^2.2.3", "typescript": "^5.6.3" }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737lockfileVersion: '9.0'
settings: autoInstallPeers: true excludeLinksFromLockfile: false
importers:
.: devDependencies: turbo: specifier: ^2.2.3 version: 2.11.10 typescript: specifier: ^5.6.3 version: 5.9.3
apps/api: {}
apps/dashboard: dependencies: react: specifier: ^18.3.1 version: 18.3.1 react-dom: specifier: ^18.3.1 version: 18.3.1(react@18.3.1) devDependencies: '@types/node': specifier: ^22.10.0 version: 22.20.5 '@types/react': specifier: ^18.3.12 version: 18.3.31 '@types/react-dom': specifier: ^18.3.1 version: 18.3.7(@types/react@18.3.31) '@vitejs/plugin-react': specifier: ^4.3.3 version: 4.7.0(vite@5.4.21(@types/node@22.20.5)) typescript: specifier: ^5.6.3 version: 5.9.3 vite: specifier: ^5.4.10 version: 5.4.21(@types/node@22.20.5)
apps/runtime: dependencies: '@projectos/common': specifier: workspace:* version: link:../../packages/common '@projectos/mcp-fabric': specifier: workspace:* version: link:../../packages/mcp-fabric '@projectos/operations-agent': specifier: workspace:* version: link:../../packages/operations-agent devDependencies: '@types/node': specifier: ^22.10.0 version: 22.20.5 tsx: specifier: ^4.19.1 version: 4.23.15 typescript: specifier: ^5.6.3 version: 5.9.3
packages/common: dependencies: zod: specifier: ^3.23.8 version: 3.25.76 devDependencies: '@types/node': specifier: ^22.10.0 version: 22.20.5 typescript: specifier: ^5.6.3 version: 5.9.3
packages/council-engine: {}
packages/delta-fabric: dependencies: '@projectos/dependency-fabric': specifier: workspace:* version: link:../dependency-fabric devDependencies: '@types/node': specifier: ^22.10.0 version: 22.20.5 typescript: specifier: ^5.6.3 version: 5.9.3
packages/dependency-fabric: devDependencies: '@types/node': specifier: ^22.10.0 version: 22.20.5 typescript: specifier: ^5.6.3 version: 5.9.3
packages/execution-fabric: {}
packages/governance-fabric: {}
packages/identity-fabric: {}
packages/knowledge-fabric: dependencies: '@projectos/storage-fabric': specifier: workspace:* version: link:../storage-fabric devDependencies: '@types/node': specifier: ^22.10.0 version: 22.20.5 typescript: specifier: ^5.6.3 version: 5.9.3
packages/mcp-fabric: devDependencies: '@types/node': specifier: ^22.10.0 version: 22.20.5 tsx: specifier: ^4.19.1 version: 4.23.15 typescript: specifier: ^5.6.3 version: 5.9.3
packages/logic-fabric: dependencies: '@projectos/schema-engine': specifier: workspace:* version: link:../schema-engine devDependencies: '@types/node': specifier: ^22.10.0 version: 22.20.5 typescript: specifier: ^5.6.3 version: 5.9.3
packages/operations-agent: dependencies: '@projectos/common': specifier: workspace:* version: link:../common
packages/schema-engine: dependencies: '@xmldom/xmldom': specifier: ^0.8.10 version: 0.8.15 fast-xml-parser: specifier: ^4.5.0 version: 4.5.7 xpath: specifier: ^0.0.34 version: 0.0.34 zod: specifier: ^3.23.8 version: 3.25.76 devDependencies: '@types/node': specifier: ^22.10.0 version: 22.20.5 tsx: specifier: ^4.19.1 version: 4.23.15 typescript: specifier: ^5.6.3 version: 5.9.3
packages/storage-fabric: dependencies: drizzle-orm: specifier: ^0.45.4 version: 0.45.4 devDependencies: '@types/node': specifier: ^22.10.0 version: 22.20.5 typescript: specifier: ^5.6.3 version: 5.9.3
packages/trust-fabric: {}
packages:
'@babel/code-frame@7.29.7': resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} engines: {node: '>=6.9.0'}
'@babel/compat-data@7.29.7': resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==} engines: {node: '>=6.9.0'}
'@babel/core@7.29.7': resolution: {integrity: sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==} engines: {node: '>=6.9.0'}
'@babel/generator@7.29.12': resolution: {integrity: sha512-2W76mhjrpQFO1lK5e8IvGYB2D0YZ7S2R1Z2BjO2ZUYuW+amcpK/z60U6ZZmzskwoa7sJ6XohP/Wg8H5KxXI/IA==} engines: {node: '>=6.9.0'}
'@babel/helper-compilation-targets@7.29.7': resolution: {integrity: sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==} engines: {node: '>=6.9.0'}
'@babel/helper-globals@7.29.7': resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==} engines: {node: '>=6.9.0'}
'@babel/helper-module-imports@7.29.7': resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==} engines: {node: '>=6.9.0'}
'@babel/helper-module-transforms@7.29.7': resolution: {integrity: sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0
'@babel/helper-plugin-utils@7.29.7': resolution: {integrity: sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==} engines: {node: '>=6.9.0'}
'@babel/helper-string-parser@7.29.11': resolution: {integrity: sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==} engines: {node: '>=6.9.0'}
'@babel/helper-validator-identifier@7.29.7': resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} engines: {node: '>=6.9.0'}
'@babel/helper-validator-option@7.29.7': resolution: {integrity: sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==} engines: {node: '>=6.9.0'}
'@babel/helpers@7.29.10': resolution: {integrity: sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==} engines: {node: '>=6.9.0'}
'@babel/parser@7.29.12': resolution: {integrity: sha512-WJ7JBp/Q4+z/ImydtI7jS6NVco5++632ExBemSX+Ysb+G1lCwQ5BVo3SY+jGGOcZXI4ZccbZSUSJLNBW6eEpJg==} engines: {node: '>=6.0.0'} hasBin: true
'@babel/plugin-transform-react-jsx-self@7.29.7': resolution: {integrity: sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0
'@babel/plugin-transform-react-jsx-source@7.29.7': resolution: {integrity: sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0
'@babel/template@7.29.7': resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==} engines: {node: '>=6.9.0'}
'@babel/traverse@7.29.12': resolution: {integrity: sha512-MscXe/NAZcOkYEsRajHZFt3ynsb22PUi6CTrp5U7+RYycR9By84mn9mFN54YgfITiqK4hFx3Ju3tZSyzfpS5ew==} engines: {node: '>=6.9.0'}
'@babel/types@7.29.11': resolution: {integrity: sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==} engines: {node: '>=6.9.0'}
'@esbuild/aix-ppc64@0.21.5': resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} engines: {node: '>=12'} cpu: [ppc64] os: [aix]
'@esbuild/aix-ppc64@0.28.2': resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} engines: {node: '>=18'} cpu: [ppc64] os: [aix]
'@esbuild/android-arm64@0.21.5': resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} engines: {node: '>=12'} cpu: [arm64] os: [android]
'@esbuild/android-arm64@0.28.2': resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} engines: {node: '>=18'} cpu: [arm64] os: [android]
'@esbuild/android-arm@0.21.5': resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} engines: {node: '>=12'} cpu: [arm] os: [android]
'@esbuild/android-arm@0.28.2': resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} engines: {node: '>=18'} cpu: [arm] os: [android]
'@esbuild/android-x64@0.21.5': resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} engines: {node: '>=12'} cpu: [x64] os: [android]
'@esbuild/android-x64@0.28.2': resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} engines: {node: '>=18'} cpu: [x64] os: [android]
'@esbuild/darwin-arm64@0.21.5': resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} engines: {node: '>=12'} cpu: [arm64] os: [darwin]
'@esbuild/darwin-arm64@0.28.2': resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} engines: {node: '>=18'} cpu: [arm64] os: [darwin]
'@esbuild/darwin-x64@0.21.5': resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} engines: {node: '>=12'} cpu: [x64] os: [darwin]
'@esbuild/darwin-x64@0.28.2': resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} engines: {node: '>=18'} cpu: [x64] os: [darwin]
'@esbuild/freebsd-arm64@0.21.5': resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd]
'@esbuild/freebsd-arm64@0.28.2': resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd]
'@esbuild/freebsd-x64@0.21.5': resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} engines: {node: '>=12'} cpu: [x64] os: [freebsd]
'@esbuild/freebsd-x64@0.28.2': resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} engines: {node: '>=18'} cpu: [x64] os: [freebsd]
'@esbuild/linux-arm64@0.21.5': resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} engines: {node: '>=12'} cpu: [arm64] os: [linux]
'@esbuild/linux-arm64@0.28.2': resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} engines: {node: '>=18'} cpu: [arm64] os: [linux]
'@esbuild/linux-arm@0.21.5': resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} engines: {node: '>=12'} cpu: [arm] os: [linux]
'@esbuild/linux-arm@0.28.2': resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} engines: {node: '>=18'} cpu: [arm] os: [linux]
'@esbuild/linux-ia32@0.21.5': resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} engines: {node: '>=12'} cpu: [ia32] os: [linux]
'@esbuild/linux-ia32@0.28.2': resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} engines: {node: '>=18'} cpu: [ia32] os: [linux]
'@esbuild/linux-loong64@0.21.5': resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} engines: {node: '>=12'} cpu: [loong64] os: [linux]
'@esbuild/linux-loong64@0.28.2': resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} engines: {node: '>=18'} cpu: [loong64] os: [linux]
'@esbuild/linux-mips64el@0.21.5': resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} engines: {node: '>=12'} cpu: [mips64el] os: [linux]
'@esbuild/linux-mips64el@0.28.2': resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} engines: {node: '>=18'} cpu: [mips64el] os: [linux]
'@esbuild/linux-ppc64@0.21.5': resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} engines: {node: '>=12'} cpu: [ppc64] os: [linux]
'@esbuild/linux-ppc64@0.28.2': resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} engines: {node: '>=18'} cpu: [ppc64] os: [linux]
'@esbuild/linux-riscv64@0.21.5': resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} engines: {node: '>=12'} cpu: [riscv64] os: [linux]
'@esbuild/linux-riscv64@0.28.2': resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} engines: {node: '>=18'} cpu: [riscv64] os: [linux]
'@esbuild/linux-s390x@0.21.5': resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} engines: {node: '>=12'} cpu: [s390x] os: [linux]
'@esbuild/linux-s390x@0.28.2': resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} engines: {node: '>=18'} cpu: [s390x] os: [linux]
'@esbuild/linux-x64@0.21.5': resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} engines: {node: '>=12'} cpu: [x64] os: [linux]
'@esbuild/linux-x64@0.28.2': resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} engines: {node: '>=18'} cpu: [x64] os: [linux]
'@esbuild/netbsd-arm64@0.28.2': resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd]
'@esbuild/netbsd-x64@0.21.5': resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} engines: {node: '>=12'} cpu: [x64] os: [netbsd]
'@esbuild/netbsd-x64@0.28.2': resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} engines: {node: '>=18'} cpu: [x64] os: [netbsd]
'@esbuild/openbsd-arm64@0.28.2': resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd]
'@esbuild/openbsd-x64@0.21.5': resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} engines: {node: '>=12'} cpu: [x64] os: [openbsd]
'@esbuild/openbsd-x64@0.28.2': resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} engines: {node: '>=18'} cpu: [x64] os: [openbsd]
'@esbuild/openharmony-arm64@0.28.2': resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} engines: {node: '>=18'} cpu: [arm64] os: [openharmony]
'@esbuild/sunos-x64@0.21.5': resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} engines: {node: '>=12'} cpu: [x64] os: [sunos]
'@esbuild/sunos-x64@0.28.2': resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} engines: {node: '>=18'} cpu: [x64] os: [sunos]
'@esbuild/win32-arm64@0.21.5': resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} engines: {node: '>=12'} cpu: [arm64] os: [win32]
'@esbuild/win32-arm64@0.28.2': resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} engines: {node: '>=18'} cpu: [arm64] os: [win32]
'@esbuild/win32-ia32@0.21.5': resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} engines: {node: '>=12'} cpu: [ia32] os: [win32]
'@esbuild/win32-ia32@0.28.2': resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} engines: {node: '>=18'} cpu: [ia32] os: [win32]
'@esbuild/win32-x64@0.21.5': resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} engines: {node: '>=12'} cpu: [x64] os: [win32]
'@esbuild/win32-x64@0.28.2': resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} engines: {node: '>=18'} cpu: [x64] os: [win32]
'@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
'@jridgewell/remapping@2.3.5': resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}
'@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'}
'@jridgewell/sourcemap-codec@1.6.0': resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==}
'@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
'@napi-rs/lzma-linux-x64-gnu@1.5.1': resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==} engines: {node: ^22.20 || ^24.12 || >=25} cpu: [x64] os: [linux] libc: [glibc]
'@rolldown/pluginutils@1.0.0-beta.27': resolution: {integrity: sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==}
'@rollup/rollup-android-arm-eabi@4.66.0': resolution: {integrity: sha512-7y4XeoUHPecjfUDRmap8U0q6bjfLAPn7uOGT8BKyqy8uNDOjsGS8rlBhOx6sZLVwwjN6hapvGl2mW9/IS6UNww==} cpu: [arm] os: [android]
'@rollup/rollup-android-arm64@4.66.0': resolution: {integrity: sha512-e8WugYZXpgqrlMXLCudYVRAxAcK7AIY36JxRDwFRD38L9q62G1VsEUW6ijXxzjxYjNB8i1zo3B/ycIQ/qjLC/Q==} cpu: [arm64] os: [android]
'@rollup/rollup-darwin-arm64@4.66.0': resolution: {integrity: sha512-6vkDCfyDjNLokh+Rt1D2KtNgFFMEPdkWha/mbtP4cSjh9xiN8T/JBS/A7nDYKjmMAXHrvR9J3AzUk2LtFbIBLg==} cpu: [arm64] os: [darwin]
'@rollup/rollup-darwin-x64@4.66.0': resolution: {integrity: sha512-/mzZAX0+Q6eXxvkR0HB0RZCCrsbmFD8DpsvCQoMYABDfq/DjqkbfytuJ7GvZ4AhR/Mgis2fXbZrGqfbcK2Z5fA==} cpu: [x64] os: [darwin]
'@rollup/rollup-freebsd-arm64@4.66.0': resolution: {integrity: sha512-JQJx9E8tUjGqed1RevDmoHaS3V30ODdV8uyvGxlwd4K5se6bkPrMeltSybqAtpJ+ltDRfo7FORQaJG2Hd5nGog==} cpu: [arm64] os: [freebsd]
'@rollup/rollup-freebsd-x64@4.66.0': resolution: {integrity: sha512-GEaUQQjMaG7X1304qMgqLjzCKv6CdDirzJSS+UqUs3xhJ9X2Kjzu0JDbLoUU42FWxwmZqz+SsgU1SlQv9GNRVA==} cpu: [x64] os: [freebsd]
'@rollup/rollup-linux-arm-gnueabihf@4.66.0': resolution: {integrity: sha512-DgmAU9N0NhDQDzHgFUocDio7zRO8jR/nY/obDGvCR8zbJ6J77Fg6X49yPuExJUpYPbC82EOaRhG969pWzUSnHQ==} cpu: [arm] os: [linux] libc: [glibc]
'@rollup/rollup-linux-arm-musleabihf@4.66.0': resolution: {integrity: sha512-zG09YZ+sk/HoHq+P9gYB0EseQ3M20RbDuKGWey6fbiMDV1LxfXvhgSW9jDaCcvFPMgfLXpimzXY+UYvA8R2mLQ==} cpu: [arm] os: [linux] libc: [musl]
'@rollup/rollup-linux-arm64-gnu@4.66.0': resolution: {integrity: sha512-vlArhgyXbcVc1D4WZPoiYuqJIaMiSHBj6etRXua0KlfjlZeuiQyVAPYi0/N49O4mSp3u1iGUBLEjNa8ec81XZg==} cpu: [arm64] os: [linux] libc: [glibc]
'@rollup/rollup-linux-arm64-musl@4.66.0': resolution: {integrity: sha512-RxJZtk0G87YPotDaRDvRqStV8cbqLSC5TroHvQHHKsqBg0ok64RxKgtXeFsa7FBcy7mb4crBrG3xK8USWIqWNA==} cpu: [arm64] os: [linux] libc: [musl]
'@rollup/rollup-linux-loong64-gnu@4.66.0': resolution: {integrity: sha512-qlGcw959PrLLkZhiBxF3OZ6SQvj+OKY85mCqGNgSRs4LZlDJ6ICqmz6UdxtINdhcXYwNIbZoapQVBAmZlD2hUQ==} cpu: [loong64] os: [linux] libc: [glibc]
'@rollup/rollup-linux-loong64-musl@4.66.0': resolution: {integrity: sha512-TvTI/7Cy0WvRA1SXgwzu6bwXBnMpmeT/ln5q7WvSpqmXy1VbmEnY8HVIDQNBiaHJvoWqRr0M4FNo7qiqtyMaFw==} cpu: [loong64] os: [linux] libc: [musl]
'@rollup/rollup-linux-ppc64-gnu@4.66.0': resolution: {integrity: sha512-UZEDkSoDRZ50NyLj70nO6mpIK3dvs2cPTTvQb1bA/PBDmr9fvn5KiESuGfh6srd7Zi6Lt9Sv2sVrFr1QoHLvPQ==} cpu: [ppc64] os: [linux] libc: [glibc]
'@rollup/rollup-linux-ppc64-musl@4.66.0': resolution: {integrity: sha512-VRbxTvagLh3HRcysx1CNq+HHcvJbSebNI6fCbk7jwmmWHkXjrSIV3igXBpRHUTFdg0pagWGu50xoSZXnrZHjVQ==} cpu: [ppc64] os: [linux] libc: [musl]
'@rollup/rollup-linux-riscv64-gnu@4.66.0': resolution: {integrity: sha512-uWdJpvYqh0LE/i+YBL3sMX0a2kUkICENjmrPmyBmMOFc3jMrs6MSQH/pMD+VIpGEoUcr3XkHGLLfymzIqPSRRg==} cpu: [riscv64] os: [linux] libc: [glibc]
'@rollup/rollup-linux-riscv64-musl@4.66.0': resolution: {integrity: sha512-3FUd88pxgWAjK60OgCrika1AcNG+u8zaCdWjg4TlcZTDkt5TGyci8ZU64l3OJ9ax0MEjw3P80B/3PoSQDCLwJQ==} cpu: [riscv64] os: [linux] libc: [musl]
'@rollup/rollup-linux-s390x-gnu@4.66.0': resolution: {integrity: sha512-qT2rMmgyej62g5AdwktK+Bt2lBu497pzWZe12TTQ5JmZjOYPnEwcPEAOSLTBxBV+6gIES75rXm219v/QkT397A==} cpu: [s390x] os: [linux] libc: [glibc]
'@rollup/rollup-linux-x64-gnu@4.66.0': resolution: {integrity: sha512-E46rnZgp7J84Qwe8RMlF+rgimnDo/9fuiGbUArGB0ZkMWf97O7yeSCfKls5x/YJOF0RcuSe9RctuKe1hlxICiA==} cpu: [x64] os: [linux] libc: [glibc]
'@rollup/rollup-linux-x64-musl@4.66.0': resolution: {integrity: sha512-Uz1HiZe+qBzqgdPsON+z0wRx3WdATuyzwvGT6cr2VZVrqqko0ZJVfkrQJtwDMuDcAfXYdo7XucaxJ7lTLjEcgg==} cpu: [x64] os: [linux] libc: [musl]
'@rollup/rollup-openbsd-x64@4.66.0': resolution: {integrity: sha512-Ph7TX3Ex5qdfcb7Tc6eEPugVkRfJ501eTovO4T5029YObfpZ7dzn3RiwpFvGp50nk2QUhvBMZ0PFGlEj6pOYTg==} cpu: [x64] os: [openbsd]
'@rollup/rollup-openharmony-arm64@4.66.0': resolution: {integrity: sha512-nZYPEya7ZkeNxUEiF7qmNZbyLTyRN3MK5cO22KqsaoneUzXJuzBIQRw+7BEQy9LGj2O5vrCE9V3EpK06FYo1tQ==} cpu: [arm64] os: [openharmony]
'@rollup/rollup-win32-arm64-msvc@4.66.0': resolution: {integrity: sha512-u7aTfS3R6C4hRsqXSzaO6qLZYLVuMkHMvcWlux4IM8IJif1VCl2cgPBSo5gSNoFoStQypQP+qwq8W1IyFBf1QQ==} cpu: [arm64] os: [win32]
'@rollup/rollup-win32-ia32-msvc@4.66.0': resolution: {integrity: sha512-e+i9ueHrH1Bafb0cf0woAIVJbYcoC8vRaD+vz+Xi8w6jz9cYJSV3vyKO6ELGSZ6g4W4MJOm2WPLN4/nQf77h7w==} cpu: [ia32] os: [win32]
'@rollup/rollup-win32-x64-gnu@4.66.0': resolution: {integrity: sha512-KfTCbrtr2zXTqH2E1F+uYlFTrYibxHKqPAHobpd8Kfg49cEHmuHebOidCTDRgqG1suaPFX7oejFQeGE71zWKfA==} cpu: [x64] os: [win32]
'@rollup/rollup-win32-x64-msvc@4.66.0': resolution: {integrity: sha512-xA+neBh1bqkqaS3b48T2UHZnDsTIpb9B0h+TdBzynjF/ymCpYndhfY10RqW0qSKB1HqqQA83mINVhAdwA+mETg==} cpu: [x64] os: [win32]
'@turbo/darwin-64@2.11.10': resolution: {integrity: sha512-By4idRap5+nLnMuRzLB4qkOPRlvNdyY1ne4VJYDyUoUB11H94k7uif9mbe3JT8JSNXs1D68uMcBj6hJ/jMQRvA==} cpu: [x64] os: [darwin]
'@turbo/darwin-arm64@2.11.10': resolution: {integrity: sha512-pyEYlVcuexOPa92p0Wlwl9YT1Is5D60lxN3ItWm3g30YLvFaUq86TF4BBWg5ZAc0uMTnrOzCvuCsOBTdzUWnRQ==} cpu: [arm64] os: [darwin]
'@turbo/linux-64@2.11.10': resolution: {integrity: sha512-1tYeR/IDZ5HEdsb0jNq2L2xam5nMQ+g80tlV2BZmv4OFw+pMcUM0mMmUcfc5wXPPNHVNPuDMjh9Y8G8HgXPLZA==} cpu: [x64] os: [android, linux]
'@turbo/linux-arm64@2.11.10': resolution: {integrity: sha512-HuekQxvVGhUd46g1Im/DKdOtglHr4/gguZAvzEpPUgtxNkztSa8lWhQEGQ+EmPQ0n7w19qjThFU+OfEEd0uvlw==} cpu: [arm64] os: [android, linux]
'@turbo/windows-64@2.11.10': resolution: {integrity: sha512-UJOP3BkbreY3/JlMgJR6ZiimxYIBn+c+B4tnBIxD0E9c3Estmk+XoVNVBNBottZLNRXe3/ScgOU4+/k8tIWysg==} cpu: [x64] os: [win32]
'@turbo/windows-arm64@2.11.10': resolution: {integrity: sha512-xOkEjF3ws/b/YNlc+bvJHMYBn+vL+QbEISZFVi0qS+ImmhA1X3/gmNmBrjjIG3dg6aeN+n6gQitzSkXQ286qJQ==} cpu: [arm64] os: [win32]
'@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}
'@types/babel__generator@7.27.0': resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==}
'@types/babel__template@7.4.4': resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==}
'@types/babel__traverse@7.28.0': resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==}
'@types/estree@1.0.9': resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}
'@types/node@22.20.5': resolution: {integrity: sha512-U2+DNr+wSjpsTS/wZGYHq7GcwfuSmKiKvoPvK22zwTlRhU91yOniN4qRR5KhIjvif7ysw/dz/hKmfDH0Ris4aA==}
'@types/prop-types@15.7.15': resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==}
'@types/react-dom@18.3.7': resolution: {integrity: sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==} peerDependencies: '@types/react': ^18.0.0
'@types/react@18.3.31': resolution: {integrity: sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==}
'@vitejs/plugin-react@4.7.0': resolution: {integrity: sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0
'@xmldom/xmldom@0.8.15': resolution: {integrity: sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==} engines: {node: '>=10.0.0'}
baseline-browser-mapping@2.11.34: resolution: {integrity: sha512-Aqr8mA1kIvyJ3UY5YAY7ib8LSo1DmDMbMnVqGPtsKW1LxaFQFwn9Eb3yvq2fUKJsRvaXjnAV7R5osqETapzNiA==} engines: {node: '>=6.0.0'} hasBin: true
browserslist@4.29.5: resolution: {integrity: sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true
caniuse-lite@1.0.30001820: resolution: {integrity: sha512-gfWD6MxqVCqAOwmODfZf7DchWvlrA+SRdNX7ceLfg3xRqe5ssjjpF7EgslC/0tiLiNTajdaNN/q8c/5u/7Gz8w==}
convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
csstype@3.2.3: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' peerDependenciesMeta: supports-color: optional: true
drizzle-orm@0.45.4: resolution: {integrity: sha512-NiM1YZpJ2UxyeE67DpDDZ+Tsw4YLX3trSlkNT7Tm9eKoUNb1LvaAaQzXgYQsWs+AQ9TUmmwMmBOCXuqqxUWKKQ==} peerDependencies: '@aws-sdk/client-rds-data': '>=3' '@cloudflare/workers-types': '>=4' '@electric-sql/pglite': '>=0.2.0' '@libsql/client': '>=0.10.0' '@libsql/client-wasm': '>=0.10.0' '@neondatabase/serverless': '>=0.10.0' '@netlify/db': '>=0.4.0' '@op-engineering/op-sqlite': '>=2' '@opentelemetry/api': ^1.4.1 '@planetscale/database': '>=1.13' '@prisma/client': '*' '@tidbcloud/serverless': '*' '@types/better-sqlite3': '*' '@types/pg': '*' '@types/sql.js': '*' '@upstash/redis': '>=1.34.7' '@vercel/postgres': '>=0.8.0' '@xata.io/client': '*' better-sqlite3: '>=7' bun-types: '*' expo-sqlite: '>=14.0.0' gel: '>=2' knex: '*' kysely: '*' mysql2: '>=2' pg: '>=8' postgres: '>=3' prisma: '*' sql.js: '>=1' sqlite3: '>=5' peerDependenciesMeta: '@aws-sdk/client-rds-data': optional: true '@cloudflare/workers-types': optional: true '@electric-sql/pglite': optional: true '@libsql/client': optional: true '@libsql/client-wasm': optional: true '@neondatabase/serverless': optional: true '@netlify/db': optional: true '@op-engineering/op-sqlite': optional: true '@opentelemetry/api': optional: true '@planetscale/database': optional: true '@prisma/client': optional: true '@tidbcloud/serverless': optional: true '@types/better-sqlite3': optional: true '@types/pg': optional: true '@types/sql.js': optional: true '@upstash/redis': optional: true '@vercel/postgres': optional: true '@xata.io/client': optional: true better-sqlite3: optional: true bun-types: optional: true expo-sqlite: optional: true gel: optional: true knex: optional: true kysely: optional: true mysql2: optional: true pg: optional: true postgres: optional: true prisma: optional: true sql.js: optional: true sqlite3: optional: true
electron-to-chromium@1.5.468: resolution: {integrity: sha512-8XdEp3sIqO+PzmVPxhzqHq/3+yCxp44m27cm2WY1sRn3ZhwKyKmqSi2hx6gEhmnOXmh8NUuYE00z6Onzn5m6DA==}
esbuild@0.21.5: resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} engines: {node: '>=12'} hasBin: true
esbuild@0.28.2: resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} engines: {node: '>=18'} hasBin: true
escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'}
fast-xml-parser@4.5.7: resolution: {integrity: sha512-a6Qh1RMCNbSrU1+sAyAAZH3rTe+OaWJbNZIq0S+ifZciUUOQtlVxBJwoTUE2bYhysmG/RYyI5WJFIKdBahJdrQ==} hasBin: true
fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin]
gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'}
js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
jsesc@3.1.0: resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} engines: {node: '>=6'} hasBin: true
json5@2.2.3: resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} engines: {node: '>=6'} hasBin: true
loose-envify@1.4.0: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true
lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
nanoid@3.3.20: resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true
node-releases@2.0.61: resolution: {integrity: sha512-5NUN6QCxNFrS9oEA9RPS+d0AP+ooGBzzovY2JhIpDRHacPvOhHjXjUsUMX9qp4nLHZ+5jVgXB2jj/P4arGOE/g==} engines: {node: '>=18'}
picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
postcss@8.5.32: resolution: {integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==} engines: {node: ^10 || ^12 || >=14}
react-dom@18.3.1: resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} peerDependencies: react: ^18.3.1
react-refresh@0.17.0: resolution: {integrity: sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==} engines: {node: '>=0.10.0'}
react@18.3.1: resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} engines: {node: '>=0.10.0'}
rollup@4.66.0: resolution: {integrity: sha512-Onq6/qO4ARhxIs+jYiHE0pYehadLyMECAiGEqQ+0/aWND3+2PmifJIIqBLYtuBODqHTlOUEQFtIVPyCy0Lck7A==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true
scheduler@0.23.2: resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}
semver@6.3.1: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true
source-map-js@1.2.2: resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} engines: {node: '>=0.10.0'}
strnum@1.1.2: resolution: {integrity: sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA==}
tsx@4.23.15: resolution: {integrity: sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw==} engines: {node: '>=18.0.0'} hasBin: true
turbo@2.11.10: resolution: {integrity: sha512-3GJYwig8ygEI89oaOZdduJX8/aw6O9eRPYHoIt6T3FZl9hkKjiyIspufJoVgqXihPoJu8M5CSV0DlZvzfohBCw==} hasBin: true
typescript@5.9.3: resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} engines: {node: '>=14.17'} hasBin: true
undici-types@6.21.0: resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
update-browserslist-db@1.3.4: resolution: {integrity: sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==} hasBin: true peerDependencies: browserslist: '>= 4.21.0'
vite@5.4.21: resolution: {integrity: sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@types/node': ^18.0.0 || >=20.0.0 less: '*' lightningcss: ^1.21.0 sass: '*' sass-embedded: '*' stylus: '*' sugarss: '*' terser: ^5.4.0 peerDependenciesMeta: '@types/node': optional: true less: optional: true lightningcss: optional: true sass: optional: true sass-embedded: optional: true stylus: optional: true sugarss: optional: true terser: optional: true
xpath@0.0.34: resolution: {integrity: sha512-FxF6+rkr1rNSQrhUNYrAFJpRXNzlDoMxeXN5qI84939ylEv3qqPFKa85Oxr6tDaJKqwW6KKyo2v26TSv3k6LeA==} engines: {node: '>=0.6.0'}
yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
zod@3.25.76: resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
snapshots:
'@babel/code-frame@7.29.7': dependencies: '@babel/helper-validator-identifier': 7.29.7 js-tokens: 4.0.0 picocolors: 1.1.1
'@babel/compat-data@7.29.7': {}
'@babel/core@7.29.7': dependencies: '@babel/code-frame': 7.29.7 '@babel/generator': 7.29.12 '@babel/helper-compilation-targets': 7.29.7 '@babel/helper-module-transforms': 7.29.7(@babel/core@7.29.7) '@babel/helpers': 7.29.10 '@babel/parser': 7.29.12 '@babel/template': 7.29.7 '@babel/traverse': 7.29.12 '@babel/types': 7.29.11 '@jridgewell/remapping': 2.3.5 convert-source-map: 2.0.0 debug: 4.4.3 gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 transitivePeerDependencies: - supports-color
'@babel/generator@7.29.12': dependencies: '@babel/parser': 7.29.12 '@babel/types': 7.29.11 '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 jsesc: 3.1.0
'@babel/helper-compilation-targets@7.29.7': dependencies: '@babel/compat-data': 7.29.7 '@babel/helper-validator-option': 7.29.7 browserslist: 4.29.5 lru-cache: 5.1.1 semver: 6.3.1
'@babel/helper-globals@7.29.7': {}
'@babel/helper-module-imports@7.29.7': dependencies: '@babel/traverse': 7.29.12 '@babel/types': 7.29.11 transitivePeerDependencies: - supports-color
'@babel/helper-module-transforms@7.29.7(@babel/core@7.29.7)': dependencies: '@babel/core': 7.29.7 '@babel/helper-module-imports': 7.29.7 '@babel/helper-validator-identifier': 7.29.7 '@babel/traverse': 7.29.12 transitivePeerDependencies: - supports-color
'@babel/helper-plugin-utils@7.29.7': {}
'@babel/helper-string-parser@7.29.11': {}
'@babel/helper-validator-identifier@7.29.7': {}
'@babel/helper-validator-option@7.29.7': {}
'@babel/helpers@7.29.10': dependencies: '@babel/template': 7.29.7 '@babel/types': 7.29.11
'@babel/parser@7.29.12': dependencies: '@babel/types': 7.29.11
'@babel/plugin-transform-react-jsx-self@7.29.7(@babel/core@7.29.7)': dependencies: '@babel/core': 7.29.7 '@babel/helper-plugin-utils': 7.29.7
'@babel/plugin-transform-react-jsx-source@7.29.7(@babel/core@7.29.7)': dependencies: '@babel/core': 7.29.7 '@babel/helper-plugin-utils': 7.29.7
'@babel/template@7.29.7': dependencies: '@babel/code-frame': 7.29.7 '@babel/parser': 7.29.12 '@babel/types': 7.29.11
'@babel/traverse@7.29.12': dependencies: '@babel/code-frame': 7.29.7 '@babel/generator': 7.29.12 '@babel/helper-globals': 7.29.7 '@babel/parser': 7.29.12 '@babel/template': 7.29.7 '@babel/types': 7.29.11 debug: 4.4.3 transitivePeerDependencies: - supports-color
'@babel/types@7.29.11': dependencies: '@babel/helper-string-parser': 7.29.11 '@babel/helper-validator-identifier': 7.29.7
'@esbuild/aix-ppc64@0.21.5': optional: true
'@esbuild/aix-ppc64@0.28.2': optional: true
'@esbuild/android-arm64@0.21.5': optional: true
'@esbuild/android-arm64@0.28.2': optional: true
'@esbuild/android-arm@0.21.5': optional: true
'@esbuild/android-arm@0.28.2': optional: true
'@esbuild/android-x64@0.21.5': optional: true
'@esbuild/android-x64@0.28.2': optional: true
'@esbuild/darwin-arm64@0.21.5': optional: true
'@esbuild/darwin-arm64@0.28.2': optional: true
'@esbuild/darwin-x64@0.21.5': optional: true
'@esbuild/darwin-x64@0.28.2': optional: true
'@esbuild/freebsd-arm64@0.21.5': optional: true
'@esbuild/freebsd-arm64@0.28.2': optional: true
'@esbuild/freebsd-x64@0.21.5': optional: true
'@esbuild/freebsd-x64@0.28.2': optional: true
'@esbuild/linux-arm64@0.21.5': optional: true
'@esbuild/linux-arm64@0.28.2': optional: true
'@esbuild/linux-arm@0.21.5': optional: true
'@esbuild/linux-arm@0.28.2': optional: true
'@esbuild/linux-ia32@0.21.5': optional: true
'@esbuild/linux-ia32@0.28.2': optional: true
'@esbuild/linux-loong64@0.21.5': optional: true
'@esbuild/linux-loong64@0.28.2': optional: true
'@esbuild/linux-mips64el@0.21.5': optional: true
'@esbuild/linux-mips64el@0.28.2': optional: true
'@esbuild/linux-ppc64@0.21.5': optional: true
'@esbuild/linux-ppc64@0.28.2': optional: true
'@esbuild/linux-riscv64@0.21.5': optional: true
'@esbuild/linux-riscv64@0.28.2': optional: true
'@esbuild/linux-s390x@0.21.5': optional: true
'@esbuild/linux-s390x@0.28.2': optional: true
'@esbuild/linux-x64@0.21.5': optional: true
'@esbuild/linux-x64@0.28.2': optional: true
'@esbuild/netbsd-arm64@0.28.2': optional: true
'@esbuild/netbsd-x64@0.21.5': optional: true
'@esbuild/netbsd-x64@0.28.2': optional: true
'@esbuild/openbsd-arm64@0.28.2': optional: true
'@esbuild/openbsd-x64@0.21.5': optional: true
'@esbuild/openbsd-x64@0.28.2': optional: true
'@esbuild/openharmony-arm64@0.28.2': optional: true
'@esbuild/sunos-x64@0.21.5': optional: true
'@esbuild/sunos-x64@0.28.2': optional: true
'@esbuild/win32-arm64@0.21.5': optional: true
'@esbuild/win32-arm64@0.28.2': optional: true
'@esbuild/win32-ia32@0.21.5': optional: true
'@esbuild/win32-ia32@0.28.2': optional: true
'@esbuild/win32-x64@0.21.5': optional: true
'@esbuild/win32-x64@0.28.2': optional: true
'@jridgewell/gen-mapping@0.3.13': dependencies: '@jridgewell/sourcemap-codec': 1.6.0 '@jridgewell/trace-mapping': 0.3.31
'@jridgewell/remapping@2.3.5': dependencies: '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31
'@jridgewell/resolve-uri@3.1.2': {}
'@jridgewell/sourcemap-codec@1.6.0': {}
'@jridgewell/trace-mapping@0.3.31': dependencies: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.6.0
'@napi-rs/lzma-linux-x64-gnu@1.5.1': optional: true
'@rolldown/pluginutils@1.0.0-beta.27': {}
'@rollup/rollup-android-arm-eabi@4.66.0': optional: true
'@rollup/rollup-android-arm64@4.66.0': optional: true
'@rollup/rollup-darwin-arm64@4.66.0': optional: true
'@rollup/rollup-darwin-x64@4.66.0': optional: true
'@rollup/rollup-freebsd-arm64@4.66.0': optional: true
'@rollup/rollup-freebsd-x64@4.66.0': optional: true
'@rollup/rollup-linux-arm-gnueabihf@4.66.0': optional: true
'@rollup/rollup-linux-arm-musleabihf@4.66.0': optional: true
'@rollup/rollup-linux-arm64-gnu@4.66.0': optional: true
'@rollup/rollup-linux-arm64-musl@4.66.0': optional: true
'@rollup/rollup-linux-loong64-gnu@4.66.0': optional: true
'@rollup/rollup-linux-loong64-musl@4.66.0': optional: true
'@rollup/rollup-linux-ppc64-gnu@4.66.0': optional: true
'@rollup/rollup-linux-ppc64-musl@4.66.0': optional: true
'@rollup/rollup-linux-riscv64-gnu@4.66.0': optional: true
'@rollup/rollup-linux-riscv64-musl@4.66.0': optional: true
'@rollup/rollup-linux-s390x-gnu@4.66.0': optional: true
'@rollup/rollup-linux-x64-gnu@4.66.0': optional: true
'@rollup/rollup-linux-x64-musl@4.66.0': optional: true
'@rollup/rollup-openbsd-x64@4.66.0': optional: true
'@rollup/rollup-openharmony-arm64@4.66.0': optional: true
'@rollup/rollup-win32-arm64-msvc@4.66.0': optional: true
'@rollup/rollup-win32-ia32-msvc@4.66.0': optional: true
'@rollup/rollup-win32-x64-gnu@4.66.0': optional: true
'@rollup/rollup-win32-x64-msvc@4.66.0': optional: true
'@turbo/darwin-64@2.11.10': optional: true
'@turbo/darwin-arm64@2.11.10': optional: true
'@turbo/linux-64@2.11.10': optional: true
'@turbo/linux-arm64@2.11.10': optional: true
'@turbo/windows-64@2.11.10': optional: true
'@turbo/windows-arm64@2.11.10': optional: true
'@types/babel__core@7.20.5': dependencies: '@babel/parser': 7.29.12 '@babel/types': 7.29.11 '@types/babel__generator': 7.27.0 '@types/babel__template': 7.4.4 '@types/babel__traverse': 7.28.0
'@types/babel__generator@7.27.0': dependencies: '@babel/types': 7.29.11
'@types/babel__template@7.4.4': dependencies: '@babel/parser': 7.29.12 '@babel/types': 7.29.11
'@types/babel__traverse@7.28.0': dependencies: '@babel/types': 7.29.11
'@types/estree@1.0.9': {}
'@types/node@22.20.5': dependencies: undici-types: 6.21.0
'@types/prop-types@15.7.15': {}
'@types/react-dom@18.3.7(@types/react@18.3.31)': dependencies: '@types/react': 18.3.31
'@types/react@18.3.31': dependencies: '@types/prop-types': 15.7.15 csstype: 3.2.3
'@vitejs/plugin-react@4.7.0(vite@5.4.21(@types/node@22.20.5))': dependencies: '@babel/core': 7.29.7 '@babel/plugin-transform-react-jsx-self': 7.29.7(@babel/core@7.29.7) '@babel/plugin-transform-react-jsx-source': 7.29.7(@babel/core@7.29.7) '@rolldown/pluginutils': 1.0.0-beta.27 '@types/babel__core': 7.20.5 react-refresh: 0.17.0 vite: 5.4.21(@types/node@22.20.5) transitivePeerDependencies: - supports-color
'@xmldom/xmldom@0.8.15': {}
baseline-browser-mapping@2.11.34: {}
browserslist@4.29.5: dependencies: baseline-browser-mapping: 2.11.34 caniuse-lite: 1.0.30001820 electron-to-chromium: 1.5.468 node-releases: 2.0.61 update-browserslist-db: 1.3.4(browserslist@4.29.5)
caniuse-lite@1.0.30001820: {}
convert-source-map@2.0.0: {}
csstype@3.2.3: {}
debug@4.4.3: dependencies: ms: 2.1.3
drizzle-orm@0.45.4: {}
electron-to-chromium@1.5.468: {}
esbuild@0.21.5: optionalDependencies: '@esbuild/aix-ppc64': 0.21.5 '@esbuild/android-arm': 0.21.5 '@esbuild/android-arm64': 0.21.5 '@esbuild/android-x64': 0.21.5 '@esbuild/darwin-arm64': 0.21.5 '@esbuild/darwin-x64': 0.21.5 '@esbuild/freebsd-arm64': 0.21.5 '@esbuild/freebsd-x64': 0.21.5 '@esbuild/linux-arm': 0.21.5 '@esbuild/linux-arm64': 0.21.5 '@esbuild/linux-ia32': 0.21.5 '@esbuild/linux-loong64': 0.21.5 '@esbuild/linux-mips64el': 0.21.5 '@esbuild/linux-ppc64': 0.21.5 '@esbuild/linux-riscv64': 0.21.5 '@esbuild/linux-s390x': 0.21.5 '@esbuild/linux-x64': 0.21.5 '@esbuild/netbsd-x64': 0.21.5 '@esbuild/openbsd-x64': 0.21.5 '@esbuild/sunos-x64': 0.21.5 '@esbuild/win32-arm64': 0.21.5 '@esbuild/win32-ia32': 0.21.5 '@esbuild/win32-x64': 0.21.5
esbuild@0.28.2: optionalDependencies: '@esbuild/aix-ppc64': 0.28.2 '@esbuild/android-arm': 0.28.2 '@esbuild/android-arm64': 0.28.2 '@esbuild/android-x64': 0.28.2 '@esbuild/darwin-arm64': 0.28.2 '@esbuild/darwin-x64': 0.28.2 '@esbuild/freebsd-arm64': 0.28.2 '@esbuild/freebsd-x64': 0.28.2 '@esbuild/linux-arm': 0.28.2 '@esbuild/linux-arm64': 0.28.2 '@esbuild/linux-ia32': 0.28.2 '@esbuild/linux-loong64': 0.28.2 '@esbuild/linux-mips64el': 0.28.2 '@esbuild/linux-ppc64': 0.28.2 '@esbuild/linux-riscv64': 0.28.2 '@esbuild/linux-s390x': 0.28.2 '@esbuild/linux-x64': 0.28.2 '@esbuild/netbsd-arm64': 0.28.2 '@esbuild/netbsd-x64': 0.28.2 '@esbuild/openbsd-arm64': 0.28.2 '@esbuild/openbsd-x64': 0.28.2 '@esbuild/openharmony-arm64': 0.28.2 '@esbuild/sunos-x64': 0.28.2 '@esbuild/win32-arm64': 0.28.2 '@esbuild/win32-ia32': 0.28.2 '@esbuild/win32-x64': 0.28.2
escalade@3.2.0: {}
fast-xml-parser@4.5.7: dependencies: strnum: 1.1.2
fsevents@2.3.3: optional: true
gensync@1.0.0-beta.2: {}
js-tokens@4.0.0: {}
jsesc@3.1.0: {}
json5@2.2.3: {}
loose-envify@1.4.0: dependencies: js-tokens: 4.0.0
lru-cache@5.1.1: dependencies: yallist: 3.1.1
ms@2.1.3: {}
nanoid@3.3.20: {}
node-releases@2.0.61: {}
picocolors@1.1.1: {}
postcss@8.5.32: dependencies: nanoid: 3.3.20 picocolors: 1.1.1 source-map-js: 1.2.2
react-dom@18.3.1(react@18.3.1): dependencies: loose-envify: 1.4.0 react: 18.3.1 scheduler: 0.23.2
react-refresh@0.17.0: {}
react@18.3.1: dependencies: loose-envify: 1.4.0
rollup@4.66.0: dependencies: '@types/estree': 1.0.9 optionalDependencies: '@napi-rs/lzma-linux-x64-gnu': 1.5.1 '@rollup/rollup-android-arm-eabi': 4.66.0 '@rollup/rollup-android-arm64': 4.66.0 '@rollup/rollup-darwin-arm64': 4.66.0 '@rollup/rollup-darwin-x64': 4.66.0 '@rollup/rollup-freebsd-arm64': 4.66.0 '@rollup/rollup-freebsd-x64': 4.66.0 '@rollup/rollup-linux-arm-gnueabihf': 4.66.0 '@rollup/rollup-linux-arm-musleabihf': 4.66.0 '@rollup/rollup-linux-arm64-gnu': 4.66.0 '@rollup/rollup-linux-arm64-musl': 4.66.0 '@rollup/rollup-linux-loong64-gnu': 4.66.0 '@rollup/rollup-linux-loong64-musl': 4.66.0 '@rollup/rollup-linux-ppc64-gnu': 4.66.0 '@rollup/rollup-linux-ppc64-musl': 4.66.0 '@rollup/rollup-linux-riscv64-gnu': 4.66.0 '@rollup/rollup-linux-riscv64-musl': 4.66.0 '@rollup/rollup-linux-s390x-gnu': 4.66.0 '@rollup/rollup-linux-x64-gnu': 4.66.0 '@rollup/rollup-linux-x64-musl': 4.66.0 '@rollup/rollup-openbsd-x64': 4.66.0 '@rollup/rollup-openharmony-arm64': 4.66.0 '@rollup/rollup-win32-arm64-msvc': 4.66.0 '@rollup/rollup-win32-ia32-msvc': 4.66.0 '@rollup/rollup-win32-x64-gnu': 4.66.0 '@rollup/rollup-win32-x64-msvc': 4.66.0 fsevents: 2.3.3
scheduler@0.23.2: dependencies: loose-envify: 1.4.0
semver@6.3.1: {}
source-map-js@1.2.2: {}
strnum@1.1.2: {}
tsx@4.23.15: dependencies: esbuild: 0.28.2 optionalDependencies: fsevents: 2.3.3
turbo@2.11.10: optionalDependencies: '@turbo/darwin-64': 2.11.10 '@turbo/darwin-arm64': 2.11.10 '@turbo/linux-64': 2.11.10 '@turbo/linux-arm64': 2.11.10 '@turbo/windows-64': 2.11.10 '@turbo/windows-arm64': 2.11.10
typescript@5.9.3: {}
undici-types@6.21.0: {}
update-browserslist-db@1.3.4(browserslist@4.29.5): dependencies: browserslist: 4.29.5 escalade: 3.2.0 picocolors: 1.1.1
vite@5.4.21(@types/node@22.20.5): dependencies: esbuild: 0.21.5 postcss: 8.5.32 rollup: 4.66.0 optionalDependencies: '@types/node': 22.20.5 fsevents: 2.3.3
xpath@0.0.34: {}
yallist@3.1.1: {}
zod@3.25.76: {}1234packages: - apps/* - packages/* - services/*1234567891011# Wallet service — copy to .env and fill with TEST values only. Never commit real values.PORT=7860WALLET_USER_ID=00000000-0000-0000-0000-000000000001STRIPE_SECRET_KEY=sk_test_REPLACE_MESTRIPE_WEBHOOK_SECRET=whsec_REPLACE_MESTRIPE_SUCCESS_URL=http://localhost:7860/funding/successSTRIPE_CANCEL_URL=http://localhost:7860/funding/cancelSUPABASE_URL=https://YOUR_PROJECT.supabase.coSUPABASE_SERVICE_ROLE_KEY=REPLACE_ME# Set to "memory" to run without Supabase (dev/tests)WALLET_STORE=supabase12345# @projectos/wallet
Personal-use wallet backend (TEST mode only): double-entry ledger, Stripe test funding(Checkout / PaymentIntents + signature-verified webhooks), QR-invoice payment routing,Supabase persistence. See root README "Wallet service" section.123456789101112131415161718192021222324252627{ "name": "@projectos/wallet", "version": "0.1.0", "private": true, "type": "module", "main": "dist/index.js", "scripts": { "build": "tsc -p tsconfig.json", "start": "node dist/index.js", "dev": "tsx watch src/index.ts", "test": "vitest run", "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { "@supabase/supabase-js": "^2.45.0", "express": "^4.21.0", "stripe": "^17.0.0", "zod": "^3.23.8" }, "devDependencies": { "@types/express": "^4.17.21", "@types/node": "^20.14.0", "tsx": "^4.19.0", "typescript": "^5.6.3", "vitest": "^2.1.0" }}123456789101112131415161718192021222324252627282930313233343536373839import express from "express";import type Stripe from "stripe";import type { Config } from "./config.js";import { Ledger, LedgerError } from "./ledger.js";import { parseInvoiceQr, payInvoice, InvoiceSchema } from "./routing.js";import { createFundingCheckout, createFundingPaymentIntent, handleWebhook } from "./stripe.js";
export function buildApp(cfg: Config, ledger: Ledger, stripe: Stripe) { const app = express(); const userId = cfg.WALLET_USER_ID; // single-user now; replace with auth-derived id for multi-user
app.post("/webhooks/stripe", express.raw({ type: "application/json" }), async (req, res) => { try { const ev = await handleWebhook(stripe, ledger, req.body, req.header("stripe-signature"), cfg.STRIPE_WEBHOOK_SECRET); res.json({ received: true, type: ev.type }); } catch (e) { res.status(400).json({ error: (e as Error).message }); } });
app.use(express.json({ limit: "32kb" })); app.get("/healthz", (_req, res) => res.json({ ok: true, mode: "test" })); app.get("/wallet/balance", async (req, res, next) => { try { const currency = String(req.query.currency ?? "usd"); res.json({ currency, balance: await ledger.walletBalance(userId, currency) }); } catch (e) { next(e); } }); app.get("/wallet/transactions", async (_req, res, next) => { try { res.json(await ledger.list(userId)); } catch (e) { next(e); } }); app.post("/funding/checkout", async (req, res, next) => { try { const s = await createFundingCheckout(stripe, userId, Number(req.body.amount), String(req.body.currency ?? "usd"), cfg.STRIPE_SUCCESS_URL, cfg.STRIPE_CANCEL_URL); res.json({ id: s.id, url: s.url }); } catch (e) { next(e); } }); app.post("/funding/payment-intent", async (req, res, next) => { try { const pi = await createFundingPaymentIntent(stripe, userId, Number(req.body.amount), String(req.body.currency ?? "usd")); res.json({ id: pi.id, client_secret: pi.client_secret }); } catch (e) { next(e); } }); app.post("/invoices/pay", async (req, res, next) => { try { const invoice = typeof req.body.qr === "string" ? parseInvoiceQr(req.body.qr) : InvoiceSchema.parse(req.body.invoice); res.json(await payInvoice(ledger, userId, invoice)); } catch (e) { next(e); } }); app.use((err: Error, _req: express.Request, res: express.Response, _next: express.NextFunction) => { res.status(err instanceof LedgerError || err.name === "ZodError" ? 422 : 500).json({ error: err.message }); }); return app;}1234567891011121314151617181920212223242526272829303132333435363738import { z } from "zod";
const schema = z.object({ PORT: z.coerce.number().default(7860), WALLET_USER_ID: z.string().min(1), STRIPE_SECRET_KEY: z.string().min(1), STRIPE_WEBHOOK_SECRET: z.string().min(1), STRIPE_SUCCESS_URL: z.string().url().default("http://localhost:7860/funding/success"), STRIPE_CANCEL_URL: z.string().url().default("http://localhost:7860/funding/cancel"), SUPABASE_URL: z.string().optional(), SUPABASE_SERVICE_ROLE_KEY: z.string().optional(), WALLET_STORE: z.enum(["supabase", "memory"]).default("supabase"),});export type Config = z.infer<typeof schema>;
/** Hard safety guards: test-mode only, no real-money paths, no Apple Pay credentials. */export function assertSafeEnv(env: Record<string, string | undefined>): void { const key = env.STRIPE_SECRET_KEY ?? ""; if (key.startsWith("sk_live_") || key.startsWith("rk_live_")) { throw new Error("Refusing to start: live Stripe key detected. Wallet is TEST-mode only."); } if (key && !key.startsWith("sk_test_") && !key.startsWith("rk_test_")) { throw new Error("Refusing to start: STRIPE_SECRET_KEY must be a test key (sk_test_/rk_test_)."); } const forbidden = Object.keys(env).filter((k) => /APPLE_?PAY|PRIVATE_?RELAY|MERCHANT_IDENTITY/i.test(k)); if (forbidden.length) { throw new Error(`Refusing to start: Apple Pay / private relay credentials are not allowed (${forbidden.join(", ")}).`); }}
export function loadConfig(env: Record<string, string | undefined> = process.env): Config { assertSafeEnv(env); const cfg = schema.parse(env); if (cfg.WALLET_STORE === "supabase" && (!cfg.SUPABASE_URL || !cfg.SUPABASE_SERVICE_ROLE_KEY)) { throw new Error("SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY are required when WALLET_STORE=supabase"); } return cfg;}1234567891011import { loadConfig } from "./config.js";import { Ledger } from "./ledger.js";import { MemoryStore } from "./memoryStore.js";import { SupabaseStore } from "./supabaseStore.js";import { makeStripe } from "./stripe.js";import { buildApp } from "./app.js";
const cfg = loadConfig(); // throws on sk_live_ / Apple Pay credsconst store = cfg.WALLET_STORE === "memory" ? new MemoryStore() : new SupabaseStore(cfg.SUPABASE_URL!, cfg.SUPABASE_SERVICE_ROLE_KEY!);const app = buildApp(cfg, new Ledger(store), makeStripe(cfg.STRIPE_SECRET_KEY));app.listen(cfg.PORT, "0.0.0.0", () => console.log(`wallet (TEST mode) listening on :${cfg.PORT}`));12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152import { randomUUID } from "node:crypto";import type { AccountKind, LedgerStore, Posting, Transaction } from "./types.js";
export class LedgerError extends Error {}
/** * Double-entry ledger. Sign convention: wallet balance = -(sum of postings) on the * user_wallet account (liability, credit-normal). Every transaction sums to zero. */export class Ledger { constructor(private store: LedgerStore) {}
static validate(postings: Posting[]): void { if (postings.length < 2) throw new LedgerError("transaction needs >= 2 postings"); for (const p of postings) { if (!Number.isSafeInteger(p.amount) || p.amount === 0) throw new LedgerError("amounts must be non-zero integers (minor units)"); } const sum = postings.reduce((s, p) => s + p.amount, 0); if (sum !== 0) throw new LedgerError(`unbalanced transaction (sum=${sum})`); }
account(userId: string, kind: AccountKind, currency = "usd") { return this.store.getOrCreateAccount(userId, kind, currency.toLowerCase()); }
async walletBalance(userId: string, currency = "usd"): Promise<number> { const acct = await this.account(userId, "user_wallet", currency); return -(await this.store.balance(acct.id)); }
async post(input: Omit<Transaction, "id" | "created_at">): Promise<Transaction> { Ledger.validate(input.postings); const existing = await this.store.findTransactionByKey(input.user_id, input.idempotency_key); if (existing) return existing; const tx: Transaction = { ...input, id: randomUUID(), created_at: new Date().toISOString() }; await this.store.insertTransaction(tx); return tx; }
/** Credit wallet from a confirmed Stripe TEST payment. */ async recordFunding(userId: string, amount: number, currency: string, stripeRef: string) { if (amount <= 0) throw new LedgerError("funding amount must be positive"); const clearing = await this.account(userId, "stripe_clearing", currency); const wallet = await this.account(userId, "user_wallet", currency); return this.post({ user_id: userId, kind: "funding", idempotency_key: `stripe:${stripeRef}`, memo: "Stripe test funding", postings: [{ account_id: clearing.id, amount }, { account_id: wallet.id, amount: -amount }], }); }
list(userId: string, limit = 50) { return this.store.listTransactions(userId, limit); }}12345678910111213141516171819202122import { randomUUID } from "node:crypto";import type { Account, AccountKind, LedgerStore, Transaction } from "./types.js";
export class MemoryStore implements LedgerStore { accounts: Account[] = []; txs: Transaction[] = []; async getOrCreateAccount(userId: string, kind: AccountKind, currency: string) { let a = this.accounts.find((x) => x.user_id === userId && x.kind === kind && x.currency === currency); if (!a) { a = { id: randomUUID(), user_id: userId, kind, currency }; this.accounts.push(a); } return a; } async findTransactionByKey(userId: string, key: string) { return this.txs.find((t) => t.user_id === userId && t.idempotency_key === key) ?? null; } async insertTransaction(tx: Transaction) { this.txs.push(structuredClone(tx)); } async balance(accountId: string) { return this.txs.flatMap((t) => t.postings).filter((p) => p.account_id === accountId).reduce((s, p) => s + p.amount, 0); } async listTransactions(userId: string, limit = 50) { return this.txs.filter((t) => t.user_id === userId).slice(-limit).reverse(); }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152import { z } from "zod";import { Ledger, LedgerError } from "./ledger.js";
/** Invoice payload as decoded from a scanned QR code (JSON or projectos-invoice: URI). */export const InvoiceSchema = z.object({ v: z.literal(1), invoice_id: z.string().min(1).max(128), merchant_id: z.string().min(1).max(128), merchant_name: z.string().max(200).optional(), amount: z.number().int().positive(), // minor units currency: z.string().length(3).transform((c) => c.toLowerCase()), due_at: z.string().datetime().optional(),});export type Invoice = z.infer<typeof InvoiceSchema>;
export function parseInvoiceQr(raw: string): Invoice { let obj: unknown; const s = raw.trim(); if (s.startsWith("projectos-invoice:")) { const params = new URLSearchParams(s.slice("projectos-invoice:".length).replace(/^\?/, "")); obj = Object.fromEntries(params); const o = obj as Record<string, unknown>; o.v = Number(o.v); o.amount = Number(o.amount); } else { try { obj = JSON.parse(s); } catch { throw new LedgerError("invalid invoice QR payload"); } } const r = InvoiceSchema.safeParse(obj); if (!r.success) throw new LedgerError(`invalid invoice: ${r.error.issues.map((i) => i.path.join(".") + " " + i.message).join("; ")}`); return r.data;}
/** * Pay an invoice from wallet balance. INTERNAL LEDGER ONLY: moves value to a * merchant_payable account. No external payout/real-money path exists; settling to * unrelated merchants requires a licensed issuer integration (not implemented). */export async function payInvoice(ledger: Ledger, userId: string, invoice: Invoice, now = new Date()) { if (invoice.due_at && new Date(invoice.due_at) < now) { /* overdue is allowed, informational */ } const balance = await ledger.walletBalance(userId, invoice.currency); const key = `invoice:${invoice.merchant_id}:${invoice.invoice_id}`; const prior = (await ledger.list(userId, 1000)).find((t) => t.idempotency_key === key); if (prior) return { status: "already_paid" as const, transaction: prior, balance }; if (balance < invoice.amount) throw new LedgerError(`insufficient funds: balance ${balance} < ${invoice.amount}`); const wallet = await ledger.account(userId, "user_wallet", invoice.currency); const payable = await ledger.account(userId, "merchant_payable", invoice.currency); const tx = await ledger.post({ user_id: userId, kind: "invoice_payment", idempotency_key: key, memo: `Invoice ${invoice.invoice_id} to ${invoice.merchant_name ?? invoice.merchant_id}`, postings: [{ account_id: wallet.id, amount: invoice.amount }, { account_id: payable.id, amount: -invoice.amount }], }); return { status: "paid" as const, transaction: tx, balance: balance - invoice.amount };}1234567891011121314151617181920212223242526272829303132333435363738import Stripe from "stripe";import type { Ledger } from "./ledger.js";
export function makeStripe(secretKey: string): Stripe { if (!secretKey.startsWith("sk_test_") && !secretKey.startsWith("rk_test_")) throw new Error("Stripe TEST keys only"); return new Stripe(secretKey);}
export async function createFundingCheckout(stripe: Stripe, userId: string, amount: number, currency: string, successUrl: string, cancelUrl: string) { if (!Number.isSafeInteger(amount) || amount < 50 || amount > 100_000) throw new Error("amount must be 50..100000 minor units"); return stripe.checkout.sessions.create({ mode: "payment", line_items: [{ quantity: 1, price_data: { currency, unit_amount: amount, product_data: { name: "ProjectOS wallet top-up (TEST)" } } }], metadata: { wallet_user_id: userId, purpose: "wallet_funding" }, payment_intent_data: { metadata: { wallet_user_id: userId, purpose: "wallet_funding" } }, success_url: successUrl, cancel_url: cancelUrl, });}
export async function createFundingPaymentIntent(stripe: Stripe, userId: string, amount: number, currency: string) { if (!Number.isSafeInteger(amount) || amount < 50 || amount > 100_000) throw new Error("amount must be 50..100000 minor units"); return stripe.paymentIntents.create({ amount, currency, automatic_payment_methods: { enabled: true }, metadata: { wallet_user_id: userId, purpose: "wallet_funding" } });}
/** Verifies signature (throws on mismatch) then credits the ledger idempotently. */export async function handleWebhook(stripe: Stripe, ledger: Ledger, rawBody: Buffer, signature: string | undefined, secret: string) { if (!signature) throw new Error("missing stripe-signature header"); const event = stripe.webhooks.constructEvent(rawBody, signature, secret); if (event.livemode) throw new Error("live-mode event rejected"); if (event.type === "payment_intent.succeeded") { const pi = event.data.object as Stripe.PaymentIntent; if (pi.metadata?.purpose === "wallet_funding" && pi.metadata.wallet_user_id) { await ledger.recordFunding(pi.metadata.wallet_user_id, pi.amount_received, pi.currency, pi.id); } } return event;}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374import { createClient, type SupabaseClient } from "@supabase/supabase-js";import type { Account, AccountKind, LedgerStore, Transaction } from "./types.js";
/** Typed subset of the wallet schema (see supabase/migrations). */export interface WalletDatabase { public: { Tables: { wallet_accounts: { Row: { id: string; user_id: string; kind: AccountKind; currency: string }; Insert: { id?: string; user_id: string; kind: AccountKind; currency: string }; Update: Partial<Account>; Relationships: [] }; wallet_transactions: { Row: { id: string; user_id: string; kind: string; idempotency_key: string; memo: string | null; created_at: string }; Insert: { id: string; user_id: string; kind: string; idempotency_key: string; memo?: string | null; created_at?: string }; Update: Record<string, never>; Relationships: []; }; wallet_postings: { Row: { id: number; transaction_id: string; account_id: string; amount: number }; Insert: { transaction_id: string; account_id: string; amount: number }; Update: Record<string, never>; Relationships: []; }; }; Views: { wallet_account_balances: { Row: { account_id: string; balance: number }; Relationships: [] } }; Functions: { wallet_post_transaction: { Args: { p_id: string; p_user_id: string; p_kind: string; p_key: string; p_memo: string | null; p_postings: unknown }; Returns: string; }; }; Enums: { [_ in never]: never }; CompositeTypes: { [_ in never]: never }; };}
export class SupabaseStore implements LedgerStore { private db: SupabaseClient<WalletDatabase>; constructor(url: string, serviceKey: string) { this.db = createClient<WalletDatabase>(url, serviceKey, { auth: { persistSession: false } }); } async getOrCreateAccount(userId: string, kind: AccountKind, currency: string): Promise<Account> { const { data, error } = await this.db.from("wallet_accounts") .upsert({ user_id: userId, kind, currency }, { onConflict: "user_id,kind,currency", ignoreDuplicates: false }) .select().single(); if (error) throw error; return data as Account; } async findTransactionByKey(userId: string, key: string): Promise<Transaction | null> { const { data, error } = await this.db.from("wallet_transactions") .select("*, wallet_postings(account_id, amount)").eq("user_id", userId).eq("idempotency_key", key).maybeSingle(); if (error) throw error; return data ? toTx(data) : null; } async insertTransaction(tx: Transaction): Promise<void> { // Atomic insert via SQL function (single DB transaction, balance check enforced in SQL). const { error } = await this.db.rpc("wallet_post_transaction", { p_id: tx.id, p_user_id: tx.user_id, p_kind: tx.kind, p_key: tx.idempotency_key, p_memo: tx.memo ?? null, p_postings: tx.postings, }); if (error) throw error; } async balance(accountId: string): Promise<number> { const { data, error } = await this.db.from("wallet_account_balances").select("balance").eq("account_id", accountId).maybeSingle(); if (error) throw error; return Number(data?.balance ?? 0); } async listTransactions(userId: string, limit = 50): Promise<Transaction[]> { const { data, error } = await this.db.from("wallet_transactions") .select("*, wallet_postings(account_id, amount)").eq("user_id", userId).order("created_at", { ascending: false }).limit(limit); if (error) throw error; return (data ?? []).map(toTx); }}
// eslint-disable-next-line @typescript-eslint/no-explicit-anyfunction toTx(r: any): Transaction { return { id: r.id, user_id: r.user_id, kind: r.kind, idempotency_key: r.idempotency_key, memo: r.memo ?? undefined, created_at: r.created_at, postings: (r.wallet_postings ?? []).map((p: any) => ({ account_id: p.account_id, amount: Number(p.amount) })) };}1234567891011121314151617export type AccountKind = "user_wallet" | "stripe_clearing" | "merchant_payable";
export interface Account { id: string; user_id: string; kind: AccountKind; currency: string; }export interface Posting { account_id: string; amount: number } // minor units; +debit / -creditexport interface Transaction { id: string; user_id: string; kind: "funding" | "invoice_payment" | "adjustment"; idempotency_key: string; memo?: string; postings: Posting[]; created_at: string;}
export interface LedgerStore { getOrCreateAccount(userId: string, kind: AccountKind, currency: string): Promise<Account>; findTransactionByKey(userId: string, key: string): Promise<Transaction | null>; /** Must atomically insert transaction+postings. */ insertTransaction(tx: Transaction): Promise<void>; balance(accountId: string): Promise<number>; listTransactions(userId: string, limit?: number): Promise<Transaction[]>;}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465-- ProjectOS wallet: double-entry ledger, keyed by user_id for future multi-user.create extension if not exists pgcrypto;
create table if not exists wallet_accounts ( id uuid primary key default gen_random_uuid(), user_id uuid not null, kind text not null check (kind in ('user_wallet','stripe_clearing','merchant_payable')), currency char(3) not null default 'usd', created_at timestamptz not null default now(), unique (user_id, kind, currency));
create table if not exists wallet_transactions ( id uuid primary key, user_id uuid not null, kind text not null check (kind in ('funding','invoice_payment','adjustment')), idempotency_key text not null, memo text, created_at timestamptz not null default now(), unique (user_id, idempotency_key));
create table if not exists wallet_postings ( id bigserial primary key, transaction_id uuid not null references wallet_transactions(id) on delete restrict, account_id uuid not null references wallet_accounts(id) on delete restrict, amount bigint not null check (amount <> 0));create index if not exists wallet_postings_account_idx on wallet_postings(account_id);
create or replace view wallet_account_balances as select account_id, coalesce(sum(amount),0)::bigint as balance from wallet_postings group by account_id;
-- Atomic, balanced insert. Rejects unbalanced sets and overdrawn user wallets.create or replace function wallet_post_transaction( p_id uuid, p_user_id uuid, p_kind text, p_key text, p_memo text, p_postings jsonb) returns uuid language plpgsql security definer set search_path = public as $$declare total bigint; bad int;begin select coalesce(sum((p->>'amount')::bigint),0) into total from jsonb_array_elements(p_postings) p; if total <> 0 or jsonb_array_length(p_postings) < 2 then raise exception 'unbalanced transaction'; end if; select count(*) into bad from jsonb_array_elements(p_postings) p left join wallet_accounts a on a.id = (p->>'account_id')::uuid and a.user_id = p_user_id where a.id is null; if bad > 0 then raise exception 'posting account not owned by user'; end if; insert into wallet_transactions(id,user_id,kind,idempotency_key,memo) values (p_id,p_user_id,p_kind,p_key,p_memo) on conflict (user_id, idempotency_key) do nothing; if not found then return p_id; end if; insert into wallet_postings(transaction_id,account_id,amount) select p_id, (p->>'account_id')::uuid, (p->>'amount')::bigint from jsonb_array_elements(p_postings) p; if exists (select 1 from wallet_accounts a join wallet_account_balances b on b.account_id = a.id where a.user_id = p_user_id and a.kind = 'user_wallet' and b.balance > 0) then raise exception 'insufficient funds'; end if; return p_id;end $$;
alter table wallet_accounts enable row level security;alter table wallet_transactions enable row level security;alter table wallet_postings enable row level security;-- Service role bypasses RLS. Future multi-user: add policies on auth.uid() = user_id.create policy wallet_accounts_owner on wallet_accounts for select using (auth.uid() = user_id);create policy wallet_tx_owner on wallet_transactions for select using (auth.uid() = user_id);create policy wallet_postings_owner on wallet_postings for select using ( exists (select 1 from wallet_transactions t where t.id = transaction_id and t.user_id = auth.uid()));12345678910111213141516171819202122232425262728293031323334353637383940import { describe, it, expect } from "vitest";import { Ledger, LedgerError } from "../src/ledger.js";import { MemoryStore } from "../src/memoryStore.js";import { assertSafeEnv } from "../src/config.js";
const U = "00000000-0000-0000-0000-000000000001";
describe("ledger", () => { it("rejects unbalanced / bad postings", () => { expect(() => Ledger.validate([{ account_id: "a", amount: 100 }, { account_id: "b", amount: -99 }])).toThrow(LedgerError); expect(() => Ledger.validate([{ account_id: "a", amount: 0 }, { account_id: "b", amount: 0 }])).toThrow(LedgerError); expect(() => Ledger.validate([{ account_id: "a", amount: 1.5 }, { account_id: "b", amount: -1.5 }])).toThrow(LedgerError); expect(() => Ledger.validate([{ account_id: "a", amount: 5 }])).toThrow(LedgerError); }); it("funding credits wallet and is idempotent", async () => { const store = new MemoryStore(); const l = new Ledger(store); await l.recordFunding(U, 2500, "usd", "pi_1"); await l.recordFunding(U, 2500, "usd", "pi_1"); expect(await l.walletBalance(U)).toBe(2500); expect(store.txs).toHaveLength(1); const sum = store.txs.flatMap((t) => t.postings).reduce((s, p) => s + p.amount, 0); expect(sum).toBe(0); }); it("separates users and currencies", async () => { const l = new Ledger(new MemoryStore()); await l.recordFunding(U, 1000, "usd", "pi_a"); await l.recordFunding("u2", 700, "usd", "pi_b"); await l.recordFunding(U, 300, "EUR", "pi_c"); expect(await l.walletBalance(U, "usd")).toBe(1000); expect(await l.walletBalance(U, "eur")).toBe(300); expect(await l.walletBalance("u2")).toBe(700); });});
describe("safety guards", () => { it("refuses live keys", () => expect(() => assertSafeEnv({ STRIPE_SECRET_KEY: "sk_live_x" })).toThrow(/live/)); it("refuses non-test keys", () => expect(() => assertSafeEnv({ STRIPE_SECRET_KEY: "abc" })).toThrow()); it("refuses Apple Pay creds", () => expect(() => assertSafeEnv({ STRIPE_SECRET_KEY: "sk_test_x", APPLE_PAY_MERCHANT_KEY: "x" })).toThrow(/Apple Pay/)); it("accepts test key", () => expect(() => assertSafeEnv({ STRIPE_SECRET_KEY: "sk_test_x" })).not.toThrow());});123456789101112131415161718192021222324252627282930313233343536373839404142import { describe, it, expect } from "vitest";import { Ledger } from "../src/ledger.js";import { MemoryStore } from "../src/memoryStore.js";import { parseInvoiceQr, payInvoice } from "../src/routing.js";
const U = "u1";const qr = JSON.stringify({ v: 1, invoice_id: "INV-1", merchant_id: "m1", merchant_name: "Shop", amount: 1200, currency: "USD" });
describe("invoice QR parsing", () => { it("parses JSON payload", () => expect(parseInvoiceQr(qr)).toMatchObject({ amount: 1200, currency: "usd" })); it("parses URI payload", () => expect(parseInvoiceQr("projectos-invoice:?v=1&invoice_id=I2&merchant_id=m&amount=50¤cy=usd")).toMatchObject({ invoice_id: "I2", amount: 50 })); it("rejects garbage and bad amounts", () => { expect(() => parseInvoiceQr("not json")).toThrow(); expect(() => parseInvoiceQr(JSON.stringify({ v: 1, invoice_id: "x", merchant_id: "m", amount: -5, currency: "usd" }))).toThrow(); expect(() => parseInvoiceQr(JSON.stringify({ v: 1, invoice_id: "x", merchant_id: "m", amount: 1.2, currency: "usd" }))).toThrow(); });});
describe("payInvoice", () => { it("pays from balance, idempotently", async () => { const l = new Ledger(new MemoryStore()); await l.recordFunding(U, 2000, "usd", "pi_1"); const inv = parseInvoiceQr(qr); const r1 = await payInvoice(l, U, inv); expect(r1.status).toBe("paid"); expect(r1.balance).toBe(800); const r2 = await payInvoice(l, U, inv); expect(r2.status).toBe("already_paid"); expect(await l.walletBalance(U)).toBe(800); }); it("rejects insufficient funds", async () => { const l = new Ledger(new MemoryStore()); await l.recordFunding(U, 500, "usd", "pi_1"); await expect(payInvoice(l, U, parseInvoiceQr(qr))).rejects.toThrow(/insufficient/); expect(await l.walletBalance(U)).toBe(500); }); it("does not cross currencies", async () => { const l = new Ledger(new MemoryStore()); await l.recordFunding(U, 5000, "eur", "pi_1"); await expect(payInvoice(l, U, parseInvoiceQr(qr))).rejects.toThrow(/insufficient/); });});12345678{ "compilerOptions": { "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", "strict": true, "skipLibCheck": true, "esModuleInterop": true, "outDir": "dist", "rootDir": "src", "declaration": true }, "include": ["src"]}1.snapshot-list{margin-top:16px;padding:16px 18px}.snapshot-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#fff;border:0;border-top:1px solid #f0eff3;padding:10px 0;color:var(--ink);font-family:inherit;cursor:pointer}.snapshot-row:hover strong{color:#665ab0}.snapshot-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;background:#f2effb;color:#7568bd}.snapshot-row>span:nth-child(2){flex:1}.snapshot-row strong{display:block;font-size:10px}.snapshot-row small{display:block;margin-top:4px;color:#9996a0;font-size:9px}.snapshot-row .row-arrow{opacity:0}.snapshot-row:hover .row-arrow{opacity:1}1:root{--ink:#25252a;--muted:#83838d;--line:#ecebf0;--paper:#fbfaf8;--purple:#7164c8;--purple-light:#f0edff;--green:#379b70;--sidebar:246px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:13px;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);padding:26px 17px 16px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);font-family:Manrope,sans-serif;font-weight:800;font-size:18px;letter-spacing:-.7px;margin:0 0 42px 8px}.brand-light{color:#8983af}.brand small{display:block;color:#a2a0aa;font:600 8px 'DM Sans',sans-serif;letter-spacing:1.3px;margin-top:3px}.brand-mark{width:35px;height:35px;border-radius:11px;background:#7768cf;color:white;display:grid;place-items:center;font-size:19px;box-shadow:0 4px 9px #7768cf38}.nav-label{font-weight:700;font-size:9px;letter-spacing:1.15px;color:#aaa8b1;padding:0 10px;margin-bottom:9px}.systems-label{margin-top:30px}.nav-item{position:relative;display:flex;gap:12px;align-items:center;height:38px;padding:0 11px;border-radius:7px;text-decoration:none;color:#777680;font-size:12px;margin:2px 0}.nav-item>span{font-size:15px;color:#9a98a3;width:16px;text-align:center}.nav-item:hover{background:#f8f7fa;color:#403c53}.nav-item.active{background:#f1effb;color:#5549aa;font-weight:600}.nav-item.active>span{color:#6659bd}.nav-item b{font-size:10px;margin-left:auto;color:#8c8996;font-weight:500}.dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:#a1a0a8}.nav-item .dot{margin-left:auto}.green{background:#39aa79}.amber{background:#e3a643}.sidebar-bottom{margin-top:auto}.runtime-card{background:#faf9fc;border:1px solid #eeecf2;padding:12px 10px;border-radius:8px;display:flex;align-items:center;gap:9px;margin-bottom:15px}.pulse{width:7px;height:7px;border-radius:50%;background:#44b17d;box-shadow:0 0 0 3px #e0f4e9}.runtime-card strong,.profile strong{font-size:11px;display:block;font-weight:600}.runtime-card small,.profile small{display:block;color:#9b99a3;font-size:10px;margin-top:3px}.more{margin-left:auto;color:#aaa8b2;font-size:18px}.profile{border-top:1px solid var(--line);padding:15px 3px 0;display:flex;gap:9px;align-items:center}.avatar{background:#e8e3fb;border-radius:50%;display:grid;place-items:center;width:29px;height:29px;font-weight:700;color:#6559b7;font-size:11px}.main-content{margin-left:var(--sidebar);min-height:100vh}.topbar{height:62px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 41px}.breadcrumbs{font-size:11px;color:#9c9aa4}.breadcrumbs span{padding:0 9px;color:#ceccd3}.breadcrumbs strong{color:#44434c;font-weight:600}.top-actions{display:flex;gap:22px;align-items:center}.system-state{color:#7b7a83;font-size:10px;display:flex;align-items:center;gap:7px}.icon-button{border:0;background:transparent;font-size:16px;color:#84828d;position:relative;padding:4px}.icon-button em{position:absolute;width:5px;height:5px;background:#e98376;border:1px solid white;border-radius:50%;top:4px;right:2px}.small-avatar{width:26px;height:26px}.page-wrap{max-width:1440px;margin:0 auto;padding:33px 42px 60px}.view{display:none}.active-view{display:block;animation:appear .2s ease}@keyframes appear{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:none}}.welcome-row,.page-title-row{display:flex;align-items:flex-end;justify-content:space-between}.eyebrow{color:#9b98a3;font-size:9px;font-weight:700;letter-spacing:1.3px;margin:0 0 13px}.eyebrow-rule{display:inline-block;background:#d8d6dd;width:19px;height:1px;vertical-align:middle;margin:0 8px}.welcome-row h1,.view>h1,.page-title-row h1{font:700 29px Manrope,sans-serif;letter-spacing:-1.2px;margin:0;color:#2b2a31}.welcome-row h1 span,.view>h1 span{color:#766bc0}.lead{font-size:12px;color:#898791;margin:8px 0 0}.primary-button{border:0;background:#7164c8;color:#fff;padding:10px 15px;border-radius:6px;font-size:11px;font-weight:600;box-shadow:0 3px 8px #7164c82c}.primary-button:hover{background:#6255b7}.primary-button span{font-size:15px;vertical-align:-1px;margin-right:5px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:28px}.stat-card{border:1px solid var(--line);border-radius:9px;background:#fff;min-height:119px;padding:16px 17px 12px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#9997a1;font-size:9px;letter-spacing:.6px;font-weight:700}.stat-icon{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;font-size:14px}.lavender{background:#f0edff;color:#766bc8}.mint{background:#e9f7f0;color:#41a274}.peach{background:#fff2e8;color:#d58b51}.blue{background:#eaf3fb;color:#6294c1}.stat-number{font:700 24px Manrope,sans-serif;letter-spacing:-.8px;margin-top:8px}.denom{font-size:13px;color:#a4a2aa;font-weight:500;letter-spacing:0}.stat-foot{margin-top:3px;color:#9a98a1;font-size:10px}.up{color:#389b70;font-weight:600}.review-tag{color:#c88942;background:#fff5e8;padding:3px 6px;border-radius:4px;font-size:9px;font-weight:600}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin:31px 0 13px}.section-heading h2{font:700 15px Manrope,sans-serif;margin:0;letter-spacing:-.3px}.section-heading p,.panel-head p{font-size:10px;color:#9a98a2;margin:5px 0 0}.text-button{border:0;background:transparent;color:#7569bd;font-size:10px;font-weight:600;padding:4px 0}.text-button span,.full-link span{margin-left:5px;font-size:13px}.content-grid{display:grid;grid-template-columns:1.18fr .82fr;gap:14px}.panel{background:#fff;border:1px solid var(--line);border-radius:9px}.projects-panel,.flow-panel{padding:17px 18px 0}.panel-head{display:flex;justify-content:space-between;align-items:flex-start}.panel-head h3{font:700 12px Manrope,sans-serif;margin:0}.more-button{border:0;background:none;color:#aaa8b0;font-size:18px;line-height:10px}.project-list{margin-top:11px}.project-row{width:100%;border:0;border-top:1px solid #f1f0f3;background:#fff;display:flex;align-items:center;text-align:left;padding:10px 0;gap:10px}.project-row:hover .project-info strong{color:#6459b6}.project-symbol{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font:700 12px Manrope,sans-serif}.sym-violet{background:#f0edff;color:#7667c4}.sym-blue{background:#eaf2fc;color:#5989bd}.sym-orange{background:#fff0e5;color:#c98245}.sym-green{background:#eaf6ef;color:#4a9a6f}.project-info{min-width:0;flex:1}.project-info strong{font-size:11px;font-weight:600;display:block}.project-info small{font-size:9px;color:#a09ea7;display:block;margin-top:4px}.project-status{font-size:9px;width:88px;color:#74727d;display:flex;align-items:center;gap:6px}.project-status i,.health-ok i,.health-warn i{width:5px;height:5px;border-radius:50%;background:#3eaa79}.status-prod i{background:#6d9bd2}.status-evolve i{background:#d8994a}.row-arrow{color:#aaa8b0;font-size:12px;opacity:0}.project-row:hover .row-arrow{opacity:1}.full-link{width:100%;height:39px;border:0;border-top:1px solid #f1f0f3;background:transparent;color:#766abf;font-size:10px;font-weight:600;text-align:left}.live-pill{border-radius:5px;background:#edf8f1;color:#4e9c72;padding:5px 7px;font-size:8px;font-weight:700;letter-spacing:.5px}.live-pill i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#4eac78;margin-right:4px}.flow-mini{padding:8px 0 10px;display:grid;grid-template-columns:1fr 1fr;column-gap:8px}.mini-step{display:flex;align-items:center;gap:7px;height:29px;color:#6e6c77;font-size:9px}.mini-step .step-n{width:17px;height:17px;border:1px solid #e4e1f3;border-radius:50%;color:#796fc1;display:grid;place-items:center;font-size:8px}.mini-step:last-child .step-n{background:#eeeafa}.lower-heading{margin-top:29px}.health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.health-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px;display:flex;align-items:center;gap:9px;min-height:60px}.health-icon{width:27px;height:27px;background:#f5f3fb;color:#766bbd;border-radius:7px;display:grid;place-items:center}.health-card div{min-width:0;flex:1}.health-card strong{font-size:10px;font-weight:600;display:block}.health-card small{font-size:9px;color:#a09ea7;display:block;margin-top:4px}.health-ok,.health-warn{font-size:8px;color:#4f9b73;white-space:nowrap}.health-ok i{display:inline-block;margin-right:3px}.health-warn{color:#c88c40}.health-warn i{display:inline-block;background:#dda54b;margin-right:3px}.page-title-row{align-items:center}.filter-bar{display:flex;align-items:center;gap:8px;margin:25px 0 15px}.filter{background:transparent;border:1px solid transparent;padding:7px 10px;border-radius:5px;color:#898791;font-size:10px}.filter b{font-size:9px;margin-left:4px;color:#aaa8b1}.active-filter{background:#f0eef9;color:#655ab0;border-color:#e9e6f4}.search-box{margin-left:auto;border:1px solid var(--line);background:#fff;border-radius:5px;padding:6px 10px;color:#aaa8b1;font-size:15px}.search-box input{border:0;outline:0;width:140px;font-size:10px;color:var(--ink)}.directory-panel{padding:0 17px}.directory-head,.directory-row{display:grid;grid-template-columns:2fr 1fr 1.15fr .8fr 20px;align-items:center;gap:12px}.directory-head{height:38px;border-bottom:1px solid var(--line);color:#a4a2ab;font-size:8px;font-weight:700;letter-spacing:.7px}.directory-row{min-height:59px;border-bottom:1px solid #f1f0f3;font-size:10px;color:#797782}.directory-row:last-child{border-bottom:0}.directory-project{display:flex;align-items:center;gap:9px}.directory-project strong{font-size:10px;color:#37363d;display:block}.directory-project small{display:block;font-size:9px;color:#a09ea7;margin-top:4px}.directory-row .project-status{width:auto}.formula-layout{display:grid;grid-template-columns:1fr 270px;gap:24px;margin-top:27px}.formula-list{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}.formula-step{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);background:#fff;border-radius:7px;min-height:51px;position:relative}.formula-step .formula-num{width:25px;height:25px;border-radius:7px;background:#f1effa;color:#7368be;display:grid;place-items:center;font:700 10px Manrope,sans-serif}.formula-step strong{font-size:10px;font-weight:600}.formula-step small{display:block;font-size:8px;color:#a09ea7;margin-top:3px}.formula-step.gate{border-color:#f1e6d4;background:#fffcf6}.formula-step.gate .formula-num{background:#fff2d9;color:#c38a3d}.formula-aside{background:#2f2e39;color:white;border-radius:9px;padding:20px;align-self:stretch}.aside-kicker{font-size:8px;letter-spacing:1.1px;color:#b2acd9;font-weight:700}.formula-aside h3{font:700 16px Manrope,sans-serif;line-height:1.4;margin:15px 0 8px}.formula-aside p{color:#c3c1cb;font-size:10px;line-height:1.65;margin:0}.aside-divider{height:1px;background:#4c4a56;margin:20px 0 13px}.aside-stat{display:flex;align-items:center;gap:9px;margin:11px 0}.aside-stat span{font:700 17px Manrope,sans-serif;color:#d6d1ff;width:25px}.aside-stat small{font-size:9px;color:#c3c1cb}.lifecycle-board{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-top:27px}.life-card{background:#fff;border:1px solid var(--line);border-radius:8px;min-height:87px;padding:14px;position:relative}.life-card:after{content:'→';position:absolute;right:12px;top:14px;color:#c2bfd0;font-size:12px}.life-card:last-child:after{content:'↺';font-size:17px;top:10px;color:#786dc3}.life-card .life-num{font-size:8px;color:#aaa7b2;letter-spacing:.8px}.life-card strong{display:block;margin-top:9px;font:600 11px Manrope,sans-serif}.life-card small{display:block;color:#9b99a2;font-size:9px;margin-top:4px}.life-card.highlight{background:#f7f5ff;border-color:#e9e5fb}.life-card.highlight strong{color:#6c61b8}.lifecycle-note{display:flex;gap:12px;padding:16px;background:#f5f3fb;border-radius:8px;margin-top:15px;color:#7368bd}.lifecycle-note>span{font-size:17px}.lifecycle-note strong{font-size:10px;color:#504a72}.lifecycle-note p{font-size:9px;color:#85818f;margin:5px 0 0;line-height:1.55}.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:27px}.info-card{padding:16px;background:#fff;border:1px solid var(--line);border-radius:8px;min-height:112px}.info-card .card-symbol{width:28px;height:28px;border-radius:8px;background:#f0edfb;display:grid;place-items:center;color:#7469bd;font-size:14px;margin-bottom:10px}.info-card strong{font:600 11px Manrope,sans-serif}.info-card p{font-size:9px;line-height:1.55;color:#94919d;margin:5px 0 0}.governance-banner{display:flex;align-items:center;gap:13px;padding:15px 17px;background:#fff8ed;border:1px solid #f3e8d6;border-radius:8px;margin-top:25px}.governance-banner>span{font-size:17px;color:#ca9148}.governance-banner div{flex:1}.governance-banner strong{font-size:10px;color:#51453a}.governance-banner p{font-size:9px;color:#9a8e80;margin:5px 0 0}.governance-banner button{border:0;background:transparent;color:#b5813b;font-size:9px;font-weight:700}.knowledge-stats{display:grid;grid-template-columns:180px 1fr;gap:15px;margin-top:26px}.knowledge-big{padding:18px;background:#2f2e39;border-radius:8px;color:#fff}.knowledge-big small{font-size:8px;letter-spacing:.8px;color:#b5b1c7;display:block}.knowledge-big strong{font:700 30px Manrope,sans-serif;display:block;margin:9px 0 2px}.knowledge-big span{font-size:9px;color:#c5c2cc}.knowledge-pipeline{background:white;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;justify-content:space-around;padding:14px}.pipeline-step{text-align:center;color:#6c6974;font-size:9px}.pipeline-step span{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#f2f0fb;color:#756abf;font-size:13px;margin:0 auto 7px}.pipeline-arrow{color:#bbb8c3}.toast{position:fixed;bottom:22px;right:24px;padding:12px 16px;background:#302f39;color:#fff;border-radius:7px;font-size:11px;box-shadow:0 6px 24px #25252a26;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none;z-index:10}.toast.show{opacity:1;transform:none}@media(max-width:1000px){:root{--sidebar:210px}.page-wrap{padding:28px 25px}.topbar{padding:0 25px}.health-grid{grid-template-columns:repeat(2,1fr)}.content-grid{grid-template-columns:1fr}.flow-mini{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){:root{--sidebar:58px}.sidebar{padding:18px 8px}.brand{margin:0 auto 36px}.brand>span:nth-child(2),.nav-label,.nav-item:not(.active),.nav-item{font-size:0}.nav-item{justify-content:center;padding:0}.nav-item>span{font-size:16px}.nav-item b,.nav-item .dot,.sidebar-bottom{display:none}.nav-item.active{font-size:0}.systems-label{display:block;font-size:0;margin-top:24px}.topbar{padding:0 16px}.top-actions{gap:12px}.system-state{font-size:0}.page-wrap{padding:24px 15px}.welcome-row{align-items:flex-start;gap:10px}.welcome-row h1,.view>h1,.page-title-row h1{font-size:23px}.welcome-row .primary-button{white-space:nowrap;padding:9px;font-size:10px}.stat-grid{grid-template-columns:repeat(2,1fr);gap:8px}.stat-card{padding:12px;min-height:106px}.stat-top{font-size:8px}.content-grid{gap:9px}.project-status{width:auto;font-size:0}.project-status i{width:6px;height:6px}.formula-layout{grid-template-columns:1fr}.formula-list{grid-template-columns:1fr}.formula-aside{display:none}.lifecycle-board{grid-template-columns:repeat(2,1fr)}.cards-grid{grid-template-columns:1fr 1fr}.health-grid{grid-template-columns:1fr 1fr}.page-title-row{align-items:flex-end}.filter-bar{overflow-x:auto}.filter{white-space:nowrap}.directory-head{display:none}.directory-row{grid-template-columns:1fr auto;gap:5px;padding:9px 0}.directory-row>span:nth-child(3){display:none}.directory-row .project-status{font-size:9px}.knowledge-stats{grid-template-columns:1fr}.knowledge-pipeline{min-height:90px}.knowledge-big{padding:13px}.project-row{gap:7px}.project-info small{font-size:8px}}12345678910111213141516171819202122{ "compilerOptions": { "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", "baseUrl": ".", "paths": { "@/*": ["apps/dashboard/src/*"], "@projectos/common": ["packages/common/dist/index.d.ts"], "@projectos/mcp-fabric": ["packages/mcp-fabric/dist/index.d.ts"], "@projectos/operations-agent": ["packages/operations-agent/dist/index.d.ts"], "@projectos/schema-engine": ["packages/schema-engine/dist/index.d.ts"], "@projectos/dependency-fabric": ["packages/dependency-fabric/dist/index.d.ts"], "@projectos/storage-fabric/sqlite/repositories": ["packages/storage-fabric/src/sqlite/repositories.d.mts"] }, "strict": true, "skipLibCheck": true, "esModuleInterop": true, "resolveJsonModule": true, "declaration": true }}12345678910111213141516{ "files": [], "references": [ { "path": "./packages/common" }, { "path": "./packages/schema-engine" }, { "path": "./packages/logic-fabric" }, { "path": "./packages/operations-agent" }, { "path": "./packages/dependency-fabric" }, { "path": "./packages/delta-fabric" }, { "path": "./packages/storage-fabric" }, { "path": "./packages/knowledge-fabric" }, { "path": "./packages/mcp-fabric" }, { "path": "./apps/runtime" }, { "path": "./apps/dashboard" } ]}123456789101112131415{ "$schema": "https://turbo.build/schema.json", "tasks": { "build": { "dependsOn": ["^build"], "outputs": ["dist/**"] }, "dev": { "cache": false, "persistent": true }, "lint": {}, "typecheck": {} }}12345678910111213141516171819202122232425262728293031323334name: Validate ProjectOS
on: push: pull_request:
jobs: validate: runs-on: windows-latest steps: - name: Check out source uses: actions/checkout@v4 - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: 24 - name: Set up pnpm uses: pnpm/action-setup@v4 with: version: 10 - name: Install dependencies run: pnpm install --frozen-lockfile - name: Generate configuration and documentation artifacts run: pnpm generate - name: Validate generated snapshot hashes run: pnpm validate:generated - name: Build workspace run: pnpm build - name: Run snapshot, alias, and documentation checks run: pnpm test - name: Produce the release bundle after all checks pass run: pnpm --filter @projectos/schema-engine release - name: Validate release package layout run: pnpm validate:release.devcontainer/devcontainer.jsonAdded+4
.dockerignoreAdded+5
.gitignoreAdded+12
DockerfileAdded+20
LICENSEAdded+201
ProjectOS.schAdded+114
ProjectOS.xsdAdded+318
README.md+81-4
app.jsAdded+140
bootstrap.xmlAdded+215
clickable.cssAdded+1
features.cssAdded+1
index.htmlAdded+75
interactions.cssAdded+1
package.jsonAdded+32
pnpm-lock.yamlAdded+1737
pnpm-workspace.yamlAdded+4
services/wallet/.env.exampleAdded+11
services/wallet/README.mdAdded+5
services/wallet/package-lock.jsonAdded
services/wallet/package.jsonAdded+27
services/wallet/src/app.tsAdded+39
services/wallet/src/config.tsAdded+38
services/wallet/src/index.tsAdded+11
services/wallet/src/ledger.tsAdded+52
services/wallet/src/memoryStore.tsAdded+22
services/wallet/src/routing.tsAdded+52
services/wallet/src/stripe.tsAdded+38
services/wallet/src/supabaseStore.tsAdded+74
services/wallet/src/types.tsAdded+17
services/wallet/supabase/migrations/20261031000000_wallet_ledger.sqlAdded+65
services/wallet/test/ledger.test.tsAdded+40
services/wallet/test/routing.test.tsAdded+42
services/wallet/tsconfig.jsonAdded+8
snapshots.cssAdded+1
styles.cssAdded+1
tsconfig.base.jsonAdded+22
tsconfig.jsonAdded+16
turbo.jsonAdded+15
validate.ymlAdded+34