@alpic-ai/sdk 0.0.0-staging.gc8bbd5f → 0.0.0-staging.gcd7c19c
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/auth/index.d.ts +4 -0
- package/dist/auth/index.js +11 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/server/assets/authorize.html +1 -1
- package/dist/client.d.ts +6 -0
- package/dist/client.js +10 -0
- package/dist/client.js.map +1 -1
- package/dist/deploy/archive.d.ts +8 -0
- package/dist/deploy/archive.js +61 -0
- package/dist/deploy/archive.js.map +1 -0
- package/dist/deploy/deployments.d.ts +45 -0
- package/dist/deploy/deployments.js +90 -0
- package/dist/deploy/deployments.js.map +1 -0
- package/dist/deploy/poll.d.ts +2 -0
- package/dist/deploy/poll.js +10 -0
- package/dist/deploy/poll.js.map +1 -0
- package/dist/deploy/upload.d.ts +1 -0
- package/dist/deploy/upload.js +13 -0
- package/dist/deploy/upload.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/project/config.d.ts +10 -0
- package/dist/project/config.js +29 -0
- package/dist/project/config.js.map +1 -0
- package/dist/project/detect-runtime.d.ts +2 -0
- package/dist/project/detect-runtime.js +25 -0
- package/dist/project/detect-runtime.js.map +1 -0
- package/dist/project/projects.d.ts +21 -0
- package/dist/project/projects.js +52 -0
- package/dist/project/projects.js.map +1 -0
- package/dist/vendor/pipenet.js +27 -32
- package/dist/vendor/pipenet.js.map +3 -3
- package/dist/whoami.d.ts +15 -0
- package/dist/whoami.js +12 -0
- package/dist/whoami.js.map +1 -0
- package/package.json +10 -9
package/dist/vendor/pipenet.js
CHANGED
|
@@ -9593,9 +9593,9 @@ var require_get_proto = __commonJS({
|
|
|
9593
9593
|
}
|
|
9594
9594
|
});
|
|
9595
9595
|
|
|
9596
|
-
// ../../node_modules/.pnpm/hasown@2.0.
|
|
9596
|
+
// ../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
|
|
9597
9597
|
var require_hasown = __commonJS({
|
|
9598
|
-
"../../node_modules/.pnpm/hasown@2.0.
|
|
9598
|
+
"../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module) {
|
|
9599
9599
|
"use strict";
|
|
9600
9600
|
var call = Function.prototype.call;
|
|
9601
9601
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
@@ -9978,9 +9978,9 @@ var require_es_set_tostringtag = __commonJS({
|
|
|
9978
9978
|
}
|
|
9979
9979
|
});
|
|
9980
9980
|
|
|
9981
|
-
// ../../node_modules/.pnpm/form-data@4.0.
|
|
9981
|
+
// ../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/populate.js
|
|
9982
9982
|
var require_populate = __commonJS({
|
|
9983
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
9983
|
+
"../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/populate.js"(exports, module) {
|
|
9984
9984
|
"use strict";
|
|
9985
9985
|
module.exports = function(dst, src) {
|
|
9986
9986
|
Object.keys(src).forEach(function(prop) {
|
|
@@ -9991,9 +9991,9 @@ var require_populate = __commonJS({
|
|
|
9991
9991
|
}
|
|
9992
9992
|
});
|
|
9993
9993
|
|
|
9994
|
-
// ../../node_modules/.pnpm/form-data@4.0.
|
|
9994
|
+
// ../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/form_data.js
|
|
9995
9995
|
var require_form_data = __commonJS({
|
|
9996
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
9996
|
+
"../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/form_data.js"(exports, module) {
|
|
9997
9997
|
"use strict";
|
|
9998
9998
|
var CombinedStream = require_combined_stream();
|
|
9999
9999
|
var util3 = __require("util");
|
|
@@ -10009,6 +10009,9 @@ var require_form_data = __commonJS({
|
|
|
10009
10009
|
var setToStringTag = require_es_set_tostringtag();
|
|
10010
10010
|
var hasOwn = require_hasown();
|
|
10011
10011
|
var populate = require_populate();
|
|
10012
|
+
function escapeHeaderParam(str) {
|
|
10013
|
+
return String(str).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22");
|
|
10014
|
+
}
|
|
10012
10015
|
function FormData3(options) {
|
|
10013
10016
|
if (!(this instanceof FormData3)) {
|
|
10014
10017
|
return new FormData3(options);
|
|
@@ -10098,7 +10101,7 @@ var require_form_data = __commonJS({
|
|
|
10098
10101
|
var contents = "";
|
|
10099
10102
|
var headers = {
|
|
10100
10103
|
// add custom disposition as third element or keep it two elements if not
|
|
10101
|
-
"Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
|
|
10104
|
+
"Content-Disposition": ["form-data", 'name="' + escapeHeaderParam(field) + '"'].concat(contentDisposition || []),
|
|
10102
10105
|
// if no content type. allow it to be empty array
|
|
10103
10106
|
"Content-Type": [].concat(contentType || [])
|
|
10104
10107
|
};
|
|
@@ -10132,7 +10135,7 @@ var require_form_data = __commonJS({
|
|
|
10132
10135
|
filename = path.basename(value.client._httpMessage.path || "");
|
|
10133
10136
|
}
|
|
10134
10137
|
if (filename) {
|
|
10135
|
-
return 'filename="' + filename + '"';
|
|
10138
|
+
return 'filename="' + escapeHeaderParam(filename) + '"';
|
|
10136
10139
|
}
|
|
10137
10140
|
};
|
|
10138
10141
|
FormData3.prototype._getContentType = function(value, options) {
|
|
@@ -10426,9 +10429,9 @@ var require_ms = __commonJS({
|
|
|
10426
10429
|
}
|
|
10427
10430
|
});
|
|
10428
10431
|
|
|
10429
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
10432
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js
|
|
10430
10433
|
var require_common = __commonJS({
|
|
10431
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
10434
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js"(exports, module) {
|
|
10432
10435
|
function setup(env) {
|
|
10433
10436
|
createDebug.debug = createDebug;
|
|
10434
10437
|
createDebug.default = createDebug;
|
|
@@ -10603,9 +10606,9 @@ var require_common = __commonJS({
|
|
|
10603
10606
|
}
|
|
10604
10607
|
});
|
|
10605
10608
|
|
|
10606
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
10609
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js
|
|
10607
10610
|
var require_browser = __commonJS({
|
|
10608
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
10611
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js"(exports, module) {
|
|
10609
10612
|
exports.formatArgs = formatArgs;
|
|
10610
10613
|
exports.save = save;
|
|
10611
10614
|
exports.load = load;
|
|
@@ -10900,9 +10903,9 @@ var require_supports_color = __commonJS({
|
|
|
10900
10903
|
}
|
|
10901
10904
|
});
|
|
10902
10905
|
|
|
10903
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
10906
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js
|
|
10904
10907
|
var require_node = __commonJS({
|
|
10905
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
10908
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
|
|
10906
10909
|
var tty = __require("tty");
|
|
10907
10910
|
var util3 = __require("util");
|
|
10908
10911
|
exports.init = init;
|
|
@@ -11074,9 +11077,9 @@ var require_node = __commonJS({
|
|
|
11074
11077
|
}
|
|
11075
11078
|
});
|
|
11076
11079
|
|
|
11077
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
11080
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js
|
|
11078
11081
|
var require_src = __commonJS({
|
|
11079
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
11082
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js"(exports, module) {
|
|
11080
11083
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
11081
11084
|
module.exports = require_browser();
|
|
11082
11085
|
} else {
|
|
@@ -16571,18 +16574,18 @@ var {
|
|
|
16571
16574
|
create
|
|
16572
16575
|
} = axios_default;
|
|
16573
16576
|
|
|
16574
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16577
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/Tunnel.js
|
|
16575
16578
|
var import_debug2 = __toESM(require_src(), 1);
|
|
16576
16579
|
import { EventEmitter as EventEmitter3 } from "events";
|
|
16577
16580
|
|
|
16578
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16581
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/TunnelCluster.js
|
|
16579
16582
|
var import_debug = __toESM(require_src(), 1);
|
|
16580
16583
|
import { EventEmitter as EventEmitter2 } from "events";
|
|
16581
16584
|
import fs from "fs";
|
|
16582
16585
|
import net from "net";
|
|
16583
16586
|
import tls from "tls";
|
|
16584
16587
|
|
|
16585
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16588
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/HeaderHostTransformer.js
|
|
16586
16589
|
import { Transform } from "stream";
|
|
16587
16590
|
var HeaderHostTransformer = class extends Transform {
|
|
16588
16591
|
host;
|
|
@@ -16600,7 +16603,7 @@ var HeaderHostTransformer = class extends Transform {
|
|
|
16600
16603
|
}
|
|
16601
16604
|
};
|
|
16602
16605
|
|
|
16603
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16606
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/TunnelCluster.js
|
|
16604
16607
|
var log = (0, import_debug.default)("pipenet:client");
|
|
16605
16608
|
var TunnelCluster = class extends EventEmitter2 {
|
|
16606
16609
|
opts;
|
|
@@ -16633,18 +16636,10 @@ var TunnelCluster = class extends EventEmitter2 {
|
|
|
16633
16636
|
}
|
|
16634
16637
|
remote.end();
|
|
16635
16638
|
});
|
|
16636
|
-
let deadEmitted = false;
|
|
16637
|
-
const emitDead = () => {
|
|
16638
|
-
if (deadEmitted) {
|
|
16639
|
-
return;
|
|
16640
|
-
}
|
|
16641
|
-
deadEmitted = true;
|
|
16642
|
-
this.emit("dead", remote);
|
|
16643
|
-
};
|
|
16644
16639
|
const connLocal = () => {
|
|
16645
16640
|
if (remote.destroyed) {
|
|
16646
16641
|
log("remote destroyed");
|
|
16647
|
-
|
|
16642
|
+
this.emit("dead", remote);
|
|
16648
16643
|
return;
|
|
16649
16644
|
}
|
|
16650
16645
|
log("connecting locally to %s://%s:%d", localProtocol, localHost, localPort);
|
|
@@ -16660,7 +16655,7 @@ var TunnelCluster = class extends EventEmitter2 {
|
|
|
16660
16655
|
const local = opt.localHttps ? tls.connect({ host: localHost, port: localPort, ...getLocalCertOpts() }) : net.connect({ host: localHost, port: localPort });
|
|
16661
16656
|
const remoteClose = () => {
|
|
16662
16657
|
log("remote close");
|
|
16663
|
-
|
|
16658
|
+
this.emit("dead", remote);
|
|
16664
16659
|
local.end();
|
|
16665
16660
|
};
|
|
16666
16661
|
remote.once("close", remoteClose);
|
|
@@ -16708,7 +16703,7 @@ var TunnelCluster = class extends EventEmitter2 {
|
|
|
16708
16703
|
}
|
|
16709
16704
|
};
|
|
16710
16705
|
|
|
16711
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16706
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/Tunnel.js
|
|
16712
16707
|
var log2 = (0, import_debug2.default)("pipenet:client");
|
|
16713
16708
|
var Tunnel = class extends EventEmitter3 {
|
|
16714
16709
|
cachedUrl;
|
|
@@ -16856,7 +16851,7 @@ var Tunnel = class extends EventEmitter3 {
|
|
|
16856
16851
|
}
|
|
16857
16852
|
};
|
|
16858
16853
|
|
|
16859
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16854
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/pipenet.js
|
|
16860
16855
|
function pipenet(arg1, arg2, arg3) {
|
|
16861
16856
|
const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
|
|
16862
16857
|
const callback = typeof arg1 === "object" ? arg2 : arg3;
|