@antelopejs/dms-assistant 0.2.7-next.435.gf69236d → 0.2.7-next.439.g852e655
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.
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.applySidecarSettings = applySidecarSettings;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const settings_values_1 = require("../../sidecar/settings-values");
|
|
6
|
+
const spawn_sidecar_1 = require("../../lifecycle/spawn-sidecar");
|
|
6
7
|
const sidecar_1 = require("../../sidecar");
|
|
7
8
|
const options_1 = require("./options");
|
|
8
9
|
const SETTINGS_PATH = "/settings";
|
|
@@ -89,7 +90,13 @@ function withDefaults(entry, defaults) {
|
|
|
89
90
|
fields: entry.fields.map((field) => offerDefault(field, defaults)),
|
|
90
91
|
};
|
|
91
92
|
}
|
|
93
|
+
function withoutSettings(options) {
|
|
94
|
+
const { fetchUrl: _fetchUrl, submitUrl: _submitUrl, ...rest } = options;
|
|
95
|
+
return { ...rest, saveMode: "none", fields: [], sections: [] };
|
|
96
|
+
}
|
|
92
97
|
async function applySidecarSettings(_permissions, options) {
|
|
98
|
+
if (await (0, spawn_sidecar_1.isSidecarDisabled)())
|
|
99
|
+
return withoutSettings(options);
|
|
93
100
|
const capabilities = await (0, sidecar_1.readSidecar)(SETTINGS_PATH, CAPABILITIES_ANSWER, {});
|
|
94
101
|
const defaults = (0, settings_values_1.asFormValues)(capabilities.defaults ?? {});
|
|
95
102
|
const locks = locksFor(capabilities);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"availability.js","sourceRoot":"","sources":["../../../src/pages/settings/availability.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"availability.js","sourceRoot":"","sources":["../../../src/pages/settings/availability.ts"],"names":[],"mappings":";;AAsKA,oDAqBC;AA3LD,6BAAwB;AAQxB,mEAAgF;AAChF,iEAAkE;AAClE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,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1D,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC;AAChC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/dms-assistant",
|
|
3
|
-
"version": "0.2.7-next.
|
|
3
|
+
"version": "0.2.7-next.439.g852e655",
|
|
4
4
|
"description": "Development assistant for the AntelopeJS DMS: a chat panel and coding agent that edit the project in reviewable, undoable change sets, and an onboarding that starts a project from scratch or from a database you already run.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -43,46 +43,6 @@
|
|
|
43
43
|
"provenance": true,
|
|
44
44
|
"registry": "https://registry.npmjs.org/"
|
|
45
45
|
},
|
|
46
|
-
"scripts": {
|
|
47
|
-
"build": "rimraf dist && tsc",
|
|
48
|
-
"build:sidecar": "pnpm --dir sidecar run build",
|
|
49
|
-
"prepack": "pnpm run build && pnpm run build:sidecar",
|
|
50
|
-
"frontend:dev": "cd playground && pnpm frontend:dev",
|
|
51
|
-
"dev": "cd playground && pnpm dev",
|
|
52
|
-
"lint": "pnpm run --reporter=append-only \"/^lint:(oxlint|frontend|rules)$/\"",
|
|
53
|
-
"lint:oxlint": "oxlint",
|
|
54
|
-
"lint:frontend": "pnpm --dir frontend-vue lint",
|
|
55
|
-
"lint:rules": "node node_modules/@antelopejs/dms/frontend-vue/scripts/check-api-error-presentation.mjs frontend-vue/app frontend-vue/builder/app && node scripts/check-playground-install.mjs && node scripts/check-i18n.mjs && node scripts/frontend-source-check.cjs",
|
|
56
|
-
"lint:fix": "oxlint --fix && oxfmt . && pnpm --dir frontend-vue lint:fix",
|
|
57
|
-
"typecheck": "pnpm run --reporter=append-only \"/^typecheck:(module|chat|sidecar|sidecar-tests)$/\"",
|
|
58
|
-
"typecheck:module": "tsc --noEmit",
|
|
59
|
-
"typecheck:chat": "pnpm --dir frontend-vue typecheck:chat",
|
|
60
|
-
"typecheck:sidecar": "pnpm --dir sidecar exec tsc --noEmit",
|
|
61
|
-
"typecheck:sidecar-tests": "pnpm --dir sidecar exec tsc -p tsconfig.test.json",
|
|
62
|
-
"test": "pnpm run test:node",
|
|
63
|
-
"test:node": "([ -n \"$DMS_PREBUILT\" ] || pnpm run build) && node --test \"tests/!(sidecar-build|installed-module).test.cjs\" \"tests/builder/*.test.cjs\"",
|
|
64
|
-
"test:frontend": "pnpm --dir frontend-vue test",
|
|
65
|
-
"test:sidecar-smoke": "pnpm run build:sidecar && node --test tests/sidecar-build.test.cjs",
|
|
66
|
-
"test:installed": "node --test tests/installed-module.test.cjs",
|
|
67
|
-
"test:frontend-registration": "pnpm run build && node --test tests/frontend-registration.test.cjs",
|
|
68
|
-
"test:channels": "pnpm run build && node --test tests/channels.test.cjs tests/channel-limits.test.cjs",
|
|
69
|
-
"test:routes": "pnpm run build && node --test tests/routes.test.cjs tests/banner-routes.test.cjs",
|
|
70
|
-
"test:spawn-args": "node --test tests/spawn-args.test.cjs",
|
|
71
|
-
"test:sidecar-lifecycle": "node --test tests/sidecar-lifecycle.test.cjs",
|
|
72
|
-
"test:build-id": "node --test tests/build-id.test.cjs",
|
|
73
|
-
"test:e2e": "cd sidecar && pnpm test:e2e",
|
|
74
|
-
"format": "oxfmt . && pnpm --dir frontend-vue format",
|
|
75
|
-
"knip": "knip --dependencies && pnpm --dir sidecar knip",
|
|
76
|
-
"knip:all": "knip",
|
|
77
|
-
"prepare": "if [ -e .git ] && command -v git >/dev/null 2>&1 && command -v lefthook >/dev/null 2>&1 && GIT_DIR=.git GIT_WORK_TREE=. git rev-parse --git-dir >/dev/null 2>&1; then GIT_DIR=.git GIT_WORK_TREE=. lefthook install; fi",
|
|
78
|
-
"checks": "antelopejs-checks",
|
|
79
|
-
"size": "antelopejs-check-size",
|
|
80
|
-
"sync": "antelopejs-sync",
|
|
81
|
-
"sync:check": "antelopejs-sync --check",
|
|
82
|
-
"format:check": "oxfmt --check .",
|
|
83
|
-
"suppressions": "antelopejs-suppressions",
|
|
84
|
-
"suppressions:update": "antelopejs-suppressions --update"
|
|
85
|
-
},
|
|
86
46
|
"dependencies": {
|
|
87
47
|
"@antelopejs/agent-skills": ">=0.3.0 <0.4.0",
|
|
88
48
|
"@antelopejs/dms": ">=0.20.5 <0.21.0",
|
|
@@ -125,7 +85,6 @@
|
|
|
125
85
|
"optional": true
|
|
126
86
|
}
|
|
127
87
|
},
|
|
128
|
-
"packageManager": "pnpm@10.34.9",
|
|
129
88
|
"antelopeJs": {
|
|
130
89
|
"baseUrl": "dist",
|
|
131
90
|
"skills": [
|
|
@@ -135,5 +94,38 @@
|
|
|
135
94
|
"standard": true
|
|
136
95
|
}
|
|
137
96
|
},
|
|
138
|
-
"dmsFrontend": "dist/frontend-module.js"
|
|
139
|
-
|
|
97
|
+
"dmsFrontend": "dist/frontend-module.js",
|
|
98
|
+
"gitHead": "852e655b8c61c74b56c885731311957da4e013c8",
|
|
99
|
+
"scripts": {
|
|
100
|
+
"build": "rimraf dist && tsc",
|
|
101
|
+
"build:sidecar": "pnpm --dir sidecar run build",
|
|
102
|
+
"frontend:dev": "cd playground && pnpm frontend:dev",
|
|
103
|
+
"dev": "cd playground && pnpm dev",
|
|
104
|
+
"lint": "pnpm run --reporter=append-only \"/^lint:(oxlint|frontend|rules)$/\"",
|
|
105
|
+
"lint:oxlint": "oxlint",
|
|
106
|
+
"lint:frontend": "pnpm --dir frontend-vue lint",
|
|
107
|
+
"lint:rules": "node node_modules/@antelopejs/dms/frontend-vue/scripts/check-api-error-presentation.mjs frontend-vue/app frontend-vue/builder/app && node scripts/check-playground-install.mjs && node scripts/check-i18n.mjs && node scripts/frontend-source-check.cjs",
|
|
108
|
+
"lint:fix": "oxlint --fix && oxfmt . && pnpm --dir frontend-vue lint:fix",
|
|
109
|
+
"typecheck": "pnpm run --reporter=append-only \"/^typecheck:(module|chat|sidecar|sidecar-tests)$/\"",
|
|
110
|
+
"typecheck:module": "tsc --noEmit",
|
|
111
|
+
"typecheck:chat": "pnpm --dir frontend-vue typecheck:chat",
|
|
112
|
+
"typecheck:sidecar": "pnpm --dir sidecar exec tsc --noEmit",
|
|
113
|
+
"typecheck:sidecar-tests": "pnpm --dir sidecar exec tsc -p tsconfig.test.json",
|
|
114
|
+
"test": "pnpm run test:node",
|
|
115
|
+
"test:node": "([ -n \"$DMS_PREBUILT\" ] || pnpm run build) && node --test \"tests/!(sidecar-build|installed-module).test.cjs\" \"tests/builder/*.test.cjs\"",
|
|
116
|
+
"test:frontend": "pnpm --dir frontend-vue test",
|
|
117
|
+
"test:sidecar-smoke": "pnpm run build:sidecar && node --test tests/sidecar-build.test.cjs",
|
|
118
|
+
"test:installed": "node --test tests/installed-module.test.cjs",
|
|
119
|
+
"test:e2e": "cd sidecar && pnpm test:e2e",
|
|
120
|
+
"format": "oxfmt . && pnpm --dir frontend-vue format",
|
|
121
|
+
"knip": "knip --dependencies && pnpm --dir sidecar knip",
|
|
122
|
+
"knip:all": "knip",
|
|
123
|
+
"checks": "antelopejs-checks",
|
|
124
|
+
"size": "antelopejs-check-size",
|
|
125
|
+
"sync": "antelopejs-sync",
|
|
126
|
+
"sync:check": "antelopejs-sync --check",
|
|
127
|
+
"format:check": "oxfmt --check .",
|
|
128
|
+
"suppressions": "antelopejs-suppressions",
|
|
129
|
+
"suppressions:update": "antelopejs-suppressions --update"
|
|
130
|
+
}
|
|
131
|
+
}
|