@simetrajs/designer 0.3.0-next.8 → 0.3.0-next.9

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as toolByName, c as writeChanges, d as parseDataLaunch, f as databaseResource, i as structureOf, l as checkEnvName, o as formatDiagnostics, r as presentation, s as isMetadataFile, t as invoke, u as dataResource } from "./invoke-Dkbpi4Fq.js";
2
+ import { a as toolByName, c as writeChanges, d as parseDataLaunch, f as databaseResource, i as structureOf, l as checkEnvName, o as formatDiagnostics, r as presentation, s as isMetadataFile, t as invoke, u as dataResource } from "./invoke-B6ljdX5t.js";
3
3
  import { i as DEFAULT_DATABASE_URL_ENV, n as trimSlash, p as UsageError, t as DEFAULT_DIR } from "./default-dir-DerxTbci.js";
4
4
  import { defineCommand } from "citty";
5
5
  import { mkdtemp, readdir, rm, stat } from "node:fs/promises";
@@ -1802,6 +1802,12 @@ const dataCommandTool = defineTool({
1802
1802
  data: "write",
1803
1803
  destructive: false,
1804
1804
  async run(ctx, input) {
1805
+ if (input.operations.some((op) => op.action === "issueInvitation")) return {
1806
+ ok: false,
1807
+ changes: [],
1808
+ diagnostics: [],
1809
+ refusal: "data-command never runs issueInvitation: the secret would reach the model. Issue invitations in the application."
1810
+ };
1805
1811
  const compiled = await compileDir(ctx.dir);
1806
1812
  if ("failed" in compiled) return compiled.failed;
1807
1813
  const { model } = compiled;
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as version } from "./package-zZa694z7.js";
2
+ import { t as version } from "./package-BjRdjPub.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
@@ -10,8 +10,8 @@ const main = defineCommand({
10
10
  description: "Simetra metadata tooling"
11
11
  },
12
12
  subCommands: {
13
- ...Object.fromEntries(TOOL_NAMES.map((name) => [name, () => import("./command-BfioPN5J.js").then((m) => m.commandByName(name))])),
14
- mcp: () => import("./mcp-CZctSVr4.js").then((m) => m.default),
13
+ ...Object.fromEntries(TOOL_NAMES.map((name) => [name, () => import("./command-BUIz4QxS.js").then((m) => m.commandByName(name))])),
14
+ mcp: () => import("./mcp-DYJJ858W.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
- 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";
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-B6ljdX5t.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-zZa694z7.js";
4
+ import { t as version } from "./package-BjRdjPub.js";
5
5
  import { t as mcpArgs } from "./mcp-args-D63akJ97.js";
6
6
  import { defineCommand } from "citty";
7
7
  import { z } from "zod";
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  // package.json
3
- var version = "0.3.0-next.8";
3
+ var version = "0.3.0-next.9";
4
4
  export { version as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simetrajs/designer",
3
- "version": "0.3.0-next.8",
3
+ "version": "0.3.0-next.9",
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.8"
40
+ "simetra": "0.3.0-next.9"
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": "4d002f9fecbef5ef2fa463a30319ec3ee0a2e9d8",
60
+ "gitHead": "e45a91b6c208bb4c2b85313bcb3cf3020678cbcc",
61
61
  "scripts": {
62
62
  "build": "tsc --noEmit",
63
63
  "build:package": "tsdown",