@antelopejs/core 1.20.0 → 1.21.1
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.
- package/dist/cli/commands/project/modules/update-action.js +20 -8
- package/dist/cli/commands/project/modules/update-action.js.map +1 -1
- package/dist/cli/common.d.ts +1 -0
- package/dist/cli/common.js +33 -76
- package/dist/cli/common.js.map +1 -1
- package/dist/cli/config-layout.d.ts +20 -0
- package/dist/cli/config-layout.js +144 -0
- package/dist/cli/config-layout.js.map +1 -0
- package/dist/cli/config-source-edits.d.ts +19 -0
- package/dist/cli/config-source-edits.js +157 -0
- package/dist/cli/config-source-edits.js.map +1 -0
- package/dist/cli/config-source.d.ts +10 -0
- package/dist/cli/config-source.js +198 -0
- package/dist/cli/config-source.js.map +1 -0
- package/dist/cli/full-cli.d.ts +1 -0
- package/dist/cli/full-cli.js +1 -0
- package/dist/cli/full-cli.js.map +1 -1
- package/dist/cli/production-start.d.ts +1 -0
- package/dist/cli/production-start.js +1 -0
- package/dist/cli/production-start.js.map +1 -1
- package/dist/cli/text-width-ranges.d.ts +3 -0
- package/dist/cli/text-width-ranges.js +138 -0
- package/dist/cli/text-width-ranges.js.map +1 -0
- package/dist/cli/text-width-sequences.d.ts +4 -0
- package/dist/cli/text-width-sequences.js +101 -0
- package/dist/cli/text-width-sequences.js.map +1 -0
- package/dist/cli/text-width.d.ts +1 -0
- package/dist/cli/text-width.js +393 -0
- package/dist/cli/text-width.js.map +1 -0
- package/dist/core/config/config-loader.d.ts +2 -1
- package/dist/core/config/config-loader.js +2 -2
- package/dist/core/config/config-loader.js.map +1 -1
- package/dist/core/config/config-parser.d.ts +3 -2
- package/dist/core/config/config-parser.js +9 -20
- package/dist/core/config/config-parser.js.map +1 -1
- package/dist/core/config/index.d.ts +1 -1
- package/dist/core/config/index.js +3 -1
- package/dist/core/config/index.js.map +1 -1
- package/dist/core/downloaders/local-folder.js +1 -0
- package/dist/core/downloaders/local-folder.js.map +1 -1
- package/dist/core/downloaders/registry.js +6 -2
- package/dist/core/downloaders/registry.js.map +1 -1
- package/dist/core/downloaders/utils.js +2 -12
- package/dist/core/downloaders/utils.js.map +1 -1
- package/dist/core/modules/build-artifact.d.ts +1 -0
- package/dist/core/modules/build-artifact.js +11 -3
- package/dist/core/modules/build-artifact.js.map +1 -1
- package/dist/core/output/errors.d.ts +3 -1
- package/dist/core/output/errors.js.map +1 -1
- package/dist/core/runtime/build-refresh.d.ts +1 -0
- package/dist/core/runtime/build-refresh.js +59 -0
- package/dist/core/runtime/build-refresh.js.map +1 -1
- package/dist/core/runtime/build-runtime.js +13 -5
- package/dist/core/runtime/build-runtime.js.map +1 -1
- package/dist/core/runtime/launch-sequence.js +2 -1
- package/dist/core/runtime/launch-sequence.js.map +1 -1
- package/dist/core/test/test-runner.d.ts +3 -3
- package/dist/core/test/test-runner.js +37 -6
- package/dist/core/test/test-runner.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interface-core-guard.d.ts +7 -0
- package/dist/interface-core-guard.js +45 -0
- package/dist/interface-core-guard.js.map +1 -0
- package/dist/utils/object.d.ts +1 -0
- package/dist/utils/object.js +11 -0
- package/dist/utils/object.js.map +1 -1
- package/package.json +3 -3
- package/skills/ajs-author-interface/SKILL.md +1 -1
- package/skills/ajs-cli/SKILL.md +4 -2
- package/skills/ajs-cli/cases.json +33 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ajs-author-interface
|
|
3
|
-
description: Guides authoring or versioning an AntelopeJS interface package itself (@antelopejs/interface-*). Use when editing an interface's contract surface, defining a new interface, or deciding whether a change is breaking and which version to bump.
|
|
3
|
+
description: Guides authoring or versioning an AntelopeJS interface package itself (@antelopejs/interface-*). Use when editing an interface's contract surface, defining a new interface, deciding whether an interface ships embedded in the module that implements it or as a standalone interface package, publishing an interface, or deciding whether a change is breaking and which version to bump. Not for embedded mode or standalone mode, which is how the runtime starts (createRuntime in a host app or ajs project): use ajs-cli.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Authoring & versioning interfaces
|
package/skills/ajs-cli/SKILL.md
CHANGED
|
@@ -17,11 +17,11 @@ ajs project dev -e production # select an environment of antelope.config.ts (
|
|
|
17
17
|
ajs project dev -i # REPL with the project loaded
|
|
18
18
|
ajs project dev --inspect # Node inspector (default 127.0.0.1:9229)
|
|
19
19
|
ajs project build # download & install modules, check they load and interface ranges, write .antelope/build/build.json (--frozen-modules in CI)
|
|
20
|
-
ajs project start # launch from the build artifact; --refresh-config re-resolves the config at start
|
|
20
|
+
ajs project start # launch from the build artifact with envOverrides read at start; --refresh-config re-resolves the config at start
|
|
21
21
|
ajs project logging show|set # view/change logging settings
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
`dev` resolves and wires the module graph every run; `start` trusts a prior `build`. Use `build` + `start` in production/CI, `dev --watch` while developing. `dev` and `start` accept `-c, --concurrency <number>`. `start --refresh-config` exits with code `3` when the configured module set differs from the build: rebuild then.
|
|
24
|
+
`dev` resolves and wires the module graph every run; `start` trusts a prior `build`. Use `build` + `start` in production/CI, `dev --watch` while developing. `dev` and `start` accept `-c, --concurrency <number>`. `build.json` keeps the `envOverrides` mapping but none of its values, so secrets mapped there are set at `start`, not at `build`. `start --refresh-config` exits with code `3` when the configured module set differs from the build: rebuild then.
|
|
25
25
|
|
|
26
26
|
`init` asks its questions interactively; in scripts and CI answer them with flags (`--name`, `-t/--template <slug>`, `--interfaces a,b`, `--pm pnpm`, `--git-init`/`--no-git-init`) or accept defaults with `-y`. `--template` takes a template slug (its name in lower case, runs of other characters as `-`: "DMS Demo" is `dms-demo`) or the exact name; an unknown template exits with code `2` and lists the slugs. Without a terminal, an unanswered question exits with code `2` before anything is written.
|
|
27
27
|
|
|
@@ -37,6 +37,8 @@ ajs project modules install # add a provider module for every unres
|
|
|
37
37
|
|
|
38
38
|
`add` in package mode accepts `<name>@<exact|range|dist-tag>`; without a spec it writes a caret range of the latest version. `add` does no interface resolution.
|
|
39
39
|
|
|
40
|
+
`modules add|remove|update|install` and `logging set` edit only the values they change in `antelope.config.ts` and keep the rest of the source. They change a value only when it is a plain literal. On an expression (`version: CORE_VERSION`, `process.env.X ?? "1.0.0"`) they fail, name the value to edit by hand, and leave the file unchanged: make that edit, do not inline the expression to silence the error.
|
|
41
|
+
|
|
40
42
|
`modules install` (not `add`) fixes **unresolved imports**, and despite its name it installs no npm dependencies: it finds the interfaces no loaded module implements, looks up their implementing modules in the interface repository, and writes the chosen one into `antelope.config.ts`. A single implementer is added without a question; with several it asks, or takes the first with `-y`. It then checks interface ranges like `build`.
|
|
41
43
|
|
|
42
44
|
`build` and `modules install` fail (exit `1`, no `build.json` written) with `Incompatible interface package resolution` when a module's declared range of an interface package excludes the shared copy, the same error `start` and `dev` raise. Fix it as the error says: update that module, or widen its range to the shared version (`^<version>`) and reinstall, or keep the module that provides the shared copy on a version within the range. Do not skip the build check. A module marked `optional: true` that would conflict only produces a warning, as `start` runs without it.
|
|
@@ -114,6 +114,39 @@
|
|
|
114
114
|
"ajs project modules update"
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "ajs-cli-embedded-mode-casual",
|
|
120
|
+
"area": "framework",
|
|
121
|
+
"style": "casual",
|
|
122
|
+
"prompt": "embedded vs standalone for an adonisjs app, which one",
|
|
123
|
+
"expect": {
|
|
124
|
+
"skills": ["ajs-cli"],
|
|
125
|
+
"acceptable": ["antelopejs"],
|
|
126
|
+
"avoid": ["ajs-author-interface"]
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "ajs-cli-embedded-config-casual",
|
|
131
|
+
"area": "framework",
|
|
132
|
+
"style": "casual",
|
|
133
|
+
"prompt": "do i still need antelope.config.ts if i go embedded instead of standalone",
|
|
134
|
+
"expect": {
|
|
135
|
+
"skills": ["ajs-cli"],
|
|
136
|
+
"acceptable": ["antelopejs"],
|
|
137
|
+
"avoid": ["ajs-author-interface"]
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": "ajs-cli-embedded-mode-diff",
|
|
142
|
+
"area": "framework",
|
|
143
|
+
"style": "clean",
|
|
144
|
+
"prompt": "What is the difference between embedded mode and standalone mode?",
|
|
145
|
+
"expect": {
|
|
146
|
+
"skills": ["ajs-cli"],
|
|
147
|
+
"acceptable": ["antelopejs"],
|
|
148
|
+
"avoid": ["ajs-author-interface"]
|
|
149
|
+
}
|
|
117
150
|
}
|
|
118
151
|
]
|
|
119
152
|
}
|