@axiastudio/aioc 0.1.0-beta.6 → 0.1.0
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/README.md +48 -12
- package/dist/agent.d.ts +0 -1
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +0 -3
- package/dist/errors.d.ts +20 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +17 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/logger.d.ts +8 -2
- package/dist/logger.d.ts.map +1 -1
- package/dist/policy-outcomes.d.ts +26 -0
- package/dist/policy-outcomes.d.ts.map +1 -0
- package/dist/policy-outcomes.js +88 -0
- package/dist/policy.d.ts +11 -4
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +6 -1
- package/dist/proposal-hashing.d.ts +21 -0
- package/dist/proposal-hashing.d.ts.map +1 -0
- package/dist/proposal-hashing.js +31 -0
- package/dist/run-log-emitter.d.ts +2 -2
- package/dist/run-log-emitter.d.ts.map +1 -1
- package/dist/run-log-emitter.js +10 -4
- package/dist/run-record.d.ts +33 -1
- package/dist/run-record.d.ts.map +1 -1
- package/dist/run-recorder-runtime.d.ts +4 -1
- package/dist/run-recorder-runtime.d.ts.map +1 -1
- package/dist/run-recorder-runtime.js +10 -0
- package/dist/run.d.ts +1 -8
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +152 -79
- package/dist/suspended-proposals.d.ts +22 -0
- package/dist/suspended-proposals.d.ts.map +1 -0
- package/dist/suspended-proposals.js +55 -0
- package/dist/tool.d.ts +11 -2
- package/dist/tool.d.ts.map +1 -1
- package/dist/tool.js +5 -1
- package/package.json +4 -1
package/dist/tool.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.tool = tool;
|
|
4
|
+
const zod_1 = require("zod");
|
|
4
5
|
function tool(config) {
|
|
5
|
-
return
|
|
6
|
+
return {
|
|
7
|
+
...config,
|
|
8
|
+
parameters: config.parameters ?? zod_1.z.object({}),
|
|
9
|
+
};
|
|
6
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axiastudio/aioc",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"test:ci": "npm run lint && npm run build && node dist/tests/unit/index.js && node dist/tests/integration/index.js && node dist/tests/regression/index.js",
|
|
19
19
|
"test:ci:stability": "npm run test:ci && npm run test:ci",
|
|
20
20
|
"example:hello": "tsx src/examples/basic/hello-world.ts",
|
|
21
|
+
"example:policy": "tsx src/examples/basic/policy.ts",
|
|
22
|
+
"example:approval-required": "tsx src/examples/basic/approval-required.ts",
|
|
23
|
+
"example:approval-evidence": "tsx src/examples/basic/approval-evidence.ts",
|
|
21
24
|
"example:tool-policy": "tsx src/examples/basic/tools.ts",
|
|
22
25
|
"example:run-record": "tsx src/examples/basic/run-record-sink.ts",
|
|
23
26
|
"example:rru:01-extract": "tsx src/examples/run-record-utils-minimal/01-extract-tool-calls.ts",
|