@hasna/connectors 1.1.17 → 1.1.18

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/bin/index.js CHANGED
@@ -10854,7 +10854,93 @@ var {
10854
10854
 
10855
10855
  // src/cli/index.tsx
10856
10856
  import chalk2 from "chalk";
10857
- import { createRequire } from "module";
10857
+ // package.json
10858
+ var package_default = {
10859
+ name: "@hasna/connectors",
10860
+ version: "1.1.18",
10861
+ description: "Open source connector library - Install API connectors with a single command",
10862
+ type: "module",
10863
+ bin: {
10864
+ connectors: "./bin/index.js",
10865
+ "connectors-mcp": "./bin/mcp.js",
10866
+ "connectors-serve": "./bin/serve.js"
10867
+ },
10868
+ files: [
10869
+ "bin/",
10870
+ "dist/",
10871
+ "dashboard/dist/",
10872
+ "connectors/",
10873
+ "README.md"
10874
+ ],
10875
+ exports: {
10876
+ ".": {
10877
+ import: "./dist/index.js",
10878
+ types: "./dist/index.d.ts"
10879
+ }
10880
+ },
10881
+ main: "./dist/index.js",
10882
+ types: "./dist/index.d.ts",
10883
+ scripts: {
10884
+ build: "cd dashboard && bun run build && cd .. && bun build ./src/cli/index.tsx --outdir ./bin --target bun --external ink --external react --external chalk --external conf && bun build ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun build ./src/server/index.ts --outfile ./bin/serve.js --target bun && bun build ./src/index.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --outDir ./dist",
10885
+ "build:dashboard": "cd dashboard && bun run build",
10886
+ postinstall: '[ "$SKIP_DASHBOARD" = "1" ] || [ ! -f dashboard/package.json ] || [ -d dashboard/node_modules ] || (cd dashboard && bun install)',
10887
+ dev: "bun run ./src/cli/index.tsx",
10888
+ typecheck: "tsc --noEmit",
10889
+ test: "bun test",
10890
+ "sdk:build": "cd sdk && bun run build",
10891
+ prepublishOnly: "bun test && bun run build"
10892
+ },
10893
+ keywords: [
10894
+ "connectors",
10895
+ "api",
10896
+ "cli",
10897
+ "typescript",
10898
+ "bun",
10899
+ "figma",
10900
+ "stripe",
10901
+ "github",
10902
+ "openai",
10903
+ "mcp",
10904
+ "model-context-protocol"
10905
+ ],
10906
+ author: "Hasna",
10907
+ license: "Apache-2.0",
10908
+ devDependencies: {
10909
+ "@types/bun": "latest",
10910
+ "@types/react": "^18.2.0",
10911
+ "ink-testing-library": "^4.0.0",
10912
+ typescript: "^5"
10913
+ },
10914
+ dependencies: {
10915
+ "@modelcontextprotocol/sdk": "^1.26.0",
10916
+ chalk: "^5.3.0",
10917
+ commander: "^12.1.0",
10918
+ conf: "^13.0.1",
10919
+ "fast-xml-parser": "^5.5.3",
10920
+ ink: "^5.0.1",
10921
+ "ink-select-input": "^6.0.0",
10922
+ "ink-spinner": "^5.0.0",
10923
+ "ink-text-input": "^6.0.0",
10924
+ open: "^11.0.0",
10925
+ react: "^18.2.0",
10926
+ zod: "3"
10927
+ },
10928
+ engines: {
10929
+ bun: ">=1.0.0"
10930
+ },
10931
+ publishConfig: {
10932
+ registry: "https://registry.npmjs.org",
10933
+ access: "public"
10934
+ },
10935
+ repository: {
10936
+ type: "git",
10937
+ url: "git+https://github.com/hasna/connectors.git"
10938
+ },
10939
+ homepage: "https://github.com/hasna/connectors#readme",
10940
+ bugs: {
10941
+ url: "https://github.com/hasna/connectors/issues"
10942
+ }
10943
+ };
10858
10944
 
10859
10945
  // src/cli/components/App.tsx
10860
10946
  import { useState as useState7 } from "react";
@@ -12664,8 +12750,6 @@ async function getConnectorCommandHelp(name, command) {
12664
12750
 
12665
12751
  // src/cli/index.tsx
12666
12752
  import { jsxDEV as jsxDEV7 } from "react/jsx-dev-runtime";
12667
- var _require = createRequire(import.meta.url);
12668
- var _pkg = _require("../package.json");
12669
12753
  loadConnectorVersions();
12670
12754
  var isTTY = process.stdout.isTTY ?? false;
12671
12755
  var PRESETS = {
@@ -12677,7 +12761,7 @@ var PRESETS = {
12677
12761
  commerce: { description: "Commerce and finance", connectors: ["stripe", "shopify", "revolut", "mercury", "pandadoc"] }
12678
12762
  };
12679
12763
  var program2 = new Command;
12680
- program2.name("connectors").description("Install API connectors for your project").version(_pkg.version).enablePositionalOptions();
12764
+ program2.name("connectors").description("Install API connectors for your project").version(package_default.version).enablePositionalOptions();
12681
12765
  program2.command("interactive", { isDefault: true }).alias("i").description("Interactive connector browser").action(() => {
12682
12766
  if (!isTTY) {
12683
12767
  console.log(`Non-interactive environment detected. Use a subcommand:
package/bin/mcp.js CHANGED
@@ -26156,7 +26156,7 @@ function getRateBudget(agentId, connector, connectorLimit, db) {
26156
26156
  // package.json
26157
26157
  var package_default = {
26158
26158
  name: "@hasna/connectors",
26159
- version: "1.1.17",
26159
+ version: "1.1.18",
26160
26160
  description: "Open source connector library - Install API connectors with a single command",
26161
26161
  type: "module",
26162
26162
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/connectors",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "description": "Open source connector library - Install API connectors with a single command",
5
5
  "type": "module",
6
6
  "bin": {