@microsoft/copilot-sdk 0.0.0-stage → 2.0.0-preview.0
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/README.md +2531 -2
- package/dist/canvas.d.ts +135 -0
- package/dist/canvas.js +51 -0
- package/dist/cjs/canvas.js +77 -0
- package/dist/cjs/cliVersion.js +31 -0
- package/dist/cjs/client.js +3941 -0
- package/dist/cjs/copilotRequestHandler.js +815 -0
- package/dist/cjs/decisions.js +139 -0
- package/dist/cjs/entra.js +83 -0
- package/dist/cjs/extension.js +79 -0
- package/dist/cjs/ffiRuntimeHost.js +400 -0
- package/dist/cjs/generated/lifecycle-diagnostics.js +16 -0
- package/dist/cjs/generated/rpc.js +5883 -0
- package/dist/cjs/generated/session-events.js +16 -0
- package/dist/cjs/host.js +83 -0
- package/dist/cjs/index.js +100 -0
- package/dist/cjs/installationConfirmation.js +98 -0
- package/dist/cjs/jsonrpcTypes.js +41 -0
- package/dist/cjs/localModelJson.js +103 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/providerConfiguration.js +39 -0
- package/dist/cjs/rpcCancellation.js +49 -0
- package/dist/cjs/runtimeArtifacts.js +255 -0
- package/dist/cjs/schema.js +40 -0
- package/dist/cjs/sdkProtocolVersion.js +33 -0
- package/dist/cjs/session.js +2764 -0
- package/dist/cjs/sessionFsProvider.js +283 -0
- package/dist/cjs/taskAnalyticsJson.js +47 -0
- package/dist/cjs/telemetry.js +35 -0
- package/dist/cjs/toolSet.js +107 -0
- package/dist/cjs/types.js +204 -0
- package/dist/cjs/workflow.js +278 -0
- package/dist/cliVersion.d.ts +2 -0
- package/dist/cliVersion.js +6 -0
- package/dist/client.d.ts +576 -0
- package/dist/client.js +3924 -0
- package/dist/copilotRequestHandler.d.ts +91 -0
- package/dist/copilotRequestHandler.js +787 -0
- package/dist/decisions.d.ts +65 -0
- package/dist/decisions.js +113 -0
- package/dist/entra.d.ts +3 -0
- package/dist/entra.js +59 -0
- package/dist/extension.d.ts +69 -0
- package/dist/extension.js +59 -0
- package/dist/ffiRuntimeHost.d.ts +44 -0
- package/dist/ffiRuntimeHost.js +366 -0
- package/dist/generated/lifecycle-diagnostics.d.ts +232 -0
- package/dist/generated/lifecycle-diagnostics.js +0 -0
- package/dist/generated/rpc.d.ts +47706 -0
- package/dist/generated/rpc.js +5854 -0
- package/dist/generated/session-events.d.ts +17349 -0
- package/dist/generated/session-events.js +0 -0
- package/dist/host.d.ts +143 -0
- package/dist/host.js +59 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +74 -0
- package/dist/installationConfirmation.d.ts +19 -0
- package/dist/installationConfirmation.js +74 -0
- package/dist/jsonrpcTypes.d.ts +16 -0
- package/dist/jsonrpcTypes.js +17 -0
- package/dist/localModelJson.d.ts +1 -0
- package/dist/localModelJson.js +69 -0
- package/dist/providerConfiguration.d.ts +3 -0
- package/dist/providerConfiguration.js +15 -0
- package/dist/rpcCancellation.d.ts +3 -0
- package/dist/rpcCancellation.js +25 -0
- package/dist/runtimeArtifacts.d.ts +18 -0
- package/dist/runtimeArtifacts.js +233 -0
- package/dist/schema.d.ts +4 -0
- package/dist/schema.js +14 -0
- package/dist/sdkProtocolVersion.d.ts +10 -0
- package/dist/sdkProtocolVersion.js +8 -0
- package/dist/session.d.ts +524 -0
- package/dist/session.js +2751 -0
- package/dist/sessionFsProvider.d.ts +130 -0
- package/dist/sessionFsProvider.js +257 -0
- package/dist/taskAnalyticsJson.d.ts +8 -0
- package/dist/taskAnalyticsJson.js +12 -0
- package/dist/telemetry.d.ts +14 -0
- package/dist/telemetry.js +11 -0
- package/dist/toolSet.d.ts +75 -0
- package/dist/toolSet.js +82 -0
- package/dist/types.d.ts +3864 -0
- package/dist/types.js +169 -0
- package/dist/workflow.d.ts +413 -0
- package/dist/workflow.js +248 -0
- package/docs/agent-author.md +372 -0
- package/docs/examples.md +747 -0
- package/docs/extensions.md +121 -0
- package/docs/workflows.md +303 -0
- package/package.json +135 -5
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var runtimeArtifacts_exports = {};
|
|
20
|
+
__export(runtimeArtifacts_exports, {
|
|
21
|
+
RUNTIME_PLATFORMS: () => RUNTIME_PLATFORMS,
|
|
22
|
+
defaultRuntimeCacheRoot: () => defaultRuntimeCacheRoot,
|
|
23
|
+
ensureRuntimeBundle: () => ensureRuntimeBundle,
|
|
24
|
+
getRuntimePackageName: () => getRuntimePackageName,
|
|
25
|
+
getRuntimePlatform: () => getRuntimePlatform,
|
|
26
|
+
getRuntimeReleaseAssetName: () => getRuntimeReleaseAssetName,
|
|
27
|
+
materializeRuntimeBundle: () => materializeRuntimeBundle,
|
|
28
|
+
resolvePackageRoot: () => resolvePackageRoot,
|
|
29
|
+
validateFile: () => validateFile
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(runtimeArtifacts_exports);
|
|
32
|
+
var import_node_fs = require("node:fs");
|
|
33
|
+
var import_node_crypto = require("node:crypto");
|
|
34
|
+
var import_node_module = require("node:module");
|
|
35
|
+
var import_node_os = require("node:os");
|
|
36
|
+
var import_node_path = require("node:path");
|
|
37
|
+
var import_cliVersion = require("./cliVersion.js");
|
|
38
|
+
const import_meta = {};
|
|
39
|
+
const require2 = (0, import_node_module.createRequire)(typeof __filename === "string" ? __filename : import_meta.url);
|
|
40
|
+
const RUNTIME_PLATFORMS = [
|
|
41
|
+
"darwin-arm64",
|
|
42
|
+
"darwin-x64",
|
|
43
|
+
"linux-arm64",
|
|
44
|
+
"linux-x64",
|
|
45
|
+
"linuxmusl-arm64",
|
|
46
|
+
"linuxmusl-x64",
|
|
47
|
+
"win32-arm64",
|
|
48
|
+
"win32-x64"
|
|
49
|
+
];
|
|
50
|
+
const EXCLUDED_TOP_LEVEL = /* @__PURE__ */ new Set([
|
|
51
|
+
"app.js",
|
|
52
|
+
"assets",
|
|
53
|
+
"changelog.json",
|
|
54
|
+
"cli-main.js",
|
|
55
|
+
"copilot",
|
|
56
|
+
"copilot.exe",
|
|
57
|
+
"foundry-local-sdk",
|
|
58
|
+
"index.js",
|
|
59
|
+
"LICENSE.md",
|
|
60
|
+
"napi-oop-runtime",
|
|
61
|
+
"npm-loader.js",
|
|
62
|
+
"package.json",
|
|
63
|
+
"pvrecorder",
|
|
64
|
+
"queries",
|
|
65
|
+
"README.md",
|
|
66
|
+
"sea-loader.js",
|
|
67
|
+
"webview"
|
|
68
|
+
]);
|
|
69
|
+
function validateFile(path, label) {
|
|
70
|
+
if (!(0, import_node_fs.existsSync)(path)) {
|
|
71
|
+
throw new Error(`${label} not found at ${path}.`);
|
|
72
|
+
}
|
|
73
|
+
if ((0, import_node_fs.statSync)(path).size === 0) {
|
|
74
|
+
throw new Error(`${label} at ${path} is empty.`);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function validateRuntimeBundle(wrapper, runtimeNode) {
|
|
78
|
+
validateFile(wrapper, "Copilot runtime wrapper");
|
|
79
|
+
validateFile(runtimeNode, "Copilot runtime.node");
|
|
80
|
+
}
|
|
81
|
+
function isExcluded(relativePath) {
|
|
82
|
+
const parts = relativePath.split(import_node_path.sep);
|
|
83
|
+
const topLevel = parts[0];
|
|
84
|
+
const fileName = parts.at(-1) ?? "";
|
|
85
|
+
return EXCLUDED_TOP_LEVEL.has(topLevel) || /^tree-sitter.*\.wasm$/.test(topLevel) || /^voice-.*\.js$/.test(topLevel) || fileName === "cli-native.node" || parts.includes("mediaremote-adapter") || fileName.startsWith("copilot-runtime-bin");
|
|
86
|
+
}
|
|
87
|
+
function collectRuntimeAssets(sources) {
|
|
88
|
+
const assets = [];
|
|
89
|
+
const visit = (directory) => {
|
|
90
|
+
for (const entry of (0, import_node_fs.readdirSync)(directory, { withFileTypes: true })) {
|
|
91
|
+
const source = (0, import_node_path.join)(directory, entry.name);
|
|
92
|
+
const sourceRelative = (0, import_node_path.relative)(sources.packageRoot, source);
|
|
93
|
+
if (isExcluded(sourceRelative)) {
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
if (entry.isDirectory()) {
|
|
97
|
+
visit(source);
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
if (!entry.isFile() && !entry.isSymbolicLink()) {
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
const parts = sourceRelative.split(import_node_path.sep);
|
|
104
|
+
if (parts[0] === "prebuilds") {
|
|
105
|
+
if (parts[1] !== sources.platform || parts.length < 3) {
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
assets.push({ source, relativePath: sourceRelative });
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
visit(sources.packageRoot);
|
|
113
|
+
return assets.sort((left, right) => left.relativePath.localeCompare(right.relativePath));
|
|
114
|
+
}
|
|
115
|
+
function sourceFingerprint(assets) {
|
|
116
|
+
const hash = (0, import_node_crypto.createHash)("sha256");
|
|
117
|
+
for (const asset of assets) {
|
|
118
|
+
const stat = (0, import_node_fs.lstatSync)(asset.source);
|
|
119
|
+
hash.update(asset.relativePath).update("\0");
|
|
120
|
+
hash.update(`${stat.size}:${stat.mtimeMs}`).update("\0");
|
|
121
|
+
}
|
|
122
|
+
return hash.digest("hex").slice(0, 20);
|
|
123
|
+
}
|
|
124
|
+
function makeExecutable(path) {
|
|
125
|
+
if (process.platform === "win32") {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const mode = (0, import_node_fs.statSync)(path).mode;
|
|
129
|
+
if ((mode & 73) === 0) {
|
|
130
|
+
(0, import_node_fs.chmodSync)(path, mode | 73);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
function defaultRuntimeCacheRoot(platform = process.platform, home = (0, import_node_os.homedir)(), environment = process.env) {
|
|
134
|
+
const cacheDirectory = platform === "win32" ? environment.LOCALAPPDATA ?? (0, import_node_path.join)(home, "AppData", "Local") : platform === "darwin" ? (0, import_node_path.join)(home, "Library", "Caches") : environment.XDG_CACHE_HOME ?? (0, import_node_path.join)(home, ".cache");
|
|
135
|
+
return (0, import_node_path.join)(cacheDirectory, "copilot-sdk", "runtime");
|
|
136
|
+
}
|
|
137
|
+
function materializeRuntimeBundle(sources, cacheRoot = defaultRuntimeCacheRoot(), cacheKey = `${sources.platform}-${sourceFingerprint(collectRuntimeAssets(sources))}`) {
|
|
138
|
+
const assets = collectRuntimeAssets(sources);
|
|
139
|
+
const wrapperName = sources.platform.startsWith("win32") ? "copilot-runtime.exe" : "copilot-runtime";
|
|
140
|
+
const prebuildDir = (0, import_node_path.join)("prebuilds", sources.platform);
|
|
141
|
+
const wrapperRelative = (0, import_node_path.join)(prebuildDir, wrapperName);
|
|
142
|
+
const runtimeNodeRelative = (0, import_node_path.join)(prebuildDir, "runtime.node");
|
|
143
|
+
const sourceWrapper = assets.find((asset) => asset.relativePath === wrapperRelative)?.source;
|
|
144
|
+
const sourceRuntimeNode = assets.find(
|
|
145
|
+
(asset) => asset.relativePath === runtimeNodeRelative
|
|
146
|
+
)?.source;
|
|
147
|
+
validateRuntimeBundle(sourceWrapper ?? "", sourceRuntimeNode ?? "");
|
|
148
|
+
const installDir = (0, import_node_path.join)(cacheRoot, cacheKey);
|
|
149
|
+
const installedWrapper = (0, import_node_path.join)(installDir, wrapperRelative);
|
|
150
|
+
const installedRuntimeNode = (0, import_node_path.join)(installDir, runtimeNodeRelative);
|
|
151
|
+
if ((0, import_node_fs.existsSync)(installDir)) {
|
|
152
|
+
validateRuntimeBundle(installedWrapper, installedRuntimeNode);
|
|
153
|
+
makeExecutable(installedWrapper);
|
|
154
|
+
return installedWrapper;
|
|
155
|
+
}
|
|
156
|
+
(0, import_node_fs.mkdirSync)(cacheRoot, { recursive: true });
|
|
157
|
+
const stagingDir = (0, import_node_fs.mkdtempSync)((0, import_node_path.join)(cacheRoot, ".runtime-"));
|
|
158
|
+
try {
|
|
159
|
+
for (const asset of assets) {
|
|
160
|
+
const destination = (0, import_node_path.join)(stagingDir, asset.relativePath);
|
|
161
|
+
(0, import_node_fs.mkdirSync)((0, import_node_path.dirname)(destination), { recursive: true });
|
|
162
|
+
(0, import_node_fs.copyFileSync)(asset.source, destination);
|
|
163
|
+
}
|
|
164
|
+
const stagedWrapper = (0, import_node_path.join)(stagingDir, wrapperRelative);
|
|
165
|
+
makeExecutable(stagedWrapper);
|
|
166
|
+
(0, import_node_fs.renameSync)(stagingDir, installDir);
|
|
167
|
+
} catch (error) {
|
|
168
|
+
if (!(0, import_node_fs.existsSync)(installDir)) {
|
|
169
|
+
throw error;
|
|
170
|
+
}
|
|
171
|
+
validateRuntimeBundle(installedWrapper, installedRuntimeNode);
|
|
172
|
+
} finally {
|
|
173
|
+
(0, import_node_fs.rmSync)(stagingDir, { recursive: true, force: true });
|
|
174
|
+
}
|
|
175
|
+
return installedWrapper;
|
|
176
|
+
}
|
|
177
|
+
function isMusl() {
|
|
178
|
+
if (process.platform !== "linux") {
|
|
179
|
+
return false;
|
|
180
|
+
}
|
|
181
|
+
const report = process.report?.getReport();
|
|
182
|
+
return report?.header?.glibcVersionRuntime === void 0;
|
|
183
|
+
}
|
|
184
|
+
function getRuntimePlatform(platform = process.platform, arch = process.arch, musl = isMusl()) {
|
|
185
|
+
if (arch !== "x64" && arch !== "arm64") {
|
|
186
|
+
throw new Error(`Unsupported Copilot CLI architecture: ${arch}.`);
|
|
187
|
+
}
|
|
188
|
+
if (platform === "linux") {
|
|
189
|
+
return `${musl ? "linuxmusl" : "linux"}-${arch}`;
|
|
190
|
+
}
|
|
191
|
+
if (platform === "darwin" || platform === "win32") {
|
|
192
|
+
return `${platform}-${arch}`;
|
|
193
|
+
}
|
|
194
|
+
throw new Error(`Unsupported Copilot CLI platform: ${platform}-${arch}.`);
|
|
195
|
+
}
|
|
196
|
+
function getRuntimeReleaseAssetName(version, platform) {
|
|
197
|
+
return `github-copilot-${version}-${platform}.tgz`;
|
|
198
|
+
}
|
|
199
|
+
function getRuntimePackageName(platform) {
|
|
200
|
+
return `@microsoft/copilot-sdk-${platform}`;
|
|
201
|
+
}
|
|
202
|
+
function resolvePackageRoot(packageName, searchPaths = require2.resolve.paths(packageName) ?? []) {
|
|
203
|
+
return searchPaths.map((base) => (0, import_node_path.join)(base, ...packageName.split("/"))).find((candidate) => (0, import_node_fs.existsSync)((0, import_node_path.join)(candidate, "package.json")));
|
|
204
|
+
}
|
|
205
|
+
async function ensureRuntimeBundle(version, options = {}) {
|
|
206
|
+
const platform = options.platform ?? getRuntimePlatform();
|
|
207
|
+
if (import_cliVersion.COPILOT_CLI_USE_NPM_PACKAGE) {
|
|
208
|
+
const packageName2 = `@github/copilot-${platform}`;
|
|
209
|
+
const packageRoot2 = resolvePackageRoot(packageName2, options.packageSearchPaths);
|
|
210
|
+
if (!packageRoot2) {
|
|
211
|
+
throw new Error(`Could not resolve ${packageName2} for Copilot CLI ${version}.`);
|
|
212
|
+
}
|
|
213
|
+
validateFile(
|
|
214
|
+
(0, import_node_path.join)(packageRoot2, "prebuilds", platform, "runtime.node"),
|
|
215
|
+
"Copilot runtime.node"
|
|
216
|
+
);
|
|
217
|
+
return materializeRuntimeBundle(
|
|
218
|
+
{ packageRoot: packageRoot2, platform },
|
|
219
|
+
options.cacheRoot,
|
|
220
|
+
`${version}-${platform}`
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
const packageName = getRuntimePackageName(platform);
|
|
224
|
+
const packageRoot = resolvePackageRoot(packageName, options.packageSearchPaths);
|
|
225
|
+
if (!packageRoot) {
|
|
226
|
+
throw new Error(
|
|
227
|
+
`Could not resolve ${packageName}. Reinstall @microsoft/copilot-sdk so its platform package is installed.`
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
const wrapperName = platform.startsWith("win32") ? "copilot-runtime.exe" : "copilot-runtime";
|
|
231
|
+
const prebuildDir = (0, import_node_path.join)(packageRoot, "prebuilds", platform);
|
|
232
|
+
const wrapper = (0, import_node_path.join)(prebuildDir, wrapperName);
|
|
233
|
+
try {
|
|
234
|
+
validateRuntimeBundle(wrapper, (0, import_node_path.join)(prebuildDir, "runtime.node"));
|
|
235
|
+
} catch (error) {
|
|
236
|
+
throw new Error(
|
|
237
|
+
`${packageName} is missing required Copilot CLI runtime files. Reinstall @microsoft/copilot-sdk.`,
|
|
238
|
+
{ cause: error }
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
makeExecutable(wrapper);
|
|
242
|
+
return wrapper;
|
|
243
|
+
}
|
|
244
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
245
|
+
0 && (module.exports = {
|
|
246
|
+
RUNTIME_PLATFORMS,
|
|
247
|
+
defaultRuntimeCacheRoot,
|
|
248
|
+
ensureRuntimeBundle,
|
|
249
|
+
getRuntimePackageName,
|
|
250
|
+
getRuntimePlatform,
|
|
251
|
+
getRuntimeReleaseAssetName,
|
|
252
|
+
materializeRuntimeBundle,
|
|
253
|
+
resolvePackageRoot,
|
|
254
|
+
validateFile
|
|
255
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var schema_exports = {};
|
|
20
|
+
__export(schema_exports, {
|
|
21
|
+
isResponseSchema: () => isResponseSchema,
|
|
22
|
+
isZodSchema: () => isZodSchema,
|
|
23
|
+
toJsonSchema: () => toJsonSchema
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(schema_exports);
|
|
26
|
+
function isZodSchema(value) {
|
|
27
|
+
return typeof value === "object" && value !== null && "toJSONSchema" in value && typeof value.toJSONSchema === "function";
|
|
28
|
+
}
|
|
29
|
+
function toJsonSchema(schema) {
|
|
30
|
+
return isZodSchema(schema) ? schema.toJSONSchema() : schema;
|
|
31
|
+
}
|
|
32
|
+
function isResponseSchema(value) {
|
|
33
|
+
return isZodSchema(value) && "parse" in value && typeof value.parse === "function";
|
|
34
|
+
}
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
isResponseSchema,
|
|
38
|
+
isZodSchema,
|
|
39
|
+
toJsonSchema
|
|
40
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var sdkProtocolVersion_exports = {};
|
|
20
|
+
__export(sdkProtocolVersion_exports, {
|
|
21
|
+
SDK_PROTOCOL_VERSION: () => SDK_PROTOCOL_VERSION,
|
|
22
|
+
getSdkProtocolVersion: () => getSdkProtocolVersion
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(sdkProtocolVersion_exports);
|
|
25
|
+
const SDK_PROTOCOL_VERSION = 3;
|
|
26
|
+
function getSdkProtocolVersion() {
|
|
27
|
+
return SDK_PROTOCOL_VERSION;
|
|
28
|
+
}
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
SDK_PROTOCOL_VERSION,
|
|
32
|
+
getSdkProtocolVersion
|
|
33
|
+
});
|