anpord 0.1.6 → 0.1.7
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/cli.cjs +16 -19
- package/dist/cli.mjs +16 -19
- package/dist/{client-POb2FNW1.mjs → client-D0Rd_z6s.mjs} +8 -8
- package/dist/{client-BdGNFO_D.cjs → client-Dy5oayYb.cjs} +8 -8
- package/dist/{compiler-7cyJPuPr.cjs → compiler-CE-EYxtc.cjs} +6 -6
- package/dist/{compiler-Dk5l0aof.mjs → compiler-eCuSUgYl.mjs} +6 -6
- package/dist/config.cjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/eval.cjs +1 -1
- package/dist/eval.d.cts +2 -2
- package/dist/eval.d.mts +2 -2
- package/dist/eval.mjs +1 -1
- package/dist/{evals-api-D-86RBA4.d.mts → evals-api-7CuLOvxe.d.mts} +2 -2
- package/dist/{evals-api-BW7WsvHI.d.cts → evals-api-w3tR6UNj.d.cts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +103 -103
- package/dist/index.d.mts +103 -103
- package/dist/index.mjs +1 -1
- package/dist/{source-Bq8YhKOG.d.cts → source-DZEcNQVL.d.cts} +6 -6
- package/dist/{source-Bq8YhKOG.d.mts → source-DZEcNQVL.d.mts} +6 -6
- package/dist/source.d.cts +1 -1
- package/dist/source.d.mts +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const require_client = require("./client-
|
|
2
|
+
const require_client = require("./client-Dy5oayYb.cjs");
|
|
3
3
|
const require_config = require("./config.cjs");
|
|
4
4
|
const require_errors = require("./errors-Boum34f5.cjs");
|
|
5
|
-
const require_compiler = require("./compiler-
|
|
5
|
+
const require_compiler = require("./compiler-CE-EYxtc.cjs");
|
|
6
6
|
let _effect_platform = require("@effect/platform");
|
|
7
7
|
let effect = require("effect");
|
|
8
8
|
let _effect_cli = require("@effect/cli");
|
|
9
9
|
let _effect_platform_node = require("@effect/platform-node");
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version$1 = "0.1.
|
|
11
|
+
var version$1 = "0.1.7";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ../template/src/extract.ts
|
|
14
14
|
/**
|
|
@@ -172,28 +172,25 @@ const summaryOf = (run, trials, drawn) => drawn ? "" : gridOf(run, trials, 0).jo
|
|
|
172
172
|
const FIRST_POLL = 2e3;
|
|
173
173
|
const SLOWEST_POLL = 1e4;
|
|
174
174
|
const WIDENING = 1.5;
|
|
175
|
-
const running = (
|
|
176
|
-
const widen = (gap) => Math.min(Math.round(gap * WIDENING), SLOWEST_POLL);
|
|
175
|
+
const running = (run) => run.status === "running";
|
|
177
176
|
const waitForRun = (id, onProgress) => effect.Effect.gen(function* () {
|
|
178
177
|
const api = yield* require_client.AnpordApi;
|
|
179
178
|
const startedAt = yield* effect.Clock.currentTimeMillis;
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
yield* onProgress(
|
|
184
|
-
return
|
|
185
|
-
gap: widen(gap),
|
|
186
|
-
run: next
|
|
187
|
-
};
|
|
179
|
+
const gap = yield* effect.Ref.make(FIRST_POLL);
|
|
180
|
+
const poll = effect.Effect.gen(function* () {
|
|
181
|
+
const run = yield* api.evals.get({ payload: { id } });
|
|
182
|
+
yield* onProgress(run, (yield* effect.Clock.currentTimeMillis) - startedAt);
|
|
183
|
+
return run;
|
|
188
184
|
});
|
|
189
|
-
const
|
|
190
|
-
gap
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
185
|
+
const waitThenPoll = effect.Effect.gen(function* () {
|
|
186
|
+
const millis = yield* effect.Ref.getAndUpdate(gap, (current) => Math.min(Math.round(current * WIDENING), SLOWEST_POLL));
|
|
187
|
+
yield* effect.Effect.sleep(effect.Duration.millis(millis));
|
|
188
|
+
return yield* poll;
|
|
189
|
+
});
|
|
190
|
+
return yield* effect.Effect.iterate(yield* poll, {
|
|
191
|
+
body: () => waitThenPoll,
|
|
194
192
|
while: running
|
|
195
193
|
});
|
|
196
|
-
return run ?? (yield* api.evals.get({ payload: { id } }));
|
|
197
194
|
}).pipe(effect.Effect.withSpan("Cli.waitForRun", { attributes: { runId: id } }));
|
|
198
195
|
//#endregion
|
|
199
196
|
//#region src/cli/commands.ts
|
package/dist/cli.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as ChannelName, o as PromptId, r as layer, s as VersionNumber, t as AnpordApi } from "./client-
|
|
2
|
+
import { a as ChannelName, o as PromptId, r as layer, s as VersionNumber, t as AnpordApi } from "./client-D0Rd_z6s.mjs";
|
|
3
3
|
import { clientOptionsConfig } from "./config.mjs";
|
|
4
4
|
import { i as tokenMatcher, r as asAnpordError } from "./errors-C9bQUcA3.mjs";
|
|
5
|
-
import { n as compileEvalEffect } from "./compiler-
|
|
5
|
+
import { n as compileEvalEffect } from "./compiler-eCuSUgYl.mjs";
|
|
6
6
|
import { FileSystem } from "@effect/platform";
|
|
7
7
|
import { Cause, Clock, Console, Data, Duration, Effect, Layer, Option, Ref } from "effect";
|
|
8
8
|
import { Args, Command, Options } from "@effect/cli";
|
|
9
9
|
import { NodeContext, NodeRuntime } from "@effect/platform-node";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version$1 = "0.1.
|
|
11
|
+
var version$1 = "0.1.7";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ../template/src/extract.ts
|
|
14
14
|
/**
|
|
@@ -172,28 +172,25 @@ const summaryOf = (run, trials, drawn) => drawn ? "" : gridOf(run, trials, 0).jo
|
|
|
172
172
|
const FIRST_POLL = 2e3;
|
|
173
173
|
const SLOWEST_POLL = 1e4;
|
|
174
174
|
const WIDENING = 1.5;
|
|
175
|
-
const running = (
|
|
176
|
-
const widen = (gap) => Math.min(Math.round(gap * WIDENING), SLOWEST_POLL);
|
|
175
|
+
const running = (run) => run.status === "running";
|
|
177
176
|
const waitForRun = (id, onProgress) => Effect.gen(function* () {
|
|
178
177
|
const api = yield* AnpordApi;
|
|
179
178
|
const startedAt = yield* Clock.currentTimeMillis;
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
yield* onProgress(
|
|
184
|
-
return
|
|
185
|
-
gap: widen(gap),
|
|
186
|
-
run: next
|
|
187
|
-
};
|
|
179
|
+
const gap = yield* Ref.make(FIRST_POLL);
|
|
180
|
+
const poll = Effect.gen(function* () {
|
|
181
|
+
const run = yield* api.evals.get({ payload: { id } });
|
|
182
|
+
yield* onProgress(run, (yield* Clock.currentTimeMillis) - startedAt);
|
|
183
|
+
return run;
|
|
188
184
|
});
|
|
189
|
-
const
|
|
190
|
-
gap
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
185
|
+
const waitThenPoll = Effect.gen(function* () {
|
|
186
|
+
const millis = yield* Ref.getAndUpdate(gap, (current) => Math.min(Math.round(current * WIDENING), SLOWEST_POLL));
|
|
187
|
+
yield* Effect.sleep(Duration.millis(millis));
|
|
188
|
+
return yield* poll;
|
|
189
|
+
});
|
|
190
|
+
return yield* Effect.iterate(yield* poll, {
|
|
191
|
+
body: () => waitThenPoll,
|
|
194
192
|
while: running
|
|
195
193
|
});
|
|
196
|
-
return run ?? (yield* api.evals.get({ payload: { id } }));
|
|
197
194
|
}).pipe(Effect.withSpan("Cli.waitForRun", { attributes: { runId: id } }));
|
|
198
195
|
//#endregion
|
|
199
196
|
//#region src/cli/commands.ts
|
|
@@ -133,19 +133,19 @@ const EvalValidator = Schema.Struct({
|
|
|
133
133
|
description: "A bundled TypeScript validator and its exported function name.",
|
|
134
134
|
identifier: "EvalValidator"
|
|
135
135
|
});
|
|
136
|
-
const
|
|
136
|
+
const EvalPrepare = Schema.Struct({
|
|
137
137
|
name: Schema.String.pipe(Schema.minLength(1), Schema.maxLength(100)),
|
|
138
138
|
source: Schema.String.pipe(Schema.minLength(1), Schema.maxLength(1e6))
|
|
139
139
|
}).annotations({
|
|
140
140
|
description: "A bundled TypeScript workspace setup and its exported function name.",
|
|
141
|
-
identifier: "
|
|
141
|
+
identifier: "EvalPrepare"
|
|
142
142
|
});
|
|
143
|
-
const
|
|
143
|
+
const EvalPrepareValue = Schema.Record({
|
|
144
144
|
key: Schema.String,
|
|
145
145
|
value: Schema.Unknown
|
|
146
146
|
}).annotations({
|
|
147
147
|
description: "What a workspace setup returned, handed to the validator.",
|
|
148
|
-
identifier: "
|
|
148
|
+
identifier: "EvalPrepareValue"
|
|
149
149
|
});
|
|
150
150
|
const EvalVariables = Schema.Record({
|
|
151
151
|
key: Schema.String,
|
|
@@ -156,7 +156,7 @@ const EvalVariables = Schema.Record({
|
|
|
156
156
|
});
|
|
157
157
|
const EvalCase = Schema.Struct({
|
|
158
158
|
name: Schema.String,
|
|
159
|
-
|
|
159
|
+
prepare: Schema.NullOr(EvalPrepare),
|
|
160
160
|
source: EvalSource,
|
|
161
161
|
variables: Schema.optionalWith(EvalVariables, { default: () => ({}) }),
|
|
162
162
|
validator: Schema.optionalWith(Schema.NullOr(EvalValidator), { default: () => null }),
|
|
@@ -230,7 +230,7 @@ const EvalVerifyStep = Schema.Struct({
|
|
|
230
230
|
});
|
|
231
231
|
const EvalTrial = Schema.Struct({
|
|
232
232
|
commands: Schema.Int,
|
|
233
|
-
|
|
233
|
+
prepared: Schema.NullOr(EvalPrepareValue),
|
|
234
234
|
exitCode: Schema.Int,
|
|
235
235
|
failedCommands: Schema.Int,
|
|
236
236
|
filesChanged: Schema.Array(Schema.String),
|
|
@@ -280,7 +280,7 @@ const EvalSetup = Schema.Struct({
|
|
|
280
280
|
prompt: Schema.String,
|
|
281
281
|
repoRef: Schema.NullOr(Schema.String),
|
|
282
282
|
repoUrl: Schema.NullOr(Schema.String),
|
|
283
|
-
|
|
283
|
+
prepareName: Schema.NullOr(Schema.String),
|
|
284
284
|
validatorName: Schema.NullOr(Schema.String),
|
|
285
285
|
verifyCommand: Schema.NullOr(Schema.String),
|
|
286
286
|
workspace: Schema.String
|
|
@@ -487,7 +487,7 @@ const ListEvalsRequest = Schema.Struct({
|
|
|
487
487
|
});
|
|
488
488
|
const PublicEvalCase = Schema.Struct({
|
|
489
489
|
name: Schema.String,
|
|
490
|
-
|
|
490
|
+
prepare: Schema.optional(Schema.NullOr(EvalPrepare)),
|
|
491
491
|
source: Schema.optional(EvalSource),
|
|
492
492
|
validator: Schema.optional(Schema.NullOr(EvalValidator)),
|
|
493
493
|
variables: Schema.optional(EvalVariables),
|
|
@@ -133,19 +133,19 @@ const EvalValidator = effect.Schema.Struct({
|
|
|
133
133
|
description: "A bundled TypeScript validator and its exported function name.",
|
|
134
134
|
identifier: "EvalValidator"
|
|
135
135
|
});
|
|
136
|
-
const
|
|
136
|
+
const EvalPrepare = effect.Schema.Struct({
|
|
137
137
|
name: effect.Schema.String.pipe(effect.Schema.minLength(1), effect.Schema.maxLength(100)),
|
|
138
138
|
source: effect.Schema.String.pipe(effect.Schema.minLength(1), effect.Schema.maxLength(1e6))
|
|
139
139
|
}).annotations({
|
|
140
140
|
description: "A bundled TypeScript workspace setup and its exported function name.",
|
|
141
|
-
identifier: "
|
|
141
|
+
identifier: "EvalPrepare"
|
|
142
142
|
});
|
|
143
|
-
const
|
|
143
|
+
const EvalPrepareValue = effect.Schema.Record({
|
|
144
144
|
key: effect.Schema.String,
|
|
145
145
|
value: effect.Schema.Unknown
|
|
146
146
|
}).annotations({
|
|
147
147
|
description: "What a workspace setup returned, handed to the validator.",
|
|
148
|
-
identifier: "
|
|
148
|
+
identifier: "EvalPrepareValue"
|
|
149
149
|
});
|
|
150
150
|
const EvalVariables = effect.Schema.Record({
|
|
151
151
|
key: effect.Schema.String,
|
|
@@ -156,7 +156,7 @@ const EvalVariables = effect.Schema.Record({
|
|
|
156
156
|
});
|
|
157
157
|
const EvalCase = effect.Schema.Struct({
|
|
158
158
|
name: effect.Schema.String,
|
|
159
|
-
|
|
159
|
+
prepare: effect.Schema.NullOr(EvalPrepare),
|
|
160
160
|
source: EvalSource,
|
|
161
161
|
variables: effect.Schema.optionalWith(EvalVariables, { default: () => ({}) }),
|
|
162
162
|
validator: effect.Schema.optionalWith(effect.Schema.NullOr(EvalValidator), { default: () => null }),
|
|
@@ -230,7 +230,7 @@ const EvalVerifyStep = effect.Schema.Struct({
|
|
|
230
230
|
});
|
|
231
231
|
const EvalTrial = effect.Schema.Struct({
|
|
232
232
|
commands: effect.Schema.Int,
|
|
233
|
-
|
|
233
|
+
prepared: effect.Schema.NullOr(EvalPrepareValue),
|
|
234
234
|
exitCode: effect.Schema.Int,
|
|
235
235
|
failedCommands: effect.Schema.Int,
|
|
236
236
|
filesChanged: effect.Schema.Array(effect.Schema.String),
|
|
@@ -280,7 +280,7 @@ const EvalSetup = effect.Schema.Struct({
|
|
|
280
280
|
prompt: effect.Schema.String,
|
|
281
281
|
repoRef: effect.Schema.NullOr(effect.Schema.String),
|
|
282
282
|
repoUrl: effect.Schema.NullOr(effect.Schema.String),
|
|
283
|
-
|
|
283
|
+
prepareName: effect.Schema.NullOr(effect.Schema.String),
|
|
284
284
|
validatorName: effect.Schema.NullOr(effect.Schema.String),
|
|
285
285
|
verifyCommand: effect.Schema.NullOr(effect.Schema.String),
|
|
286
286
|
workspace: effect.Schema.String
|
|
@@ -487,7 +487,7 @@ const ListEvalsRequest = effect.Schema.Struct({
|
|
|
487
487
|
});
|
|
488
488
|
const PublicEvalCase = effect.Schema.Struct({
|
|
489
489
|
name: effect.Schema.String,
|
|
490
|
-
|
|
490
|
+
prepare: effect.Schema.optional(effect.Schema.NullOr(EvalPrepare)),
|
|
491
491
|
source: effect.Schema.optional(EvalSource),
|
|
492
492
|
validator: effect.Schema.optional(effect.Schema.NullOr(EvalValidator)),
|
|
493
493
|
variables: effect.Schema.optional(EvalVariables),
|
|
@@ -59,7 +59,7 @@ const context = {
|
|
|
59
59
|
exec,
|
|
60
60
|
exists: path => access(path).then(() => true, () => false),
|
|
61
61
|
readText: path => readFile(path, "utf8"),
|
|
62
|
-
|
|
62
|
+
prepared: JSON.parse(process.env.ANPORD_PREPARE_VALUE ?? "{}"),
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
try {
|
|
@@ -73,7 +73,7 @@ try {
|
|
|
73
73
|
}
|
|
74
74
|
`;
|
|
75
75
|
const validatorEntry = (module, name) => `import { ${name} as validate } from ${JSON.stringify(module)};\n${runtime}`;
|
|
76
|
-
const
|
|
76
|
+
const prepareRuntime = `
|
|
77
77
|
import { access, readFile } from "node:fs/promises";
|
|
78
78
|
import { spawn } from "node:child_process";
|
|
79
79
|
|
|
@@ -109,13 +109,13 @@ const context = {
|
|
|
109
109
|
|
|
110
110
|
try {
|
|
111
111
|
const value = await setup(context) ?? {};
|
|
112
|
-
console.log("
|
|
112
|
+
console.log("ANPORD_PREPARE_RESULT=" + JSON.stringify(value));
|
|
113
113
|
} catch (error) {
|
|
114
114
|
console.error(error instanceof Error ? error.stack : String(error));
|
|
115
115
|
process.exitCode = 1;
|
|
116
116
|
}
|
|
117
117
|
`;
|
|
118
|
-
const
|
|
118
|
+
const prepareEntry = (module, name) => `import { ${name} as setup } from ${JSON.stringify(module)};\n${prepareRuntime}`;
|
|
119
119
|
const definitionEntry = (entry) => `import definition from ${JSON.stringify(entry)}; export default definition;`;
|
|
120
120
|
//#endregion
|
|
121
121
|
//#region src/evals/compiler.ts
|
|
@@ -217,10 +217,10 @@ const compileEvalEffect = (path) => effect.Effect.gen(function* () {
|
|
|
217
217
|
const hasValidator = typeof subject.validate === "function";
|
|
218
218
|
if (hasValidator === (typeof subject.verify === "string")) return yield* effect.Effect.fail(/* @__PURE__ */ new Error(`${subject.name} must have exactly one of validate or verify`));
|
|
219
219
|
const validator = hasValidator ? yield* bundled(entry, loaded.inputs, subject.validate?.name || subject.name, validatorEntry) : null;
|
|
220
|
-
const
|
|
220
|
+
const prepare = typeof subject.prepare === "function" ? yield* bundled(entry, loaded.inputs, subject.prepare.name || `${subject.name}-prepare`, prepareEntry) : null;
|
|
221
221
|
return {
|
|
222
222
|
name: subject.name,
|
|
223
|
-
|
|
223
|
+
prepare,
|
|
224
224
|
...sourceFor(definition, subject, fallback),
|
|
225
225
|
validator,
|
|
226
226
|
variables: subject.variables ?? {},
|
|
@@ -60,7 +60,7 @@ const context = {
|
|
|
60
60
|
exec,
|
|
61
61
|
exists: path => access(path).then(() => true, () => false),
|
|
62
62
|
readText: path => readFile(path, "utf8"),
|
|
63
|
-
|
|
63
|
+
prepared: JSON.parse(process.env.ANPORD_PREPARE_VALUE ?? "{}"),
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
try {
|
|
@@ -74,7 +74,7 @@ try {
|
|
|
74
74
|
}
|
|
75
75
|
`;
|
|
76
76
|
const validatorEntry = (module, name) => `import { ${name} as validate } from ${JSON.stringify(module)};\n${runtime}`;
|
|
77
|
-
const
|
|
77
|
+
const prepareRuntime = `
|
|
78
78
|
import { access, readFile } from "node:fs/promises";
|
|
79
79
|
import { spawn } from "node:child_process";
|
|
80
80
|
|
|
@@ -110,13 +110,13 @@ const context = {
|
|
|
110
110
|
|
|
111
111
|
try {
|
|
112
112
|
const value = await setup(context) ?? {};
|
|
113
|
-
console.log("
|
|
113
|
+
console.log("ANPORD_PREPARE_RESULT=" + JSON.stringify(value));
|
|
114
114
|
} catch (error) {
|
|
115
115
|
console.error(error instanceof Error ? error.stack : String(error));
|
|
116
116
|
process.exitCode = 1;
|
|
117
117
|
}
|
|
118
118
|
`;
|
|
119
|
-
const
|
|
119
|
+
const prepareEntry = (module, name) => `import { ${name} as setup } from ${JSON.stringify(module)};\n${prepareRuntime}`;
|
|
120
120
|
const definitionEntry = (entry) => `import definition from ${JSON.stringify(entry)}; export default definition;`;
|
|
121
121
|
//#endregion
|
|
122
122
|
//#region src/evals/compiler.ts
|
|
@@ -218,10 +218,10 @@ const compileEvalEffect = (path) => Effect.gen(function* () {
|
|
|
218
218
|
const hasValidator = typeof subject.validate === "function";
|
|
219
219
|
if (hasValidator === (typeof subject.verify === "string")) return yield* Effect.fail(/* @__PURE__ */ new Error(`${subject.name} must have exactly one of validate or verify`));
|
|
220
220
|
const validator = hasValidator ? yield* bundled(entry, loaded.inputs, subject.validate?.name || subject.name, validatorEntry) : null;
|
|
221
|
-
const
|
|
221
|
+
const prepare = typeof subject.prepare === "function" ? yield* bundled(entry, loaded.inputs, subject.prepare.name || `${subject.name}-prepare`, prepareEntry) : null;
|
|
222
222
|
return {
|
|
223
223
|
name: subject.name,
|
|
224
|
-
|
|
224
|
+
prepare,
|
|
225
225
|
...sourceFor(definition, subject, fallback),
|
|
226
226
|
validator,
|
|
227
227
|
variables: subject.variables ?? {},
|
package/dist/config.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_client = require("./client-
|
|
2
|
+
const require_client = require("./client-Dy5oayYb.cjs");
|
|
3
3
|
let effect = require("effect");
|
|
4
4
|
//#region src/client/config.ts
|
|
5
5
|
const apiKeyConfig = effect.Config.redacted("ANPORD_API_KEY");
|
package/dist/config.mjs
CHANGED
package/dist/eval.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_compiler = require("./compiler-
|
|
2
|
+
const require_compiler = require("./compiler-CE-EYxtc.cjs");
|
|
3
3
|
exports.compileEval = require_compiler.compileEval;
|
|
4
4
|
exports.compileEvalEffect = require_compiler.compileEvalEffect;
|
package/dist/eval.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PublicStartEvalRequest } from "./evals-api-
|
|
1
|
+
import { t as PublicStartEvalRequest } from "./evals-api-w3tR6UNj.cjs";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
//#region src/evals/compiler.d.ts
|
|
4
4
|
declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
@@ -10,7 +10,7 @@ declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
|
10
10
|
variables: Readonly<Record<string, string>>;
|
|
11
11
|
verify: string | null;
|
|
12
12
|
name: string;
|
|
13
|
-
|
|
13
|
+
prepare: {
|
|
14
14
|
name: string;
|
|
15
15
|
source: string;
|
|
16
16
|
} | null;
|
package/dist/eval.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PublicStartEvalRequest } from "./evals-api-
|
|
1
|
+
import { t as PublicStartEvalRequest } from "./evals-api-7CuLOvxe.mjs";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
//#region src/evals/compiler.d.ts
|
|
4
4
|
declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
@@ -10,7 +10,7 @@ declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
|
10
10
|
variables: Readonly<Record<string, string>>;
|
|
11
11
|
verify: string | null;
|
|
12
12
|
name: string;
|
|
13
|
-
|
|
13
|
+
prepare: {
|
|
14
14
|
name: string;
|
|
15
15
|
source: string;
|
|
16
16
|
} | null;
|
package/dist/eval.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as compileEvalEffect, t as compileEval } from "./compiler-
|
|
1
|
+
import { n as compileEvalEffect, t as compileEval } from "./compiler-eCuSUgYl.mjs";
|
|
2
2
|
export { compileEval, compileEvalEffect };
|
|
@@ -39,7 +39,7 @@ declare class Forbidden extends Forbidden_base {}
|
|
|
39
39
|
declare const PublicStartEvalRequest: Schema.Struct<{
|
|
40
40
|
cases: Schema.filter<Schema.Array$<Schema.refine<{
|
|
41
41
|
readonly name: string;
|
|
42
|
-
readonly
|
|
42
|
+
readonly prepare?: {
|
|
43
43
|
readonly name: string;
|
|
44
44
|
readonly source: string;
|
|
45
45
|
} | null | undefined;
|
|
@@ -65,7 +65,7 @@ declare const PublicStartEvalRequest: Schema.Struct<{
|
|
|
65
65
|
readonly verify: string | null;
|
|
66
66
|
}, Schema.Struct<{
|
|
67
67
|
name: typeof Schema.String;
|
|
68
|
-
|
|
68
|
+
prepare: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
69
69
|
name: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
70
70
|
source: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
71
71
|
}>>>;
|
|
@@ -39,7 +39,7 @@ declare class Forbidden extends Forbidden_base {}
|
|
|
39
39
|
declare const PublicStartEvalRequest: Schema.Struct<{
|
|
40
40
|
cases: Schema.filter<Schema.Array$<Schema.refine<{
|
|
41
41
|
readonly name: string;
|
|
42
|
-
readonly
|
|
42
|
+
readonly prepare?: {
|
|
43
43
|
readonly name: string;
|
|
44
44
|
readonly source: string;
|
|
45
45
|
} | null | undefined;
|
|
@@ -65,7 +65,7 @@ declare const PublicStartEvalRequest: Schema.Struct<{
|
|
|
65
65
|
readonly verify: string | null;
|
|
66
66
|
}, Schema.Struct<{
|
|
67
67
|
name: typeof Schema.String;
|
|
68
|
-
|
|
68
|
+
prepare: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
69
69
|
name: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
70
70
|
source: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
71
71
|
}>>>;
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_client = require("./client-
|
|
2
|
+
const require_client = require("./client-Dy5oayYb.cjs");
|
|
3
3
|
const require_errors = require("./errors-Boum34f5.cjs");
|
|
4
4
|
const require_source = require("./source-DvlGawEw.cjs");
|
|
5
5
|
let _effect_platform = require("@effect/platform");
|