@antelopejs/dms 0.17.0 → 0.18.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/CHANGELOG.md +65 -0
- package/README.md +7 -11
- package/bin/control/backend-records.test.mjs +276 -0
- package/bin/control/backend.mjs +212 -0
- package/bin/control/backend.test.mjs +325 -0
- package/bin/control/base.mjs +3 -7
- package/bin/control/browser-client.mjs +6 -4
- package/bin/control/browser.mjs +173 -36
- package/bin/control/build-cache.mjs +394 -0
- package/bin/control/build-cache.test.mjs +270 -0
- package/bin/control/build-inputs.mjs +172 -0
- package/bin/control/build-key-refusals.test.mjs +138 -0
- package/bin/control/build-key.mjs +479 -0
- package/bin/control/build-key.test.mjs +392 -0
- package/bin/control/build-layout.test.mjs +314 -0
- package/bin/control/commands-stack.mjs +46 -6
- package/bin/control/commands-verify.mjs +9 -2
- package/bin/control/doctor.mjs +87 -16
- package/bin/control/forwarder.mjs +86 -0
- package/bin/control/forwarder.test.mjs +141 -0
- package/bin/control/frontend-check.mjs +54 -0
- package/bin/control/frontend-workspace.mjs +150 -0
- package/bin/control/frontend-workspace.test.mjs +133 -0
- package/bin/control/helpers/env.mjs +21 -0
- package/bin/control/helpers/evidence.mjs +13 -0
- package/bin/control/helpers/fake-run.mjs +290 -0
- package/bin/control/helpers/key-fixture.mjs +82 -0
- package/bin/control/helpers/pids.mjs +27 -0
- package/bin/control/helpers/repo.mjs +13 -0
- package/bin/control/helpers/tree.mjs +40 -0
- package/bin/control/identity.mjs +238 -0
- package/bin/control/identity.test.mjs +166 -0
- package/bin/control/journey.mjs +64 -16
- package/bin/control/journey.test.mjs +60 -2
- package/bin/control/namespaces.test.mjs +211 -0
- package/bin/control/options.mjs +2 -0
- package/bin/control/pid-guard.test.mjs +202 -0
- package/bin/control/prepared-workspace.mjs +20 -0
- package/bin/control/processes.mjs +122 -33
- package/bin/control/processes.test.mjs +255 -0
- package/bin/control/renderer.test.mjs +2 -1
- package/bin/control/run-copy.mjs +77 -0
- package/bin/control/run-state.mjs +142 -16
- package/bin/control/stack.mjs +259 -210
- package/bin/control/tab.mjs +13 -6
- package/bin/control/tab.test.mjs +444 -0
- package/bin/control/timing.mjs +244 -0
- package/bin/control/timing.test.mjs +197 -0
- package/bin/control/verify/decode.mjs +34 -21
- package/bin/control/verify/decode.test.mjs +39 -0
- package/bin/control/verify/doors.test.mjs +2 -0
- package/bin/control/verify/map.mjs +57 -7
- package/bin/control/verify/map.test.mjs +264 -0
- package/bin/control/verify/skill.mjs +12 -3
- package/bin/control/verify/types.mjs +2 -2
- package/bin/control/verify/verdict.mjs +37 -7
- package/bin/dms-control.mjs +14 -6
- package/dist/config/internal/state.d.ts +2 -2
- package/dist/config/internal/state.js.map +1 -1
- package/dist/utils/sign-in-country.d.ts +0 -1
- package/dist/utils/sign-in-country.js +7 -17
- package/dist/utils/sign-in-country.js.map +1 -1
- package/frontend-vue/layers/dms-layout/app/components/layout/DashboardSearch.vue +24 -1
- package/frontend-vue/layers/dms-layout/app/composables/layout/usePageHeaderActions.ts +1 -1
- package/frontend-vue/package.json +1 -1
- package/frontend-vue/scripts/check-autoimport-boundaries.mjs +19 -3
- package/frontend-vue/scripts/test-autoimport-boundaries.mjs +19 -0
- package/package.json +5 -5
- package/skills/dms-project/SKILL.md +6 -3
- package/data/NOTICE.md +0 -12
- package/data/dbip-country-lite.mmdb +0 -0
|
@@ -71,8 +71,24 @@ function own(name, file, registry = owners) {
|
|
|
71
71
|
entries.add(file);
|
|
72
72
|
registry.set(name, entries);
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
const unresolved = [];
|
|
75
|
+
const warn = console.warn;
|
|
76
|
+
console.warn = (...args) => {
|
|
77
|
+
const message = args.join(" ");
|
|
78
|
+
if (message.startsWith("[unimport]")) unresolved.push(message);
|
|
79
|
+
else warn(...args);
|
|
80
|
+
};
|
|
81
|
+
let scanned;
|
|
82
|
+
try {
|
|
83
|
+
scanned = await scanDirExports(globs);
|
|
84
|
+
} finally {
|
|
85
|
+
console.warn = warn;
|
|
86
|
+
}
|
|
87
|
+
for (const message of unresolved) {
|
|
88
|
+
console.error(`FAIL auto-import scan ${message}`);
|
|
89
|
+
process.exitCode = 1;
|
|
90
|
+
}
|
|
91
|
+
for (const item of scanned) own(item.as ?? item.name, item.from);
|
|
76
92
|
const registry = ts.createSourceFile(
|
|
77
93
|
"registry.ts",
|
|
78
94
|
readFileSync(join(frontend, "dms.frontend.ts"), "utf8"),
|
|
@@ -271,7 +287,7 @@ for (const file of program.getSourceFiles()) {
|
|
|
271
287
|
visit(file);
|
|
272
288
|
}
|
|
273
289
|
if (failures) process.exitCode = 1;
|
|
274
|
-
else
|
|
290
|
+
else if (!unresolved.length)
|
|
275
291
|
console.log(
|
|
276
292
|
`PASS frontend generated auto-import and template owners (${owners.size} providers)`,
|
|
277
293
|
);
|
|
@@ -139,6 +139,25 @@ try {
|
|
|
139
139
|
assert.equal(autoResult.status, 1, autoResult.stderr);
|
|
140
140
|
assert.match(autoResult.stderr, /useHigher/);
|
|
141
141
|
console.log("PASS reject generated auto-import owner");
|
|
142
|
+
rmSync(join(pkg, "layers"), { recursive: true, force: true });
|
|
143
|
+
mkdirSync(join(pkg, app), { recursive: true });
|
|
144
|
+
write(
|
|
145
|
+
"layers/dms-ui/app/composables/useShared.ts",
|
|
146
|
+
"export const useShared = () => 1;",
|
|
147
|
+
);
|
|
148
|
+
write(
|
|
149
|
+
"layers/dms-layout/app/composables/useShared.ts",
|
|
150
|
+
'export * from "../../../dms-ui/app/composables/useShared";',
|
|
151
|
+
);
|
|
152
|
+
assert.equal(run().status, 0, "relative star re-export resolves");
|
|
153
|
+
write(
|
|
154
|
+
"layers/dms-layout/app/composables/useShared.ts",
|
|
155
|
+
'export * from "#dms-ui/app/composables/useShared";',
|
|
156
|
+
);
|
|
157
|
+
const aliasResult = run();
|
|
158
|
+
assert.equal(aliasResult.status, 1, aliasResult.stderr);
|
|
159
|
+
assert.match(aliasResult.stderr, /FAIL auto-import scan .*#dms-ui/);
|
|
160
|
+
console.log("PASS reject unresolvable star re-export");
|
|
142
161
|
} finally {
|
|
143
162
|
rmSync(scratch, { recursive: true, force: true });
|
|
144
163
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/dms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "AntelopeJS DMS. Plug in your PostgreSQL, MongoDB or RethinkDB database and your coding agent builds a back office and analytics dashboard as typed TypeScript. Real-time updates on the data the DMS manages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"!frontend-vue/pnpm-workspace.yaml",
|
|
54
54
|
"skills",
|
|
55
55
|
"data",
|
|
56
|
+
"!data/*.mmdb",
|
|
56
57
|
"package.json",
|
|
57
58
|
"README.md",
|
|
58
59
|
"CHANGELOG.md",
|
|
@@ -93,8 +94,8 @@
|
|
|
93
94
|
"zod": "~3.24.2"
|
|
94
95
|
},
|
|
95
96
|
"devDependencies": {
|
|
96
|
-
"@antelopejs/core": ">=1.
|
|
97
|
-
"@antelopejs/tooling-configs": "0.
|
|
97
|
+
"@antelopejs/core": ">=1.21.0 <2",
|
|
98
|
+
"@antelopejs/tooling-configs": "^0.3.3",
|
|
98
99
|
"@types/archiver": "^6.0.4",
|
|
99
100
|
"@types/chai": "^4.3.20",
|
|
100
101
|
"@types/jsonwebtoken": "^9.0.10",
|
|
@@ -142,7 +143,7 @@
|
|
|
142
143
|
"@antelopejs/interface-redis": ">=0.0.9 <1.0.0"
|
|
143
144
|
},
|
|
144
145
|
"peerDependencies": {
|
|
145
|
-
"@antelopejs/core": ">=1.
|
|
146
|
+
"@antelopejs/core": ">=1.21.0 <2"
|
|
146
147
|
},
|
|
147
148
|
"peerDependenciesMeta": {
|
|
148
149
|
"@antelopejs/core": {
|
|
@@ -161,7 +162,6 @@
|
|
|
161
162
|
"test:integration": "node scripts/unless-prebuilt.mjs pnpm run build && DMS_TEST_DIR=dist/test/integration NODE_OPTIONS=\"${NODE_OPTIONS:+$NODE_OPTIONS }--require=\\\"$PWD/scripts/backend-runtime-boundaries.cjs\\\"\" ajs module test .",
|
|
162
163
|
"test:watch": "tsc -w & tsc-alias -w",
|
|
163
164
|
"release": "pnpm --filter @antelopejs/interface-dms build && pnpm --dir frontend-vue install --frozen-lockfile && release-it",
|
|
164
|
-
"country-database": "node scripts/fetch-country-database.mjs",
|
|
165
165
|
"knip": "knip --dependencies",
|
|
166
166
|
"knip:all": "knip",
|
|
167
167
|
"docs:catalog": "node scripts/docs-catalog.mjs",
|
|
@@ -17,10 +17,13 @@ the **ajs-cli** skill; full walkthrough: `docs/02.building/01.project-setup.md`.
|
|
|
17
17
|
|
|
18
18
|
## Starting a new application
|
|
19
19
|
|
|
20
|
-
Use [template-dms
|
|
21
|
-
|
|
20
|
+
Use [template-dms](https://github.com/AntelopeJS/template-dms) for a new project: the DMS, the
|
|
21
|
+
Builder and the AI assistant with no sample data, run with Docker Compose:
|
|
22
|
+
`npx @antelopejs/core project init <dir> --template dms-starter` (needs Git on `PATH`).
|
|
22
23
|
Follow `docs/01.getting-started/03.quickstart.md` through first-admin setup (the onboarding
|
|
23
|
-
address with the setup token that the
|
|
24
|
+
address with the setup token that the `dms` log prints) before adding pages. Use
|
|
25
|
+
[template-dms-demo](https://github.com/AntelopeJS/template-dms-demo) (`--template dms-demo`)
|
|
26
|
+
to explore Helio and every module; the tutorial in `docs/01.getting-started/04.tutorial.md` runs it. Use
|
|
24
27
|
[template-dms-adonis](https://github.com/AntelopeJS/template-dms-adonis) only when
|
|
25
28
|
AdonisJS must own the process (`--template dms-adonis`; **embedded** mode, below; walkthrough:
|
|
26
29
|
`docs/01.getting-started/07.adonisjs.md`). Evaluate these existing templates before proposing another.
|
package/data/NOTICE.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Third-party data
|
|
2
|
-
|
|
3
|
-
`dbip-country-lite.mmdb` is the [DB-IP](https://db-ip.com) IP to Country Lite
|
|
4
|
-
database, licensed under the
|
|
5
|
-
[Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).
|
|
6
|
-
|
|
7
|
-
IP Geolocation by [DB-IP](https://db-ip.com).
|
|
8
|
-
|
|
9
|
-
The file is not kept in the repository: `scripts/fetch-country-database.mjs`
|
|
10
|
-
downloads the current edition when the package is packed for a release. The DMS
|
|
11
|
-
reads it to tell which country a sign-in came from; see `auth.signInCountry` in
|
|
12
|
-
the configuration reference.
|
|
Binary file
|