anpord 0.1.19 → 0.1.21
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/api-context.cjs +1 -1
- package/dist/api-context.d.cts +1 -1
- package/dist/api-context.d.mts +1 -1
- package/dist/api-context.mjs +1 -1
- package/dist/{api-mocks-C3SsliJZ.mjs → api-mocks-BYWvJp9v.mjs} +3 -3
- package/dist/{api-mocks-CAQFqUgY.d.cts → api-mocks-BenVx0e8.d.cts} +11 -11
- package/dist/{api-mocks-CAQFqUgY.d.mts → api-mocks-BenVx0e8.d.mts} +11 -11
- package/dist/{api-mocks-BjnewAya.cjs → api-mocks-CgiC7T9U.cjs} +8 -2
- package/dist/api-runtime.cjs +1 -1
- package/dist/api-runtime.d.cts +1 -1
- package/dist/api-runtime.d.mts +1 -1
- package/dist/api-runtime.mjs +1 -1
- package/dist/api.cjs +1 -1
- package/dist/api.d.cts +1 -1
- package/dist/api.d.mts +1 -1
- package/dist/api.mjs +1 -1
- package/dist/bin.cjs +4301 -228
- package/dist/bin.mjs +4305 -232
- package/dist/{client-COfGoWvI.cjs → client-BZDftC1x.cjs} +24 -2
- package/dist/{client-BucAp4c0.d.mts → client-C7iEhiDm.d.mts} +5882 -2454
- package/dist/{client-OTrC6QXZ.d.cts → client-CsGxLUZq.d.cts} +5882 -2454
- package/dist/{client-sWrfA0jZ.mjs → client-D0l3kwWV.mjs} +24 -2
- package/dist/{compiler-CPpRRAdH.cjs → compiler-Cy85vNbp.cjs} +2 -2
- package/dist/{compiler-q6rnLW2F.mjs → compiler-DSQRHvXS.mjs} +2 -2
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{eval-turns-hf6tbL-E.mjs → eval-turns-BC-GMHD-.mjs} +3 -2
- package/dist/{eval-turns-Bv8wRQ-b.cjs → eval-turns-DcJ8_1qr.cjs} +8 -1
- package/dist/{eval-validations-D0Cz6xSg.cjs → eval-validations-CZm7vVtQ.cjs} +12 -0
- package/dist/{eval-validations-CUG2PvR_.mjs → eval-validations-DNO-qwkU.mjs} +1 -1
- package/dist/eval.cjs +1 -1
- package/dist/eval.d.cts +1 -1
- package/dist/eval.d.mts +1 -1
- package/dist/eval.mjs +1 -1
- package/dist/{evals-CSipRo7i.d.cts → evals-Dw2Ek-mx.d.cts} +131 -128
- package/dist/{evals-CSipRo7i.d.mts → evals-Dw2Ek-mx.d.mts} +131 -128
- package/dist/{evals-api-u98TxdqN.mjs → evals-api-CK3F1KoI.mjs} +164 -65
- package/dist/{evals-api-DZSr9rtP.cjs → evals-api-CNoLlXL5.cjs} +199 -64
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{runtime-B5it0Siy.cjs → runtime-Bfs2j0jW.cjs} +2 -2
- package/dist/{runtime-ChWJywJY.mjs → runtime-CYr8RbsW.mjs} +2 -2
- package/dist/source.d.cts +1 -1
- package/dist/source.d.mts +1 -1
- package/dist/{types-LW0tX4MF.d.mts → types-D-h67MVJ.d.mts} +14 -13
- package/dist/{types-DCUo5on_.d.cts → types-Dvd_z5ge.d.cts} +14 -13
- package/dist/validator-runtime.cjs +2 -2
- package/dist/validator-runtime.d.cts +1 -1
- package/dist/validator-runtime.d.mts +1 -1
- package/dist/validator-runtime.mjs +2 -2
- package/dist/validators.cjs +1 -1
- package/dist/validators.mjs +1 -1
- package/package.json +3 -1
package/dist/api-context.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_api_mocks = require("./api-mocks-
|
|
2
|
+
const require_api_mocks = require("./api-mocks-CgiC7T9U.cjs");
|
|
3
3
|
let effect = require("effect");
|
|
4
4
|
let node_fs_promises = require("node:fs/promises");
|
|
5
5
|
//#region src/mock-api/context.ts
|
package/dist/api-context.d.cts
CHANGED
package/dist/api-context.d.mts
CHANGED
package/dist/api-context.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ApiCall, n as API_MANIFEST, o as ApiManifest, t as API_JOURNAL } from "./api-mocks-
|
|
1
|
+
import { a as ApiCall, n as API_MANIFEST, o as ApiManifest, t as API_JOURNAL } from "./api-mocks-BYWvJp9v.mjs";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
//#region src/mock-api/context.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as ValidationValue } from "./eval-validations-DNO-qwkU.mjs";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
//#region ../schema/src/domain/api-mocks.ts
|
|
4
4
|
const API_PROGRAM = "workspace/.anpord/api/program.json";
|
|
5
5
|
const API_MANIFEST = ".anpord/api/manifest.json";
|
|
6
6
|
const API_JOURNAL = ".anpord/api/calls.jsonl";
|
|
7
7
|
const API_READY = "ANPORD_API_READY=";
|
|
8
|
-
Schema.Struct({ entry: Schema.Literal(".anpord/api/server.mjs") });
|
|
8
|
+
const ApiProgram = Schema.Struct({ entry: Schema.Literal(".anpord/api/server.mjs") });
|
|
9
9
|
const ApiManifest = Schema.Array(Schema.Struct({
|
|
10
10
|
name: Schema.String,
|
|
11
11
|
url: Schema.String,
|
|
@@ -30,4 +30,4 @@ var ApiCall = class extends Schema.Class("ApiCall")({
|
|
|
30
30
|
logs: Schema.Array(ValidationValue).pipe(Schema.maxItems(64))
|
|
31
31
|
}) {};
|
|
32
32
|
//#endregion
|
|
33
|
-
export { ApiCall as a, API_READY as i, API_MANIFEST as n, ApiManifest as o, API_PROGRAM as r, API_JOURNAL as t };
|
|
33
|
+
export { ApiCall as a, API_READY as i, API_MANIFEST as n, ApiManifest as o, API_PROGRAM as r, ApiProgram as s, API_JOURNAL as t };
|
|
@@ -57,39 +57,39 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
|
|
|
57
57
|
truncated: typeof Schema.Boolean;
|
|
58
58
|
}>>>;
|
|
59
59
|
}>, never, {
|
|
60
|
-
readonly
|
|
60
|
+
readonly status: number;
|
|
61
61
|
} & {
|
|
62
62
|
readonly startedAt: number;
|
|
63
63
|
} & {
|
|
64
|
-
readonly
|
|
64
|
+
readonly api: string;
|
|
65
65
|
} & {
|
|
66
66
|
readonly path: string;
|
|
67
67
|
} & {
|
|
68
68
|
readonly index: number;
|
|
69
69
|
} & {
|
|
70
|
-
readonly
|
|
71
|
-
} & {
|
|
72
|
-
readonly durationMs: number;
|
|
73
|
-
} & {
|
|
74
|
-
readonly input: {
|
|
75
|
-
readonly truncated: boolean;
|
|
70
|
+
readonly output: {
|
|
76
71
|
readonly text: string;
|
|
72
|
+
readonly truncated: boolean;
|
|
77
73
|
readonly format: "text" | "json";
|
|
78
74
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
79
75
|
};
|
|
80
76
|
} & {
|
|
81
|
-
readonly
|
|
82
|
-
readonly truncated: boolean;
|
|
77
|
+
readonly input: {
|
|
83
78
|
readonly text: string;
|
|
79
|
+
readonly truncated: boolean;
|
|
84
80
|
readonly format: "text" | "json";
|
|
85
81
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
86
82
|
};
|
|
83
|
+
} & {
|
|
84
|
+
readonly error: string | null;
|
|
85
|
+
} & {
|
|
86
|
+
readonly durationMs: number;
|
|
87
87
|
} & {
|
|
88
88
|
readonly method: string;
|
|
89
89
|
} & {
|
|
90
90
|
readonly logs: readonly {
|
|
91
|
-
readonly truncated: boolean;
|
|
92
91
|
readonly text: string;
|
|
92
|
+
readonly truncated: boolean;
|
|
93
93
|
readonly format: "text" | "json";
|
|
94
94
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
95
95
|
}[];
|
|
@@ -57,39 +57,39 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
|
|
|
57
57
|
truncated: typeof Schema.Boolean;
|
|
58
58
|
}>>>;
|
|
59
59
|
}>, never, {
|
|
60
|
-
readonly
|
|
60
|
+
readonly status: number;
|
|
61
61
|
} & {
|
|
62
62
|
readonly startedAt: number;
|
|
63
63
|
} & {
|
|
64
|
-
readonly
|
|
64
|
+
readonly api: string;
|
|
65
65
|
} & {
|
|
66
66
|
readonly path: string;
|
|
67
67
|
} & {
|
|
68
68
|
readonly index: number;
|
|
69
69
|
} & {
|
|
70
|
-
readonly
|
|
71
|
-
} & {
|
|
72
|
-
readonly durationMs: number;
|
|
73
|
-
} & {
|
|
74
|
-
readonly input: {
|
|
75
|
-
readonly truncated: boolean;
|
|
70
|
+
readonly output: {
|
|
76
71
|
readonly text: string;
|
|
72
|
+
readonly truncated: boolean;
|
|
77
73
|
readonly format: "text" | "json";
|
|
78
74
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
79
75
|
};
|
|
80
76
|
} & {
|
|
81
|
-
readonly
|
|
82
|
-
readonly truncated: boolean;
|
|
77
|
+
readonly input: {
|
|
83
78
|
readonly text: string;
|
|
79
|
+
readonly truncated: boolean;
|
|
84
80
|
readonly format: "text" | "json";
|
|
85
81
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
86
82
|
};
|
|
83
|
+
} & {
|
|
84
|
+
readonly error: string | null;
|
|
85
|
+
} & {
|
|
86
|
+
readonly durationMs: number;
|
|
87
87
|
} & {
|
|
88
88
|
readonly method: string;
|
|
89
89
|
} & {
|
|
90
90
|
readonly logs: readonly {
|
|
91
|
-
readonly truncated: boolean;
|
|
92
91
|
readonly text: string;
|
|
92
|
+
readonly truncated: boolean;
|
|
93
93
|
readonly format: "text" | "json";
|
|
94
94
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
95
95
|
}[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_eval_validations = require("./eval-validations-
|
|
1
|
+
const require_eval_validations = require("./eval-validations-CZm7vVtQ.cjs");
|
|
2
2
|
let effect = require("effect");
|
|
3
3
|
//#region ../schema/src/domain/api-mocks.ts
|
|
4
4
|
const API_PROGRAM = "workspace/.anpord/api/program.json";
|
|
5
5
|
const API_MANIFEST = ".anpord/api/manifest.json";
|
|
6
6
|
const API_JOURNAL = ".anpord/api/calls.jsonl";
|
|
7
7
|
const API_READY = "ANPORD_API_READY=";
|
|
8
|
-
effect.Schema.Struct({ entry: effect.Schema.Literal(".anpord/api/server.mjs") });
|
|
8
|
+
const ApiProgram = effect.Schema.Struct({ entry: effect.Schema.Literal(".anpord/api/server.mjs") });
|
|
9
9
|
const ApiManifest = effect.Schema.Array(effect.Schema.Struct({
|
|
10
10
|
name: effect.Schema.String,
|
|
11
11
|
url: effect.Schema.String,
|
|
@@ -66,3 +66,9 @@ Object.defineProperty(exports, "ApiManifest", {
|
|
|
66
66
|
return ApiManifest;
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
+
Object.defineProperty(exports, "ApiProgram", {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function() {
|
|
72
|
+
return ApiProgram;
|
|
73
|
+
}
|
|
74
|
+
});
|
package/dist/api-runtime.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_runtime = require("./runtime-
|
|
2
|
+
const require_runtime = require("./runtime-Bfs2j0jW.cjs");
|
|
3
3
|
exports.runApiServers = require_runtime.runApiServers;
|
|
4
4
|
exports.withApi = require_runtime.withApi;
|
package/dist/api-runtime.d.cts
CHANGED
package/dist/api-runtime.d.mts
CHANGED
package/dist/api-runtime.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as withApi, t as runApiServers } from "./runtime-
|
|
1
|
+
import { n as withApi, t as runApiServers } from "./runtime-CYr8RbsW.mjs";
|
|
2
2
|
export { runApiServers, withApi };
|
package/dist/api.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_runtime = require("./runtime-
|
|
2
|
+
const require_runtime = require("./runtime-Bfs2j0jW.cjs");
|
|
3
3
|
exports.api = require_runtime.api;
|
|
4
4
|
exports.endpoint = require_runtime.endpoint;
|
|
5
5
|
exports.withApi = require_runtime.withApi;
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ApiCall } from "./api-mocks-
|
|
1
|
+
import { t as ApiCall } from "./api-mocks-BenVx0e8.cjs";
|
|
2
2
|
import { a as endpoint, i as api, n as ApiHandlerContext, r as EndpointDefinition, t as ApiDefinition } from "./define-NZvmQuIv.cjs";
|
|
3
3
|
import { withApi } from "./api-runtime.cjs";
|
|
4
4
|
export { type ApiCall, type ApiDefinition, type ApiHandlerContext, type EndpointDefinition, api, endpoint, withApi };
|
package/dist/api.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ApiCall } from "./api-mocks-
|
|
1
|
+
import { t as ApiCall } from "./api-mocks-BenVx0e8.mjs";
|
|
2
2
|
import { a as endpoint, i as api, n as ApiHandlerContext, r as EndpointDefinition, t as ApiDefinition } from "./define-NZvmQuIv.mjs";
|
|
3
3
|
import { withApi } from "./api-runtime.mjs";
|
|
4
4
|
export { type ApiCall, type ApiDefinition, type ApiHandlerContext, type EndpointDefinition, api, endpoint, withApi };
|
package/dist/api.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as endpoint, n as withApi, r as api } from "./runtime-
|
|
1
|
+
import { i as endpoint, n as withApi, r as api } from "./runtime-CYr8RbsW.mjs";
|
|
2
2
|
export { api, endpoint, withApi };
|