@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/{packaging-DFTuP4fr.d.ts → check-Hw1F1a5z.d.ts} +76 -75
- package/dist/{chunk-XOP6JKBX.js → chunk-PMMEWBVK.js} +586 -352
- package/dist/cli.d.ts +3 -1
- package/dist/cli.js +3 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -1
- package/package.json +1 -1
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 './
|
|
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-
|
|
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 {
|
|
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
|
|
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-
|
|
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,
|