@simetrajs/designer 0.3.0-next.7 → 0.3.0-next.8
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/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as version } from "./package-
|
|
2
|
+
import { t as version } from "./package-zZa694z7.js";
|
|
3
3
|
import { n as TOOL_NAMES } from "./types-CMcZhIci.js";
|
|
4
4
|
import { defineCommand, runCommand, runMain, showUsage } from "citty";
|
|
5
5
|
// src/main.ts
|
|
@@ -11,7 +11,7 @@ const main = defineCommand({
|
|
|
11
11
|
},
|
|
12
12
|
subCommands: {
|
|
13
13
|
...Object.fromEntries(TOOL_NAMES.map((name) => [name, () => import("./command-BfioPN5J.js").then((m) => m.commandByName(name))])),
|
|
14
|
-
mcp: () => import("./mcp-
|
|
14
|
+
mcp: () => import("./mcp-CZctSVr4.js").then((m) => m.default),
|
|
15
15
|
init: () => import("./init-BS7fCOls.js").then((m) => m.default)
|
|
16
16
|
}
|
|
17
17
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { d as parseDataLaunch, f as databaseResource, i as structureOf, l as checkEnvName, n as TOOLS, o as formatDiagnostics, r as presentation, t as invoke, u as dataResource } from "./invoke-Dkbpi4Fq.js";
|
|
3
3
|
import { a as dataWriteHint, l as readOnlyHint, n as trimSlash, o as databaseWriteHint, p as UsageError, r as ALLOW_RIGHTS_WRITE_FLAG } from "./default-dir-DerxTbci.js";
|
|
4
|
-
import { t as version } from "./package-
|
|
4
|
+
import { t as version } from "./package-zZa694z7.js";
|
|
5
5
|
import { t as mcpArgs } from "./mcp-args-D63akJ97.js";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
import { z } from "zod";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simetrajs/designer",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.8",
|
|
4
4
|
"description": "Simetra developer tools: command line and MCP server over the metadata compiler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"simetra",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"pg-connection-string": "2.14.1",
|
|
38
38
|
"smol-toml": "1.9.1",
|
|
39
39
|
"zod": "^4.6.7",
|
|
40
|
-
"simetra": "0.3.0-next.
|
|
40
|
+
"simetra": "0.3.0-next.8"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@arethetypeswrong/cli": "0.18.5",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "4d002f9fecbef5ef2fa463a30319ec3ee0a2e9d8",
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsc --noEmit",
|
|
63
63
|
"build:package": "tsdown",
|
|
@@ -152,11 +152,17 @@ with a trigger on the target table, see "Carrier copies").
|
|
|
152
152
|
chained row when the grant covers its kind.
|
|
153
153
|
|
|
154
154
|
**Rebinding.** Changing the binding attribute of a row whose kind has chained
|
|
155
|
-
descendants moves all of them to another container.
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
155
|
+
descendants moves all of them to another container. Besides the right to
|
|
156
|
+
update the row itself, the actor needs `update` at extent `any` on every
|
|
157
|
+
descendant kind, on every level below, in the container before and in the
|
|
158
|
+
container after: through a role on that container or a scope-level role.
|
|
159
|
+
An empty binding on either side needs the scope-level right. Otherwise the
|
|
160
|
+
command fails with `command.forbidden` / `no-right`, and the database error
|
|
161
|
+
names the descendant kind; the check runs before any copy is rewritten. A
|
|
162
|
+
change made by a `beforeWrite` handler is judged the same way. Moving a row
|
|
163
|
+
between targets of the same container needs no extra right, and neither
|
|
164
|
+
does the copy update that a rebinding cascades. Outside a command
|
|
165
|
+
(maintenance, a plan data step) the check does not run.
|
|
160
166
|
|
|
161
167
|
**Limits.** Reading costs the same at any depth. Writing pays: a rebind
|
|
162
168
|
rewrites the copies of all descendants on every level below, in the same
|