anpord 0.1.20 → 0.1.22

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 (61) 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-xXKzUFc9.d.cts → api-mocks-B8a93t2t.d.cts} +15 -15
  6. package/dist/{api-mocks-xXKzUFc9.d.mts → api-mocks-B8a93t2t.d.mts} +15 -15
  7. package/dist/{api-mocks-C3SsliJZ.mjs → api-mocks-BYWvJp9v.mjs} +3 -3
  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 +4014 -49
  18. package/dist/bin.mjs +4017 -52
  19. package/dist/{client-BD2VyKja.d.cts → client-CE9VurDH.d.cts} +6022 -2702
  20. package/dist/{client-D4SBJEsG.cjs → client-CWVAt_wk.cjs} +1 -1
  21. package/dist/{client-DCSRP55Q.mjs → client-CfPf0hIc.mjs} +1 -1
  22. package/dist/{client-ClWUDcPC.d.mts → client-EdYxRHX0.d.mts} +6022 -2702
  23. package/dist/{compiler-DSN62KNe.cjs → compiler-B1UrHfCL.cjs} +19 -2
  24. package/dist/{compiler-BKchnKps.mjs → compiler-D9jidpZ0.mjs} +14 -3
  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-turns-CTCoSuB6.d.mts → eval-turns-Uwe0G7PS.d.cts} +1 -1
  32. package/dist/{eval-turns-CTCoSuB6.d.cts → eval-turns-Uwe0G7PS.d.mts} +1 -1
  33. package/dist/{eval-validations-D0Cz6xSg.cjs → eval-validations-CZm7vVtQ.cjs} +12 -0
  34. package/dist/{eval-validations-CUG2PvR_.mjs → eval-validations-DNO-qwkU.mjs} +1 -1
  35. package/dist/eval.cjs +1 -1
  36. package/dist/eval.d.cts +1 -1
  37. package/dist/eval.d.mts +1 -1
  38. package/dist/eval.mjs +1 -1
  39. package/dist/{evals-WMHOpPxd.d.cts → evals-M2G4zvnS.d.cts} +131 -128
  40. package/dist/{evals-WMHOpPxd.d.mts → evals-M2G4zvnS.d.mts} +131 -128
  41. package/dist/{evals-api-DuDr8UdV.cjs → evals-api-DUiZWsyC.cjs} +177 -13
  42. package/dist/{evals-api-B0lnr_R8.mjs → evals-api-NLUUV9tM.mjs} +166 -14
  43. package/dist/index.cjs +3 -2
  44. package/dist/index.d.cts +5 -4
  45. package/dist/index.d.mts +5 -4
  46. package/dist/index.mjs +3 -3
  47. package/dist/{runtime-B5it0Siy.cjs → runtime-Bfs2j0jW.cjs} +2 -2
  48. package/dist/{runtime-ChWJywJY.mjs → runtime-CYr8RbsW.mjs} +2 -2
  49. package/dist/source.d.cts +1 -1
  50. package/dist/source.d.mts +1 -1
  51. package/dist/{types-Cw5k37Uk.d.mts → types-B1rRGWeL.d.mts} +28 -18
  52. package/dist/{types-CUVZ1A_F.d.cts → types-C1Np-yYM.d.cts} +28 -18
  53. package/dist/validator-runtime.cjs +2 -2
  54. package/dist/validator-runtime.d.cts +1 -1
  55. package/dist/validator-runtime.d.mts +1 -1
  56. package/dist/validator-runtime.mjs +2 -2
  57. package/dist/validators.cjs +1 -1
  58. package/dist/validators.d.cts +1 -1
  59. package/dist/validators.d.mts +1 -1
  60. package/dist/validators.mjs +1 -1
  61. 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-B8a93t2t.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-B8a93t2t.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
@@ -58,6 +58,20 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
58
58
  }>>>;
59
59
  }>, never, {
60
60
  readonly api: string;
61
+ } & {
62
+ readonly output: {
63
+ readonly text: string;
64
+ readonly truncated: boolean;
65
+ readonly format: "text" | "json";
66
+ readonly state: "captured" | "disabled" | "unavailable";
67
+ };
68
+ } & {
69
+ readonly input: {
70
+ readonly text: string;
71
+ readonly truncated: boolean;
72
+ readonly format: "text" | "json";
73
+ readonly state: "captured" | "disabled" | "unavailable";
74
+ };
61
75
  } & {
62
76
  readonly status: number;
63
77
  } & {
@@ -70,26 +84,12 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
70
84
  readonly error: string | null;
71
85
  } & {
72
86
  readonly durationMs: number;
73
- } & {
74
- readonly input: {
75
- readonly truncated: boolean;
76
- readonly text: string;
77
- readonly format: "text" | "json";
78
- readonly state: "captured" | "disabled" | "unavailable";
79
- };
80
- } & {
81
- readonly output: {
82
- readonly truncated: boolean;
83
- readonly text: string;
84
- readonly format: "text" | "json";
85
- readonly state: "captured" | "disabled" | "unavailable";
86
- };
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
  }[];
@@ -58,6 +58,20 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
58
58
  }>>>;
59
59
  }>, never, {
60
60
  readonly api: string;
61
+ } & {
62
+ readonly output: {
63
+ readonly text: string;
64
+ readonly truncated: boolean;
65
+ readonly format: "text" | "json";
66
+ readonly state: "captured" | "disabled" | "unavailable";
67
+ };
68
+ } & {
69
+ readonly input: {
70
+ readonly text: string;
71
+ readonly truncated: boolean;
72
+ readonly format: "text" | "json";
73
+ readonly state: "captured" | "disabled" | "unavailable";
74
+ };
61
75
  } & {
62
76
  readonly status: number;
63
77
  } & {
@@ -70,26 +84,12 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
70
84
  readonly error: string | null;
71
85
  } & {
72
86
  readonly durationMs: number;
73
- } & {
74
- readonly input: {
75
- readonly truncated: boolean;
76
- readonly text: string;
77
- readonly format: "text" | "json";
78
- readonly state: "captured" | "disabled" | "unavailable";
79
- };
80
- } & {
81
- readonly output: {
82
- readonly truncated: boolean;
83
- readonly text: string;
84
- readonly format: "text" | "json";
85
- readonly state: "captured" | "disabled" | "unavailable";
86
- };
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
- 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 };
@@ -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-B8a93t2t.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-B8a93t2t.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-B8a93t2t.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-B8a93t2t.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 };