@photon-cli/flux 0.1.2 → 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,11 +1,10 @@
1
1
  {
2
2
  "name": "@photon-cli/flux",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Flux CLI - Connect LangChain agents to iMessage",
5
- "type": "module",
6
- "main": "dist/cli.js",
5
+ "main": "dist/cli.cjs",
7
6
  "bin": {
8
- "flux": "./dist/cli.js"
7
+ "flux": "./dist/cli.cjs"
9
8
  },
10
9
  "scripts": {
11
10
  "flux": "bun src/cli.ts",
package/tsup.config.ts CHANGED
@@ -2,13 +2,13 @@ import { defineConfig } from "tsup";
2
2
 
3
3
  export default defineConfig({
4
4
  entry: ["src/cli.ts"],
5
- format: ["esm"],
5
+ format: ["cjs"],
6
6
  target: "node18",
7
7
  outDir: "dist",
8
8
  clean: true,
9
- shims: true,
10
9
  banner: {
11
10
  js: "#!/usr/bin/env node",
12
11
  },
13
- noExternal: [/@photon-ai\/rapid/, /better-grpc/, /react-devtools-core/],
12
+ // Don't bundle grpc - it has native dependencies and CommonJS require() calls
13
+ external: ["@grpc/grpc-js", "nice-grpc", "nice-grpc-common"],
14
14
  });
@@ -1,64 +0,0 @@
1
- #!/usr/bin/env node
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
- }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
- var __esm = (fn, res) => function __init() {
15
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
- };
17
- var __commonJS = (cb, mod) => function __require2() {
18
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
- };
20
- var __export = (target, all) => {
21
- for (var name in all)
22
- __defProp(target, name, { get: all[name], enumerable: true });
23
- };
24
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (let key of __getOwnPropNames(from))
27
- if (!__hasOwnProp.call(to, key) && key !== except)
28
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
- }
30
- return to;
31
- };
32
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
33
- // If the importer is in node compatibility mode or this is not an ESM
34
- // file that has been converted to a CommonJS file using a Babel-
35
- // compatible transform (i.e. "__esModule" has not been set), then set
36
- // "default" to the CommonJS "module.exports" for node compatibility.
37
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
38
- mod
39
- ));
40
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
-
42
- // node_modules/tsup/assets/esm_shims.js
43
- import path from "path";
44
- import { fileURLToPath } from "url";
45
- var getFilename, getDirname, __dirname;
46
- var init_esm_shims = __esm({
47
- "node_modules/tsup/assets/esm_shims.js"() {
48
- "use strict";
49
- getFilename = () => fileURLToPath(import.meta.url);
50
- getDirname = () => path.dirname(getFilename());
51
- __dirname = /* @__PURE__ */ getDirname();
52
- }
53
- });
54
-
55
- export {
56
- __require,
57
- __esm,
58
- __commonJS,
59
- __export,
60
- __toESM,
61
- __toCommonJS,
62
- __dirname,
63
- init_esm_shims
64
- };