@dev-sergeev/datalab-kit 0.1.5 → 0.1.6
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/CHANGELOG.md +11 -0
- package/README.md +23 -1
- package/THIRD_PARTY_NOTICES.md +3 -0
- package/dist/extension.js +2 -0
- package/dist/skills.d.ts +2 -0
- package/dist/skills.js +54 -0
- package/package.json +36 -9
- package/skills/init/SKILL.md +31 -0
- package/skills/skill-creator/LICENSE.txt +202 -0
- package/skills/skill-creator/SKILL.md +610 -0
- package/skills/skill-creator/agents/analyzer.md +291 -0
- package/skills/skill-creator/agents/comparator.md +213 -0
- package/skills/skill-creator/agents/grader.md +234 -0
- package/skills/skill-creator/assets/eval_review.html +146 -0
- package/skills/skill-creator/eval-viewer/generate_review.py +453 -0
- package/skills/skill-creator/eval-viewer/viewer.html +1329 -0
- package/skills/skill-creator/references/schemas.md +521 -0
- package/skills/skill-creator/scripts/aggregate_benchmark.py +415 -0
- package/skills/skill-creator/scripts/generate_report.py +329 -0
- package/skills/skill-creator/scripts/improve_description.py +225 -0
- package/skills/skill-creator/scripts/package_skill.py +136 -0
- package/skills/skill-creator/scripts/pi_runtime.py +177 -0
- package/skills/skill-creator/scripts/quick_validate.py +107 -0
- package/skills/skill-creator/scripts/run_eval.py +215 -0
- package/skills/skill-creator/scripts/run_loop.py +334 -0
- package/skills/skill-creator/scripts/utils.py +41 -0
- package/node_modules/node-addon-api/common 2.gypi +0 -21
- package/node_modules/node-addon-api/except 2.gypi +0 -25
- package/node_modules/node-addon-api/napi 2.h +0 -3463
- package/node_modules/node-addon-api/napi-inl 2.h +0 -7250
- package/node_modules/node-addon-api/napi-inl.deprecated 2.h +0 -186
- package/node_modules/node-addon-api/node_addon_api 2.gyp +0 -42
- package/node_modules/node-addon-api/node_api 2.gyp +0 -9
- package/node_modules/node-addon-api/noexcept 2.gypi +0 -26
- package/node_modules/pi-toggle-skills/toggle-skills 2.ts +0 -316
- package/node_modules/pi-toggle-skills/vitest.config 2.ts +0 -15
- package/node_modules/sprintf-js/.npmignore 2 +0 -1
- package/node_modules/sprintf-js/LICENSE 2 +0 -24
- package/node_modules/sprintf-js/README 2.md +0 -88
- package/node_modules/sprintf-js/bower 2.json +0 -14
- package/node_modules/sprintf-js/gruntfile 2.js +0 -36
- package/node_modules/sprintf-js/package 2.json +0 -22
- package/node_modules/tree-sitter-bash/tree-sitter-bash 2.wasm +0 -0
- package/node_modules/typebox/license 2 +0 -23
- package/node_modules/typebox/package 2.json +0 -87
- package/node_modules/typebox/readme 2.md +0 -370
- package/node_modules/zod/compile 2.cjs +0 -96
- package/node_modules/zod/compile 2.js +0 -52
- package/node_modules/zod/index 2.cjs +0 -52
- package/node_modules/zod/index 2.js +0 -7
- /package/{node_modules/node-addon-api/nothing 2.c → skills/skill-creator/scripts/__init__.py} +0 -0
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Side-effect-only: installs the post-processor on `globalConfig`. Listed in `package.json`'s `sideEffects`, and nothing else references it, so apps that never import it drop the compiler.
|
|
3
|
-
//
|
|
4
|
-
// Usage:
|
|
5
|
-
//
|
|
6
|
-
// import "zod/compile";
|
|
7
|
-
// import * as z from "zod";
|
|
8
|
-
// // every schema constructed below this is compiled on first parse
|
|
9
|
-
//
|
|
10
|
-
// Module evaluation order matters: schemas constructed in modules that evaluate before this import will not be compiled. Place this import in the app entry point, before any module that constructs schemas at top level.
|
|
11
|
-
//
|
|
12
|
-
// Failure handling: if the compiler refuses a schema (async refinement, unsupported feature, etc.) the shim permanently restores the runtime `_zod.run` for that schema. The schema continues to work via the regular runtime parser — no observable difference to the caller.
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
const compile_js_1 = require("./v4/core/compile.cjs");
|
|
38
|
-
const core = __importStar(require("./v4/core/index.cjs"));
|
|
39
|
-
let compiling = false;
|
|
40
|
-
core.globalConfig.postProcessor = (inst) => {
|
|
41
|
-
if (compiling)
|
|
42
|
-
return;
|
|
43
|
-
const originalRun = inst._zod?.run;
|
|
44
|
-
if (typeof originalRun !== "function")
|
|
45
|
-
return;
|
|
46
|
-
const shim = (payload, ctx) => {
|
|
47
|
-
// Bypass the fast path for any non-forward / non-sync / check-skipping call. The runtime owns those contracts.
|
|
48
|
-
if (ctx?.async || ctx?.direction === "backward" || ctx?.skipChecks) {
|
|
49
|
-
return originalRun(payload, ctx);
|
|
50
|
-
}
|
|
51
|
-
compiling = true;
|
|
52
|
-
try {
|
|
53
|
-
// Respect the jitless config: it exists precisely so CSP/no-eval environments never reach `new Function`. Global mode must not bypass it (explicit z.compile calls remain an explicit opt-in).
|
|
54
|
-
if (core.globalConfig.jitless) {
|
|
55
|
-
inst._zod.run = originalRun;
|
|
56
|
-
return originalRun(payload, ctx);
|
|
57
|
-
}
|
|
58
|
-
// Strict: the shim owns its own fallback below, and a non-strict compile would hand back `inst` — whose run is this shim — and reinstall it on itself.
|
|
59
|
-
const compiled = (0, compile_js_1.compile)(inst, { strict: true });
|
|
60
|
-
// Only the run wrapper. Copying the compiled parse/safeParse closures would make their fallback re-enter this instance and run user callbacks a third time.
|
|
61
|
-
inst._zod.run = compiled._zod.run;
|
|
62
|
-
inst._zod.bag.fallbackRun = compiled._zod.bag.fallbackRun;
|
|
63
|
-
inst._zod.bag.validator = compiled._zod.bag.validator;
|
|
64
|
-
}
|
|
65
|
-
catch {
|
|
66
|
-
// Permanent fallback for unsupported schemas.
|
|
67
|
-
inst._zod.run = originalRun;
|
|
68
|
-
}
|
|
69
|
-
finally {
|
|
70
|
-
compiling = false;
|
|
71
|
-
}
|
|
72
|
-
return inst._zod.run(payload, ctx);
|
|
73
|
-
};
|
|
74
|
-
// Expose the pre-shim runtime so `compile()` invoked elsewhere can unwrap past the shim and capture the source-of-truth runtime. Without this, a user calling `z.compile(s)` after global mode is enabled would capture the shim itself, which would feed the wrapper into itself on fallback.
|
|
75
|
-
shim.__originalRun = originalRun;
|
|
76
|
-
inst._zod.run = shim;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
// seal-cjs-exports
|
|
80
|
-
(function () {
|
|
81
|
-
var keys = Object.getOwnPropertyNames(exports);
|
|
82
|
-
for (var i = 0; i < keys.length; i++) {
|
|
83
|
-
var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
|
|
84
|
-
if (!desc || !desc.get || !desc.configurable) continue;
|
|
85
|
-
var value;
|
|
86
|
-
try {
|
|
87
|
-
value = desc.get();
|
|
88
|
-
} catch (e) {
|
|
89
|
-
continue;
|
|
90
|
-
}
|
|
91
|
-
// a circular require may not have settled this one yet, so leave it live
|
|
92
|
-
if (value === undefined) continue;
|
|
93
|
-
Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
|
|
94
|
-
}
|
|
95
|
-
Object.freeze(exports);
|
|
96
|
-
})();
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// Side-effect-only: installs the post-processor on `globalConfig`. Listed in `package.json`'s `sideEffects`, and nothing else references it, so apps that never import it drop the compiler.
|
|
2
|
-
//
|
|
3
|
-
// Usage:
|
|
4
|
-
//
|
|
5
|
-
// import "zod/compile";
|
|
6
|
-
// import * as z from "zod";
|
|
7
|
-
// // every schema constructed below this is compiled on first parse
|
|
8
|
-
//
|
|
9
|
-
// Module evaluation order matters: schemas constructed in modules that evaluate before this import will not be compiled. Place this import in the app entry point, before any module that constructs schemas at top level.
|
|
10
|
-
//
|
|
11
|
-
// Failure handling: if the compiler refuses a schema (async refinement, unsupported feature, etc.) the shim permanently restores the runtime `_zod.run` for that schema. The schema continues to work via the regular runtime parser — no observable difference to the caller.
|
|
12
|
-
import { compile } from "./v4/core/compile.js";
|
|
13
|
-
import * as core from "./v4/core/index.js";
|
|
14
|
-
let compiling = false;
|
|
15
|
-
core.globalConfig.postProcessor = (inst) => {
|
|
16
|
-
if (compiling)
|
|
17
|
-
return;
|
|
18
|
-
const originalRun = inst._zod?.run;
|
|
19
|
-
if (typeof originalRun !== "function")
|
|
20
|
-
return;
|
|
21
|
-
const shim = (payload, ctx) => {
|
|
22
|
-
// Bypass the fast path for any non-forward / non-sync / check-skipping call. The runtime owns those contracts.
|
|
23
|
-
if (ctx?.async || ctx?.direction === "backward" || ctx?.skipChecks) {
|
|
24
|
-
return originalRun(payload, ctx);
|
|
25
|
-
}
|
|
26
|
-
compiling = true;
|
|
27
|
-
try {
|
|
28
|
-
// Respect the jitless config: it exists precisely so CSP/no-eval environments never reach `new Function`. Global mode must not bypass it (explicit z.compile calls remain an explicit opt-in).
|
|
29
|
-
if (core.globalConfig.jitless) {
|
|
30
|
-
inst._zod.run = originalRun;
|
|
31
|
-
return originalRun(payload, ctx);
|
|
32
|
-
}
|
|
33
|
-
// Strict: the shim owns its own fallback below, and a non-strict compile would hand back `inst` — whose run is this shim — and reinstall it on itself.
|
|
34
|
-
const compiled = compile(inst, { strict: true });
|
|
35
|
-
// Only the run wrapper. Copying the compiled parse/safeParse closures would make their fallback re-enter this instance and run user callbacks a third time.
|
|
36
|
-
inst._zod.run = compiled._zod.run;
|
|
37
|
-
inst._zod.bag.fallbackRun = compiled._zod.bag.fallbackRun;
|
|
38
|
-
inst._zod.bag.validator = compiled._zod.bag.validator;
|
|
39
|
-
}
|
|
40
|
-
catch {
|
|
41
|
-
// Permanent fallback for unsupported schemas.
|
|
42
|
-
inst._zod.run = originalRun;
|
|
43
|
-
}
|
|
44
|
-
finally {
|
|
45
|
-
compiling = false;
|
|
46
|
-
}
|
|
47
|
-
return inst._zod.run(payload, ctx);
|
|
48
|
-
};
|
|
49
|
-
// Expose the pre-shim runtime so `compile()` invoked elsewhere can unwrap past the shim and capture the source-of-truth runtime. Without this, a user calling `z.compile(s)` after global mode is enabled would capture the shim itself, which would feed the wrapper into itself on fallback.
|
|
50
|
-
shim.__originalRun = originalRun;
|
|
51
|
-
inst._zod.run = shim;
|
|
52
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.default = exports.z = void 0;
|
|
30
|
-
const z = __importStar(require("./v4/classic/external.cjs"));
|
|
31
|
-
exports.z = z;
|
|
32
|
-
exports.default = z;
|
|
33
|
-
__exportStar(require("./v4/classic/external.cjs"), exports);
|
|
34
|
-
|
|
35
|
-
// seal-cjs-exports
|
|
36
|
-
(function () {
|
|
37
|
-
var keys = Object.getOwnPropertyNames(exports);
|
|
38
|
-
for (var i = 0; i < keys.length; i++) {
|
|
39
|
-
var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
|
|
40
|
-
if (!desc || !desc.get || !desc.configurable) continue;
|
|
41
|
-
var value;
|
|
42
|
-
try {
|
|
43
|
-
value = desc.get();
|
|
44
|
-
} catch (e) {
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
// a circular require may not have settled this one yet, so leave it live
|
|
48
|
-
if (value === undefined) continue;
|
|
49
|
-
Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
|
|
50
|
-
}
|
|
51
|
-
Object.freeze(exports);
|
|
52
|
-
})();
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as z from "./v4/classic/external.js";
|
|
2
|
-
export * from "./v4/classic/external.js";
|
|
3
|
-
// Aliasing the binding, instead of `export default z`, keeps the default export a
|
|
4
|
-
// re-export of `z` rather than a fresh namespace value. Rollup and Webpack can then
|
|
5
|
-
// shake `import z from "zod"` as they already shake `import { z } from "zod"` — without
|
|
6
|
-
// this they pull in every locale. See #6050.
|
|
7
|
-
export { z, z as default };
|
/package/{node_modules/node-addon-api/nothing 2.c → skills/skill-creator/scripts/__init__.py}
RENAMED
|
File without changes
|