@vornrun/connector-sdk 0.7.0-beta.13 → 0.7.0-beta.14

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/dist/cli.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { B as BundleRequest, a as BundleOutput } from './packaging-DFTuP4fr.js';
2
+ import { B as BundleRequest, a as BundleOutput, C as CheckFinding } from './check-Hw1F1a5z.js';
3
3
 
4
4
  interface CliDeps {
5
5
  load(modulePath: string): Promise<unknown>;
@@ -9,6 +9,8 @@ interface CliDeps {
9
9
  cwd?: string;
10
10
  /** Replaced in tests so pack does not shell out to a bundler. */
11
11
  bundle?(request: BundleRequest): Promise<BundleOutput>;
12
+ /** Replaced in tests so pack does not start the staged bundle. */
13
+ launch?(dir: string): Promise<CheckFinding[]>;
12
14
  /** Writes a scaffold file or a receipt; replaced in tests so nothing touches disk. */
13
15
  writeFile?(path: string, contents: string): Promise<void>;
14
16
  /** Replaced in tests beside writeFile. */
package/dist/cli.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  runPoll,
11
11
  scaffoldFiles,
12
12
  serveConnector
13
- } from "./chunk-XOP6JKBX.js";
13
+ } from "./chunk-PMMEWBVK.js";
14
14
 
15
15
  // src/cli.ts
16
16
  import { fileURLToPath, pathToFileURL } from "url";
@@ -171,7 +171,8 @@ ${connector.id} passed with ${findings.length} warning(s)`
171
171
  entry: modulePath,
172
172
  ...flags.out !== void 0 && { outDir: flags.out },
173
173
  ...deps.cwd !== void 0 && { resolveDir: deps.cwd },
174
- ...deps.bundle !== void 0 && { bundle: deps.bundle }
174
+ ...deps.bundle !== void 0 && { bundle: deps.bundle },
175
+ ...deps.launch !== void 0 && { launch: deps.launch }
175
176
  });
176
177
  if (result.findings.length > 0) deps.write(formatFindings(result.findings));
177
178
  const errors = result.findings.filter((item) => item.level === "error");
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ConnectorDefinition, b as Connector, c as ConnectorConfig, T as TriggerDefinition, P as PollContext, d as PollOutcome, e as ConnectorItem, N as NormalizedItem, f as PostReceiveOp, A as ActionRequest, B as BundleRequest, a as BundleOutput, g as CheckFinding } from './packaging-DFTuP4fr.js';
2
- export { h as ActionContext, i as ActionDefinition, j as ActionInputField, k as ActionInputOption, l as ActionInputType, m as ActionOutputField, n as AuthRung, o as CHECK_OWNERS, p as CheckCode, q as CheckOptions, r as ConformanceRun, s as ConnectionSetup, t as ConnectorAuth, u as ConnectorConfigField, v as ConnectorHarness, w as ConnectorIcon, x as ConnectorManifest, y as ConnectorVerification, D as DedupeStrategy, z as DefaultWorkflow, F as FetchContext, H as HarnessOptions, M as MANIFEST_TOOL, E as MAX_PACK_BYTES, G as MAX_POLL_PAGES, I as MockCall, J as MockRoute, K as MockRouteMissError, L as MockRun, O as OPTIONS_TOOL, Q as OptionsContext, R as OptionsLoader, S as PREFLIGHT_TOOL, U as PaginationStrategy, V as PollPage, W as PreflightResult, X as ResilientFetchOptions, Y as RetryPolicy, Z as RunActionOptions, _ as RunPollOptions, $ as StatusSuggestion, a0 as backoffMs, a1 as bundleDependencyFindings, a2 as checkConnector, a3 as connectionSetup, a4 as connectorManifest, a5 as createConnectorHarness, a6 as drainPoll, a7 as esbuildBundle, a8 as escapedMockHttp, a9 as formatFindings, aa as lifecycleScriptFindings, ab as pollToolName, ac as readNearestPackageJson, ad as resilientFetch, ae as retryAfterMs, af as runAction, ag as runConformance, ah as runOptions, ai as runPoll, aj as withMockHttp } from './packaging-DFTuP4fr.js';
1
+ import { b as ConnectorDefinition, c as Connector, d as ConnectorConfig, T as TriggerDefinition, P as PollContext, e as PollOutcome, f as ConnectorItem, N as NormalizedItem, g as PostReceiveOp, A as ActionRequest, B as BundleRequest, a as BundleOutput, C as CheckFinding } from './check-Hw1F1a5z.js';
2
+ export { h as ActionContext, i as ActionDefinition, j as ActionInputField, k as ActionInputOption, l as ActionInputType, m as ActionOutputField, n as AuthRung, o as CHECK_OWNERS, p as CheckCode, q as CheckOptions, r as ConformanceRun, s as ConnectionSetup, t as ConnectorAuth, u as ConnectorConfigField, v as ConnectorHarness, w as ConnectorIcon, x as ConnectorManifest, y as ConnectorVerification, D as DedupeStrategy, z as DefaultWorkflow, F as FetchContext, H as HarnessOptions, M as MANIFEST_TOOL, E as MAX_PACK_BYTES, G as MAX_POLL_PAGES, I as MockCall, J as MockRoute, K as MockRouteMissError, L as MockRun, O as OPTIONS_TOOL, Q as OptionsContext, R as OptionsLoader, S as PREFLIGHT_TOOL, U as PaginationStrategy, V as PollPage, W as PreflightResult, X as ResilientFetchOptions, Y as RetryPolicy, Z as RunActionOptions, _ as RunPollOptions, $ as StatusSuggestion, a0 as backoffMs, a1 as bundleDependencyFindings, a2 as bundledRequireFindings, a3 as checkConnector, a4 as connectionSetup, a5 as connectorManifest, a6 as createConnectorHarness, a7 as drainPoll, a8 as esbuildBundle, a9 as escapedMockHttp, aa as formatFindings, ab as lifecycleScriptFindings, ac as pollToolName, ad as readNearestPackageJson, ae as resilientFetch, af as retryAfterMs, ag as runAction, ah as runConformance, ai as runOptions, aj as runPoll, ak as withMockHttp } from './check-Hw1F1a5z.js';
3
3
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
4
4
 
5
5
  /** Environment variable a config field reads from, e.g. `apiToken` → `API_TOKEN`. */
@@ -117,6 +117,8 @@ interface PackOptions {
117
117
  maxBytes?: number;
118
118
  /** Replaced in tests so packing does not shell out to a bundler. */
119
119
  bundle?(request: BundleRequest): Promise<BundleOutput>;
120
+ /** Replaced in tests whose subject is the archive rather than the launch; defaults to starting it for real. */
121
+ launch?(dir: string): Promise<CheckFinding[]>;
120
122
  }
121
123
  interface PackResult {
122
124
  findings: CheckFinding[];
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ import {
11
11
  asOutput,
12
12
  backoffMs,
13
13
  bundleDependencyFindings,
14
+ bundledRequireFindings,
14
15
  checkConnector,
15
16
  connectionSetup,
16
17
  connectorManifest,
@@ -46,7 +47,7 @@ import {
46
47
  titleCase,
47
48
  valueAt,
48
49
  withMockHttp
49
- } from "./chunk-XOP6JKBX.js";
50
+ } from "./chunk-PMMEWBVK.js";
50
51
  export {
51
52
  CHECK_OWNERS,
52
53
  MANIFEST_TOOL,
@@ -60,6 +61,7 @@ export {
60
61
  asOutput,
61
62
  backoffMs,
62
63
  bundleDependencyFindings,
64
+ bundledRequireFindings,
63
65
  checkConnector,
64
66
  connectionSetup,
65
67
  connectorManifest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vornrun/connector-sdk",
3
- "version": "0.7.0-beta.13",
3
+ "version": "0.7.0-beta.14",
4
4
  "description": "Build and share Vorn pull connectors as ordinary npm packages",
5
5
  "type": "module",
6
6
  "license": "MIT",