{"_id":"@albertomarturelo/sii-core","_rev":"8-e3d309b39e99a3431849c372ab6e4c4a","name":"@albertomarturelo/sii-core","dist-tags":{"latest":"0.10.0"},"versions":{"0.3.0":{"name":"@albertomarturelo/sii-core","version":"0.3.0","license":"MIT","_id":"@albertomarturelo/sii-core@0.3.0","maintainers":[{"name":"albertomarturelo","email":"amarturelo@gmail.com"}],"homepage":"https://github.com/albertomarturelo/sii#readme","bugs":{"url":"https://github.com/albertomarturelo/sii/issues"},"dist":{"shasum":"3ab0873080666455c4bad9ae8d8f22284f614da0","tarball":"https://registry.npmjs.org/@albertomarturelo/sii-core/-/sii-core-0.3.0.tgz","fileCount":200,"integrity":"sha512-md0HEm6Oo0MWPx8YYmCijbzoIHhPiIud2OIyey85P14xiE5cji67I4FMcOjt+M5qiWRV32jUVmMeAA2G5lubug==","signatures":[{"sig":"MEYCIQC5yWfs29ROxnSkM5pbA906oeXDkhIhU26KuamMsWlSTAIhAMfy9bvDNPdPZyEYVtyrX/+XkOWTDaFut0qfpad0gqRR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":494939},"main":"./dist/index.js","type":"module","_from":"file:albertomarturelo-sii-core-0.3.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","default":"./dist/cli.js"},"./node":{"types":"./dist/node.d.ts","default":"./dist/node.js"}},"scripts":{"build":"tsc -b"},"_npmUser":{"name":"albertomarturelo","email":"amarturelo@gmail.com"},"_resolved":"/tmp/55e3fcaadea66fcb843a1993091c67c1/albertomarturelo-sii-core-0.3.0.tgz","_integrity":"sha512-md0HEm6Oo0MWPx8YYmCijbzoIHhPiIud2OIyey85P14xiE5cji67I4FMcOjt+M5qiWRV32jUVmMeAA2G5lubug==","repository":{"url":"git+https://github.com/albertomarturelo/sii.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Shared SII domain core: rut, config (prod hostnames), contracts, tasks, seams. A Node library; external side-effects (portal, secrets, audit, clock) are injected via seams (ADR-003).","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"playwright":"^1.49.0"},"peerDependencies":{"playwright":"^1.49.0"},"peerDependenciesMeta":{"playwright":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sii-core_0.3.0_1783042046301_0.37036828177202086","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@albertomarturelo/sii-core","version":"0.4.0","license":"MIT","_id":"@albertomarturelo/sii-core@0.4.0","maintainers":[{"name":"albertomarturelo","email":"amarturelo@gmail.com"}],"homepage":"https://github.com/albertomarturelo/sii#readme","bugs":{"url":"https://github.com/albertomarturelo/sii/issues"},"dist":{"shasum":"5b227cec3800449e85b8854866d7a5130e7b2f94","tarball":"https://registry.npmjs.org/@albertomarturelo/sii-core/-/sii-core-0.4.0.tgz","fileCount":200,"integrity":"sha512-JVuu0tiw42be0l++drUgaRpej50rAyU5MlU4b841HYyoKvmC9cAHm3bhZ1g+ksYzCj+O1RC5gQQESc6FB3O+ZQ==","signatures":[{"sig":"MEUCIQCH5HQFLiRjbi25ym6Gkk52kglKQEwD8wNpsD4e/1leewIgK3prDeRhoKMCLrMqNqJ+ZuUwXOD3YQSR5ZpkPYZiOpg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":499442},"main":"./dist/index.js","type":"module","_from":"file:albertomarturelo-sii-core-0.4.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","default":"./dist/cli.js"},"./node":{"types":"./dist/node.d.ts","default":"./dist/node.js"}},"scripts":{"build":"tsc -b"},"_npmUser":{"name":"albertomarturelo","email":"amarturelo@gmail.com"},"_resolved":"/tmp/1937174c2ed4432135f1111d0ccd055d/albertomarturelo-sii-core-0.4.0.tgz","_integrity":"sha512-JVuu0tiw42be0l++drUgaRpej50rAyU5MlU4b841HYyoKvmC9cAHm3bhZ1g+ksYzCj+O1RC5gQQESc6FB3O+ZQ==","repository":{"url":"git+https://github.com/albertomarturelo/sii.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Shared SII domain core: rut, config (prod hostnames), contracts, tasks, seams. A Node library; external side-effects (portal, secrets, audit, clock) are injected via seams (ADR-003).","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"playwright":"^1.49.0"},"peerDependencies":{"playwright":"^1.49.0"},"peerDependenciesMeta":{"playwright":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sii-core_0.4.0_1783052348657_0.5700305765461844","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@albertomarturelo/sii-core","version":"0.5.0","license":"MIT","_id":"@albertomarturelo/sii-core@0.5.0","maintainers":[{"name":"albertomarturelo","email":"amarturelo@gmail.com"}],"homepage":"https://github.com/albertomarturelo/sii#readme","bugs":{"url":"https://github.com/albertomarturelo/sii/issues"},"dist":{"shasum":"3e76bdded901006a89d7f2aac0379ea5f9c436a3","tarball":"https://registry.npmjs.org/@albertomarturelo/sii-core/-/sii-core-0.5.0.tgz","fileCount":216,"integrity":"sha512-KT1Vfz5umb4eMheYSr+eN6die9a/Ts5WyXkzr+BW2LwGJyaQzHC3Ax5mV/R3CeHd5E8Y6zaB4gd7/6DvowLArg==","signatures":[{"sig":"MEUCIDgE407LuhEBVOyYraycilmQVIQ+/iwMAK4og6shUL71AiEAgboKsKEd3JQryS4ap9zBVIMIySfahObqlGwzpfLp8YM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":555676},"main":"./dist/index.js","type":"module","_from":"file:albertomarturelo-sii-core-0.5.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","default":"./dist/cli.js"},"./node":{"types":"./dist/node.d.ts","default":"./dist/node.js"}},"scripts":{"build":"tsc -b"},"_npmUser":{"name":"albertomarturelo","email":"amarturelo@gmail.com"},"_resolved":"/tmp/30e06d801ee4413e6c56116a351551a1/albertomarturelo-sii-core-0.5.0.tgz","_integrity":"sha512-KT1Vfz5umb4eMheYSr+eN6die9a/Ts5WyXkzr+BW2LwGJyaQzHC3Ax5mV/R3CeHd5E8Y6zaB4gd7/6DvowLArg==","repository":{"url":"git+https://github.com/albertomarturelo/sii.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Shared SII domain core: rut, config (prod hostnames), contracts, tasks, seams. A Node library; external side-effects (portal, secrets, audit, clock) are injected via seams (ADR-003).","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"playwright":"^1.49.0"},"peerDependencies":{"playwright":"^1.49.0"},"peerDependenciesMeta":{"playwright":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sii-core_0.5.0_1783117295631_0.7136340940912587","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@albertomarturelo/sii-core","version":"0.6.0","license":"MIT","_id":"@albertomarturelo/sii-core@0.6.0","maintainers":[{"name":"albertomarturelo","email":"amarturelo@gmail.com"}],"homepage":"https://github.com/albertomarturelo/sii#readme","bugs":{"url":"https://github.com/albertomarturelo/sii/issues"},"dist":{"shasum":"fc7fc408e627dafe15f9dfd51e024f9cd8dab6f1","tarball":"https://registry.npmjs.org/@albertomarturelo/sii-core/-/sii-core-0.6.0.tgz","fileCount":216,"integrity":"sha512-6REYu8ry2sZtp/bSkRmVm/NTKcuI3FW5YDaJVvcAJr1Azuflg6pnb076MGt3ZPwRLWLsh3HjKy/W/5F2Z8mNDA==","signatures":[{"sig":"MEQCIF4r+Vdezqet93P+l+Y/i2/cOUm8CxGnkRcSwR0uu4/eAiBHShJT/JyiNwRsWg53uqnHJTyfZHCmaimyzAoU+mRljg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":566360},"main":"./dist/index.js","type":"module","_from":"file:albertomarturelo-sii-core-0.6.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","default":"./dist/cli.js"},"./node":{"types":"./dist/node.d.ts","default":"./dist/node.js"}},"scripts":{"build":"tsc -b"},"_npmUser":{"name":"albertomarturelo","email":"amarturelo@gmail.com"},"_resolved":"/tmp/6fbc6854bede027b012728dea1d96241/albertomarturelo-sii-core-0.6.0.tgz","_integrity":"sha512-6REYu8ry2sZtp/bSkRmVm/NTKcuI3FW5YDaJVvcAJr1Azuflg6pnb076MGt3ZPwRLWLsh3HjKy/W/5F2Z8mNDA==","repository":{"url":"git+https://github.com/albertomarturelo/sii.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Shared SII domain core: rut, config (prod hostnames), contracts, tasks, seams. A Node library; external side-effects (portal, secrets, audit, clock) are injected via seams (ADR-003).","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"playwright":"^1.49.0"},"peerDependencies":{"playwright":"^1.49.0"},"peerDependenciesMeta":{"playwright":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sii-core_0.6.0_1783134909540_0.7282318968499981","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@albertomarturelo/sii-core","version":"0.7.0","license":"MIT","_id":"@albertomarturelo/sii-core@0.7.0","maintainers":[{"name":"albertomarturelo","email":"amarturelo@gmail.com"}],"homepage":"https://github.com/albertomarturelo/sii#readme","bugs":{"url":"https://github.com/albertomarturelo/sii/issues"},"dist":{"shasum":"19f7fee40916ef85a5e411289c3eb8e30cbdd58c","tarball":"https://registry.npmjs.org/@albertomarturelo/sii-core/-/sii-core-0.7.0.tgz","fileCount":220,"integrity":"sha512-ZMdm1sSGQe5qX+ug7dkO+m7cxVsDd3vAOBMilm189Wy3MtbooH3gSnunHRATw+72UwbHD1Sbu9b0A++TEY/gSw==","signatures":[{"sig":"MEYCIQDeZNNwxKLAz6xMzJaEBRciBMCJNXRZCFk7xpSTWHoUdwIhAOsq9aPddDTg42QjfK9kD8GkOlYWF1fIaqHEJ/0yCWrQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":604176},"main":"./dist/index.js","type":"module","_from":"file:albertomarturelo-sii-core-0.7.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","default":"./dist/cli.js"},"./node":{"types":"./dist/node.d.ts","default":"./dist/node.js"}},"scripts":{"build":"tsc -b"},"_npmUser":{"name":"albertomarturelo","email":"amarturelo@gmail.com"},"_resolved":"/tmp/3151ad5979e6424db2ea27c7ebe215e5/albertomarturelo-sii-core-0.7.0.tgz","_integrity":"sha512-ZMdm1sSGQe5qX+ug7dkO+m7cxVsDd3vAOBMilm189Wy3MtbooH3gSnunHRATw+72UwbHD1Sbu9b0A++TEY/gSw==","repository":{"url":"git+https://github.com/albertomarturelo/sii.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Shared SII domain core: rut, config (prod hostnames), contracts, tasks, seams. A Node library; external side-effects (portal, secrets, audit, clock) are injected via seams (ADR-003).","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"playwright":"^1.49.0"},"peerDependencies":{"playwright":"^1.49.0"},"peerDependenciesMeta":{"playwright":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sii-core_0.7.0_1788232300097_0.7347924784747644","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@albertomarturelo/sii-core","version":"0.8.0","license":"MIT","_id":"@albertomarturelo/sii-core@0.8.0","maintainers":[{"name":"albertomarturelo","email":"amarturelo@gmail.com"}],"homepage":"https://github.com/albertomarturelo/sii#readme","bugs":{"url":"https://github.com/albertomarturelo/sii/issues"},"dist":{"shasum":"9149f10f86316d72f459df75aaf697cdbba290f2","tarball":"https://registry.npmjs.org/@albertomarturelo/sii-core/-/sii-core-0.8.0.tgz","fileCount":224,"integrity":"sha512-zz0ZSBzsakCplOC+YxVnn4h2XlLhWN18eW/RMaqCQ0a/QgyRGQFJ2o3mXDMRn90QRWXGDPxk5DWuUrFpt4BrPQ==","signatures":[{"sig":"MEQCIA50wDVgJZO+4FJBtOlYDQcRxaAHIvbKGHtiy6Sb0kXVAiABO2k9LGf0WTDXUMJHWElmLcnEXSVy7/OEd7mP7TJwLg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIA7NYka5MBKaJ1M1fmdT2mDjPc3xzlI78q/3REXp+qdaAiBgBFQ6rMKmgER6VeoUvNorXhXCvmhiIatVJ4fS4u3emA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":751896},"main":"./dist/index.js","type":"module","_from":"file:albertomarturelo-sii-core-0.8.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","default":"./dist/cli.js"},"./node":{"types":"./dist/node.d.ts","default":"./dist/node.js"}},"scripts":{"build":"tsc -b"},"_npmUser":{"name":"albertomarturelo","email":"amarturelo@gmail.com"},"_resolved":"/tmp/5dde45ce944f0d8f00e45b5e9279f282/albertomarturelo-sii-core-0.8.0.tgz","_integrity":"sha512-zz0ZSBzsakCplOC+YxVnn4h2XlLhWN18eW/RMaqCQ0a/QgyRGQFJ2o3mXDMRn90QRWXGDPxk5DWuUrFpt4BrPQ==","repository":{"url":"git+https://github.com/albertomarturelo/sii.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Shared SII domain core: rut, config (prod hostnames), contracts, tasks, seams. A Node library; external side-effects (portal, secrets, audit, clock) are injected via seams (ADR-003).","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"playwright":"^1.49.0"},"peerDependencies":{"playwright":"^1.49.0"},"peerDependenciesMeta":{"playwright":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sii-core_0.8.0_1788981218625_0.5649242253489151","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@albertomarturelo/sii-core","version":"0.9.0","license":"MIT","_id":"@albertomarturelo/sii-core@0.9.0","maintainers":[{"name":"albertomarturelo","email":"amarturelo@gmail.com"}],"homepage":"https://github.com/albertomarturelo/sii#readme","bugs":{"url":"https://github.com/albertomarturelo/sii/issues"},"dist":{"shasum":"fcba9695ff8cb7354f64ca3ee55a9a5c62f6b8d4","tarball":"https://registry.npmjs.org/@albertomarturelo/sii-core/-/sii-core-0.9.0.tgz","fileCount":228,"integrity":"sha512-tyE6OvQ8osIE44wIqDSZmguzcwJ97pcyIPyiooi7wQWZh2iZwXt08llRyNyoLlOoUglswssgT23VsOU1L3JGVw==","signatures":[{"sig":"MEUCIDQk/8X+SmdizY9JKnYg8S+lA0N1LLzPcwDdbbZM7cz+AiEAyY/YnTrczeN6uSSizjr5gQ4i741u+SbqTJgNejWEKU8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCrU5rSgNVRHz6UjmARb/5bc91gCJNfY2jdrh4vnAzSNgIgCMSvJabWRQLfTM/zAV4cKbufJYmTo+OSfKxFsgMDnQ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":771052},"main":"./dist/index.js","type":"module","_from":"file:albertomarturelo-sii-core-0.9.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","default":"./dist/cli.js"},"./node":{"types":"./dist/node.d.ts","default":"./dist/node.js"}},"scripts":{"build":"tsc -b"},"_npmUser":{"name":"albertomarturelo","email":"amarturelo@gmail.com"},"_resolved":"/tmp/dcc84d29852d556ad0cb26f1ab11f166/albertomarturelo-sii-core-0.9.0.tgz","_integrity":"sha512-tyE6OvQ8osIE44wIqDSZmguzcwJ97pcyIPyiooi7wQWZh2iZwXt08llRyNyoLlOoUglswssgT23VsOU1L3JGVw==","repository":{"url":"git+https://github.com/albertomarturelo/sii.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Shared SII domain core: rut, config (prod hostnames), contracts, tasks, seams. A Node library; external side-effects (portal, secrets, audit, clock) are injected via seams (ADR-003).","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"playwright":"^1.49.0","@napi-rs/keyring":"2.0.0"},"peerDependencies":{"playwright":"^1.49.0"},"peerDependenciesMeta":{"playwright":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sii-core_0.9.0_1789004883995_0.7851193777376129","host":"s3://npm-registry-packages-npm-production"}},"0.10.0":{"_id":"@albertomarturelo/sii-core@0.10.0","bugs":{"url":"https://github.com/albertomarturelo/sii/issues"},"dist":{"shasum":"6265d59ee8856b5d711b2f06d3b2efe21b83d737","tarball":"https://registry.npmjs.org/@albertomarturelo/sii-core/-/sii-core-0.10.0.tgz","fileCount":244,"integrity":"sha512-VUq+S9EGUfzh3sB6xbUhHEqj6auDy5Z0+WZ2Cu+yfzExAScz0aSeG0aP5nvKAi9cEmYswWHvH/3UyFcL3PW8Jw==","signatures":[{"sig":"MEQCIDiOuFh75COXUPh4dcmyWOOwThCEGbY9dRiIC0oYikWiAiB+zuaA8jLg4WI2ZKh8CIoWlnk8x9NOLObxOgTIg9dnag==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGJHNqMjsQD5y5C6ddhavPgwBfti0aa4OYTu0JAlxAGcAiEA9bvK2M+McxS3V6e5EMjsqj3UGNXIcFkm0e0isochCDA="}],"unpackedSize":839726},"main":"./dist/index.js","name":"@albertomarturelo/sii-core","type":"module","_from":"file:albertomarturelo-sii-core-0.10.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","default":"./dist/cli.js"},"./node":{"types":"./dist/node.d.ts","default":"./dist/node.js"}},"license":"MIT","scripts":{"build":"tsc -b"},"version":"0.10.0","_npmUser":{"name":"albertomarturelo","email":"amarturelo@gmail.com"},"homepage":"https://github.com/albertomarturelo/sii#readme","_resolved":"/tmp/b8c79f328b57e1549badc62b96bf184d/albertomarturelo-sii-core-0.10.0.tgz","_integrity":"sha512-VUq+S9EGUfzh3sB6xbUhHEqj6auDy5Z0+WZ2Cu+yfzExAScz0aSeG0aP5nvKAi9cEmYswWHvH/3UyFcL3PW8Jw==","repository":{"url":"git+https://github.com/albertomarturelo/sii.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Shared SII domain core: rut, config (prod hostnames), contracts, tasks, seams. A Node library; external side-effects (portal, secrets, audit, clock) are injected via seams (ADR-003).","directories":{},"maintainers":[{"name":"albertomarturelo","email":"amarturelo@gmail.com"}],"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"playwright":"^1.49.0","@napi-rs/keyring":"2.0.0"},"peerDependencies":{"playwright":"^1.49.0"},"peerDependenciesMeta":{"playwright":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sii-core_0.10.0_1789232444057_0.7141874660602565"}}},"time":{"created":"2026-07-03T01:27:26.118Z","modified":"2026-09-12T17:00:44.295Z","0.3.0":"2026-07-03T01:27:26.505Z","0.4.0":"2026-07-03T04:19:08.842Z","0.5.0":"2026-07-03T22:21:35.827Z","0.6.0":"2026-07-04T03:15:09.680Z","0.7.0":"2026-09-01T03:11:40.241Z","0.8.0":"2026-09-09T19:13:38.718Z","0.9.0":"2026-09-10T01:48:04.122Z","0.10.0":"2026-09-12T17:00:44.148Z"},"bugs":{"url":"https://github.com/albertomarturelo/sii/issues"},"license":"MIT","homepage":"https://github.com/albertomarturelo/sii#readme","repository":{"url":"git+https://github.com/albertomarturelo/sii.git","type":"git","directory":"packages/core"},"description":"Shared SII domain core: rut, config (prod hostnames), contracts, tasks, seams. A Node library; external side-effects (portal, secrets, audit, clock) are injected via seams (ADR-003).","maintainers":[{"name":"albertomarturelo","email":"amarturelo@gmail.com"}],"readme":"# @albertomarturelo/sii-core\n\nThe shared SII (Servicio de Impuestos Internos, Chile) domain core — the engine\nbehind the `sii` CLI and the `sii-mcp` server. A Node library: every legal and\noperational guardrail (throttling, audit, credential handling, the operate-centric\nidentity model) lives here, so a consumer that codes against the task layer gets\nthe same rails the first-party surfaces do.\n\n> **Open source (MIT).** See [ADR-018](../../docs/decisions/018-public-release-mit-license.md)\n> and [ADR-019](../../docs/decisions/019-publish-public-npm-personal-scope.md). Published to\n> the **public npm registry**. (Earlier `0.x` releases were private on GitHub Packages under\n> the `@altumstack` scope — ADR-015; superseded.)\n\n## Install\n\n```bash\npnpm add @albertomarturelo/sii-core\n# or: npm install @albertomarturelo/sii-core\n```\n\n`zod` comes along as a dependency. **`playwright` is an OPTIONAL peer** (ADR-016):\nonly the default `PortalDriver` (the `@albertomarturelo/sii-core/node` subpath) needs it.\nIf you use that default driver — i.e. you actually drive a real browser against\nSII — install it plus the Chromium binary once:\n\n```bash\npnpm add playwright\npnpm exec playwright install chromium\n```\n\nIf you inject your own `PortalDriver` (or only use the tasks/primitives), skip\nthis entirely — nothing in the main barrel imports playwright or `node:*`.\n\n## Usage\n\nA consumer builds a `Runtime` (the composition root that wires the Node default\nadapters, from the `./node` subpath) and calls **tasks** — the public operations.\nNever reach past the task layer into a sub-module; that bypasses the guardrails\n(ADR-003).\n\n```ts\nimport { authStatus, rcvSummary } from '@albertomarturelo/sii-core';\nimport { createNodeRuntime } from '@albertomarturelo/sii-core/node';\n\nconst runtime = createNodeRuntime();\n\n// Who is the current session operating as? (pure-local read)\nconst status = await authStatus(runtime);\n\n// Read the RCV compra summary for a period (body-RUT surface — `rut` optional).\nconst resumen = await rcvSummary(runtime, { periodo: '2026-05', side: 'compra' });\nconsole.log(JSON.stringify(resumen, null, 2));\n```\n\nTasks return plain JSON-serializable objects (no `Date`/`Map`/`Set`) — that is the\nlibrary contract (ADR-012). Authentication is an explicit verb: tasks consume a\nlive session or raise `NotAuthenticated`; only `login` mints one. Logging in opens\na real browser where the user types their Clave (cookies-only; the password never\ncrosses the library boundary — ADR-006).\n\n### Injecting your own seams\n\nThe external side-effects are interfaces (`PortalDriver`, `KeyValueStore`,\n`AuditSink`, `Clock`, …). `createNodeRuntime` accepts a `Partial<Runtime>` of\noverrides, so partial reuse is a supported path — e.g. Node defaults with your\nown audit sink and portal driver (an embedding app's mediated browser):\n\n```ts\nimport { createNodeRuntime } from '@albertomarturelo/sii-core/node';\n\nconst runtime = createNodeRuntime({ audit: myAuditSink, portal: myPortalDriver });\n```\n\nIn-memory fakes ship under `testing` so a consumer's tests never touch the real\nSII, keyring, or clock — assemble a `Runtime` from them:\n\n```ts\nimport { testing, type Runtime } from '@albertomarturelo/sii-core';\n\nconst runtime: Runtime = {\n  clock: new testing.FixedClock(new Date('2026-06-29T12:00:00Z')),\n  audit: new testing.RecordingAuditSink(),\n  store: new testing.InMemoryKeyValueStore(),\n  portal: new testing.FakePortalDriver({ requestPublic: () => '<html>…</html>' }),\n};\n```\n\n## What's inside\n\n- **auth / identity** — single-account, operate-centric session model (ADR-005).\n- **read surfaces** — `rcv`, `f22`, `f29`, `bte`, `dte` (authorized, public).\n- **primitives** — `Rut` (Mod-11), `Periodo` / `Anio`, prod `HOSTS`, audit.\n\nSee [`docs/ARCHITECTURE.md`](../../docs/ARCHITECTURE.md) and\n[`docs/ROADMAP.md`](../../docs/ROADMAP.md) for the full picture, and\n[`CHANGELOG.md`](./CHANGELOG.md) for release notes.\n\n## Releasing (maintainers)\n\nBump `version` in `package.json`, then push a matching `v*` tag — the\n`publish-core` GitHub Action builds and publishes to GitHub Packages on tag\n(ADR-015):\n\n```bash\n# after bumping version to e.g. 0.2.0 and merging to main\ngit tag v0.2.0\ngit push origin v0.2.0\n```\n","readmeFilename":"README.md"}