tasks-core-node-ts
v0.1.3
Published
Independent Node.js package for task and care-reminder bootstrap, feature flags, and Express integration.
Maintainers
Readme
tasks-core-node-ts
Independent npm package for task and care-reminder bootstrap, feature-flag parsing, and minimal Express integration.
Current scope:
- feature flag parsing from env-like input
- bootstrap helper for Express integration
- minimal status endpoint for activation checks
- reusable task domain model with lifecycle states
- in-memory repository and task service for package-level workflows
Package commands:
npm run buildcompilessrcintodistnpm run typecheckvalidates the package without emitting outputnpm testruns package-level tests using in-memory Express wiringnpm pack --dry-runcan be used to inspect the published payload afterprepack
Positioning:
- intended to be published and versioned as its own package
- targeted at a concrete care/tasks project, not as a narrative artifact of the gateway repository
- consumable from npm by host applications that want to enable the module through configuration
- canonical source repository:
https://github.com/Fundacion-UNID/tasks-core-node-ts - npm package name:
tasks-core-node-ts
Publication notes:
- the package builds its own
distfromsrc prepackruns build plus package tests before packaging- publish command (token-based):
npm publish --access public --//registry.npmjs.org/:_authToken="$NPM_TOKEN" - roadmap items are tracked in
TODO.mdinside the package - repository, homepage, and issue tracker metadata point to the dedicated package repository
Testing strategy:
- package tests should use in-memory adapters and deterministic fixtures
- real PostgreSQL integration tests belong to the host gateway or application integration layer
Phase 2 exports:
TaskServiceandcreateTaskService(...)for reusable task lifecycle operationsInMemoryTaskRepositoryfor local development and package-level tests- core types such as
TaskRecord,CreateTaskInput,ListTasksQuery, andTaskStatus
Reminder routing contract:
- this package targets tenant-scoped reminder runtime paths under
/:tenantId/... - it is not a host-registry onboarding package
- reminder/task claims may carry passthrough metadata such as permission overlays or contact-routing data, but canonical subject onboarding still belongs to tenant-scoped
Communicationflows
