anpord 0.1.26 → 0.1.27

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 (51) 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-CMB0IJFX.cjs → api-mocks-BsUGpsim.cjs} +14 -0
  6. package/dist/{api-mocks-CmytjGmi.d.cts → api-mocks-CBa3MWVP.d.cts} +4 -4
  7. package/dist/{api-mocks-CmytjGmi.d.mts → api-mocks-CBa3MWVP.d.mts} +4 -4
  8. package/dist/{api-mocks-C0uY0UBb.mjs → api-mocks-DH1C7any.mjs} +3 -1
  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 +512 -261
  18. package/dist/bin.mjs +510 -259
  19. package/dist/cli-runtime.cjs +3 -3
  20. package/dist/cli-runtime.mjs +3 -3
  21. package/dist/{compiler-BtVNqh3R.mjs → compiler-DDc7Towh.mjs} +35 -20
  22. package/dist/{compiler-s8dJGvE6.cjs → compiler-DKWUVkxB.cjs} +35 -20
  23. package/dist/{errors-ZfXkocHp.cjs → errors-D1L76YFH.cjs} +127 -106
  24. package/dist/{errors-B6JK0hbj.mjs → errors-DaYv6_WJ.mjs} +110 -101
  25. package/dist/{eval-definition-Dz3dHY1S.d.cts → eval-definition-B365FMXW.d.cts} +12 -12
  26. package/dist/{eval-definition-Dz3dHY1S.d.mts → eval-definition-B365FMXW.d.mts} +12 -12
  27. package/dist/eval.cjs +1 -1
  28. package/dist/eval.d.cts +2 -2
  29. package/dist/eval.d.mts +2 -2
  30. package/dist/eval.mjs +1 -1
  31. package/dist/index.cjs +2 -2
  32. package/dist/index.d.cts +1835 -289
  33. package/dist/index.d.mts +1835 -289
  34. package/dist/index.mjs +2 -2
  35. package/dist/mcp-runtime.cjs +4 -12
  36. package/dist/mcp-runtime.mjs +5 -13
  37. package/dist/{runtime-LjI7Hqj3.cjs → runtime-BcX6BpI5.cjs} +3 -9
  38. package/dist/{runtime-BTq5czA4.mjs → runtime-CjDUik7_.mjs} +3 -9
  39. package/dist/sandbox-env-B8cLIcku.cjs +44 -0
  40. package/dist/sandbox-env-s-smXj2C.mjs +9 -0
  41. package/dist/source.d.cts +1 -1
  42. package/dist/source.d.mts +1 -1
  43. package/dist/types-DuH3gZVT.d.mts +462 -0
  44. package/dist/types-QRY2ArEX.d.cts +462 -0
  45. package/dist/validator-runtime.cjs +8 -7
  46. package/dist/validator-runtime.d.cts +1 -1
  47. package/dist/validator-runtime.d.mts +1 -1
  48. package/dist/validator-runtime.mjs +8 -7
  49. package/package.json +1 -1
  50. package/dist/types-BsW7R-jL.d.mts +0 -2004
  51. package/dist/types-D8kjPlPR.d.cts +0 -2004
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_api_mocks = require("./api-mocks-CMB0IJFX.cjs");
2
+ const require_api_mocks = require("./api-mocks-BsUGpsim.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-CmytjGmi.cjs";
1
+ import { t as ApiCall } from "./api-mocks-CBa3MWVP.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-CmytjGmi.mjs";
1
+ import { t as ApiCall } from "./api-mocks-CBa3MWVP.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 { n as API_MANIFEST, o as ApiCall, s as ApiManifest, t as API_JOURNAL } from "./api-mocks-C0uY0UBb.mjs";
1
+ import { n as API_MANIFEST, o as ApiCall, s as ApiManifest, t as API_JOURNAL } from "./api-mocks-DH1C7any.mjs";
2
2
  import { Schema } from "effect";
3
3
  import { readFile } from "node:fs/promises";
4
4
  //#region src/mock-api/context.ts
@@ -150,6 +150,8 @@ const validationExecution = (identity, startedAt) => ({
150
150
  const API_PROGRAM = "workspace/.anpord/api/program.json";
151
151
  const API_MANIFEST = ".anpord/api/manifest.json";
152
152
  const API_JOURNAL = ".anpord/api/calls.jsonl";
153
+ const CLI_JOURNAL = ".anpord/cli-calls.jsonl";
154
+ const MCP_JOURNAL = ".anpord/mcp-calls.jsonl";
153
155
  const API_READY = "ANPORD_API_READY=";
154
156
  const API_REPORTED_LIMITS = {
155
157
  budget: 96e3,
@@ -228,6 +230,12 @@ Object.defineProperty(exports, "ApiProgram", {
228
230
  return ApiProgram;
229
231
  }
230
232
  });
233
+ Object.defineProperty(exports, "CLI_JOURNAL", {
234
+ enumerable: true,
235
+ get: function() {
236
+ return CLI_JOURNAL;
237
+ }
238
+ });
231
239
  Object.defineProperty(exports, "EVIDENCE_LIMITS", {
232
240
  enumerable: true,
233
241
  get: function() {
@@ -240,6 +248,12 @@ Object.defineProperty(exports, "EvalValidations", {
240
248
  return EvalValidations;
241
249
  }
242
250
  });
251
+ Object.defineProperty(exports, "MCP_JOURNAL", {
252
+ enumerable: true,
253
+ get: function() {
254
+ return MCP_JOURNAL;
255
+ }
256
+ });
243
257
  Object.defineProperty(exports, "REPORTED_LIMITS", {
244
258
  enumerable: true,
245
259
  get: function() {
@@ -183,8 +183,6 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
183
183
  truncated: typeof Schema.Boolean;
184
184
  }>>>;
185
185
  }>, never, {
186
- readonly api: string;
187
- } & {
188
186
  readonly output: {
189
187
  readonly text: string;
190
188
  readonly format: "text" | "json";
@@ -199,11 +197,13 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
199
197
  readonly truncated: boolean;
200
198
  };
201
199
  } & {
202
- readonly path: string;
200
+ readonly api: string;
203
201
  } & {
204
- readonly index: number;
202
+ readonly path: string;
205
203
  } & {
206
204
  readonly method: string;
205
+ } & {
206
+ readonly index: number;
207
207
  } & {
208
208
  readonly matched: boolean;
209
209
  } & {
@@ -183,8 +183,6 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
183
183
  truncated: typeof Schema.Boolean;
184
184
  }>>>;
185
185
  }>, never, {
186
- readonly api: string;
187
- } & {
188
186
  readonly output: {
189
187
  readonly text: string;
190
188
  readonly format: "text" | "json";
@@ -199,11 +197,13 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
199
197
  readonly truncated: boolean;
200
198
  };
201
199
  } & {
202
- readonly path: string;
200
+ readonly api: string;
203
201
  } & {
204
- readonly index: number;
202
+ readonly path: string;
205
203
  } & {
206
204
  readonly method: string;
205
+ } & {
206
+ readonly index: number;
207
207
  } & {
208
208
  readonly matched: boolean;
209
209
  } & {
@@ -150,6 +150,8 @@ const validationExecution = (identity, startedAt) => ({
150
150
  const API_PROGRAM = "workspace/.anpord/api/program.json";
151
151
  const API_MANIFEST = ".anpord/api/manifest.json";
152
152
  const API_JOURNAL = ".anpord/api/calls.jsonl";
153
+ const CLI_JOURNAL = ".anpord/cli-calls.jsonl";
154
+ const MCP_JOURNAL = ".anpord/mcp-calls.jsonl";
153
155
  const API_READY = "ANPORD_API_READY=";
154
156
  const API_REPORTED_LIMITS = {
155
157
  budget: 96e3,
@@ -180,4 +182,4 @@ var ApiCall = class extends Schema.Class("ApiCall")({
180
182
  logs: Schema.Array(ReportedValue).pipe(Schema.maxItems(64))
181
183
  }) {};
182
184
  //#endregion
183
- export { validationExecution as _, API_REPORTED_LIMITS as a, ApiProgram as c, REPORTED_LIMITS as d, ReportedValidation as f, validationCapture as g, unavailableValue as h, API_READY as i, EVIDENCE_LIMITS as l, VALIDATION_TEXT_LIMIT as m, API_MANIFEST as n, ApiCall as o, VALIDATION_FRAME as p, API_PROGRAM as r, ApiManifest as s, API_JOURNAL as t, EvalValidations as u, validationSnapshot as v, redactSecrets as y };
185
+ export { unavailableValue as _, API_REPORTED_LIMITS as a, validationSnapshot as b, ApiProgram as c, EVIDENCE_LIMITS as d, EvalValidations as f, VALIDATION_TEXT_LIMIT as g, VALIDATION_FRAME as h, API_READY as i, CLI_JOURNAL as l, ReportedValidation as m, API_MANIFEST as n, ApiCall as o, REPORTED_LIMITS as p, API_PROGRAM as r, ApiManifest as s, API_JOURNAL as t, MCP_JOURNAL as u, validationCapture as v, redactSecrets as x, validationExecution as y };
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_runtime = require("./runtime-LjI7Hqj3.cjs");
2
+ const require_runtime = require("./runtime-BcX6BpI5.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-CmytjGmi.cjs";
1
+ import { t as ApiCall } from "./api-mocks-CBa3MWVP.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-CmytjGmi.mjs";
1
+ import { t as ApiCall } from "./api-mocks-CBa3MWVP.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-BTq5czA4.mjs";
1
+ import { n as withApi, t as runApiServers } from "./runtime-CjDUik7_.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-LjI7Hqj3.cjs");
2
+ const require_runtime = require("./runtime-BcX6BpI5.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-CmytjGmi.cjs";
1
+ import { t as ApiCall } from "./api-mocks-CBa3MWVP.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-CmytjGmi.mjs";
1
+ import { t as ApiCall } from "./api-mocks-CBa3MWVP.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-BTq5czA4.mjs";
1
+ import { i as endpoint, n as withApi, r as api } from "./runtime-CjDUik7_.mjs";
2
2
  export { api, endpoint, withApi };