totemlayer 0.1.1 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "totemlayer",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Cross-platform CLI for TotemLayer agent identity and authorization",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,7 +11,8 @@
11
11
  "files": [
12
12
  "bin",
13
13
  "LICENSE.md",
14
- "README.md"
14
+ "README.md",
15
+ "scripts/prepare.mjs"
15
16
  ],
16
17
  "engines": {
17
18
  "node": ">=22.14.0"
@@ -29,5 +30,12 @@
29
30
  "publishConfig": {
30
31
  "access": "public",
31
32
  "registry": "https://registry.npmjs.org/"
33
+ },
34
+ "dependencies": {
35
+ "@modelcontextprotocol/server": "2.0.0",
36
+ "zod": "4.4.3"
37
+ },
38
+ "scripts": {
39
+ "prepack": "node scripts/prepare.mjs"
32
40
  }
33
41
  }
@@ -0,0 +1,15 @@
1
+ import { execFileSync } from "node:child_process";
2
+ import { mkdir, readdir, copyFile } from "node:fs/promises";
3
+ import { fileURLToPath } from "node:url";
4
+
5
+ // Build from the sibling source every time a distributable is packed.
6
+ const sdk = fileURLToPath(new URL("../../sdk/", import.meta.url));
7
+ const destination = new URL("../bin/sdk/", import.meta.url);
8
+ execFileSync(process.platform === "win32" ? "npm.cmd" : "npm", ["run", "build", "--prefix", sdk], {
9
+ stdio: "inherit",
10
+ });
11
+ await mkdir(destination, { recursive: true });
12
+ for (const name of await readdir(new URL("../../sdk/dist/", import.meta.url))) {
13
+ if (name.endsWith(".js"))
14
+ await copyFile(new URL(`../../sdk/dist/${name}`, import.meta.url), new URL(name, destination));
15
+ }