@antelopejs/core 1.21.2 → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +21 -12
  2. package/dist/cli/commands/project/logging/set-operations.js +1 -3
  3. package/dist/cli/commands/project/logging/set-operations.js.map +1 -1
  4. package/dist/cli/commands/project/logging/show-action.js +1 -1
  5. package/dist/cli/commands/project/logging/show-action.js.map +1 -1
  6. package/dist/cli/commands/project/modules/add-action.d.ts +4 -1
  7. package/dist/cli/commands/project/modules/add-action.js +2 -2
  8. package/dist/cli/commands/project/modules/add-action.js.map +1 -1
  9. package/dist/cli/commands/project/modules/install-action.js +1 -0
  10. package/dist/cli/commands/project/modules/install-action.js.map +1 -1
  11. package/dist/cli/commands/project/modules/interface-check.d.ts +1 -0
  12. package/dist/cli/commands/project/modules/interface-check.js +6 -4
  13. package/dist/cli/commands/project/modules/interface-check.js.map +1 -1
  14. package/dist/cli/lazy-action.d.ts +1 -1
  15. package/dist/cli/lazy-action.js.map +1 -1
  16. package/dist/cli/production-start.d.ts +1 -1
  17. package/dist/cli/production-start.js +3 -3
  18. package/dist/cli/production-start.js.map +1 -1
  19. package/dist/core/build/interface-ranges.d.ts +2 -1
  20. package/dist/core/build/interface-ranges.js +2 -2
  21. package/dist/core/build/interface-ranges.js.map +1 -1
  22. package/dist/core/cli/index.js +2 -0
  23. package/dist/core/cli/index.js.map +1 -1
  24. package/dist/core/config/config-loader.js +5 -1
  25. package/dist/core/config/config-loader.js.map +1 -1
  26. package/dist/core/config/ts-config-file.js +0 -1
  27. package/dist/core/config/ts-config-file.js.map +1 -1
  28. package/dist/core/downloaders/git.js +6 -7
  29. package/dist/core/downloaders/git.js.map +1 -1
  30. package/dist/core/downloaders/local-folder.d.ts +1 -0
  31. package/dist/core/downloaders/local-folder.js +4 -1
  32. package/dist/core/downloaders/local-folder.js.map +1 -1
  33. package/dist/core/downloaders/local.d.ts +1 -0
  34. package/dist/core/downloaders/local.js +4 -1
  35. package/dist/core/downloaders/local.js.map +1 -1
  36. package/dist/core/downloaders/package.js +1 -1
  37. package/dist/core/downloaders/package.js.map +1 -1
  38. package/dist/core/embedded/proxy-ownership.js +3 -0
  39. package/dist/core/embedded/proxy-ownership.js.map +1 -1
  40. package/dist/core/embedded/runtime.js.map +1 -1
  41. package/dist/core/filesystem/index.js.map +1 -1
  42. package/dist/core/modules/module-errors.d.ts +1 -1
  43. package/dist/core/modules/module-errors.js +2 -2
  44. package/dist/core/modules/module-errors.js.map +1 -1
  45. package/dist/core/modules/module.js +48 -2
  46. package/dist/core/modules/module.js.map +1 -1
  47. package/dist/core/modules/resolver-detour.js.map +1 -1
  48. package/dist/core/output/command.js.map +1 -1
  49. package/dist/core/output/failures.d.ts +2 -2
  50. package/dist/core/output/failures.js +11 -11
  51. package/dist/core/output/failures.js.map +1 -1
  52. package/dist/core/output/help.js +6 -2
  53. package/dist/core/output/help.js.map +1 -1
  54. package/dist/core/output/logging-utils.js +22 -2
  55. package/dist/core/output/logging-utils.js.map +1 -1
  56. package/dist/core/output/translations.d.ts +1 -1
  57. package/dist/core/output/translations.js +7 -7
  58. package/dist/core/output/translations.js.map +1 -1
  59. package/dist/core/repl/index.d.ts +0 -1
  60. package/dist/core/repl/index.js +0 -1
  61. package/dist/core/repl/index.js.map +1 -1
  62. package/dist/core/repl/project-launch.js +1 -1
  63. package/dist/core/repl/project-launch.js.map +1 -1
  64. package/dist/core/{repl/repl-session.js → repl-session/index.js} +1 -1
  65. package/dist/core/repl-session/index.js.map +1 -0
  66. package/dist/core/resolution/stub-interface-runtime.d.ts +3 -1
  67. package/dist/core/resolution/stub-interface-runtime.js +33 -36
  68. package/dist/core/resolution/stub-interface-runtime.js.map +1 -1
  69. package/dist/core/runtime/build-refresh.d.ts +1 -1
  70. package/dist/core/runtime/build-refresh.js +5 -5
  71. package/dist/core/runtime/build-refresh.js.map +1 -1
  72. package/dist/core/runtime/module-loading.d.ts +1 -1
  73. package/dist/core/runtime/module-loading.js +6 -5
  74. package/dist/core/runtime/module-loading.js.map +1 -1
  75. package/dist/core/runtime/runtime-bootstrap.d.ts +1 -1
  76. package/dist/core/runtime/runtime-bootstrap.js.map +1 -1
  77. package/dist/core/runtime/runtime-types.d.ts +1 -0
  78. package/dist/logging/index.d.ts +9 -2
  79. package/dist/logging/index.js +13 -9
  80. package/dist/logging/index.js.map +1 -1
  81. package/dist/utils/type-guards.js.map +1 -1
  82. package/package.json +7 -7
  83. package/skills/ajs-cli/SKILL.md +15 -2
  84. package/skills/antelopejs/SKILL.md +1 -1
  85. package/dist/core/repl/repl-session.js.map +0 -1
  86. /package/dist/core/{repl/repl-session.d.ts → repl-session/index.d.ts} +0 -0
@@ -9,7 +9,7 @@ AntelopeJS is a modular Node.js framework. Read this overview first, then jump t
9
9
 
10
10
  ## The model in one screen
11
11
 
12
- - **Core + CLI (`ajs`)** — a small runtime that loads modules, wires their interfaces together, and manages the dev/build/start lifecycle. Users rarely edit the core; they run it via `ajs` (modules declared in `antelope.config.ts`). It can also run **embedded** as a guest inside a host app that owns the process (`createRuntime` from `@antelopejs/core`, e.g. the AdonisJS DMS template): no `antelope.config.ts`, modules are plain npm dependencies, and host code reaches interfaces through `runtime.use("<interface package>[/subpath]")`, never by importing them.
12
+ - **Core + CLI (`ajs`)** — a small runtime that loads modules, wires their interfaces together, and manages the dev/build/start lifecycle. Users rarely edit the core; they run it via `ajs` (modules declared in `antelope.config.ts`). It can also run **embedded** as a guest inside a host app that owns the process (`createRuntime` from `@antelopejs/core`, e.g. the AdonisJS DMS template): no `antelope.config.ts`, modules are plain npm dependencies, and host code reaches interfaces through `runtime.use("<interface package>[/subpath]")`, never by importing them, after declaring each request in the `EmbeddedInterfaces` map of `@antelopejs/core` (see **ajs-cli**, Embedded mode).
13
13
  - **Modules** — independent units of functionality. A module may import **interfaces**, never another module's files. Its *only* links to the rest of the project are the interface proxy points it attaches to — nothing else crosses the boundary.
14
14
  - **Interfaces** — **versioned contracts**, usually published as standalone `@<scope>/interface-<name>` packages (a module may also start with an *embedded* interface it exports itself, e.g. `@acme/broker/interface`, and extract it once a second implementation appears). An interface package contains the **proxy points** (`InterfaceFunction`, `EventProxy`, `RegisteringProxy`, …) that actually cross to the provider, the **types** that pass across — and often substantial **client-side code** built over those proxies. It is not just empty slots: the `database` interface is mostly chainable `Table`/`Query`/`Datum` classes that assemble a query *in the caller's process*, crossing the boundary only when `.run()` invokes the underlying `RunQuery` proxy. The contract is the package's whole TypeScript surface (`exports` subpaths + `.d.ts`), versioned with semver git tags. **Interfaces may depend on other interfaces** (e.g. `data-api` builds on `api`, `api-util`, `core`, `database`, and `database-decorators`) — that composition is allowed and normal. What's forbidden is modules reaching into each other.
15
15
 
@@ -1 +0,0 @@
1
- {"version":3,"file":"repl-session.js","sourceRoot":"","sources":["../../../src/core/repl/repl-session.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAkD;AAWlD,MAAa,WAAW;IAIZ;IACA;IAJF,MAAM,CAAc;IAE5B,YACU,OAAoB,EACpB,aAA0B,mBAAI,CAAC,KAAK;QADpC,YAAO,GAAP,OAAO,CAAa;QACpB,eAAU,GAAV,UAAU,CAA0B;IAC3C,CAAC;IAEJ,KAAK,CAAC,SAAiB,IAAI;QACzB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;IACvB,CAAC;CACF;AAjBD,kCAiBC"}