anpord 0.1.20 → 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.
Files changed (57) hide show
  1. package/dist/api-context.cjs +1 -1
  2. package/dist/api-context.d.cts +1 -1
  3. package/dist/api-context.d.mts +1 -1
  4. package/dist/api-context.mjs +1 -1
  5. package/dist/{api-mocks-C3SsliJZ.mjs → api-mocks-BYWvJp9v.mjs} +3 -3
  6. package/dist/{api-mocks-xXKzUFc9.d.cts → api-mocks-BenVx0e8.d.cts} +11 -11
  7. package/dist/{api-mocks-xXKzUFc9.d.mts → api-mocks-BenVx0e8.d.mts} +11 -11
  8. package/dist/{api-mocks-BjnewAya.cjs → api-mocks-CgiC7T9U.cjs} +8 -2
  9. package/dist/api-runtime.cjs +1 -1
  10. package/dist/api-runtime.d.cts +1 -1
  11. package/dist/api-runtime.d.mts +1 -1
  12. package/dist/api-runtime.mjs +1 -1
  13. package/dist/api.cjs +1 -1
  14. package/dist/api.d.cts +1 -1
  15. package/dist/api.d.mts +1 -1
  16. package/dist/api.mjs +1 -1
  17. package/dist/bin.cjs +4005 -50
  18. package/dist/bin.mjs +4008 -53
  19. package/dist/{client-D4SBJEsG.cjs → client-BZDftC1x.cjs} +1 -1
  20. package/dist/{client-ClWUDcPC.d.mts → client-C7iEhiDm.d.mts} +5352 -2328
  21. package/dist/{client-BD2VyKja.d.cts → client-CsGxLUZq.d.cts} +5352 -2328
  22. package/dist/{client-DCSRP55Q.mjs → client-D0l3kwWV.mjs} +1 -1
  23. package/dist/{compiler-DSN62KNe.cjs → compiler-Cy85vNbp.cjs} +2 -2
  24. package/dist/{compiler-BKchnKps.mjs → compiler-DSQRHvXS.mjs} +2 -2
  25. package/dist/config.cjs +1 -1
  26. package/dist/config.d.cts +1 -1
  27. package/dist/config.d.mts +1 -1
  28. package/dist/config.mjs +1 -1
  29. package/dist/{eval-turns-DZTHit19.mjs → eval-turns-BC-GMHD-.mjs} +2 -1
  30. package/dist/{eval-turns-weR_7JIp.cjs → eval-turns-DcJ8_1qr.cjs} +7 -0
  31. package/dist/{eval-validations-D0Cz6xSg.cjs → eval-validations-CZm7vVtQ.cjs} +12 -0
  32. package/dist/{eval-validations-CUG2PvR_.mjs → eval-validations-DNO-qwkU.mjs} +1 -1
  33. package/dist/eval.cjs +1 -1
  34. package/dist/eval.d.cts +1 -1
  35. package/dist/eval.d.mts +1 -1
  36. package/dist/eval.mjs +1 -1
  37. package/dist/{evals-WMHOpPxd.d.cts → evals-Dw2Ek-mx.d.cts} +115 -112
  38. package/dist/{evals-WMHOpPxd.d.mts → evals-Dw2Ek-mx.d.mts} +115 -112
  39. package/dist/{evals-api-B0lnr_R8.mjs → evals-api-CK3F1KoI.mjs} +113 -14
  40. package/dist/{evals-api-DuDr8UdV.cjs → evals-api-CNoLlXL5.cjs} +124 -13
  41. package/dist/index.cjs +2 -2
  42. package/dist/index.d.cts +3 -3
  43. package/dist/index.d.mts +3 -3
  44. package/dist/index.mjs +2 -2
  45. package/dist/{runtime-B5it0Siy.cjs → runtime-Bfs2j0jW.cjs} +2 -2
  46. package/dist/{runtime-ChWJywJY.mjs → runtime-CYr8RbsW.mjs} +2 -2
  47. package/dist/source.d.cts +1 -1
  48. package/dist/source.d.mts +1 -1
  49. package/dist/{types-Cw5k37Uk.d.mts → types-D-h67MVJ.d.mts} +5 -4
  50. package/dist/{types-CUVZ1A_F.d.cts → types-Dvd_z5ge.d.cts} +5 -4
  51. package/dist/validator-runtime.cjs +2 -2
  52. package/dist/validator-runtime.d.cts +1 -1
  53. package/dist/validator-runtime.d.mts +1 -1
  54. package/dist/validator-runtime.mjs +2 -2
  55. package/dist/validators.cjs +1 -1
  56. package/dist/validators.mjs +1 -1
  57. package/package.json +3 -1
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_api_mocks = require("./api-mocks-BjnewAya.cjs");
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
@@ -1,4 +1,4 @@
1
- import { t as ApiCall } from "./api-mocks-xXKzUFc9.cjs";
1
+ import { t as ApiCall } from "./api-mocks-BenVx0e8.cjs";
2
2
  //#region src/mock-api/context.d.ts
3
3
  declare const apiContext: {
4
4
  url: (name: string) => Promise<string>;
@@ -1,4 +1,4 @@
1
- import { t as ApiCall } from "./api-mocks-xXKzUFc9.mjs";
1
+ import { t as ApiCall } from "./api-mocks-BenVx0e8.mjs";
2
2
  //#region src/mock-api/context.d.ts
3
3
  declare const apiContext: {
4
4
  url: (name: string) => Promise<string>;
@@ -1,4 +1,4 @@
1
- import { a as ApiCall, n as API_MANIFEST, o as ApiManifest, t as API_JOURNAL } from "./api-mocks-C3SsliJZ.mjs";
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 { r as ValidationValue } from "./eval-validations-CUG2PvR_.mjs";
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 api: string;
61
- } & {
62
60
  readonly status: number;
63
61
  } & {
64
62
  readonly startedAt: number;
63
+ } & {
64
+ readonly api: string;
65
65
  } & {
66
66
  readonly path: string;
67
67
  } & {
68
68
  readonly index: number;
69
69
  } & {
70
- readonly error: string | null;
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 output: {
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 api: string;
61
- } & {
62
60
  readonly status: number;
63
61
  } & {
64
62
  readonly startedAt: number;
63
+ } & {
64
+ readonly api: string;
65
65
  } & {
66
66
  readonly path: string;
67
67
  } & {
68
68
  readonly index: number;
69
69
  } & {
70
- readonly error: string | null;
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 output: {
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-D0Cz6xSg.cjs");
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
+ });
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_runtime = require("./runtime-B5it0Siy.cjs");
2
+ const require_runtime = require("./runtime-Bfs2j0jW.cjs");
3
3
  exports.runApiServers = require_runtime.runApiServers;
4
4
  exports.withApi = require_runtime.withApi;
@@ -1,4 +1,4 @@
1
- import { t as ApiCall } from "./api-mocks-xXKzUFc9.cjs";
1
+ import { t as ApiCall } from "./api-mocks-BenVx0e8.cjs";
2
2
  import { t as ApiDefinition } from "./define-NZvmQuIv.cjs";
3
3
  //#region src/mock-api/runtime.d.ts
4
4
  declare const withApi: <A>({ api, run }: {
@@ -1,4 +1,4 @@
1
- import { t as ApiCall } from "./api-mocks-xXKzUFc9.mjs";
1
+ import { t as ApiCall } from "./api-mocks-BenVx0e8.mjs";
2
2
  import { t as ApiDefinition } from "./define-NZvmQuIv.mjs";
3
3
  //#region src/mock-api/runtime.d.ts
4
4
  declare const withApi: <A>({ api, run }: {
@@ -1,2 +1,2 @@
1
- import { n as withApi, t as runApiServers } from "./runtime-ChWJywJY.mjs";
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-B5it0Siy.cjs");
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-xXKzUFc9.cjs";
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-xXKzUFc9.mjs";
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-ChWJywJY.mjs";
1
+ import { i as endpoint, n as withApi, r as api } from "./runtime-CYr8RbsW.mjs";
2
2
  export { api, endpoint, withApi };