{"_id":"@bernierllc/nevar-action-resolver","_rev":"5-8a68d9ffed0893adab86050e56783b54","name":"@bernierllc/nevar-action-resolver","dist-tags":{"latest":"0.5.0"},"versions":{"0.0.1":{"name":"@bernierllc/nevar-action-resolver","version":"0.0.1","keywords":["oidc","trusted-publishing","setup"],"_id":"@bernierllc/nevar-action-resolver@0.0.1","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"4748f02f5f098fffe40ce0e15bf2ae6f9c09b2fb","tarball":"https://registry.npmjs.org/@bernierllc/nevar-action-resolver/-/nevar-action-resolver-0.0.1.tgz","fileCount":2,"integrity":"sha512-TlcSrdOz1gp0E7/DbG/wDlXEe3JriHvuDcHFijD7fYlZ2YwtV6LwrKNHNUc4KPl3hr9RBQ/UKDZtVKIvqqcXKQ==","signatures":[{"sig":"MEUCIQC/ArNX8/31X0VbFgB6PIo8wumuFdQxe7yKzXD/WGZK3QIgZ4kBiWPZrfHfHHhD/wRnjrDd3hfDKRTYP7EPhxrcosQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2095},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"_npmVersion":"11.11.0","description":"OIDC trusted publishing setup package for @bernierllc/nevar-action-resolver","directories":{},"_nodeVersion":"25.8.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/nevar-action-resolver_0.0.1_1774655669693_0.43547232599379737","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@bernierllc/nevar-action-resolver","version":"0.1.0","keywords":["nevar","rules-engine","action-resolver","action-intents"],"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","_id":"@bernierllc/nevar-action-resolver@0.1.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"1537da514a91e5832ea00699657fe1bfc704fac9","tarball":"https://registry.npmjs.org/@bernierllc/nevar-action-resolver/-/nevar-action-resolver-0.1.0.tgz","fileCount":6,"integrity":"sha512-/qayWJYO7C3FFJeHSSGPf21Dwlo4w3vtrTr80QNjeXxZ8sQPzHg33lYxG4M8i/pfPVGdWaAojaRrJPb2rzUamQ==","signatures":[{"sig":"MEQCIGUg9Ca+eFgBMFbbSLYY7q7S1DyKhaKreeNk6wfMDXF+AiB4nqghBDeCIeFdpNAdPyzQMkKJ2U8p+guzcVOkLisFqw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6355},"main":"dist/index.js","_from":"file:bernierllc-nevar-action-resolver-0.1.0.tgz","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"scripts":{"lint":"eslint src __tests__ --ext .ts","test":"jest","build":"tsc","clean":"rimraf dist","prebuild":"npm run clean","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f869ea30-1930-4f98-929f-83153b1a50e6"}},"_resolved":"/home/runner/work/tools/tools/packages/core/nevar-action-resolver/bernierllc-nevar-action-resolver-0.1.0.tgz","_integrity":"sha512-/qayWJYO7C3FFJeHSSGPf21Dwlo4w3vtrTr80QNjeXxZ8sQPzHg33lYxG4M8i/pfPVGdWaAojaRrJPb2rzUamQ==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/nevar-action-resolver"},"_npmVersion":"11.12.1","description":"Resolves matched rules into an ordered list of action intents for the Nevar rules engine","directories":{},"_nodeVersion":"20.20.1","dependencies":{"@bernierllc/nevar-types":"0.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","rimraf":"^5.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nevar-action-resolver_0.1.0_1774897807238_0.21964160999427107","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@bernierllc/nevar-action-resolver","version":"0.2.0","keywords":["nevar","rules-engine","action-resolver","action-intents"],"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","_id":"@bernierllc/nevar-action-resolver@0.2.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"1950a2c2e5b8e778f2689b0d644454d010b98dd8","tarball":"https://registry.npmjs.org/@bernierllc/nevar-action-resolver/-/nevar-action-resolver-0.2.0.tgz","fileCount":6,"integrity":"sha512-DZBlEzJRMv1Q1Ck4PsVMkFXGgZHlci8bUsyYC4BOEe+Y5XlcZT6STH9okzJvUyALIYx2GBTeRHJ+YclUY+UfKA==","signatures":[{"sig":"MEYCIQD0iKEeApUw+nvLkG82XPaqdU6E9eiyAT1Urnp0fuiROQIhAKaBOEI+zMeyoIWyQBtpPOIuExoTAMVPKXrr/67ZjPLz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6355},"main":"dist/index.js","_from":"file:bernierllc-nevar-action-resolver-0.2.0.tgz","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"scripts":{"lint":"eslint src __tests__ --ext .ts","test":"jest","build":"tsc","clean":"rimraf dist","prebuild":"npm run clean","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f869ea30-1930-4f98-929f-83153b1a50e6"}},"_resolved":"/home/runner/work/tools/tools/packages/core/nevar-action-resolver/bernierllc-nevar-action-resolver-0.2.0.tgz","_integrity":"sha512-DZBlEzJRMv1Q1Ck4PsVMkFXGgZHlci8bUsyYC4BOEe+Y5XlcZT6STH9okzJvUyALIYx2GBTeRHJ+YclUY+UfKA==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/nevar-action-resolver"},"_npmVersion":"11.14.1","description":"Resolves matched rules into an ordered list of action intents for the Nevar rules engine","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@bernierllc/nevar-types":"0.2.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","rimraf":"^5.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nevar-action-resolver_0.2.0_1779133518753_0.22610961204105662","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@bernierllc/nevar-action-resolver","version":"0.4.0","keywords":["nevar","rules-engine","action-resolver","action-intents"],"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","_id":"@bernierllc/nevar-action-resolver@0.4.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"ec42c73739ab2678084bf6c65ad1193641c81299","tarball":"https://registry.npmjs.org/@bernierllc/nevar-action-resolver/-/nevar-action-resolver-0.4.0.tgz","fileCount":8,"integrity":"sha512-wHquckhcb1yIzatmTBJKIyEGK3YGnfxA9BTEMQYXEOgdfXSgrBLIBozxxJo14ilB0fci1b3/5JzaRDYQSfGP2w==","signatures":[{"sig":"MEUCIHTDBNBl0COztZPIQDaFRB9MNI6jJCGPx14VG1PTc+BpAiEA5TqSeQwE6ylRbbps+OxsWVQEq3037vfZCB7R3MIn7T8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8197},"main":"dist/index.js","_from":"file:bernierllc-nevar-action-resolver-0.4.0.tgz","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"scripts":{"lint":"eslint src __tests__ --ext .ts","test":"jest","build":"tsc","clean":"rimraf dist","prebuild":"npm run clean","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f869ea30-1930-4f98-929f-83153b1a50e6"}},"_resolved":"/home/runner/work/tools/tools/packages/core/nevar-action-resolver/bernierllc-nevar-action-resolver-0.4.0.tgz","_integrity":"sha512-wHquckhcb1yIzatmTBJKIyEGK3YGnfxA9BTEMQYXEOgdfXSgrBLIBozxxJo14ilB0fci1b3/5JzaRDYQSfGP2w==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/nevar-action-resolver"},"_npmVersion":"11.14.1","description":"Resolves matched rules into an ordered list of action intents for the Nevar rules engine","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@bernierllc/nevar-types":"0.3.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","rimraf":"^5.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nevar-action-resolver_0.4.0_1779241248987_0.23772065362979355","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@bernierllc/nevar-action-resolver","version":"0.5.0","description":"Resolves matched rules into an ordered list of action intents for the Nevar rules engine","main":"dist/index.js","types":"dist/index.d.ts","keywords":["nevar","rules-engine","action-resolver","action-intents"],"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"engines":{"node":">=16.0.0"},"repository":{"type":"git","url":"git+https://github.com/bernierllc/tools.git","directory":"packages/core/nevar-action-resolver"},"dependencies":{"@bernierllc/nevar-types":"0.4.0"},"devDependencies":{"@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/eslint-plugin":"^6.0.0","@typescript-eslint/parser":"^6.0.0","eslint":"^8.0.0","jest":"^29.5.0","rimraf":"^5.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0"},"scripts":{"build":"tsc","prebuild":"npm run clean","clean":"rimraf dist","test":"jest","test:run":"jest","test:coverage":"jest --coverage","lint":"eslint src __tests__ --ext .ts"},"_id":"@bernierllc/nevar-action-resolver@0.5.0","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"homepage":"https://github.com/bernierllc/tools#readme","_integrity":"sha512-iobLhPH+R+aABDCxJ3j4M19ABkMQ3OcD4rowJpsJaFm6+wGCWh3/2TmWSgoqpgDsdqkrCieogsF1BTV+Wap96Q==","_resolved":"/home/runner/work/tools/tools/packages/core/nevar-action-resolver/bernierllc-nevar-action-resolver-0.5.0.tgz","_from":"file:bernierllc-nevar-action-resolver-0.5.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"11.14.1","dist":{"integrity":"sha512-iobLhPH+R+aABDCxJ3j4M19ABkMQ3OcD4rowJpsJaFm6+wGCWh3/2TmWSgoqpgDsdqkrCieogsF1BTV+Wap96Q==","shasum":"853108e2abbd083ab24fce5cbf47281bbae82d2b","tarball":"https://registry.npmjs.org/@bernierllc/nevar-action-resolver/-/nevar-action-resolver-0.5.0.tgz","fileCount":8,"unpackedSize":8197,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHu2iZ1+NYhOt5aC61Xz/EJptJVIIKN7EVJuVooXqTasAiBtHpX7doeBi6D3u6f4cYyimF7SsXYIhR7iaE3BDctv3A=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f869ea30-1930-4f98-929f-83153b1a50e6"}},"directories":{},"maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nevar-action-resolver_0.5.0_1779249997950_0.03517871916950277"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-27T23:54:29.584Z","modified":"2026-05-20T04:06:38.342Z","0.0.1":"2026-03-27T23:54:29.824Z","0.1.0":"2026-03-30T19:10:07.382Z","0.2.0":"2026-05-18T19:45:18.888Z","0.4.0":"2026-05-20T01:40:49.128Z","0.5.0":"2026-05-20T04:06:38.161Z"},"bugs":{"url":"https://github.com/bernierllc/tools/issues"},"author":{"name":"Bernier LLC"},"license":"SEE LICENSE IN LICENSE","homepage":"https://github.com/bernierllc/tools#readme","keywords":["nevar","rules-engine","action-resolver","action-intents"],"repository":{"type":"git","url":"git+https://github.com/bernierllc/tools.git","directory":"packages/core/nevar-action-resolver"},"description":"Resolves matched rules into an ordered list of action intents for the Nevar rules engine","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"readme":"# @bernierllc/nevar-action-resolver\n\nResolves matched rules into an ordered list of action intents for the Nevar rules engine.\n\n## Installation\n\n```bash\nnpm install @bernierllc/nevar-action-resolver\n```\n\n## Usage\n\n```typescript\nimport { resolve } from '@bernierllc/nevar-action-resolver';\nimport type { MatchedRule } from '@bernierllc/nevar-types';\n\nconst matchedRules: MatchedRule[] = [\n  {\n    rule: {\n      id: 'rule-1',\n      name: 'Welcome Email',\n      executionOrder: 1,\n      stopOnMatch: false,\n      actions: [\n        { actionType: 'send-email', config: { to: 'user@example.com' }, executionOrder: 1 },\n        { actionType: 'log-event', config: { event: 'welcome' }, executionOrder: 2 },\n      ],\n      // ... other rule fields\n    },\n    trace: [],\n  },\n];\n\nconst intents = resolve(matchedRules);\n// [\n//   { actionType: 'send-email', config: { to: 'user@example.com' }, ruleId: 'rule-1', ruleName: 'Welcome Email' },\n//   { actionType: 'log-event', config: { event: 'welcome' }, ruleId: 'rule-1', ruleName: 'Welcome Email' },\n// ]\n```\n\n## API\n\n### `resolve(matchedRules)`\n\nPure function that transforms matched rules into a flat, ordered array of `ActionIntent` objects.\n\n- Sorts rules by `rule.executionOrder` ascending\n- Sorts each rule's actions by `executionOrder` ascending\n- Stops processing subsequent rules when `rule.stopOnMatch === true`\n- Preserves retry configuration from action definitions\n\n**Parameters:**\n- `matchedRules: MatchedRule[]` - Rules that matched during evaluation\n\n**Returns:** `ActionIntent[]` - Ordered list of action intents ready for execution\n\n## Integration Documentation\n\n### Logger Integration\nThis package does not integrate with `@bernierllc/logger`. As a core package, logger integration is optional and not included by default. Consumers should handle logging at the service layer.\n\n### NeverHub Integration\nThis package does not integrate with `@bernierllc/neverhub-adapter`. As a core package, NeverHub integration is not applicable. NeverHub registration should be handled by service-layer packages that compose this package.\n\n## License\n\nCopyright (c) 2025 Bernier LLC. All rights reserved.\n","readmeFilename":"README.md"}