@barnum/barnum 0.0.0-main-2b63e526 → 0.0.0-main-2c283b26

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.
Files changed (3) hide show
  1. package/index.js +23 -0
  2. package/index.ts +1 -0
  3. package/package.json +8 -5
package/index.js ADDED
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ const path = require('path');
4
+
5
+ let binary;
6
+
7
+ if (process.platform === 'darwin' && process.arch === 'x64') {
8
+ binary = path.join(__dirname, 'artifacts', 'macos-x64', 'barnum');
9
+ } else if (process.platform === 'darwin' && process.arch === 'arm64') {
10
+ binary = path.join(__dirname, 'artifacts', 'macos-arm64', 'barnum');
11
+ } else if (process.platform === 'linux' && process.arch === 'x64') {
12
+ binary = path.join(__dirname, 'artifacts', 'linux-x64', 'barnum');
13
+ } else if (process.platform === 'linux' && process.arch === 'arm64') {
14
+ binary = path.join(__dirname, 'artifacts', 'linux-arm64', 'barnum');
15
+ } else if (process.platform === 'win32' && process.arch === 'x64') {
16
+ binary = path.join(__dirname, 'artifacts', 'win-x64', 'barnum.exe');
17
+ } else {
18
+ throw new Error(
19
+ `Platform "${process.platform} (${process.arch})" not supported.`
20
+ );
21
+ }
22
+
23
+ module.exports = binary;
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./barnum-config-schema.zod.js";
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@barnum/barnum",
3
- "version": "0.0.0-main-2b63e526",
3
+ "version": "0.0.0-main-2c283b26",
4
4
  "description": "Barnum CLI - workflow engine for agents.",
5
- "main": "barnum-config-schema.zod.ts",
6
- "types": "barnum-config-schema.zod.ts",
5
+ "main": "index.ts",
6
+ "types": "index.ts",
7
7
  "exports": {
8
- ".": "./barnum-config-schema.zod.ts",
9
- "./schema": "./barnum-config-schema.zod.ts"
8
+ ".": "./index.ts",
9
+ "./schema": "./barnum-config-schema.zod.ts",
10
+ "./binary": "./index.js"
10
11
  },
11
12
  "bin": {
12
13
  "barnum": "cli.js"
@@ -29,6 +30,8 @@
29
30
  "cli"
30
31
  ],
31
32
  "files": [
33
+ "index.ts",
34
+ "index.js",
32
35
  "cli.js",
33
36
  "artifacts/**/*",
34
37
  "barnum-config-schema.json",