Copy architecture docs, ADRs, storage domain specs, research, reviews, and 56 storage architecture tasks from the alkhub_ts monorepo. Adapt for standalone @alkdev/hub repo structure (src/ not packages/hub/). Sanitize all sensitive information: - Replace private IPs (10.0.0.1) with localhost defaults - Remove internal server hostnames (dev1, ns528096) - Replace /workspace/ private paths with npm package references - Remove hardcoded credentials from examples - Rewrite infrastructure.md without private network details Add Deno project scaffolding: deno.json (pinned deps), .gitignore, AGENTS.md, entry point. Migrate existing code stubs (crypto, config types, logger) with updated import paths.
2.9 KiB
2.9 KiB
id, name, status, depends_on, scope, risk, impact, level
| id | name | status | depends_on | scope | risk | impact | level |
|---|---|---|---|---|---|---|---|
| delete-replaced-core-code | Delete Replaced Core Code and Update Package Config | completed | moderate | medium | component | implementation |
Description
Remove all code from packages/core/ that has been replaced by the @alkdev/operations and @alkdev/pubsub npm packages. This is the first step in the core library extraction sync — clearing out the old code before relocating what remains and updating the package structure.
Files to delete
PubSub module (replaced by @alkdev/pubsub):
packages/core/pubsub/create_pubsub.tspackages/core/pubsub/typed_event_target.tspackages/core/pubsub/redis_event_target.tspackages/core/pubsub/operators.tspackages/core/pubsub/mod.ts
Operations module (replaced by @alkdev/operations):
packages/core/operations/types.tspackages/core/operations/registry.tspackages/core/operations/env.tspackages/core/operations/scanner.tspackages/core/operations/validation.tspackages/core/operations/from_schema.tspackages/core/operations/from_openapi.tspackages/core/operations/mod.ts
MCP module (replaced by @alkdev/operations/from-mcp):
packages/core/mcp/wrapper.tspackages/core/mcp/loader.tspackages/core/mcp/mod.ts
Tests and fixtures (for deleted modules):
packages/core/tests/operations/registry.test.tspackages/core/tests/operations/scanner.test.tspackages/core/tests/pubsub/redis_event_target.test.tspackages/core/tests/mcp/loader.test.tspackages/core/tests/fixtures/registry.tspackages/core/tests/fixtures/operations/demo/greet.tspackages/core/tests/fixtures/operations/other/calculate.tspackages/core/tests/operations/(directory)packages/core/tests/pubsub/(directory)packages/core/tests/mcp/(directory)packages/core/tests/fixtures/operations/(directory)
Config updates
packages/core/deno.json:
- Remove exports:
"./operations","./pubsub","./mcp" - Remove imports:
"@repeaterjs/repeater","@modelcontextprotocol/sdk","ioredis","@alkdev/typebox/value" - Keep
"@alkdev/typebox"(still needed by config types) - Keep
"@std/*"imports if used by remaining modules - Keep
"@logtape/logtape"(still needed by logger)
packages/core/mod.ts:
- Remove re-exports of operations, pubsub, mcp
- Keep re-exports of config, logger (and utils/crypto if it stays)
Acceptance Criteria
- All listed files and directories are deleted
packages/core/deno.jsonhas no references to deleted modulespackages/core/mod.tshas no references to deleted modulesdeno check packages/core/passes on remaining code- No orphaned imports in remaining core files (config, logger, utils/crypto)
- Root
deno.jsonworkspace still includespackages/core(package removal is a separate task)
References
- docs/reviews/core-library-extraction-sync-2026-05-18.md (Section 1.1, 1.3)