@agentproto/io 0.1.0-alpha.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/LICENSE +21 -0
- package/README.md +23 -0
- package/dist/chunk-OT7HCK4P.mjs +28 -0
- package/dist/chunk-OT7HCK4P.mjs.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.mjs +14 -0
- package/dist/index.mjs.map +1 -0
- package/dist/manifest/index.d.ts +43 -0
- package/dist/manifest/index.mjs +28 -0
- package/dist/manifest/index.mjs.map +1 -0
- package/dist/types-DnXKP1Sj.d.ts +16 -0
- package/package.json +68 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 agentproto contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @agentproto/io
|
|
2
|
+
|
|
3
|
+
AIP-16 `IO.md` reference implementation. A composable schema block defining `inputs`, `outputs`, `inputsFiles`, and `outputsFiles` — the data-shape primitives reused by every manifest format that needs to declare what flows in and out of a runnable unit.
|
|
4
|
+
|
|
5
|
+
> **Status: 0.1.0-alpha.** Generated by `scripts/scaffold-aip.mjs` — `build()` and `validate()` bodies are TODOs.
|
|
6
|
+
|
|
7
|
+
Spec: <https://agentproto.sh/docs/aip-16>
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { defineIo } from "@agentproto/io"
|
|
13
|
+
|
|
14
|
+
const x = defineIo({
|
|
15
|
+
id: "my-io",
|
|
16
|
+
description: "Short purpose.",
|
|
17
|
+
// ...
|
|
18
|
+
})
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
MIT — see [LICENSE](./LICENSE).
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { createDoctype } from '@agentproto/define-doctype';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @agentproto/io v0.1.0-alpha
|
|
6
|
+
* AIP-16 IO.md `defineIo` reference implementation.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
var ioFrontmatterSchema = z.record(z.string(), z.any()).describe("Composable JSON Schema definitions for the four input/output blocks reused across manifest formats: inputs, outputs, inputsFiles, outputsFiles. Other AIPs reference these by $ref into their own schemas.");
|
|
10
|
+
var defineIo = createDoctype({
|
|
11
|
+
aip: 16,
|
|
12
|
+
name: "io",
|
|
13
|
+
validate(def) {
|
|
14
|
+
const result = ioFrontmatterSchema.safeParse(def);
|
|
15
|
+
if (!result.success) {
|
|
16
|
+
throw new Error(
|
|
17
|
+
`defineIo (AIP-16): ${result.error.issues.map((i) => `${i.path.join(".")}: ${i.message}`).join("; ")}`
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
build(def) {
|
|
22
|
+
return { ...def };
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export { defineIo, ioFrontmatterSchema };
|
|
27
|
+
//# sourceMappingURL=chunk-OT7HCK4P.mjs.map
|
|
28
|
+
//# sourceMappingURL=chunk-OT7HCK4P.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema.ts","../src/define-io.ts"],"names":[],"mappings":";;;;;;;;AAeO,IAAM,mBAAA,GAAsB,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,MAAA,EAAO,EAAG,CAAA,CAAE,GAAA,EAAK,CAAA,CAAE,QAAA,CAAS,4MAA4M;ACE/Q,IAAM,WAAW,aAAA,CAAsC;AAAA,EAC5D,GAAA,EAAK,EAAA;AAAA,EACL,IAAA,EAAM,IAAA;AAAA,EACN,SAAS,GAAA,EAAK;AACZ,IAAA,MAAM,MAAA,GAAS,mBAAA,CAAoB,SAAA,CAAU,GAAG,CAAA;AAChD,IAAA,IAAI,CAAC,OAAO,OAAA,EAAS;AACnB,MAAA,MAAM,IAAI,KAAA;AAAA,QACR,CAAA,mBAAA,EAAsB,OAAO,KAAA,CAAM,MAAA,CAChC,IAAI,CAAC,CAAA,KAAM,GAAG,CAAA,CAAE,IAAA,CAAK,KAAK,GAAG,CAAC,KAAK,CAAA,CAAE,OAAO,EAAE,CAAA,CAC9C,IAAA,CAAK,IAAI,CAAC,CAAA;AAAA,OACf;AAAA,IACF;AAAA,EAIF,CAAA;AAAA,EACA,MAAM,GAAA,EAAK;AAKT,IAAA,OAAO,EAAE,GAAG,GAAA,EAAI;AAAA,EAClB;AACF,CAAC","file":"chunk-OT7HCK4P.mjs","sourcesContent":["/**\n * AIP-16 IO.md frontmatter zod schema.\n *\n * Generated from `resources/aip-16/draft/IO.schema.json` via\n * json-schema-to-zod. Imported by both `define-io.ts` (TS path\n * validation) and `manifest/index.ts` (.md path validation) so every\n * field-level constraint runs in both authoring paths from a single\n * source of truth — re-run scaffold-aip to refresh after spec changes.\n *\n * Cross-field rules (if/then/allOf in JSON Schema) don't translate\n * cleanly and live in `define-io.ts`'s `validate(def)` instead.\n */\n\nimport { z } from \"zod\"\n\nexport const ioFrontmatterSchema = z.record(z.string(), z.any()).describe(\"Composable JSON Schema definitions for the four input/output blocks reused across manifest formats: inputs, outputs, inputsFiles, outputsFiles. Other AIPs reference these by $ref into their own schemas.\")\n\nexport type IoFrontmatter = z.infer<typeof ioFrontmatterSchema>\n","import { createDoctype } from \"@agentproto/define-doctype\"\nimport { ioFrontmatterSchema } from \"./schema.js\"\nimport type { IoDefinition, IoHandle } from \"./types.js\"\n\n/**\n * AIP-16 reference implementation of `defineIo`.\n *\n * Built on `createDoctype` so the cross-AIP invariants (id pattern,\n * description length, top-level freeze, \"defineIo (AIP-16): …\"\n * error prefix) run uniformly with every other AIP defineX.\n *\n * Field-level validation runs the schema-derived zod from\n * `./schema.ts` against the input. Same source of truth as the .md\n * path uses (`parseIoManifest`), so a malformed TS-authored\n * definition fails with the same diagnostic as a malformed manifest.\n * Cross-field rules go in `validate(def)` after the zod check.\n */\nexport const defineIo = createDoctype<IoDefinition, IoHandle>({\n aip: 16,\n name: \"io\",\n validate(def) {\n const result = ioFrontmatterSchema.safeParse(def)\n if (!result.success) {\n throw new Error(\n `defineIo (AIP-16): ${result.error.issues\n .map((i) => `${i.path.join(\".\")}: ${i.message}`)\n .join(\"; \")}`,\n )\n }\n // TODO: spec-16-specific cross-field rules (if/then/allOf in\n // the JSON Schema) — those don't translate to zod cleanly and\n // belong here. See @agentproto/operator's autonomy=gated rule.\n },\n build(def) {\n // Default build: spread the validated definition into a fresh object.\n // Hand-tune for nested freezing (Object.freeze on arrays/objects) and\n // for fields that need defaults applied — see @agentproto/operator\n // for a reference shape.\n return { ...def } as IoHandle\n },\n})\n"]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { I as IoDefinition } from './types-DnXKP1Sj.js';
|
|
2
|
+
export { a as IoHandle } from './types-DnXKP1Sj.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* AIP-16 reference implementation of `defineIo`.
|
|
6
|
+
*
|
|
7
|
+
* Built on `createDoctype` so the cross-AIP invariants (id pattern,
|
|
8
|
+
* description length, top-level freeze, "defineIo (AIP-16): …"
|
|
9
|
+
* error prefix) run uniformly with every other AIP defineX.
|
|
10
|
+
*
|
|
11
|
+
* Field-level validation runs the schema-derived zod from
|
|
12
|
+
* `./schema.ts` against the input. Same source of truth as the .md
|
|
13
|
+
* path uses (`parseIoManifest`), so a malformed TS-authored
|
|
14
|
+
* definition fails with the same diagnostic as a malformed manifest.
|
|
15
|
+
* Cross-field rules go in `validate(def)` after the zod check.
|
|
16
|
+
*/
|
|
17
|
+
declare const defineIo: (def: IoDefinition) => Readonly<IoDefinition>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @agentproto/io — AIP-16 IO.md `defineIo` reference impl.
|
|
21
|
+
*
|
|
22
|
+
* A composable schema block defining `inputs`, `outputs`, `inputsFiles`, and `outputsFiles` — the data-shape primitives reused by every manifest format that needs to declare what flows in and out of a runnable unit.
|
|
23
|
+
*
|
|
24
|
+
* Spec: https://agentproto.sh/docs/aip-16
|
|
25
|
+
*
|
|
26
|
+
* Authoring paths:
|
|
27
|
+
* - TS: `defineIo({...})` → `IoHandle`
|
|
28
|
+
* - MD: `parseIoManifest(src) → ioFromManifest({...})` → `IoHandle`
|
|
29
|
+
*/
|
|
30
|
+
declare const SPEC_NAME: "agentio/v1";
|
|
31
|
+
declare const SPEC_VERSION: "1.0.0-alpha";
|
|
32
|
+
|
|
33
|
+
export { IoDefinition, SPEC_NAME, SPEC_VERSION, defineIo };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { defineIo } from './chunk-OT7HCK4P.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @agentproto/io v0.1.0-alpha
|
|
5
|
+
* AIP-16 IO.md `defineIo` reference implementation.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// src/index.ts
|
|
9
|
+
var SPEC_NAME = "agentio/v1";
|
|
10
|
+
var SPEC_VERSION = "1.0.0-alpha";
|
|
11
|
+
|
|
12
|
+
export { SPEC_NAME, SPEC_VERSION };
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAYO,IAAM,SAAA,GAAY;AAClB,IAAM,YAAA,GAAe","file":"index.mjs","sourcesContent":["/**\n * @agentproto/io — AIP-16 IO.md `defineIo` reference impl.\n *\n * A composable schema block defining `inputs`, `outputs`, `inputsFiles`, and `outputsFiles` — the data-shape primitives reused by every manifest format that needs to declare what flows in and out of a runnable unit.\n *\n * Spec: https://agentproto.sh/docs/aip-16\n *\n * Authoring paths:\n * - TS: `defineIo({...})` → `IoHandle`\n * - MD: `parseIoManifest(src) → ioFromManifest({...})` → `IoHandle`\n */\n\nexport const SPEC_NAME = \"agentio/v1\" as const\nexport const SPEC_VERSION = \"1.0.0-alpha\" as const\n\nexport { defineIo } from \"./define-io.js\"\nexport type { IoDefinition, IoHandle } from \"./types.js\"\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { a as IoHandle } from '../types-DnXKP1Sj.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* AIP-16 IO.md frontmatter zod schema.
|
|
6
|
+
*
|
|
7
|
+
* Generated from `resources/aip-16/draft/IO.schema.json` via
|
|
8
|
+
* json-schema-to-zod. Imported by both `define-io.ts` (TS path
|
|
9
|
+
* validation) and `manifest/index.ts` (.md path validation) so every
|
|
10
|
+
* field-level constraint runs in both authoring paths from a single
|
|
11
|
+
* source of truth — re-run scaffold-aip to refresh after spec changes.
|
|
12
|
+
*
|
|
13
|
+
* Cross-field rules (if/then/allOf in JSON Schema) don't translate
|
|
14
|
+
* cleanly and live in `define-io.ts`'s `validate(def)` instead.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
declare const ioFrontmatterSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
18
|
+
type IoFrontmatter = z.infer<typeof ioFrontmatterSchema>;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* AIP-16 IO.md sidecar parser + manifest-to-handle constructor.
|
|
22
|
+
*
|
|
23
|
+
* Mirror of `@agentproto/tool/manifest` and `@agentproto/driver/manifest`:
|
|
24
|
+
* the .md provides metadata; the TS module supplies any spec-specific
|
|
25
|
+
* runtime bits (schemas, execute bodies, …) that can't live in
|
|
26
|
+
* frontmatter. Both inputs end up in `defineIo` so the cross-AIP
|
|
27
|
+
* invariants run uniformly.
|
|
28
|
+
*
|
|
29
|
+
*
|
|
30
|
+
* The frontmatter zod schema below was generated from
|
|
31
|
+
* `resources/aip-16/draft/IO.schema.json` via json-schema-to-zod.
|
|
32
|
+
* Re-run scaffold-aip to refresh after spec changes (or hand-tune
|
|
33
|
+
* any constraint the converter doesn't capture cleanly).
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
interface IoManifest {
|
|
37
|
+
frontmatter: IoFrontmatter;
|
|
38
|
+
body: string;
|
|
39
|
+
}
|
|
40
|
+
declare function parseIoManifest(source: string): IoManifest;
|
|
41
|
+
declare function ioFromManifest(manifest: IoManifest): IoHandle;
|
|
42
|
+
|
|
43
|
+
export { type IoFrontmatter, type IoManifest, ioFromManifest, ioFrontmatterSchema, parseIoManifest };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ioFrontmatterSchema, defineIo } from '../chunk-OT7HCK4P.mjs';
|
|
2
|
+
export { ioFrontmatterSchema } from '../chunk-OT7HCK4P.mjs';
|
|
3
|
+
import matter from 'gray-matter';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @agentproto/io v0.1.0-alpha
|
|
7
|
+
* AIP-16 IO.md `defineIo` reference implementation.
|
|
8
|
+
*/
|
|
9
|
+
function parseIoManifest(source) {
|
|
10
|
+
const parsed = matter(source);
|
|
11
|
+
if (Object.keys(parsed.data).length === 0) {
|
|
12
|
+
throw new Error("parseIoManifest: missing or empty frontmatter");
|
|
13
|
+
}
|
|
14
|
+
const result = ioFrontmatterSchema.safeParse(parsed.data);
|
|
15
|
+
if (!result.success) {
|
|
16
|
+
throw new Error(
|
|
17
|
+
`parseIoManifest: invalid frontmatter \u2014 ${result.error.issues.map((i) => `${i.path.join(".")}: ${i.message}`).join("; ")}`
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
return { frontmatter: result.data, body: parsed.content };
|
|
21
|
+
}
|
|
22
|
+
function ioFromManifest(manifest) {
|
|
23
|
+
return defineIo(manifest.frontmatter);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { ioFromManifest, parseIoManifest };
|
|
27
|
+
//# sourceMappingURL=index.mjs.map
|
|
28
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/manifest/index.ts"],"names":[],"mappings":";;;;;;;;AA8BO,SAAS,gBAAgB,MAAA,EAA4B;AAC1D,EAAA,MAAM,MAAA,GAAS,OAAO,MAAM,CAAA;AAC5B,EAAA,IAAI,OAAO,IAAA,CAAK,MAAA,CAAO,IAAI,CAAA,CAAE,WAAW,CAAA,EAAG;AACzC,IAAA,MAAM,IAAI,MAAM,+CAA+C,CAAA;AAAA,EACjE;AACA,EAAA,MAAM,MAAA,GAAS,mBAAA,CAAoB,SAAA,CAAU,MAAA,CAAO,IAAI,CAAA;AACxD,EAAA,IAAI,CAAC,OAAO,OAAA,EAAS;AACnB,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,CAAA,4CAAA,EAA0C,OAAO,KAAA,CAAM,MAAA,CACpD,IAAI,CAAC,CAAA,KAAM,GAAG,CAAA,CAAE,IAAA,CAAK,KAAK,GAAG,CAAC,KAAK,CAAA,CAAE,OAAO,EAAE,CAAA,CAC9C,IAAA,CAAK,IAAI,CAAC,CAAA;AAAA,KACf;AAAA,EACF;AACA,EAAA,OAAO,EAAE,WAAA,EAAa,MAAA,CAAO,IAAA,EAAM,IAAA,EAAM,OAAO,OAAA,EAAQ;AAC1D;AAEO,SAAS,eAAe,QAAA,EAAgC;AAK7D,EAAA,OAAO,QAAA,CAAS,SAAS,WAAsC,CAAA;AACjE","file":"index.mjs","sourcesContent":["/**\n * AIP-16 IO.md sidecar parser + manifest-to-handle constructor.\n *\n * Mirror of `@agentproto/tool/manifest` and `@agentproto/driver/manifest`:\n * the .md provides metadata; the TS module supplies any spec-specific\n * runtime bits (schemas, execute bodies, …) that can't live in\n * frontmatter. Both inputs end up in `defineIo` so the cross-AIP\n * invariants run uniformly.\n *\n *\n * The frontmatter zod schema below was generated from\n * `resources/aip-16/draft/IO.schema.json` via json-schema-to-zod.\n * Re-run scaffold-aip to refresh after spec changes (or hand-tune\n * any constraint the converter doesn't capture cleanly).\n */\n\nimport matter from \"gray-matter\"\nimport { ioFrontmatterSchema, type IoFrontmatter } from \"../schema.js\"\nimport { defineIo } from \"../define-io.js\"\nimport type { IoDefinition, IoHandle } from \"../types.js\"\n\n// Re-export so consumers can import the schema + inferred type either\n// from \"@@agentproto/io/manifest\" or directly from \"@@agentproto/io/schema\".\nexport { ioFrontmatterSchema, type IoFrontmatter }\n\nexport interface IoManifest {\n frontmatter: IoFrontmatter\n body: string\n}\n\nexport function parseIoManifest(source: string): IoManifest {\n const parsed = matter(source)\n if (Object.keys(parsed.data).length === 0) {\n throw new Error(\"parseIoManifest: missing or empty frontmatter\")\n }\n const result = ioFrontmatterSchema.safeParse(parsed.data)\n if (!result.success) {\n throw new Error(\n `parseIoManifest: invalid frontmatter — ${result.error.issues\n .map((i) => `${i.path.join(\".\")}: ${i.message}`)\n .join(\"; \")}`,\n )\n }\n return { frontmatter: result.data, body: parsed.content }\n}\n\nexport function ioFromManifest(manifest: IoManifest): IoHandle {\n // The zod-validated frontmatter is structurally compatible with\n // IoDefinition; the cast pins the typing once the manifest\n // schema and the TS interface diverge (e.g. handle has frozen fields\n // a literal config doesn't carry yet).\n return defineIo(manifest.frontmatter as unknown as IoDefinition)\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AIP-16 IoDefinition + IoHandle.
|
|
3
|
+
*
|
|
4
|
+
* `IoDefinition` was generated from
|
|
5
|
+
* `resources/aip-16/draft/IO.schema.json` via json-schema-to-typescript.
|
|
6
|
+
* `IoHandle` is the readonly view of the same shape; tighten it
|
|
7
|
+
* by hand for fields that get defaults applied in build().
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Composable JSON Schema definitions for the four input/output blocks reused across manifest formats: inputs, outputs, inputsFiles, outputsFiles. Other AIPs reference these by $ref into their own schemas.
|
|
11
|
+
*/
|
|
12
|
+
interface IoDefinition {
|
|
13
|
+
}
|
|
14
|
+
type IoHandle = Readonly<IoDefinition>;
|
|
15
|
+
|
|
16
|
+
export type { IoDefinition as I, IoHandle as a };
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agentproto/io",
|
|
3
|
+
"version": "0.1.0-alpha.0",
|
|
4
|
+
"description": "@agentproto/io — AIP-16 IO.md reference implementation. A composable schema block defining `inputs`, `outputs`, `inputsFiles`, and `outputsFiles` — the data-shape primitives reused by every manifest format that needs to declare what flows in and out of a runnable unit.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agentproto",
|
|
7
|
+
"aip-16",
|
|
8
|
+
"io",
|
|
9
|
+
"defineIo",
|
|
10
|
+
"open-standard",
|
|
11
|
+
"agentic"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://agentproto.sh/docs/aip-16",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/agentproto/ts",
|
|
17
|
+
"directory": "packages/io"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/agentproto/ts/issues"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"type": "module",
|
|
24
|
+
"main": "dist/index.mjs",
|
|
25
|
+
"module": "dist/index.mjs",
|
|
26
|
+
"types": "dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.mjs",
|
|
31
|
+
"default": "./dist/index.mjs"
|
|
32
|
+
},
|
|
33
|
+
"./manifest": {
|
|
34
|
+
"types": "./dist/manifest/index.d.ts",
|
|
35
|
+
"import": "./dist/manifest/index.mjs",
|
|
36
|
+
"default": "./dist/manifest/index.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./package.json": "./package.json"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist",
|
|
42
|
+
"README.md",
|
|
43
|
+
"LICENSE"
|
|
44
|
+
],
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"gray-matter": "^4.0.3",
|
|
50
|
+
"zod": "^4.4.3",
|
|
51
|
+
"@agentproto/define-doctype": "0.1.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/node": "^25.6.2",
|
|
55
|
+
"tsup": "^8.5.1",
|
|
56
|
+
"typescript": "^5.9.3",
|
|
57
|
+
"vitest": "^3.2.4",
|
|
58
|
+
"@agentproto/tooling": "0.1.0-alpha.0"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"dev": "tsup --watch",
|
|
62
|
+
"build": "tsup",
|
|
63
|
+
"clean": "rm -rf dist",
|
|
64
|
+
"check-types": "tsc --noEmit",
|
|
65
|
+
"test": "vitest run --passWithNoTests",
|
|
66
|
+
"test:watch": "vitest"
|
|
67
|
+
}
|
|
68
|
+
}
|