anpord 0.1.26 → 0.1.28
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-CMB0IJFX.cjs → api-mocks-BsUGpsim.cjs} +14 -0
- package/dist/{api-mocks-CmytjGmi.d.cts → api-mocks-CBa3MWVP.d.cts} +4 -4
- package/dist/{api-mocks-CmytjGmi.d.mts → api-mocks-CBa3MWVP.d.mts} +4 -4
- package/dist/{api-mocks-C0uY0UBb.mjs → api-mocks-DH1C7any.mjs} +3 -1
- 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 +540 -261
- package/dist/bin.mjs +538 -259
- package/dist/cli-runtime.cjs +3 -3
- package/dist/cli-runtime.mjs +3 -3
- package/dist/{compiler-BtVNqh3R.mjs → compiler-DDc7Towh.mjs} +35 -20
- package/dist/{compiler-s8dJGvE6.cjs → compiler-DKWUVkxB.cjs} +35 -20
- package/dist/{errors-ZfXkocHp.cjs → errors-D1L76YFH.cjs} +127 -106
- package/dist/{errors-B6JK0hbj.mjs → errors-DaYv6_WJ.mjs} +110 -101
- package/dist/{eval-definition-Dz3dHY1S.d.cts → eval-definition-CuuketNm.d.cts} +12 -12
- package/dist/{eval-definition-Dz3dHY1S.d.mts → eval-definition-CuuketNm.d.mts} +12 -12
- 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/index.cjs +2 -2
- package/dist/index.d.cts +1735 -189
- package/dist/index.d.mts +1735 -189
- package/dist/index.mjs +2 -2
- package/dist/mcp-runtime.cjs +4 -12
- package/dist/mcp-runtime.mjs +5 -13
- package/dist/{runtime-LjI7Hqj3.cjs → runtime-BcX6BpI5.cjs} +3 -9
- package/dist/{runtime-BTq5czA4.mjs → runtime-CjDUik7_.mjs} +3 -9
- package/dist/sandbox-env-B8cLIcku.cjs +44 -0
- package/dist/sandbox-env-s-smXj2C.mjs +9 -0
- package/dist/source.d.cts +1 -1
- package/dist/source.d.mts +1 -1
- package/dist/types-7YOtajZL.d.cts +462 -0
- package/dist/types-CwZvwO-F.d.mts +462 -0
- package/dist/validator-runtime.cjs +8 -7
- package/dist/validator-runtime.d.cts +1 -1
- package/dist/validator-runtime.d.mts +1 -1
- package/dist/validator-runtime.mjs +8 -7
- package/package.json +1 -1
- package/dist/types-BsW7R-jL.d.mts +0 -2004
- package/dist/types-D8kjPlPR.d.cts +0 -2004
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-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
|
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 { n as API_MANIFEST, o as ApiCall, s as ApiManifest, t as API_JOURNAL } from "./api-mocks-
|
|
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
|
|
200
|
+
readonly api: string;
|
|
203
201
|
} & {
|
|
204
|
-
readonly
|
|
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
|
|
200
|
+
readonly api: string;
|
|
203
201
|
} & {
|
|
204
|
-
readonly
|
|
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 {
|
|
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 };
|
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-BcX6BpI5.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-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-
|
|
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-
|
|
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-
|
|
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-
|
|
1
|
+
import { i as endpoint, n as withApi, r as api } from "./runtime-CjDUik7_.mjs";
|
|
2
2
|
export { api, endpoint, withApi };
|