@eigenpal/cli 0.9.1 → 0.10.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/CHANGELOG.md +4 -4
- package/README.md +1 -1
- package/dist/cli.js +839 -104
- package/dist/skill/SKILL.md +12 -12
- package/dist/skill/reference/cli/runs.md +43 -44
- package/dist/skill/reference/cli/surface.md +2 -2
- package/package.json +1 -1
- /package/dist/skill/examples/hello-world/dataset/examples/sample/{expected/output.json → expected.json} +0 -0
- /package/dist/skill/examples/hello-world/dataset/examples/sample/{input/arguments.json → input.json} +0 -0
package/dist/cli.js
CHANGED
|
@@ -17145,6 +17145,8 @@ var init_common = __esm(() => {
|
|
|
17145
17145
|
EVAL_EXAMPLE: "evx",
|
|
17146
17146
|
EVAL_RESULT: "evr",
|
|
17147
17147
|
EVAL_BATCH: "evb",
|
|
17148
|
+
RUN_REVIEW: "rev",
|
|
17149
|
+
RUN_REVIEW_CORRECTION: "rvc",
|
|
17148
17150
|
TABLE_ROW: "row",
|
|
17149
17151
|
FOLDER: "fldr",
|
|
17150
17152
|
AGENT_WORKFLOW: "awf",
|
|
@@ -19851,7 +19853,7 @@ var init_run_expand = __esm(() => {
|
|
|
19851
19853
|
input: "still `expand=input` — args now live at `input.args`",
|
|
19852
19854
|
metadata: "use `expand=input` — metadata now lives at `input.metadata`",
|
|
19853
19855
|
observability: "use `expand=debug`",
|
|
19854
|
-
|
|
19856
|
+
review: "use `expand=execution` — reviews live at `execution.review`",
|
|
19855
19857
|
steps: "use `expand=execution` — steps live at `execution.steps` (workflow runs)",
|
|
19856
19858
|
definition: "use `expand=execution` — definitionSnapshot lives at `execution.definitionSnapshot` (workflow runs)",
|
|
19857
19859
|
files: "downloadable output refs live at top-level `files` on completed detail responses; `expand=execution` adds `execution.files.output` metadata for agent runs",
|
|
@@ -66776,6 +66778,733 @@ function displayApiPathsInText(text) {
|
|
|
66776
66778
|
return result;
|
|
66777
66779
|
}
|
|
66778
66780
|
|
|
66781
|
+
// ../../node_modules/@noble/hashes/utils.js
|
|
66782
|
+
function isBytes(a) {
|
|
66783
|
+
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
66784
|
+
}
|
|
66785
|
+
function abytes(value, length, title = "") {
|
|
66786
|
+
const bytes = isBytes(value);
|
|
66787
|
+
const len = value?.length;
|
|
66788
|
+
const needsLen = length !== undefined;
|
|
66789
|
+
if (!bytes || needsLen && len !== length) {
|
|
66790
|
+
const prefix = title && `"${title}" `;
|
|
66791
|
+
const ofLen = needsLen ? ` of length ${length}` : "";
|
|
66792
|
+
const got = bytes ? `length=${len}` : `type=${typeof value}`;
|
|
66793
|
+
throw new Error(prefix + "expected Uint8Array" + ofLen + ", got " + got);
|
|
66794
|
+
}
|
|
66795
|
+
return value;
|
|
66796
|
+
}
|
|
66797
|
+
function aexists(instance, checkFinished = true) {
|
|
66798
|
+
if (instance.destroyed)
|
|
66799
|
+
throw new Error("Hash instance has been destroyed");
|
|
66800
|
+
if (checkFinished && instance.finished)
|
|
66801
|
+
throw new Error("Hash#digest() has already been called");
|
|
66802
|
+
}
|
|
66803
|
+
function aoutput(out, instance) {
|
|
66804
|
+
abytes(out, undefined, "digestInto() output");
|
|
66805
|
+
const min = instance.outputLen;
|
|
66806
|
+
if (out.length < min) {
|
|
66807
|
+
throw new Error('"digestInto() output" expected to be of length >=' + min);
|
|
66808
|
+
}
|
|
66809
|
+
}
|
|
66810
|
+
function clean(...arrays) {
|
|
66811
|
+
for (let i = 0;i < arrays.length; i++) {
|
|
66812
|
+
arrays[i].fill(0);
|
|
66813
|
+
}
|
|
66814
|
+
}
|
|
66815
|
+
function createView(arr) {
|
|
66816
|
+
return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
66817
|
+
}
|
|
66818
|
+
function rotr(word, shift) {
|
|
66819
|
+
return word << 32 - shift | word >>> shift;
|
|
66820
|
+
}
|
|
66821
|
+
function createHasher(hashCons, info2 = {}) {
|
|
66822
|
+
const hashC = (msg, opts) => hashCons(opts).update(msg).digest();
|
|
66823
|
+
const tmp = hashCons(undefined);
|
|
66824
|
+
hashC.outputLen = tmp.outputLen;
|
|
66825
|
+
hashC.blockLen = tmp.blockLen;
|
|
66826
|
+
hashC.create = (opts) => hashCons(opts);
|
|
66827
|
+
Object.assign(hashC, info2);
|
|
66828
|
+
return Object.freeze(hashC);
|
|
66829
|
+
}
|
|
66830
|
+
var oidNist = (suffix) => ({
|
|
66831
|
+
oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, suffix])
|
|
66832
|
+
});
|
|
66833
|
+
var init_utils = __esm(() => {
|
|
66834
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
66835
|
+
});
|
|
66836
|
+
|
|
66837
|
+
// ../../node_modules/@noble/hashes/_md.js
|
|
66838
|
+
function Chi(a, b, c) {
|
|
66839
|
+
return a & b ^ ~a & c;
|
|
66840
|
+
}
|
|
66841
|
+
function Maj(a, b, c) {
|
|
66842
|
+
return a & b ^ a & c ^ b & c;
|
|
66843
|
+
}
|
|
66844
|
+
|
|
66845
|
+
class HashMD {
|
|
66846
|
+
blockLen;
|
|
66847
|
+
outputLen;
|
|
66848
|
+
padOffset;
|
|
66849
|
+
isLE;
|
|
66850
|
+
buffer;
|
|
66851
|
+
view;
|
|
66852
|
+
finished = false;
|
|
66853
|
+
length = 0;
|
|
66854
|
+
pos = 0;
|
|
66855
|
+
destroyed = false;
|
|
66856
|
+
constructor(blockLen, outputLen, padOffset, isLE) {
|
|
66857
|
+
this.blockLen = blockLen;
|
|
66858
|
+
this.outputLen = outputLen;
|
|
66859
|
+
this.padOffset = padOffset;
|
|
66860
|
+
this.isLE = isLE;
|
|
66861
|
+
this.buffer = new Uint8Array(blockLen);
|
|
66862
|
+
this.view = createView(this.buffer);
|
|
66863
|
+
}
|
|
66864
|
+
update(data) {
|
|
66865
|
+
aexists(this);
|
|
66866
|
+
abytes(data);
|
|
66867
|
+
const { view, buffer, blockLen } = this;
|
|
66868
|
+
const len = data.length;
|
|
66869
|
+
for (let pos = 0;pos < len; ) {
|
|
66870
|
+
const take = Math.min(blockLen - this.pos, len - pos);
|
|
66871
|
+
if (take === blockLen) {
|
|
66872
|
+
const dataView = createView(data);
|
|
66873
|
+
for (;blockLen <= len - pos; pos += blockLen)
|
|
66874
|
+
this.process(dataView, pos);
|
|
66875
|
+
continue;
|
|
66876
|
+
}
|
|
66877
|
+
buffer.set(data.subarray(pos, pos + take), this.pos);
|
|
66878
|
+
this.pos += take;
|
|
66879
|
+
pos += take;
|
|
66880
|
+
if (this.pos === blockLen) {
|
|
66881
|
+
this.process(view, 0);
|
|
66882
|
+
this.pos = 0;
|
|
66883
|
+
}
|
|
66884
|
+
}
|
|
66885
|
+
this.length += data.length;
|
|
66886
|
+
this.roundClean();
|
|
66887
|
+
return this;
|
|
66888
|
+
}
|
|
66889
|
+
digestInto(out) {
|
|
66890
|
+
aexists(this);
|
|
66891
|
+
aoutput(out, this);
|
|
66892
|
+
this.finished = true;
|
|
66893
|
+
const { buffer, view, blockLen, isLE } = this;
|
|
66894
|
+
let { pos } = this;
|
|
66895
|
+
buffer[pos++] = 128;
|
|
66896
|
+
clean(this.buffer.subarray(pos));
|
|
66897
|
+
if (this.padOffset > blockLen - pos) {
|
|
66898
|
+
this.process(view, 0);
|
|
66899
|
+
pos = 0;
|
|
66900
|
+
}
|
|
66901
|
+
for (let i = pos;i < blockLen; i++)
|
|
66902
|
+
buffer[i] = 0;
|
|
66903
|
+
view.setBigUint64(blockLen - 8, BigInt(this.length * 8), isLE);
|
|
66904
|
+
this.process(view, 0);
|
|
66905
|
+
const oview = createView(out);
|
|
66906
|
+
const len = this.outputLen;
|
|
66907
|
+
if (len % 4)
|
|
66908
|
+
throw new Error("_sha2: outputLen must be aligned to 32bit");
|
|
66909
|
+
const outLen = len / 4;
|
|
66910
|
+
const state = this.get();
|
|
66911
|
+
if (outLen > state.length)
|
|
66912
|
+
throw new Error("_sha2: outputLen bigger than state");
|
|
66913
|
+
for (let i = 0;i < outLen; i++)
|
|
66914
|
+
oview.setUint32(4 * i, state[i], isLE);
|
|
66915
|
+
}
|
|
66916
|
+
digest() {
|
|
66917
|
+
const { buffer, outputLen } = this;
|
|
66918
|
+
this.digestInto(buffer);
|
|
66919
|
+
const res = buffer.slice(0, outputLen);
|
|
66920
|
+
this.destroy();
|
|
66921
|
+
return res;
|
|
66922
|
+
}
|
|
66923
|
+
_cloneInto(to) {
|
|
66924
|
+
to ||= new this.constructor;
|
|
66925
|
+
to.set(...this.get());
|
|
66926
|
+
const { blockLen, buffer, length, finished, destroyed, pos } = this;
|
|
66927
|
+
to.destroyed = destroyed;
|
|
66928
|
+
to.finished = finished;
|
|
66929
|
+
to.length = length;
|
|
66930
|
+
to.pos = pos;
|
|
66931
|
+
if (length % blockLen)
|
|
66932
|
+
to.buffer.set(buffer);
|
|
66933
|
+
return to;
|
|
66934
|
+
}
|
|
66935
|
+
clone() {
|
|
66936
|
+
return this._cloneInto();
|
|
66937
|
+
}
|
|
66938
|
+
}
|
|
66939
|
+
var SHA256_IV, SHA224_IV, SHA384_IV, SHA512_IV;
|
|
66940
|
+
var init__md = __esm(() => {
|
|
66941
|
+
init_utils();
|
|
66942
|
+
SHA256_IV = /* @__PURE__ */ Uint32Array.from([
|
|
66943
|
+
1779033703,
|
|
66944
|
+
3144134277,
|
|
66945
|
+
1013904242,
|
|
66946
|
+
2773480762,
|
|
66947
|
+
1359893119,
|
|
66948
|
+
2600822924,
|
|
66949
|
+
528734635,
|
|
66950
|
+
1541459225
|
|
66951
|
+
]);
|
|
66952
|
+
SHA224_IV = /* @__PURE__ */ Uint32Array.from([
|
|
66953
|
+
3238371032,
|
|
66954
|
+
914150663,
|
|
66955
|
+
812702999,
|
|
66956
|
+
4144912697,
|
|
66957
|
+
4290775857,
|
|
66958
|
+
1750603025,
|
|
66959
|
+
1694076839,
|
|
66960
|
+
3204075428
|
|
66961
|
+
]);
|
|
66962
|
+
SHA384_IV = /* @__PURE__ */ Uint32Array.from([
|
|
66963
|
+
3418070365,
|
|
66964
|
+
3238371032,
|
|
66965
|
+
1654270250,
|
|
66966
|
+
914150663,
|
|
66967
|
+
2438529370,
|
|
66968
|
+
812702999,
|
|
66969
|
+
355462360,
|
|
66970
|
+
4144912697,
|
|
66971
|
+
1731405415,
|
|
66972
|
+
4290775857,
|
|
66973
|
+
2394180231,
|
|
66974
|
+
1750603025,
|
|
66975
|
+
3675008525,
|
|
66976
|
+
1694076839,
|
|
66977
|
+
1203062813,
|
|
66978
|
+
3204075428
|
|
66979
|
+
]);
|
|
66980
|
+
SHA512_IV = /* @__PURE__ */ Uint32Array.from([
|
|
66981
|
+
1779033703,
|
|
66982
|
+
4089235720,
|
|
66983
|
+
3144134277,
|
|
66984
|
+
2227873595,
|
|
66985
|
+
1013904242,
|
|
66986
|
+
4271175723,
|
|
66987
|
+
2773480762,
|
|
66988
|
+
1595750129,
|
|
66989
|
+
1359893119,
|
|
66990
|
+
2917565137,
|
|
66991
|
+
2600822924,
|
|
66992
|
+
725511199,
|
|
66993
|
+
528734635,
|
|
66994
|
+
4215389547,
|
|
66995
|
+
1541459225,
|
|
66996
|
+
327033209
|
|
66997
|
+
]);
|
|
66998
|
+
});
|
|
66999
|
+
|
|
67000
|
+
// ../../node_modules/@noble/hashes/_u64.js
|
|
67001
|
+
function fromBig(n, le = false) {
|
|
67002
|
+
if (le)
|
|
67003
|
+
return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
|
|
67004
|
+
return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
67005
|
+
}
|
|
67006
|
+
function split2(lst, le = false) {
|
|
67007
|
+
const len = lst.length;
|
|
67008
|
+
let Ah = new Uint32Array(len);
|
|
67009
|
+
let Al = new Uint32Array(len);
|
|
67010
|
+
for (let i = 0;i < len; i++) {
|
|
67011
|
+
const { h, l } = fromBig(lst[i], le);
|
|
67012
|
+
[Ah[i], Al[i]] = [h, l];
|
|
67013
|
+
}
|
|
67014
|
+
return [Ah, Al];
|
|
67015
|
+
}
|
|
67016
|
+
function add(Ah, Al, Bh, Bl) {
|
|
67017
|
+
const l = (Al >>> 0) + (Bl >>> 0);
|
|
67018
|
+
return { h: Ah + Bh + (l / 2 ** 32 | 0) | 0, l: l | 0 };
|
|
67019
|
+
}
|
|
67020
|
+
var U32_MASK64, _32n, shrSH = (h, _l, s) => h >>> s, shrSL = (h, l, s) => h << 32 - s | l >>> s, rotrSH = (h, l, s) => h >>> s | l << 32 - s, rotrSL = (h, l, s) => h << 32 - s | l >>> s, rotrBH = (h, l, s) => h << 64 - s | l >>> s - 32, rotrBL = (h, l, s) => h >>> s - 32 | l << 64 - s, add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0), add3H = (low, Ah, Bh, Ch) => Ah + Bh + Ch + (low / 2 ** 32 | 0) | 0, add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0), add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) | 0, add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0), add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
|
|
67021
|
+
var init__u64 = __esm(() => {
|
|
67022
|
+
U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
67023
|
+
_32n = /* @__PURE__ */ BigInt(32);
|
|
67024
|
+
});
|
|
67025
|
+
|
|
67026
|
+
// ../../node_modules/@noble/hashes/sha2.js
|
|
67027
|
+
var SHA256_K, SHA256_W, SHA2_32B, _SHA256, _SHA224, K512, SHA512_Kh, SHA512_Kl, SHA512_W_H, SHA512_W_L, SHA2_64B, _SHA512, _SHA384, T224_IV, T256_IV, _SHA512_224, _SHA512_256, sha256;
|
|
67028
|
+
var init_sha2 = __esm(() => {
|
|
67029
|
+
init__md();
|
|
67030
|
+
init__u64();
|
|
67031
|
+
init_utils();
|
|
67032
|
+
SHA256_K = /* @__PURE__ */ Uint32Array.from([
|
|
67033
|
+
1116352408,
|
|
67034
|
+
1899447441,
|
|
67035
|
+
3049323471,
|
|
67036
|
+
3921009573,
|
|
67037
|
+
961987163,
|
|
67038
|
+
1508970993,
|
|
67039
|
+
2453635748,
|
|
67040
|
+
2870763221,
|
|
67041
|
+
3624381080,
|
|
67042
|
+
310598401,
|
|
67043
|
+
607225278,
|
|
67044
|
+
1426881987,
|
|
67045
|
+
1925078388,
|
|
67046
|
+
2162078206,
|
|
67047
|
+
2614888103,
|
|
67048
|
+
3248222580,
|
|
67049
|
+
3835390401,
|
|
67050
|
+
4022224774,
|
|
67051
|
+
264347078,
|
|
67052
|
+
604807628,
|
|
67053
|
+
770255983,
|
|
67054
|
+
1249150122,
|
|
67055
|
+
1555081692,
|
|
67056
|
+
1996064986,
|
|
67057
|
+
2554220882,
|
|
67058
|
+
2821834349,
|
|
67059
|
+
2952996808,
|
|
67060
|
+
3210313671,
|
|
67061
|
+
3336571891,
|
|
67062
|
+
3584528711,
|
|
67063
|
+
113926993,
|
|
67064
|
+
338241895,
|
|
67065
|
+
666307205,
|
|
67066
|
+
773529912,
|
|
67067
|
+
1294757372,
|
|
67068
|
+
1396182291,
|
|
67069
|
+
1695183700,
|
|
67070
|
+
1986661051,
|
|
67071
|
+
2177026350,
|
|
67072
|
+
2456956037,
|
|
67073
|
+
2730485921,
|
|
67074
|
+
2820302411,
|
|
67075
|
+
3259730800,
|
|
67076
|
+
3345764771,
|
|
67077
|
+
3516065817,
|
|
67078
|
+
3600352804,
|
|
67079
|
+
4094571909,
|
|
67080
|
+
275423344,
|
|
67081
|
+
430227734,
|
|
67082
|
+
506948616,
|
|
67083
|
+
659060556,
|
|
67084
|
+
883997877,
|
|
67085
|
+
958139571,
|
|
67086
|
+
1322822218,
|
|
67087
|
+
1537002063,
|
|
67088
|
+
1747873779,
|
|
67089
|
+
1955562222,
|
|
67090
|
+
2024104815,
|
|
67091
|
+
2227730452,
|
|
67092
|
+
2361852424,
|
|
67093
|
+
2428436474,
|
|
67094
|
+
2756734187,
|
|
67095
|
+
3204031479,
|
|
67096
|
+
3329325298
|
|
67097
|
+
]);
|
|
67098
|
+
SHA256_W = /* @__PURE__ */ new Uint32Array(64);
|
|
67099
|
+
SHA2_32B = class SHA2_32B extends HashMD {
|
|
67100
|
+
constructor(outputLen) {
|
|
67101
|
+
super(64, outputLen, 8, false);
|
|
67102
|
+
}
|
|
67103
|
+
get() {
|
|
67104
|
+
const { A, B, C, D, E, F, G, H } = this;
|
|
67105
|
+
return [A, B, C, D, E, F, G, H];
|
|
67106
|
+
}
|
|
67107
|
+
set(A, B, C, D, E, F, G, H) {
|
|
67108
|
+
this.A = A | 0;
|
|
67109
|
+
this.B = B | 0;
|
|
67110
|
+
this.C = C | 0;
|
|
67111
|
+
this.D = D | 0;
|
|
67112
|
+
this.E = E | 0;
|
|
67113
|
+
this.F = F | 0;
|
|
67114
|
+
this.G = G | 0;
|
|
67115
|
+
this.H = H | 0;
|
|
67116
|
+
}
|
|
67117
|
+
process(view, offset) {
|
|
67118
|
+
for (let i = 0;i < 16; i++, offset += 4)
|
|
67119
|
+
SHA256_W[i] = view.getUint32(offset, false);
|
|
67120
|
+
for (let i = 16;i < 64; i++) {
|
|
67121
|
+
const W15 = SHA256_W[i - 15];
|
|
67122
|
+
const W2 = SHA256_W[i - 2];
|
|
67123
|
+
const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ W15 >>> 3;
|
|
67124
|
+
const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ W2 >>> 10;
|
|
67125
|
+
SHA256_W[i] = s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16] | 0;
|
|
67126
|
+
}
|
|
67127
|
+
let { A, B, C, D, E, F, G, H } = this;
|
|
67128
|
+
for (let i = 0;i < 64; i++) {
|
|
67129
|
+
const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25);
|
|
67130
|
+
const T1 = H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i] | 0;
|
|
67131
|
+
const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22);
|
|
67132
|
+
const T2 = sigma0 + Maj(A, B, C) | 0;
|
|
67133
|
+
H = G;
|
|
67134
|
+
G = F;
|
|
67135
|
+
F = E;
|
|
67136
|
+
E = D + T1 | 0;
|
|
67137
|
+
D = C;
|
|
67138
|
+
C = B;
|
|
67139
|
+
B = A;
|
|
67140
|
+
A = T1 + T2 | 0;
|
|
67141
|
+
}
|
|
67142
|
+
A = A + this.A | 0;
|
|
67143
|
+
B = B + this.B | 0;
|
|
67144
|
+
C = C + this.C | 0;
|
|
67145
|
+
D = D + this.D | 0;
|
|
67146
|
+
E = E + this.E | 0;
|
|
67147
|
+
F = F + this.F | 0;
|
|
67148
|
+
G = G + this.G | 0;
|
|
67149
|
+
H = H + this.H | 0;
|
|
67150
|
+
this.set(A, B, C, D, E, F, G, H);
|
|
67151
|
+
}
|
|
67152
|
+
roundClean() {
|
|
67153
|
+
clean(SHA256_W);
|
|
67154
|
+
}
|
|
67155
|
+
destroy() {
|
|
67156
|
+
this.set(0, 0, 0, 0, 0, 0, 0, 0);
|
|
67157
|
+
clean(this.buffer);
|
|
67158
|
+
}
|
|
67159
|
+
};
|
|
67160
|
+
_SHA256 = class _SHA256 extends SHA2_32B {
|
|
67161
|
+
A = SHA256_IV[0] | 0;
|
|
67162
|
+
B = SHA256_IV[1] | 0;
|
|
67163
|
+
C = SHA256_IV[2] | 0;
|
|
67164
|
+
D = SHA256_IV[3] | 0;
|
|
67165
|
+
E = SHA256_IV[4] | 0;
|
|
67166
|
+
F = SHA256_IV[5] | 0;
|
|
67167
|
+
G = SHA256_IV[6] | 0;
|
|
67168
|
+
H = SHA256_IV[7] | 0;
|
|
67169
|
+
constructor() {
|
|
67170
|
+
super(32);
|
|
67171
|
+
}
|
|
67172
|
+
};
|
|
67173
|
+
_SHA224 = class _SHA224 extends SHA2_32B {
|
|
67174
|
+
A = SHA224_IV[0] | 0;
|
|
67175
|
+
B = SHA224_IV[1] | 0;
|
|
67176
|
+
C = SHA224_IV[2] | 0;
|
|
67177
|
+
D = SHA224_IV[3] | 0;
|
|
67178
|
+
E = SHA224_IV[4] | 0;
|
|
67179
|
+
F = SHA224_IV[5] | 0;
|
|
67180
|
+
G = SHA224_IV[6] | 0;
|
|
67181
|
+
H = SHA224_IV[7] | 0;
|
|
67182
|
+
constructor() {
|
|
67183
|
+
super(28);
|
|
67184
|
+
}
|
|
67185
|
+
};
|
|
67186
|
+
K512 = /* @__PURE__ */ (() => split2([
|
|
67187
|
+
"0x428a2f98d728ae22",
|
|
67188
|
+
"0x7137449123ef65cd",
|
|
67189
|
+
"0xb5c0fbcfec4d3b2f",
|
|
67190
|
+
"0xe9b5dba58189dbbc",
|
|
67191
|
+
"0x3956c25bf348b538",
|
|
67192
|
+
"0x59f111f1b605d019",
|
|
67193
|
+
"0x923f82a4af194f9b",
|
|
67194
|
+
"0xab1c5ed5da6d8118",
|
|
67195
|
+
"0xd807aa98a3030242",
|
|
67196
|
+
"0x12835b0145706fbe",
|
|
67197
|
+
"0x243185be4ee4b28c",
|
|
67198
|
+
"0x550c7dc3d5ffb4e2",
|
|
67199
|
+
"0x72be5d74f27b896f",
|
|
67200
|
+
"0x80deb1fe3b1696b1",
|
|
67201
|
+
"0x9bdc06a725c71235",
|
|
67202
|
+
"0xc19bf174cf692694",
|
|
67203
|
+
"0xe49b69c19ef14ad2",
|
|
67204
|
+
"0xefbe4786384f25e3",
|
|
67205
|
+
"0x0fc19dc68b8cd5b5",
|
|
67206
|
+
"0x240ca1cc77ac9c65",
|
|
67207
|
+
"0x2de92c6f592b0275",
|
|
67208
|
+
"0x4a7484aa6ea6e483",
|
|
67209
|
+
"0x5cb0a9dcbd41fbd4",
|
|
67210
|
+
"0x76f988da831153b5",
|
|
67211
|
+
"0x983e5152ee66dfab",
|
|
67212
|
+
"0xa831c66d2db43210",
|
|
67213
|
+
"0xb00327c898fb213f",
|
|
67214
|
+
"0xbf597fc7beef0ee4",
|
|
67215
|
+
"0xc6e00bf33da88fc2",
|
|
67216
|
+
"0xd5a79147930aa725",
|
|
67217
|
+
"0x06ca6351e003826f",
|
|
67218
|
+
"0x142929670a0e6e70",
|
|
67219
|
+
"0x27b70a8546d22ffc",
|
|
67220
|
+
"0x2e1b21385c26c926",
|
|
67221
|
+
"0x4d2c6dfc5ac42aed",
|
|
67222
|
+
"0x53380d139d95b3df",
|
|
67223
|
+
"0x650a73548baf63de",
|
|
67224
|
+
"0x766a0abb3c77b2a8",
|
|
67225
|
+
"0x81c2c92e47edaee6",
|
|
67226
|
+
"0x92722c851482353b",
|
|
67227
|
+
"0xa2bfe8a14cf10364",
|
|
67228
|
+
"0xa81a664bbc423001",
|
|
67229
|
+
"0xc24b8b70d0f89791",
|
|
67230
|
+
"0xc76c51a30654be30",
|
|
67231
|
+
"0xd192e819d6ef5218",
|
|
67232
|
+
"0xd69906245565a910",
|
|
67233
|
+
"0xf40e35855771202a",
|
|
67234
|
+
"0x106aa07032bbd1b8",
|
|
67235
|
+
"0x19a4c116b8d2d0c8",
|
|
67236
|
+
"0x1e376c085141ab53",
|
|
67237
|
+
"0x2748774cdf8eeb99",
|
|
67238
|
+
"0x34b0bcb5e19b48a8",
|
|
67239
|
+
"0x391c0cb3c5c95a63",
|
|
67240
|
+
"0x4ed8aa4ae3418acb",
|
|
67241
|
+
"0x5b9cca4f7763e373",
|
|
67242
|
+
"0x682e6ff3d6b2b8a3",
|
|
67243
|
+
"0x748f82ee5defb2fc",
|
|
67244
|
+
"0x78a5636f43172f60",
|
|
67245
|
+
"0x84c87814a1f0ab72",
|
|
67246
|
+
"0x8cc702081a6439ec",
|
|
67247
|
+
"0x90befffa23631e28",
|
|
67248
|
+
"0xa4506cebde82bde9",
|
|
67249
|
+
"0xbef9a3f7b2c67915",
|
|
67250
|
+
"0xc67178f2e372532b",
|
|
67251
|
+
"0xca273eceea26619c",
|
|
67252
|
+
"0xd186b8c721c0c207",
|
|
67253
|
+
"0xeada7dd6cde0eb1e",
|
|
67254
|
+
"0xf57d4f7fee6ed178",
|
|
67255
|
+
"0x06f067aa72176fba",
|
|
67256
|
+
"0x0a637dc5a2c898a6",
|
|
67257
|
+
"0x113f9804bef90dae",
|
|
67258
|
+
"0x1b710b35131c471b",
|
|
67259
|
+
"0x28db77f523047d84",
|
|
67260
|
+
"0x32caab7b40c72493",
|
|
67261
|
+
"0x3c9ebe0a15c9bebc",
|
|
67262
|
+
"0x431d67c49c100d4c",
|
|
67263
|
+
"0x4cc5d4becb3e42b6",
|
|
67264
|
+
"0x597f299cfc657e2a",
|
|
67265
|
+
"0x5fcb6fab3ad6faec",
|
|
67266
|
+
"0x6c44198c4a475817"
|
|
67267
|
+
].map((n) => BigInt(n))))();
|
|
67268
|
+
SHA512_Kh = /* @__PURE__ */ (() => K512[0])();
|
|
67269
|
+
SHA512_Kl = /* @__PURE__ */ (() => K512[1])();
|
|
67270
|
+
SHA512_W_H = /* @__PURE__ */ new Uint32Array(80);
|
|
67271
|
+
SHA512_W_L = /* @__PURE__ */ new Uint32Array(80);
|
|
67272
|
+
SHA2_64B = class SHA2_64B extends HashMD {
|
|
67273
|
+
constructor(outputLen) {
|
|
67274
|
+
super(128, outputLen, 16, false);
|
|
67275
|
+
}
|
|
67276
|
+
get() {
|
|
67277
|
+
const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;
|
|
67278
|
+
return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl];
|
|
67279
|
+
}
|
|
67280
|
+
set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl) {
|
|
67281
|
+
this.Ah = Ah | 0;
|
|
67282
|
+
this.Al = Al | 0;
|
|
67283
|
+
this.Bh = Bh | 0;
|
|
67284
|
+
this.Bl = Bl | 0;
|
|
67285
|
+
this.Ch = Ch | 0;
|
|
67286
|
+
this.Cl = Cl | 0;
|
|
67287
|
+
this.Dh = Dh | 0;
|
|
67288
|
+
this.Dl = Dl | 0;
|
|
67289
|
+
this.Eh = Eh | 0;
|
|
67290
|
+
this.El = El | 0;
|
|
67291
|
+
this.Fh = Fh | 0;
|
|
67292
|
+
this.Fl = Fl | 0;
|
|
67293
|
+
this.Gh = Gh | 0;
|
|
67294
|
+
this.Gl = Gl | 0;
|
|
67295
|
+
this.Hh = Hh | 0;
|
|
67296
|
+
this.Hl = Hl | 0;
|
|
67297
|
+
}
|
|
67298
|
+
process(view, offset) {
|
|
67299
|
+
for (let i = 0;i < 16; i++, offset += 4) {
|
|
67300
|
+
SHA512_W_H[i] = view.getUint32(offset);
|
|
67301
|
+
SHA512_W_L[i] = view.getUint32(offset += 4);
|
|
67302
|
+
}
|
|
67303
|
+
for (let i = 16;i < 80; i++) {
|
|
67304
|
+
const W15h = SHA512_W_H[i - 15] | 0;
|
|
67305
|
+
const W15l = SHA512_W_L[i - 15] | 0;
|
|
67306
|
+
const s0h = rotrSH(W15h, W15l, 1) ^ rotrSH(W15h, W15l, 8) ^ shrSH(W15h, W15l, 7);
|
|
67307
|
+
const s0l = rotrSL(W15h, W15l, 1) ^ rotrSL(W15h, W15l, 8) ^ shrSL(W15h, W15l, 7);
|
|
67308
|
+
const W2h = SHA512_W_H[i - 2] | 0;
|
|
67309
|
+
const W2l = SHA512_W_L[i - 2] | 0;
|
|
67310
|
+
const s1h = rotrSH(W2h, W2l, 19) ^ rotrBH(W2h, W2l, 61) ^ shrSH(W2h, W2l, 6);
|
|
67311
|
+
const s1l = rotrSL(W2h, W2l, 19) ^ rotrBL(W2h, W2l, 61) ^ shrSL(W2h, W2l, 6);
|
|
67312
|
+
const SUMl = add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]);
|
|
67313
|
+
const SUMh = add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]);
|
|
67314
|
+
SHA512_W_H[i] = SUMh | 0;
|
|
67315
|
+
SHA512_W_L[i] = SUMl | 0;
|
|
67316
|
+
}
|
|
67317
|
+
let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;
|
|
67318
|
+
for (let i = 0;i < 80; i++) {
|
|
67319
|
+
const sigma1h = rotrSH(Eh, El, 14) ^ rotrSH(Eh, El, 18) ^ rotrBH(Eh, El, 41);
|
|
67320
|
+
const sigma1l = rotrSL(Eh, El, 14) ^ rotrSL(Eh, El, 18) ^ rotrBL(Eh, El, 41);
|
|
67321
|
+
const CHIh = Eh & Fh ^ ~Eh & Gh;
|
|
67322
|
+
const CHIl = El & Fl ^ ~El & Gl;
|
|
67323
|
+
const T1ll = add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]);
|
|
67324
|
+
const T1h = add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]);
|
|
67325
|
+
const T1l = T1ll | 0;
|
|
67326
|
+
const sigma0h = rotrSH(Ah, Al, 28) ^ rotrBH(Ah, Al, 34) ^ rotrBH(Ah, Al, 39);
|
|
67327
|
+
const sigma0l = rotrSL(Ah, Al, 28) ^ rotrBL(Ah, Al, 34) ^ rotrBL(Ah, Al, 39);
|
|
67328
|
+
const MAJh = Ah & Bh ^ Ah & Ch ^ Bh & Ch;
|
|
67329
|
+
const MAJl = Al & Bl ^ Al & Cl ^ Bl & Cl;
|
|
67330
|
+
Hh = Gh | 0;
|
|
67331
|
+
Hl = Gl | 0;
|
|
67332
|
+
Gh = Fh | 0;
|
|
67333
|
+
Gl = Fl | 0;
|
|
67334
|
+
Fh = Eh | 0;
|
|
67335
|
+
Fl = El | 0;
|
|
67336
|
+
({ h: Eh, l: El } = add(Dh | 0, Dl | 0, T1h | 0, T1l | 0));
|
|
67337
|
+
Dh = Ch | 0;
|
|
67338
|
+
Dl = Cl | 0;
|
|
67339
|
+
Ch = Bh | 0;
|
|
67340
|
+
Cl = Bl | 0;
|
|
67341
|
+
Bh = Ah | 0;
|
|
67342
|
+
Bl = Al | 0;
|
|
67343
|
+
const All = add3L(T1l, sigma0l, MAJl);
|
|
67344
|
+
Ah = add3H(All, T1h, sigma0h, MAJh);
|
|
67345
|
+
Al = All | 0;
|
|
67346
|
+
}
|
|
67347
|
+
({ h: Ah, l: Al } = add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0));
|
|
67348
|
+
({ h: Bh, l: Bl } = add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0));
|
|
67349
|
+
({ h: Ch, l: Cl } = add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0));
|
|
67350
|
+
({ h: Dh, l: Dl } = add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0));
|
|
67351
|
+
({ h: Eh, l: El } = add(this.Eh | 0, this.El | 0, Eh | 0, El | 0));
|
|
67352
|
+
({ h: Fh, l: Fl } = add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0));
|
|
67353
|
+
({ h: Gh, l: Gl } = add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0));
|
|
67354
|
+
({ h: Hh, l: Hl } = add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0));
|
|
67355
|
+
this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl);
|
|
67356
|
+
}
|
|
67357
|
+
roundClean() {
|
|
67358
|
+
clean(SHA512_W_H, SHA512_W_L);
|
|
67359
|
+
}
|
|
67360
|
+
destroy() {
|
|
67361
|
+
clean(this.buffer);
|
|
67362
|
+
this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
67363
|
+
}
|
|
67364
|
+
};
|
|
67365
|
+
_SHA512 = class _SHA512 extends SHA2_64B {
|
|
67366
|
+
Ah = SHA512_IV[0] | 0;
|
|
67367
|
+
Al = SHA512_IV[1] | 0;
|
|
67368
|
+
Bh = SHA512_IV[2] | 0;
|
|
67369
|
+
Bl = SHA512_IV[3] | 0;
|
|
67370
|
+
Ch = SHA512_IV[4] | 0;
|
|
67371
|
+
Cl = SHA512_IV[5] | 0;
|
|
67372
|
+
Dh = SHA512_IV[6] | 0;
|
|
67373
|
+
Dl = SHA512_IV[7] | 0;
|
|
67374
|
+
Eh = SHA512_IV[8] | 0;
|
|
67375
|
+
El = SHA512_IV[9] | 0;
|
|
67376
|
+
Fh = SHA512_IV[10] | 0;
|
|
67377
|
+
Fl = SHA512_IV[11] | 0;
|
|
67378
|
+
Gh = SHA512_IV[12] | 0;
|
|
67379
|
+
Gl = SHA512_IV[13] | 0;
|
|
67380
|
+
Hh = SHA512_IV[14] | 0;
|
|
67381
|
+
Hl = SHA512_IV[15] | 0;
|
|
67382
|
+
constructor() {
|
|
67383
|
+
super(64);
|
|
67384
|
+
}
|
|
67385
|
+
};
|
|
67386
|
+
_SHA384 = class _SHA384 extends SHA2_64B {
|
|
67387
|
+
Ah = SHA384_IV[0] | 0;
|
|
67388
|
+
Al = SHA384_IV[1] | 0;
|
|
67389
|
+
Bh = SHA384_IV[2] | 0;
|
|
67390
|
+
Bl = SHA384_IV[3] | 0;
|
|
67391
|
+
Ch = SHA384_IV[4] | 0;
|
|
67392
|
+
Cl = SHA384_IV[5] | 0;
|
|
67393
|
+
Dh = SHA384_IV[6] | 0;
|
|
67394
|
+
Dl = SHA384_IV[7] | 0;
|
|
67395
|
+
Eh = SHA384_IV[8] | 0;
|
|
67396
|
+
El = SHA384_IV[9] | 0;
|
|
67397
|
+
Fh = SHA384_IV[10] | 0;
|
|
67398
|
+
Fl = SHA384_IV[11] | 0;
|
|
67399
|
+
Gh = SHA384_IV[12] | 0;
|
|
67400
|
+
Gl = SHA384_IV[13] | 0;
|
|
67401
|
+
Hh = SHA384_IV[14] | 0;
|
|
67402
|
+
Hl = SHA384_IV[15] | 0;
|
|
67403
|
+
constructor() {
|
|
67404
|
+
super(48);
|
|
67405
|
+
}
|
|
67406
|
+
};
|
|
67407
|
+
T224_IV = /* @__PURE__ */ Uint32Array.from([
|
|
67408
|
+
2352822216,
|
|
67409
|
+
424955298,
|
|
67410
|
+
1944164710,
|
|
67411
|
+
2312950998,
|
|
67412
|
+
502970286,
|
|
67413
|
+
855612546,
|
|
67414
|
+
1738396948,
|
|
67415
|
+
1479516111,
|
|
67416
|
+
258812777,
|
|
67417
|
+
2077511080,
|
|
67418
|
+
2011393907,
|
|
67419
|
+
79989058,
|
|
67420
|
+
1067287976,
|
|
67421
|
+
1780299464,
|
|
67422
|
+
286451373,
|
|
67423
|
+
2446758561
|
|
67424
|
+
]);
|
|
67425
|
+
T256_IV = /* @__PURE__ */ Uint32Array.from([
|
|
67426
|
+
573645204,
|
|
67427
|
+
4230739756,
|
|
67428
|
+
2673172387,
|
|
67429
|
+
3360449730,
|
|
67430
|
+
596883563,
|
|
67431
|
+
1867755857,
|
|
67432
|
+
2520282905,
|
|
67433
|
+
1497426621,
|
|
67434
|
+
2519219938,
|
|
67435
|
+
2827943907,
|
|
67436
|
+
3193839141,
|
|
67437
|
+
1401305490,
|
|
67438
|
+
721525244,
|
|
67439
|
+
746961066,
|
|
67440
|
+
246885852,
|
|
67441
|
+
2177182882
|
|
67442
|
+
]);
|
|
67443
|
+
_SHA512_224 = class _SHA512_224 extends SHA2_64B {
|
|
67444
|
+
Ah = T224_IV[0] | 0;
|
|
67445
|
+
Al = T224_IV[1] | 0;
|
|
67446
|
+
Bh = T224_IV[2] | 0;
|
|
67447
|
+
Bl = T224_IV[3] | 0;
|
|
67448
|
+
Ch = T224_IV[4] | 0;
|
|
67449
|
+
Cl = T224_IV[5] | 0;
|
|
67450
|
+
Dh = T224_IV[6] | 0;
|
|
67451
|
+
Dl = T224_IV[7] | 0;
|
|
67452
|
+
Eh = T224_IV[8] | 0;
|
|
67453
|
+
El = T224_IV[9] | 0;
|
|
67454
|
+
Fh = T224_IV[10] | 0;
|
|
67455
|
+
Fl = T224_IV[11] | 0;
|
|
67456
|
+
Gh = T224_IV[12] | 0;
|
|
67457
|
+
Gl = T224_IV[13] | 0;
|
|
67458
|
+
Hh = T224_IV[14] | 0;
|
|
67459
|
+
Hl = T224_IV[15] | 0;
|
|
67460
|
+
constructor() {
|
|
67461
|
+
super(28);
|
|
67462
|
+
}
|
|
67463
|
+
};
|
|
67464
|
+
_SHA512_256 = class _SHA512_256 extends SHA2_64B {
|
|
67465
|
+
Ah = T256_IV[0] | 0;
|
|
67466
|
+
Al = T256_IV[1] | 0;
|
|
67467
|
+
Bh = T256_IV[2] | 0;
|
|
67468
|
+
Bl = T256_IV[3] | 0;
|
|
67469
|
+
Ch = T256_IV[4] | 0;
|
|
67470
|
+
Cl = T256_IV[5] | 0;
|
|
67471
|
+
Dh = T256_IV[6] | 0;
|
|
67472
|
+
Dl = T256_IV[7] | 0;
|
|
67473
|
+
Eh = T256_IV[8] | 0;
|
|
67474
|
+
El = T256_IV[9] | 0;
|
|
67475
|
+
Fh = T256_IV[10] | 0;
|
|
67476
|
+
Fl = T256_IV[11] | 0;
|
|
67477
|
+
Gh = T256_IV[12] | 0;
|
|
67478
|
+
Gl = T256_IV[13] | 0;
|
|
67479
|
+
Hh = T256_IV[14] | 0;
|
|
67480
|
+
Hl = T256_IV[15] | 0;
|
|
67481
|
+
constructor() {
|
|
67482
|
+
super(32);
|
|
67483
|
+
}
|
|
67484
|
+
};
|
|
67485
|
+
sha256 = /* @__PURE__ */ createHasher(() => new _SHA256, /* @__PURE__ */ oidNist(1));
|
|
67486
|
+
});
|
|
67487
|
+
|
|
67488
|
+
// ../types/src/runs/sample-rank.ts
|
|
67489
|
+
function stringToUnitInterval(value) {
|
|
67490
|
+
const digest = sha256(new TextEncoder().encode(value));
|
|
67491
|
+
const n = BigInt(digest[0]) << BigInt(45) | BigInt(digest[1]) << BigInt(37) | BigInt(digest[2]) << BigInt(29) | BigInt(digest[3]) << BigInt(21) | BigInt(digest[4]) << BigInt(13) | BigInt(digest[5]) << BigInt(5) | BigInt(digest[6]) >> BigInt(3);
|
|
67492
|
+
return Number(n) / Number(UNIT_INTERVAL_DENOMINATOR);
|
|
67493
|
+
}
|
|
67494
|
+
function runSampleRank(tenantId, runId) {
|
|
67495
|
+
return stringToUnitInterval(`${tenantId}:${runId}`);
|
|
67496
|
+
}
|
|
67497
|
+
function isRunInSampleRank(sampleRank, sampleRate) {
|
|
67498
|
+
if (sampleRate == null)
|
|
67499
|
+
return true;
|
|
67500
|
+
return sampleRank < sampleRate;
|
|
67501
|
+
}
|
|
67502
|
+
var UNIT_INTERVAL_DENOMINATOR;
|
|
67503
|
+
var init_sample_rank = __esm(() => {
|
|
67504
|
+
init_sha2();
|
|
67505
|
+
UNIT_INTERVAL_DENOMINATOR = BigInt(1) << BigInt(53);
|
|
67506
|
+
});
|
|
67507
|
+
|
|
66779
67508
|
// ../types/src/storage/s3-paths.ts
|
|
66780
67509
|
function assertSegment(name, value) {
|
|
66781
67510
|
if (!value || !SEGMENT_RX.test(value)) {
|
|
@@ -66991,8 +67720,7 @@ var init_s3_paths = __esm(() => {
|
|
|
66991
67720
|
expected: PATH_REST,
|
|
66992
67721
|
"input.json": PATH_LEAF,
|
|
66993
67722
|
"expected.json": PATH_LEAF,
|
|
66994
|
-
"metadata.json": PATH_LEAF
|
|
66995
|
-
"feedback.md": PATH_LEAF
|
|
67723
|
+
"metadata.json": PATH_LEAF
|
|
66996
67724
|
}
|
|
66997
67725
|
},
|
|
66998
67726
|
executions: {
|
|
@@ -67009,7 +67737,6 @@ var init_s3_paths = __esm(() => {
|
|
|
67009
67737
|
"output.json": PATH_LEAF,
|
|
67010
67738
|
"expected.json": PATH_LEAF,
|
|
67011
67739
|
"metadata.json": PATH_LEAF,
|
|
67012
|
-
"feedback.md": PATH_LEAF,
|
|
67013
67740
|
"issues.md": PATH_LEAF,
|
|
67014
67741
|
"trace.jsonl": PATH_LEAF
|
|
67015
67742
|
}
|
|
@@ -67049,8 +67776,7 @@ var init_s3_paths = __esm(() => {
|
|
|
67049
67776
|
},
|
|
67050
67777
|
"input.json": PATH_LEAF,
|
|
67051
67778
|
"expected.json": PATH_LEAF,
|
|
67052
|
-
"metadata.json": PATH_LEAF
|
|
67053
|
-
"feedback.md": PATH_LEAF
|
|
67779
|
+
"metadata.json": PATH_LEAF
|
|
67054
67780
|
}
|
|
67055
67781
|
}
|
|
67056
67782
|
},
|
|
@@ -67076,7 +67802,6 @@ var init_s3_paths = __esm(() => {
|
|
|
67076
67802
|
"output.json": PATH_LEAF,
|
|
67077
67803
|
"expected.json": PATH_LEAF,
|
|
67078
67804
|
"metadata.json": PATH_LEAF,
|
|
67079
|
-
"feedback.md": PATH_LEAF,
|
|
67080
67805
|
"issues.md": PATH_LEAF,
|
|
67081
67806
|
"trace.jsonl": PATH_LEAF,
|
|
67082
67807
|
"events.jsonl": PATH_LEAF,
|
|
@@ -67145,6 +67870,7 @@ __export(exports_src, {
|
|
|
67145
67870
|
suppressRequiredMissingErrorsForSchemaFileFields: () => suppressRequiredMissingErrorsForSchemaFileFields,
|
|
67146
67871
|
suggestWorkflowName: () => suggestWorkflowName,
|
|
67147
67872
|
stripTenantPrefix: () => stripTenantPrefix,
|
|
67873
|
+
stringToUnitInterval: () => stringToUnitInterval,
|
|
67148
67874
|
sourceLockfileInputHash: () => sourceLockfileInputHash,
|
|
67149
67875
|
scriptParamTypeAlias: () => scriptParamTypeAlias,
|
|
67150
67876
|
schemaFileUploadMatchesField: () => schemaFileUploadMatchesField,
|
|
@@ -67154,6 +67880,7 @@ __export(exports_src, {
|
|
|
67154
67880
|
runTargetApiPath: () => runTargetApiPath,
|
|
67155
67881
|
runStartMultipartTarget: () => runStartMultipartTarget,
|
|
67156
67882
|
runStartJsonBody: () => runStartJsonBody,
|
|
67883
|
+
runSampleRank: () => runSampleRank,
|
|
67157
67884
|
runIncludeErrorMessage: () => runIncludeErrorMessage,
|
|
67158
67885
|
runExpandErrorMessage: () => runExpandErrorMessage,
|
|
67159
67886
|
rootS3Path: () => rootS3Path,
|
|
@@ -67186,6 +67913,7 @@ __export(exports_src, {
|
|
|
67186
67913
|
isTerminalExecutionStatus: () => isTerminalExecutionStatus,
|
|
67187
67914
|
isStepCategory: () => isStepCategory,
|
|
67188
67915
|
isSchemaFile: () => isSchemaFile,
|
|
67916
|
+
isRunInSampleRank: () => isRunInSampleRank,
|
|
67189
67917
|
isRunExpandSection: () => isRunExpandSection,
|
|
67190
67918
|
isOutputSchemaUnknown: () => isOutputSchemaUnknown,
|
|
67191
67919
|
isNonSuccessTerminalExecutionStatus: () => isNonSuccessTerminalExecutionStatus,
|
|
@@ -67521,6 +68249,7 @@ var init_src = __esm(() => {
|
|
|
67521
68249
|
init_otel();
|
|
67522
68250
|
init_execution_row();
|
|
67523
68251
|
init_run_expand();
|
|
68252
|
+
init_sample_rank();
|
|
67524
68253
|
init_s3_paths();
|
|
67525
68254
|
init_validation();
|
|
67526
68255
|
init_workflow2();
|
|
@@ -68428,7 +69157,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
68428
69157
|
else
|
|
68429
69158
|
end = lineWidth - indentAtStart;
|
|
68430
69159
|
}
|
|
68431
|
-
let
|
|
69160
|
+
let split3 = undefined;
|
|
68432
69161
|
let prev = undefined;
|
|
68433
69162
|
let overflow = false;
|
|
68434
69163
|
let i = -1;
|
|
@@ -68462,20 +69191,20 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
68462
69191
|
if (mode === FOLD_BLOCK)
|
|
68463
69192
|
i = consumeMoreIndentedLines(text, i, indent.length);
|
|
68464
69193
|
end = i + indent.length + endStep;
|
|
68465
|
-
|
|
69194
|
+
split3 = undefined;
|
|
68466
69195
|
} else {
|
|
68467
69196
|
if (ch === " " && prev && prev !== " " && prev !== `
|
|
68468
69197
|
` && prev !== "\t") {
|
|
68469
69198
|
const next = text[i + 1];
|
|
68470
69199
|
if (next && next !== " " && next !== `
|
|
68471
69200
|
` && next !== "\t")
|
|
68472
|
-
|
|
69201
|
+
split3 = i;
|
|
68473
69202
|
}
|
|
68474
69203
|
if (i >= end) {
|
|
68475
|
-
if (
|
|
68476
|
-
folds.push(
|
|
68477
|
-
end =
|
|
68478
|
-
|
|
69204
|
+
if (split3) {
|
|
69205
|
+
folds.push(split3);
|
|
69206
|
+
end = split3 + endStep;
|
|
69207
|
+
split3 = undefined;
|
|
68479
69208
|
} else if (mode === FOLD_QUOTED) {
|
|
68480
69209
|
while (prev === " " || prev === "\t") {
|
|
68481
69210
|
prev = ch;
|
|
@@ -68488,7 +69217,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
68488
69217
|
folds.push(j);
|
|
68489
69218
|
escapedFolds[j] = true;
|
|
68490
69219
|
end = j + endStep;
|
|
68491
|
-
|
|
69220
|
+
split3 = undefined;
|
|
68492
69221
|
} else {
|
|
68493
69222
|
overflow = true;
|
|
68494
69223
|
}
|
|
@@ -69457,7 +70186,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
69457
70186
|
static from(schema, obj, ctx) {
|
|
69458
70187
|
const { keepUndefined, replacer } = ctx;
|
|
69459
70188
|
const map2 = new this(schema);
|
|
69460
|
-
const
|
|
70189
|
+
const add2 = (key, value) => {
|
|
69461
70190
|
if (typeof replacer === "function")
|
|
69462
70191
|
value = replacer.call(obj, key, value);
|
|
69463
70192
|
else if (Array.isArray(replacer) && !replacer.includes(key))
|
|
@@ -69467,10 +70196,10 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
69467
70196
|
};
|
|
69468
70197
|
if (obj instanceof Map) {
|
|
69469
70198
|
for (const [key, value] of obj)
|
|
69470
|
-
|
|
70199
|
+
add2(key, value);
|
|
69471
70200
|
} else if (obj && typeof obj === "object") {
|
|
69472
70201
|
for (const key of Object.keys(obj))
|
|
69473
|
-
|
|
70202
|
+
add2(key, obj[key]);
|
|
69474
70203
|
}
|
|
69475
70204
|
if (typeof schema.sortMapEntries === "function") {
|
|
69476
70205
|
map2.items.sort(schema.sortMapEntries);
|
|
@@ -71820,13 +72549,13 @@ var require_resolve_block_scalar = __commonJS((exports) => {
|
|
|
71820
72549
|
return { mode, indent, chomp, comment, length };
|
|
71821
72550
|
}
|
|
71822
72551
|
function splitLines(source) {
|
|
71823
|
-
const
|
|
71824
|
-
const first =
|
|
72552
|
+
const split3 = source.split(/\n( *)/);
|
|
72553
|
+
const first = split3[0];
|
|
71825
72554
|
const m = first.match(/^( *)/);
|
|
71826
72555
|
const line0 = m?.[1] ? [m[1], first.slice(m[1].length)] : ["", first];
|
|
71827
72556
|
const lines = [line0];
|
|
71828
|
-
for (let i = 1;i <
|
|
71829
|
-
lines.push([
|
|
72557
|
+
for (let i = 1;i < split3.length; i += 2)
|
|
72558
|
+
lines.push([split3[i], split3[i + 1]]);
|
|
71830
72559
|
return lines;
|
|
71831
72560
|
}
|
|
71832
72561
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
@@ -74506,7 +75235,7 @@ var getCodePointsLength, isFullWidth = (x) => {
|
|
|
74506
75235
|
}, isWideNotCJKTNotEmoji = (x) => {
|
|
74507
75236
|
return x === 8987 || x === 9001 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
|
|
74508
75237
|
};
|
|
74509
|
-
var
|
|
75238
|
+
var init_utils2 = __esm(() => {
|
|
74510
75239
|
getCodePointsLength = (() => {
|
|
74511
75240
|
const SURROGATE_PAIR_RE = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
74512
75241
|
return (input) => {
|
|
@@ -74610,7 +75339,7 @@ var ANSI_RE, CONTROL_RE, CJKT_WIDE_RE, TAB_RE, EMOJI_RE, LATIN_RE, MODIFIER_RE,
|
|
|
74610
75339
|
};
|
|
74611
75340
|
}, dist_default;
|
|
74612
75341
|
var init_dist = __esm(() => {
|
|
74613
|
-
|
|
75342
|
+
init_utils2();
|
|
74614
75343
|
ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y;
|
|
74615
75344
|
CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
|
|
74616
75345
|
CJKT_WIDE_RE = /(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu;
|
|
@@ -168783,7 +169512,7 @@ async function printEmbedFrontMatter(textToDoc2, print, path15, options8) {
|
|
|
168783
169512
|
}
|
|
168784
169513
|
return markAsRoot2([node.startDelimiter, node.explicitLanguage ?? "", hardline22, doc2, doc2 ? hardline22 : "", node.endDelimiter]);
|
|
168785
169514
|
}
|
|
168786
|
-
function
|
|
169515
|
+
function clean3(original, cloned) {
|
|
168787
169516
|
if (isEmbedFrontMatter({ node: original })) {
|
|
168788
169517
|
delete cloned.end;
|
|
168789
169518
|
delete cloned.raw;
|
|
@@ -181059,7 +181788,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
181059
181788
|
markAsRoot: markAsRoot2
|
|
181060
181789
|
} = builders);
|
|
181061
181790
|
SUPPORTED_EMBED_LANGUAGES = /* @__PURE__ */ new Set(["yaml", "toml"]);
|
|
181062
|
-
clean_default =
|
|
181791
|
+
clean_default = clean3;
|
|
181063
181792
|
print_default = printFrontMatter;
|
|
181064
181793
|
nonTraversableKeys = /* @__PURE__ */ new Set([
|
|
181065
181794
|
"tokens",
|
|
@@ -183118,7 +183847,7 @@ var require_foldFlowLines2 = __commonJS((exports) => {
|
|
|
183118
183847
|
else
|
|
183119
183848
|
end = lineWidth - indentAtStart;
|
|
183120
183849
|
}
|
|
183121
|
-
let
|
|
183850
|
+
let split3 = undefined;
|
|
183122
183851
|
let prev = undefined;
|
|
183123
183852
|
let overflow = false;
|
|
183124
183853
|
let i5 = -1;
|
|
@@ -183152,20 +183881,20 @@ var require_foldFlowLines2 = __commonJS((exports) => {
|
|
|
183152
183881
|
if (mode === FOLD_BLOCK)
|
|
183153
183882
|
i5 = consumeMoreIndentedLines(text, i5, indent3.length);
|
|
183154
183883
|
end = i5 + indent3.length + endStep;
|
|
183155
|
-
|
|
183884
|
+
split3 = undefined;
|
|
183156
183885
|
} else {
|
|
183157
183886
|
if (ch2 === " " && prev && prev !== " " && prev !== `
|
|
183158
183887
|
` && prev !== "\t") {
|
|
183159
183888
|
const next = text[i5 + 1];
|
|
183160
183889
|
if (next && next !== " " && next !== `
|
|
183161
183890
|
` && next !== "\t")
|
|
183162
|
-
|
|
183891
|
+
split3 = i5;
|
|
183163
183892
|
}
|
|
183164
183893
|
if (i5 >= end) {
|
|
183165
|
-
if (
|
|
183166
|
-
folds.push(
|
|
183167
|
-
end =
|
|
183168
|
-
|
|
183894
|
+
if (split3) {
|
|
183895
|
+
folds.push(split3);
|
|
183896
|
+
end = split3 + endStep;
|
|
183897
|
+
split3 = undefined;
|
|
183169
183898
|
} else if (mode === FOLD_QUOTED) {
|
|
183170
183899
|
while (prev === " " || prev === "\t") {
|
|
183171
183900
|
prev = ch2;
|
|
@@ -183178,7 +183907,7 @@ var require_foldFlowLines2 = __commonJS((exports) => {
|
|
|
183178
183907
|
folds.push(j11);
|
|
183179
183908
|
escapedFolds[j11] = true;
|
|
183180
183909
|
end = j11 + endStep;
|
|
183181
|
-
|
|
183910
|
+
split3 = undefined;
|
|
183182
183911
|
} else {
|
|
183183
183912
|
overflow = true;
|
|
183184
183913
|
}
|
|
@@ -184147,7 +184876,7 @@ var require_YAMLMap2 = __commonJS((exports) => {
|
|
|
184147
184876
|
static from(schema, obj, ctx) {
|
|
184148
184877
|
const { keepUndefined, replacer } = ctx;
|
|
184149
184878
|
const map2 = new this(schema);
|
|
184150
|
-
const
|
|
184879
|
+
const add2 = (key2, value) => {
|
|
184151
184880
|
if (typeof replacer === "function")
|
|
184152
184881
|
value = replacer.call(obj, key2, value);
|
|
184153
184882
|
else if (Array.isArray(replacer) && !replacer.includes(key2))
|
|
@@ -184157,10 +184886,10 @@ var require_YAMLMap2 = __commonJS((exports) => {
|
|
|
184157
184886
|
};
|
|
184158
184887
|
if (obj instanceof Map) {
|
|
184159
184888
|
for (const [key2, value] of obj)
|
|
184160
|
-
|
|
184889
|
+
add2(key2, value);
|
|
184161
184890
|
} else if (obj && typeof obj === "object") {
|
|
184162
184891
|
for (const key2 of Object.keys(obj))
|
|
184163
|
-
|
|
184892
|
+
add2(key2, obj[key2]);
|
|
184164
184893
|
}
|
|
184165
184894
|
if (typeof schema.sortMapEntries === "function") {
|
|
184166
184895
|
map2.items.sort(schema.sortMapEntries);
|
|
@@ -186510,13 +187239,13 @@ var require_resolve_block_scalar2 = __commonJS((exports) => {
|
|
|
186510
187239
|
return { mode, indent: indent3, chomp, comment, length };
|
|
186511
187240
|
}
|
|
186512
187241
|
function splitLines2(source2) {
|
|
186513
|
-
const
|
|
186514
|
-
const first =
|
|
187242
|
+
const split3 = source2.split(/\n( *)/);
|
|
187243
|
+
const first = split3[0];
|
|
186515
187244
|
const m7 = first.match(/^( *)/);
|
|
186516
187245
|
const line0 = m7?.[1] ? [m7[1], first.slice(m7[1].length)] : ["", first];
|
|
186517
187246
|
const lines = [line0];
|
|
186518
|
-
for (let i5 = 1;i5 <
|
|
186519
|
-
lines.push([
|
|
187247
|
+
for (let i5 = 1;i5 < split3.length; i5 += 2)
|
|
187248
|
+
lines.push([split3[i5], split3[i5 + 1]]);
|
|
186520
187249
|
return lines;
|
|
186521
187250
|
}
|
|
186522
187251
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
@@ -189164,7 +189893,7 @@ import { fileURLToPath as fileURLToPath8 } from "url";
|
|
|
189164
189893
|
// package.json
|
|
189165
189894
|
var package_default = {
|
|
189166
189895
|
name: "@eigenpal/cli",
|
|
189167
|
-
version: "0.
|
|
189896
|
+
version: "0.10.0",
|
|
189168
189897
|
description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
|
|
189169
189898
|
keywords: [
|
|
189170
189899
|
"eigenpal",
|
|
@@ -190583,7 +191312,7 @@ function deps(opts) {
|
|
|
190583
191312
|
{ key: "version", header: "version" }
|
|
190584
191313
|
]));
|
|
190585
191314
|
}
|
|
190586
|
-
function
|
|
191315
|
+
function clean2(opts) {
|
|
190587
191316
|
const context = resolveGitSourceContext(opts);
|
|
190588
191317
|
if (!context.gitRoot)
|
|
190589
191318
|
throw new Error("Not inside a Git repository.");
|
|
@@ -191753,7 +192482,7 @@ function registerAgentSourceCommands(agent) {
|
|
|
191753
192482
|
addJsonFlag(agent.command("doctor")).description("Check organization source repository health.").option("--dir <dir>", "Directory to inspect").action(action(async (opts) => doctor(opts)));
|
|
191754
192483
|
addJsonFlag(agent.command("status")).description("Show source repo and package status.").option("--dir <dir>", "Directory to inspect").action(action(async (opts) => packageStatus(opts)));
|
|
191755
192484
|
addJsonFlag(agent.command("deps")).description("List package workspace dependencies.").option("--dir <dir>", "Directory to inspect").action(action(async (opts) => deps(opts)));
|
|
191756
|
-
agent.command("clean").description("Require a clean source working tree.").option("--dir <dir>", "Directory to inspect").action(action(async (opts) =>
|
|
192485
|
+
agent.command("clean").description("Require a clean source working tree.").option("--dir <dir>", "Directory to inspect").action(action(async (opts) => clean2(opts)));
|
|
191757
192486
|
addJsonFlag(withBaseUrl(agent.command("show <automation>"))).description("Show Git-backed automation details.").action(action(show));
|
|
191758
192487
|
addJsonFlag(withBaseUrl(agent.command("versions <package>"))).description("List package release versions.").action(action(versions2));
|
|
191759
192488
|
withBaseUrl(agent.command("release")).description("Create and push an immutable package release tag. Never move or overwrite an existing tag; release a new patch instead.").argument("<version>", "Version (X.Y.Z) or bump level (patch, minor, major)", parseReleaseVersion).argument("[dir]", "Package directory").option("-m, --message <message>", "Annotated tag message (default: Release <packagePath>)").action(action(async (versionOrBump, dir, opts) => release(versionOrBump, dir, opts)));
|
|
@@ -193824,7 +194553,7 @@ function registerRunsCommands(program2) {
|
|
|
193824
194553
|
});
|
|
193825
194554
|
const listRunsCmd = addJsonFlag(withPagination(withBaseUrl(runs.command("list [source]")), 50)).alias("ls").description("List runs across workflows and agents, optionally scoped to one source.").option("--type <type>", "Filter by run type: workflow|agent").option("--status <status>", "Filter by run status").option("--source-ref <ref>", "Filter agent runs by source ref").option("--batch-id <id>", "Filter eval/experiment runs by batch id").option("--example-id <id>", "Filter eval runs by example id").option("--example-id-contains <text>", "Filter eval runs by example id substring").option("--from <date>", "Created at or after this ISO timestamp or relative date").option("--to <date>", "Created before this ISO timestamp or relative date").option("--created-after <date>", "Alias for --from").option("--created-before <date>", "Alias for --to").option("--completed-after <date>", "Completed at or after this ISO timestamp or relative date").option("--completed-before <date>", "Completed before this ISO timestamp or relative date").option("--compact", "Render compact run rows").option("--sort <field>", "Sort field; only createdAt is supported").option("--order <asc|desc>", "Sort order; only desc is supported");
|
|
193826
194555
|
listRunsCmd.action(action(listRuns));
|
|
193827
|
-
addJsonFlag(withBaseUrl(runs.command("get <run-id>"))).description("Get one run.").option("--step <name>", "For workflow runs, show only this step (or comma-separated list)").option("--expand <sections>", "Comma-separated server expand sections for GET /api/v1/runs/:id: input, usage, execution, debug. Use execution for status/schemaValid; completed runs include top-level output/files/error.").option("--include <parts>", "Comma-separated local workflow step projection fields (error, duration, inputRef, …). Legacy expand names are mapped when possible; use --expand for server sections.", "
|
|
194556
|
+
addJsonFlag(withBaseUrl(runs.command("get <run-id>"))).description("Get one run.").option("--step <name>", "For workflow runs, show only this step (or comma-separated list)").option("--expand <sections>", "Comma-separated server expand sections for GET /api/v1/runs/:id: input, usage, execution, debug. Use execution for status/schemaValid; completed runs include top-level output/files/error.").option("--include <parts>", "Comma-separated local workflow step projection fields (error, duration, inputRef, …). Legacy expand names are mapped when possible; use --expand for server sections.", "review").action(action(getRun));
|
|
193828
194557
|
addJsonFlag(withBaseUrl(runs.command("compare <reference-run-id> <run-id>"))).description("Compare one run against another run. PDF/DOCX text comparison uses pdftotext/python3 and reports byte fallbacks.").option("--baseline", "Compare actual outputs from both runs instead of expected artifacts").option("--step <name>", "For workflow runs, restrict comparison to one step").option("--out <dir>", "Write comparison artifacts to this directory").option("--normalize-dates", "Normalize YYYYMMDD and YYYY-MM-DD tokens in filenames/text").option("--fail-on-diff", "Exit 1 when comparison status is fail").action(action(compareRun));
|
|
193829
194558
|
addJsonFlag(withBaseUrl(runs.command("rerun <run-id>"))).description("Create a new run from a previous run's stored input snapshot.").option("--version <version>", "Version/source ref for the new run: latest (default), original, or an explicit ref (same grammar as eigenpal run)").option("--source-ref <ref>", "Alias for --version").option("--wait", "Poll until the rerun reaches a terminal status").option("--interval <seconds>", "Polling interval in seconds", intArg, 2).option("--max-wait <seconds>", "Maximum wait before exit code 2", intArg, 1800).action(action(rerunRun));
|
|
193830
194559
|
addJsonFlag(withBaseUrl(runs.command("promote <run-id>"))).description("Promote a run into a dataset example on the run's automation.").option("--name <name>", "Name for the created example").addHelpText("after", `
|
|
@@ -193832,8 +194561,8 @@ Examples
|
|
|
193832
194561
|
$ eigenpal runs promote run_abc123 --name golden-invoice
|
|
193833
194562
|
$ eigenpal runs promote run_abc123 --json | jq '.exampleId'
|
|
193834
194563
|
|
|
193835
|
-
Copies the run input
|
|
193836
|
-
Use \`eigenpal runs
|
|
194564
|
+
Copies the run input and review corrections into a dataset example.
|
|
194565
|
+
Use \`eigenpal runs reviews update\` first when you need to correct output.
|
|
193837
194566
|
`).action(action(promoteRun));
|
|
193838
194567
|
const artifacts = runs.command("artifacts").description("Inspect workflow and agent run artifacts.").action(() => {
|
|
193839
194568
|
process.stderr.write("`eigenpal runs artifacts` requires a subcommand. Run `eigenpal runs artifacts --help`.\n");
|
|
@@ -193842,19 +194571,19 @@ Use \`eigenpal runs feedback update\` first when you need to correct expected ou
|
|
|
193842
194571
|
addJsonFlag(withBaseUrl(artifacts.command("list <run-id>"))).description("List available run artifacts without downloading them.").action(action(listRunArtifacts));
|
|
193843
194572
|
withBaseUrl(artifacts.command("fetch <run-id>")).description("Download run artifacts by canonical artifact path.").option("--out <dir>", "Output directory").option("--include <parts>", "Comma-separated parts: output,input,metadata,issues,trace,lockfile,expected,all", "all").option("--path <path>", "Fetch one exact artifact path from `artifacts list`; repeatable", collectRepeated, []).option("--json", "Output a JSON summary of written artifacts").action(action(fetchRunArtifacts));
|
|
193844
194573
|
withBaseUrl(runs.command("trace <run-id>")).description("Print raw trace.jsonl for a run, or write it with --out.").option("--out <file>", "Output file path").action(action(traceRun));
|
|
193845
|
-
|
|
194574
|
+
registerRunReviewCommands(runs);
|
|
193846
194575
|
registerRunExpectedCommands(runs);
|
|
193847
194576
|
addJsonFlag(withBaseUrl(runs.command("watch <run-id>"))).description("Watch a run until it reaches a terminal status.").option("--interval <seconds>", "Polling interval in seconds", intArg, 2).option("--max-wait <seconds>", "Maximum wait before exit code 2", intArg, 1800).action(action(watchRunCommand));
|
|
193848
194577
|
addJsonFlag(withBaseUrl(runs.command("cancel <run-id>"))).description("Cancel a run.").option("--yes", "Required in non-interactive environments").action(action(cancelRun));
|
|
193849
194578
|
}
|
|
193850
|
-
function
|
|
193851
|
-
const
|
|
193852
|
-
process.stderr.write("`eigenpal runs
|
|
194579
|
+
function registerRunReviewCommands(runs) {
|
|
194580
|
+
const reviews = runs.command("reviews").description("Update or clear reviews attached to a run.").action(() => {
|
|
194581
|
+
process.stderr.write("`eigenpal runs reviews` requires a subcommand. Run `eigenpal runs reviews --help`.\n");
|
|
193853
194582
|
process.exit(2);
|
|
193854
194583
|
});
|
|
193855
|
-
addJsonFlag(withBaseUrl(
|
|
193856
|
-
addJsonFlag(withBaseUrl(
|
|
193857
|
-
addJsonFlag(withBaseUrl(
|
|
194584
|
+
addJsonFlag(withBaseUrl(reviews.command("update <run-id>"))).description("Edit review verdict, status, note, or corrected JSON for a run.").option("--status <open|closed|wont_fix>", "Set review lifecycle status").option("--verdict <correct|incorrect>", "Set reviewer verdict").option("--note <text>", "Set review note").option("--note-file <path>", "Read review note from a file").option("--corrected-json <json>", "Set corrected JSON output").option("--corrected-json-file <path>", "Read corrected JSON output from a file").option("--clear-note", "Clear the review note").option("--clear-corrected-json", "Delete corrected JSON output").action(action(updateRunReview));
|
|
194585
|
+
addJsonFlag(withBaseUrl(reviews.command("close <run-id>"))).description("Mark a run review as closed.").option("--note <text>", "Set developer close note").option("--note-file <path>", "Read developer close note from a file").action(action((runId, opts) => closeRunReview(runId, { ...opts, status: "closed" })));
|
|
194586
|
+
addJsonFlag(withBaseUrl(reviews.command("clear <run-id>"))).description("Delete review metadata, corrected JSON, and corrected files for a run.").option("--yes", "Required in non-interactive environments").action(action(clearRunReview));
|
|
193858
194587
|
}
|
|
193859
194588
|
function registerRunExpectedCommands(runs) {
|
|
193860
194589
|
const expected = runs.command("expected").description("Manage expected artifacts attached to a run.").action(() => {
|
|
@@ -193897,7 +194626,7 @@ var LEGACY_INCLUDE_EXPAND_MAP = {
|
|
|
193897
194626
|
cost: "usage",
|
|
193898
194627
|
steps: "execution",
|
|
193899
194628
|
files: "execution",
|
|
193900
|
-
|
|
194629
|
+
review: "execution",
|
|
193901
194630
|
expected: "execution",
|
|
193902
194631
|
input: "input",
|
|
193903
194632
|
metadata: "input",
|
|
@@ -193947,7 +194676,7 @@ function serverExpandParam(args) {
|
|
|
193947
194676
|
return [...sections2].join(",");
|
|
193948
194677
|
}
|
|
193949
194678
|
const sections = new Set(["usage", "execution"]);
|
|
193950
|
-
for (const part of collectIncludeExpandTokens(args.include ?? "
|
|
194679
|
+
for (const part of collectIncludeExpandTokens(args.include ?? "review"))
|
|
193951
194680
|
sections.add(part);
|
|
193952
194681
|
return [...sections].join(",");
|
|
193953
194682
|
}
|
|
@@ -194061,7 +194790,7 @@ function toLegacyRunView(run) {
|
|
|
194061
194790
|
stepExecutions: execution?.steps,
|
|
194062
194791
|
nextRetryId: nextRun?.id ?? objectOrNull(execution?.nextRetry)?.id,
|
|
194063
194792
|
nextRetryStatus: nextRun?.status ?? objectOrNull(execution?.nextRetry)?.status,
|
|
194064
|
-
|
|
194793
|
+
review: execution?.review,
|
|
194065
194794
|
expected: executionExpected?.output,
|
|
194066
194795
|
expectedFiles: executionExpected?.files,
|
|
194067
194796
|
observability: debug?.observability,
|
|
@@ -194507,12 +195236,10 @@ async function listRuns(source, opts) {
|
|
|
194507
195236
|
const rows = opts.compact ? viewRuns.map(compactRunRow) : viewRuns;
|
|
194508
195237
|
if (opts.json)
|
|
194509
195238
|
return printJson({ ...payload, runs: rows });
|
|
194510
|
-
if (payload.scanLimited)
|
|
194511
|
-
warn("
|
|
194512
|
-
|
|
194513
|
-
|
|
194514
|
-
warn("No resolved feedback anchor was found in the scan window; --since-last-resolved returned no rows.");
|
|
194515
|
-
}
|
|
195239
|
+
if (payload.scanLimited)
|
|
195240
|
+
warn("Filtered run list scanned only the first matching window.");
|
|
195241
|
+
if (payload.noResolvedAnchor)
|
|
195242
|
+
warn("No closed review anchor was found in the scan window.");
|
|
194516
195243
|
console.log(table(rows, [
|
|
194517
195244
|
{ key: "id", header: "ID" },
|
|
194518
195245
|
{ key: "type", header: "TYPE" },
|
|
@@ -194524,9 +195251,9 @@ async function listRuns(source, opts) {
|
|
|
194524
195251
|
},
|
|
194525
195252
|
{ key: "exampleId", header: "EXAMPLE" },
|
|
194526
195253
|
{
|
|
194527
|
-
key: "
|
|
194528
|
-
header: "
|
|
194529
|
-
format: (value) => value && typeof value === "object" ? `${String(value.
|
|
195254
|
+
key: "review",
|
|
195255
|
+
header: "REVIEW",
|
|
195256
|
+
format: (value) => value && typeof value === "object" ? `${String(value.verdict ?? "")}/${String(value.status ?? "")}` : ""
|
|
194530
195257
|
},
|
|
194531
195258
|
{ key: "createdAt", header: "CREATED", format: formatTimestamp }
|
|
194532
195259
|
]));
|
|
@@ -194551,40 +195278,48 @@ function buildRunListParams(opts) {
|
|
|
194551
195278
|
order: "order" in opts ? opts.order : undefined
|
|
194552
195279
|
});
|
|
194553
195280
|
}
|
|
194554
|
-
async function
|
|
195281
|
+
async function updateRunReview(executionId, opts) {
|
|
194555
195282
|
const client = buildClient(opts);
|
|
194556
195283
|
const body = {};
|
|
194557
195284
|
if (opts.status)
|
|
194558
195285
|
body.status = opts.status;
|
|
194559
|
-
if (opts.
|
|
194560
|
-
body.
|
|
194561
|
-
if (opts.
|
|
194562
|
-
body.
|
|
194563
|
-
if (opts.
|
|
194564
|
-
body.
|
|
194565
|
-
if (opts.
|
|
194566
|
-
body.
|
|
194567
|
-
if (opts.
|
|
194568
|
-
body.
|
|
194569
|
-
if (opts.
|
|
194570
|
-
body.
|
|
194571
|
-
if (opts.
|
|
194572
|
-
body.
|
|
194573
|
-
|
|
194574
|
-
|
|
194575
|
-
|
|
194576
|
-
|
|
195286
|
+
if (opts.verdict !== undefined)
|
|
195287
|
+
body.verdict = opts.verdict;
|
|
195288
|
+
if (opts.noteFile)
|
|
195289
|
+
body.note = await fs7.readFile(opts.noteFile, "utf-8");
|
|
195290
|
+
if (opts.note !== undefined)
|
|
195291
|
+
body.note = opts.note;
|
|
195292
|
+
if (opts.clearNote)
|
|
195293
|
+
body.note = "";
|
|
195294
|
+
if (opts.correctedJsonFile)
|
|
195295
|
+
body.correctedOutput = JSON.parse(await fs7.readFile(opts.correctedJsonFile, "utf-8"));
|
|
195296
|
+
if (opts.correctedJson !== undefined)
|
|
195297
|
+
body.correctedOutput = JSON.parse(opts.correctedJson);
|
|
195298
|
+
if (opts.clearCorrectedJson)
|
|
195299
|
+
body.correctedOutput = null;
|
|
195300
|
+
const payload = await client.put(`/api/v1/runs/${encodeURIComponent(executionId)}/reviews`, body);
|
|
195301
|
+
renderGeneric(payload, opts, `Updated review for ${executionId}`);
|
|
195302
|
+
}
|
|
195303
|
+
async function closeRunReview(executionId, opts) {
|
|
195304
|
+
const client = buildClient(opts);
|
|
195305
|
+
const body = { status: opts.status ?? "closed" };
|
|
195306
|
+
if (opts.noteFile)
|
|
195307
|
+
body.note = await fs7.readFile(opts.noteFile, "utf-8");
|
|
195308
|
+
if (opts.note !== undefined)
|
|
195309
|
+
body.note = opts.note;
|
|
195310
|
+
const payload = await client.patch(`/api/v1/runs/${encodeURIComponent(executionId)}/reviews`, body);
|
|
195311
|
+
renderGeneric(payload, opts, `Closed review for ${executionId}`);
|
|
194577
195312
|
}
|
|
194578
195313
|
function compactRunRow(run) {
|
|
194579
|
-
const
|
|
195314
|
+
const review = run.review && typeof run.review === "object" ? run.review : null;
|
|
194580
195315
|
return {
|
|
194581
195316
|
id: run.id,
|
|
194582
195317
|
status: run.status,
|
|
194583
195318
|
exampleId: run.exampleId,
|
|
194584
|
-
|
|
194585
|
-
|
|
194586
|
-
status:
|
|
194587
|
-
updatedAt:
|
|
195319
|
+
review: review ? {
|
|
195320
|
+
verdict: review.verdict ?? null,
|
|
195321
|
+
status: review.status ?? null,
|
|
195322
|
+
updatedAt: review.updatedAt ?? null
|
|
194588
195323
|
} : null,
|
|
194589
195324
|
hasExpectedJson: run.expected != null,
|
|
194590
195325
|
expectedFileCount: Array.isArray(run.expectedFiles) ? run.expectedFiles.length : undefined,
|
|
@@ -194592,13 +195327,13 @@ function compactRunRow(run) {
|
|
|
194592
195327
|
completedAt: run.completedAt
|
|
194593
195328
|
};
|
|
194594
195329
|
}
|
|
194595
|
-
async function
|
|
194596
|
-
if (!(opts.yes || await confirmTyped(executionId, "clear
|
|
195330
|
+
async function clearRunReview(executionId, opts) {
|
|
195331
|
+
if (!(opts.yes || await confirmTyped(executionId, "clear review artifacts"))) {
|
|
194597
195332
|
throw new Error("Clear cancelled");
|
|
194598
195333
|
}
|
|
194599
195334
|
const client = buildClient(opts);
|
|
194600
|
-
const payload = await client.delete(`/api/v1/runs/${encodeURIComponent(executionId)}/
|
|
194601
|
-
renderGeneric(payload, opts, `Cleared
|
|
195335
|
+
const payload = await client.delete(`/api/v1/runs/${encodeURIComponent(executionId)}/reviews`);
|
|
195336
|
+
renderGeneric(payload, opts, `Cleared review for ${executionId}`);
|
|
194602
195337
|
}
|
|
194603
195338
|
async function readRunExpected(client, executionId) {
|
|
194604
195339
|
const run = toLegacyRunView(await client.get(`/api/v1/runs/${encodeURIComponent(executionId)}`, {
|
|
@@ -194649,12 +195384,12 @@ async function uploadRunExpected(executionId, file2, opts) {
|
|
|
194649
195384
|
form.append("file", new Blob([data]), path11.basename(file2));
|
|
194650
195385
|
if (opts.name)
|
|
194651
195386
|
form.append("name", opts.name);
|
|
194652
|
-
const payload = await client.postFormData(`/api/v1/runs/${encodeURIComponent(executionId)}/
|
|
195387
|
+
const payload = await client.postFormData(`/api/v1/runs/${encodeURIComponent(executionId)}/reviews/expected`, form);
|
|
194653
195388
|
renderGeneric(payload, opts, `Uploaded expected file for ${executionId}`);
|
|
194654
195389
|
}
|
|
194655
195390
|
async function copyOutputToExpected(executionId, outputFile, opts) {
|
|
194656
195391
|
const client = buildClient(opts);
|
|
194657
|
-
const payload = await client.post(`/api/v1/runs/${encodeURIComponent(executionId)}/
|
|
195392
|
+
const payload = await client.post(`/api/v1/runs/${encodeURIComponent(executionId)}/reviews/expected`, {
|
|
194658
195393
|
outputFileName: outputFile,
|
|
194659
195394
|
...opts.name ? { expectedName: opts.name } : {}
|
|
194660
195395
|
});
|
|
@@ -194662,7 +195397,7 @@ async function copyOutputToExpected(executionId, outputFile, opts) {
|
|
|
194662
195397
|
}
|
|
194663
195398
|
async function renameRunExpected(executionId, oldName, newName, opts) {
|
|
194664
195399
|
const client = buildClient(opts);
|
|
194665
|
-
const payload = await client.patch(`/api/v1/runs/${encodeURIComponent(executionId)}/
|
|
195400
|
+
const payload = await client.patch(`/api/v1/runs/${encodeURIComponent(executionId)}/reviews/expected/${encodeURIComponent(oldName)}`, { name: newName });
|
|
194666
195401
|
renderGeneric(payload, opts, `Renamed expected file for ${executionId}`);
|
|
194667
195402
|
}
|
|
194668
195403
|
async function deleteRunExpected(executionId, name, opts) {
|
|
@@ -194670,7 +195405,7 @@ async function deleteRunExpected(executionId, name, opts) {
|
|
|
194670
195405
|
throw new Error("Delete cancelled");
|
|
194671
195406
|
}
|
|
194672
195407
|
const client = buildClient(opts);
|
|
194673
|
-
await client.delete(`/api/v1/runs/${encodeURIComponent(executionId)}/
|
|
195408
|
+
await client.delete(`/api/v1/runs/${encodeURIComponent(executionId)}/reviews/expected/${encodeURIComponent(name)}`);
|
|
194674
195409
|
renderGeneric({ ok: true }, opts, `Deleted expected file ${name}`);
|
|
194675
195410
|
}
|
|
194676
195411
|
async function watchRunCommand(executionId, opts) {
|
|
@@ -196364,7 +197099,7 @@ function defaultClaudeTarget() {
|
|
|
196364
197099
|
function resolveSkillTarget(opts) {
|
|
196365
197100
|
return opts.target ?? defaultClaudeTarget();
|
|
196366
197101
|
}
|
|
196367
|
-
function
|
|
197102
|
+
function sha2562(buffer2) {
|
|
196368
197103
|
return createHash4("sha256").update(buffer2).digest("hex");
|
|
196369
197104
|
}
|
|
196370
197105
|
var CLI_VERSION_PLACEHOLDER = "__CLI_VERSION__";
|
|
@@ -196390,7 +197125,7 @@ async function installSkill(opts) {
|
|
|
196390
197125
|
const sourcePath = join11(source2, relativePath);
|
|
196391
197126
|
const targetPath = join11(target, relativePath);
|
|
196392
197127
|
const sourceBytes = templateSourceFile(relativePath, readFileSync14(sourcePath), cliVersion);
|
|
196393
|
-
const sourceHash =
|
|
197128
|
+
const sourceHash = sha2562(sourceBytes);
|
|
196394
197129
|
if (!existsSync15(targetPath)) {
|
|
196395
197130
|
mkdirSync6(dirname5(targetPath), { recursive: true });
|
|
196396
197131
|
writeFileSync8(targetPath, sourceBytes);
|
|
@@ -196398,7 +197133,7 @@ async function installSkill(opts) {
|
|
|
196398
197133
|
continue;
|
|
196399
197134
|
}
|
|
196400
197135
|
const targetBytes = readFileSync14(targetPath);
|
|
196401
|
-
const targetHash =
|
|
197136
|
+
const targetHash = sha2562(targetBytes);
|
|
196402
197137
|
if (targetHash === sourceHash) {
|
|
196403
197138
|
skipped += 1;
|
|
196404
197139
|
continue;
|
|
@@ -196428,7 +197163,7 @@ async function installSkill(opts) {
|
|
|
196428
197163
|
const targetPath = join11(target, relativePath);
|
|
196429
197164
|
if (!existsSync15(targetPath))
|
|
196430
197165
|
continue;
|
|
196431
|
-
manifestEntries.push({ path: relativePath, sha256:
|
|
197166
|
+
manifestEntries.push({ path: relativePath, sha256: sha2562(readFileSync14(targetPath)) });
|
|
196432
197167
|
}
|
|
196433
197168
|
const manifest = {
|
|
196434
197169
|
cliVersion,
|
|
@@ -196469,7 +197204,7 @@ async function uninstallSkill(opts) {
|
|
|
196469
197204
|
}
|
|
196470
197205
|
if (!existsSync15(path15))
|
|
196471
197206
|
continue;
|
|
196472
|
-
const currentHash =
|
|
197207
|
+
const currentHash = sha2562(readFileSync14(path15));
|
|
196473
197208
|
if (currentHash !== entry.sha256 && !opts.yes) {
|
|
196474
197209
|
kept += 1;
|
|
196475
197210
|
continue;
|
|
@@ -199046,7 +199781,7 @@ var CONVENTION_ALIASES = new Map([
|
|
|
199046
199781
|
["artifacts", "artifact"],
|
|
199047
199782
|
["execution", "exec"],
|
|
199048
199783
|
["experiment", "exp"],
|
|
199049
|
-
["
|
|
199784
|
+
["reviews", "rv"],
|
|
199050
199785
|
["list", "ls"],
|
|
199051
199786
|
["compare", "diff"]
|
|
199052
199787
|
]);
|