@hasna/skills 0.5.10 → 0.5.11
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 +29854 -15374
- package/bin/mcp.js +18953 -3882
- package/bin/migrate.js +3 -2
- package/bin/server.js +137 -128
- package/bin/worker.js +122 -121
- package/dist/admin-contract.js +34 -15
- package/dist/index.js +18857 -4210
- package/dist/sdk/index.js +231 -198
- package/dist/storage.js +3 -0
- package/package.json +3 -2
package/dist/admin-contract.js
CHANGED
|
@@ -46,7 +46,7 @@ var __export = (target, all) => {
|
|
|
46
46
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
47
47
|
var __require = import.meta.require;
|
|
48
48
|
|
|
49
|
-
//
|
|
49
|
+
// ../../../../../../../skills/launch-evidence/20260908-resume/internal-origin-deploy-plan-20260908/frozen-docker-context/apps/skills/node_modules/zod/v3/external.js
|
|
50
50
|
var exports_external = {};
|
|
51
51
|
__export(exports_external, {
|
|
52
52
|
void: () => voidType,
|
|
@@ -158,7 +158,7 @@ __export(exports_external, {
|
|
|
158
158
|
BRAND: () => BRAND
|
|
159
159
|
});
|
|
160
160
|
|
|
161
|
-
//
|
|
161
|
+
// ../../../../../../../skills/launch-evidence/20260908-resume/internal-origin-deploy-plan-20260908/frozen-docker-context/apps/skills/node_modules/zod/v3/helpers/util.js
|
|
162
162
|
var util;
|
|
163
163
|
(function(util2) {
|
|
164
164
|
util2.assertEqual = (_) => {};
|
|
@@ -289,7 +289,7 @@ var getParsedType = (data) => {
|
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
|
|
292
|
-
//
|
|
292
|
+
// ../../../../../../../skills/launch-evidence/20260908-resume/internal-origin-deploy-plan-20260908/frozen-docker-context/apps/skills/node_modules/zod/v3/ZodError.js
|
|
293
293
|
var ZodIssueCode = util.arrayToEnum([
|
|
294
294
|
"invalid_type",
|
|
295
295
|
"invalid_literal",
|
|
@@ -356,13 +356,28 @@ class ZodError extends Error {
|
|
|
356
356
|
while (i < issue.path.length) {
|
|
357
357
|
const el = issue.path[i];
|
|
358
358
|
const terminal = i === issue.path.length - 1;
|
|
359
|
-
if (
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
359
|
+
if (el === "_errors") {
|
|
360
|
+
if (terminal)
|
|
361
|
+
curr._errors.push(mapper(issue));
|
|
362
|
+
i++;
|
|
363
|
+
continue;
|
|
364
|
+
}
|
|
365
|
+
if (!Object.prototype.hasOwnProperty.call(curr, el)) {
|
|
366
|
+
if (el === "__proto__") {
|
|
367
|
+
Object.defineProperty(curr, el, {
|
|
368
|
+
value: { _errors: [] },
|
|
369
|
+
writable: true,
|
|
370
|
+
enumerable: true,
|
|
371
|
+
configurable: true
|
|
372
|
+
});
|
|
373
|
+
} else {
|
|
374
|
+
curr[el] = { _errors: [] };
|
|
375
|
+
}
|
|
364
376
|
}
|
|
365
377
|
curr = curr[el];
|
|
378
|
+
if (terminal) {
|
|
379
|
+
curr._errors.push(mapper(issue));
|
|
380
|
+
}
|
|
366
381
|
i++;
|
|
367
382
|
}
|
|
368
383
|
}
|
|
@@ -386,7 +401,7 @@ class ZodError extends Error {
|
|
|
386
401
|
return this.issues.length === 0;
|
|
387
402
|
}
|
|
388
403
|
flatten(mapper = (issue) => issue.message) {
|
|
389
|
-
const fieldErrors =
|
|
404
|
+
const fieldErrors = Object.create(null);
|
|
390
405
|
const formErrors = [];
|
|
391
406
|
for (const sub of this.issues) {
|
|
392
407
|
if (sub.path.length > 0) {
|
|
@@ -408,7 +423,7 @@ ZodError.create = (issues) => {
|
|
|
408
423
|
return error;
|
|
409
424
|
};
|
|
410
425
|
|
|
411
|
-
//
|
|
426
|
+
// ../../../../../../../skills/launch-evidence/20260908-resume/internal-origin-deploy-plan-20260908/frozen-docker-context/apps/skills/node_modules/zod/v3/locales/en.js
|
|
412
427
|
var errorMap = (issue, _ctx) => {
|
|
413
428
|
let message;
|
|
414
429
|
switch (issue.code) {
|
|
@@ -511,7 +526,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
511
526
|
};
|
|
512
527
|
var en_default = errorMap;
|
|
513
528
|
|
|
514
|
-
//
|
|
529
|
+
// ../../../../../../../skills/launch-evidence/20260908-resume/internal-origin-deploy-plan-20260908/frozen-docker-context/apps/skills/node_modules/zod/v3/errors.js
|
|
515
530
|
var overrideErrorMap = en_default;
|
|
516
531
|
function setErrorMap(map) {
|
|
517
532
|
overrideErrorMap = map;
|
|
@@ -519,7 +534,7 @@ function setErrorMap(map) {
|
|
|
519
534
|
function getErrorMap() {
|
|
520
535
|
return overrideErrorMap;
|
|
521
536
|
}
|
|
522
|
-
//
|
|
537
|
+
// ../../../../../../../skills/launch-evidence/20260908-resume/internal-origin-deploy-plan-20260908/frozen-docker-context/apps/skills/node_modules/zod/v3/helpers/parseUtil.js
|
|
523
538
|
var makeIssue = (params) => {
|
|
524
539
|
const { data, path, errorMaps, issueData } = params;
|
|
525
540
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -625,14 +640,14 @@ var isAborted = (x) => x.status === "aborted";
|
|
|
625
640
|
var isDirty = (x) => x.status === "dirty";
|
|
626
641
|
var isValid = (x) => x.status === "valid";
|
|
627
642
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
628
|
-
//
|
|
643
|
+
// ../../../../../../../skills/launch-evidence/20260908-resume/internal-origin-deploy-plan-20260908/frozen-docker-context/apps/skills/node_modules/zod/v3/helpers/errorUtil.js
|
|
629
644
|
var errorUtil;
|
|
630
645
|
(function(errorUtil2) {
|
|
631
646
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
632
647
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
633
648
|
})(errorUtil || (errorUtil = {}));
|
|
634
649
|
|
|
635
|
-
//
|
|
650
|
+
// ../../../../../../../skills/launch-evidence/20260908-resume/internal-origin-deploy-plan-20260908/frozen-docker-context/apps/skills/node_modules/zod/v3/types.js
|
|
636
651
|
class ParseInputLazyPath {
|
|
637
652
|
constructor(parent, value, path, key) {
|
|
638
653
|
this._cachedPath = [];
|
|
@@ -986,7 +1001,7 @@ var nanoidRegex = /^[a-z0-9_-]{21}$/i;
|
|
|
986
1001
|
var jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
|
|
987
1002
|
var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
|
|
988
1003
|
var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
|
|
989
|
-
var _emojiRegex = `^
|
|
1004
|
+
var _emojiRegex = `^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;
|
|
990
1005
|
var emojiRegex;
|
|
991
1006
|
var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
992
1007
|
var ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
|
|
@@ -2873,7 +2888,11 @@ function mergeValues(a, b) {
|
|
|
2873
2888
|
const bKeys = util.objectKeys(b);
|
|
2874
2889
|
const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
2875
2890
|
const newObj = { ...a, ...b };
|
|
2891
|
+
if (Object.prototype.hasOwnProperty.call(newObj, "__proto__"))
|
|
2892
|
+
delete newObj.__proto__;
|
|
2876
2893
|
for (const key of sharedKeys) {
|
|
2894
|
+
if (key === "__proto__")
|
|
2895
|
+
continue;
|
|
2877
2896
|
const sharedValue = mergeValues(a[key], b[key]);
|
|
2878
2897
|
if (!sharedValue.valid) {
|
|
2879
2898
|
return { valid: false };
|