@aggrega-ai/aggrega-abi 0.0.0-stage → 0.9.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 +202 -0
- package/README.md +23 -2
- package/dist/abi_version_enums_gen.d.ts +1 -0
- package/dist/abi_version_enums_gen.js +33 -0
- package/dist/annotationtransform_gen.d.ts +56 -0
- package/dist/annotationtransform_gen.js +385 -0
- package/dist/cbor_gen.d.ts +28 -0
- package/dist/cbor_gen.js +413 -0
- package/dist/cli_gen.d.ts +11 -0
- package/dist/cli_gen.js +75 -0
- package/dist/describe_gen.d.ts +165 -0
- package/dist/describe_gen.js +1154 -0
- package/dist/diagnostic_enums_gen.d.ts +3 -0
- package/dist/diagnostic_enums_gen.js +27 -0
- package/dist/diagnostic_gen.d.ts +45 -0
- package/dist/diagnostic_gen.js +309 -0
- package/dist/frp_gen.d.ts +97 -0
- package/dist/frp_gen.js +731 -0
- package/dist/hostfunc_error_enums_gen.d.ts +13 -0
- package/dist/hostfunc_error_enums_gen.js +35 -0
- package/dist/import_gen.d.ts +159 -0
- package/dist/import_gen.js +1050 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +51 -0
- package/dist/ir_gen.d.ts +180 -0
- package/dist/ir_gen.js +1640 -0
- package/dist/linter_gen.d.ts +45 -0
- package/dist/linter_gen.js +374 -0
- package/dist/mutator_gen.d.ts +64 -0
- package/dist/mutator_gen.js +448 -0
- package/dist/orderedmap_gen.d.ts +5 -0
- package/dist/orderedmap_gen.js +186 -0
- package/dist/parse_gen.d.ts +60 -0
- package/dist/parse_gen.js +364 -0
- package/dist/policy_gen.d.ts +69 -0
- package/dist/policy_gen.js +461 -0
- package/dist/providerrender_gen.d.ts +495 -0
- package/dist/providerrender_gen.js +3756 -0
- package/dist/servewire_gen.d.ts +1643 -0
- package/dist/servewire_gen.js +3035 -0
- package/package.json +30 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @aggrega-ai/aggrega-abi
|
|
3
|
+
*
|
|
4
|
+
* Portable codec for the Aggrega Wasm plugin ABI. The socket codec — the
|
|
5
|
+
* typed payloads that cross the host/guest boundary plus their JSON
|
|
6
|
+
* encode/decode — is generated into this package from the canonical
|
|
7
|
+
* schemas. The encoders write object fields in schema order, sort a plain
|
|
8
|
+
* map's keys, write a map the schema marks order-preserving — a Map — in
|
|
9
|
+
* the order it holds, and carry opaque values verbatim, so the wire is
|
|
10
|
+
* byte-identical to the Go and Rust codecs generated from the same schema.
|
|
11
|
+
* A type holding such a Map decodes its JSON member by member, so a key
|
|
12
|
+
* such as "8080", which JSON.parse would move to the front, keeps its
|
|
13
|
+
* place. The codec is
|
|
14
|
+
* consumable directly by plugin authors working against the raw Extism
|
|
15
|
+
* runtime, and is re-exported by the TypeScript Plugin Development Kit.
|
|
16
|
+
*
|
|
17
|
+
* Contract floor: v1beta1.
|
|
18
|
+
*/
|
|
19
|
+
export * from "./abi_version_enums_gen.ts";
|
|
20
|
+
export * from "./cli_gen.ts";
|
|
21
|
+
export * from "./describe_gen.ts";
|
|
22
|
+
export * from "./diagnostic_enums_gen.ts";
|
|
23
|
+
export * from "./diagnostic_gen.ts";
|
|
24
|
+
export * from "./hostfunc_error_enums_gen.ts";
|
|
25
|
+
export * from "./frp_gen.ts";
|
|
26
|
+
export * from "./mutator_gen.ts";
|
|
27
|
+
export * from "./linter_gen.ts";
|
|
28
|
+
export * from "./ir_gen.ts";
|
|
29
|
+
export * from "./policy_gen.ts";
|
|
30
|
+
export * from "./annotationtransform_gen.ts";
|
|
31
|
+
export * from "./providerrender_gen.ts";
|
|
32
|
+
export * from "./parse_gen.ts";
|
|
33
|
+
export * from "./import_gen.ts";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// Copyright 2026 Cognitio s.r.l.
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
/**
|
|
20
|
+
* @aggrega-ai/aggrega-abi
|
|
21
|
+
*
|
|
22
|
+
* Portable codec for the Aggrega Wasm plugin ABI. The socket codec — the
|
|
23
|
+
* typed payloads that cross the host/guest boundary plus their JSON
|
|
24
|
+
* encode/decode — is generated into this package from the canonical
|
|
25
|
+
* schemas. The encoders write object fields in schema order, sort a plain
|
|
26
|
+
* map's keys, write a map the schema marks order-preserving — a Map — in
|
|
27
|
+
* the order it holds, and carry opaque values verbatim, so the wire is
|
|
28
|
+
* byte-identical to the Go and Rust codecs generated from the same schema.
|
|
29
|
+
* A type holding such a Map decodes its JSON member by member, so a key
|
|
30
|
+
* such as "8080", which JSON.parse would move to the front, keeps its
|
|
31
|
+
* place. The codec is
|
|
32
|
+
* consumable directly by plugin authors working against the raw Extism
|
|
33
|
+
* runtime, and is re-exported by the TypeScript Plugin Development Kit.
|
|
34
|
+
*
|
|
35
|
+
* Contract floor: v1beta1.
|
|
36
|
+
*/
|
|
37
|
+
__exportStar(require("./abi_version_enums_gen.js"), exports);
|
|
38
|
+
__exportStar(require("./cli_gen.js"), exports);
|
|
39
|
+
__exportStar(require("./describe_gen.js"), exports);
|
|
40
|
+
__exportStar(require("./diagnostic_enums_gen.js"), exports);
|
|
41
|
+
__exportStar(require("./diagnostic_gen.js"), exports);
|
|
42
|
+
__exportStar(require("./hostfunc_error_enums_gen.js"), exports);
|
|
43
|
+
__exportStar(require("./frp_gen.js"), exports);
|
|
44
|
+
__exportStar(require("./mutator_gen.js"), exports);
|
|
45
|
+
__exportStar(require("./linter_gen.js"), exports);
|
|
46
|
+
__exportStar(require("./ir_gen.js"), exports);
|
|
47
|
+
__exportStar(require("./policy_gen.js"), exports);
|
|
48
|
+
__exportStar(require("./annotationtransform_gen.js"), exports);
|
|
49
|
+
__exportStar(require("./providerrender_gen.js"), exports);
|
|
50
|
+
__exportStar(require("./parse_gen.js"), exports);
|
|
51
|
+
__exportStar(require("./import_gen.js"), exports);
|
package/dist/ir_gen.d.ts
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { CborDec } from "./cbor_gen.ts";
|
|
2
|
+
export interface Maintainer {
|
|
3
|
+
name: string;
|
|
4
|
+
email?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface FieldProvenance {
|
|
8
|
+
origin: string;
|
|
9
|
+
side?: string;
|
|
10
|
+
annotation_key?: string;
|
|
11
|
+
annotation_source?: string;
|
|
12
|
+
overridden_annotation?: FieldProvenance;
|
|
13
|
+
}
|
|
14
|
+
export interface AttachmentConnection {
|
|
15
|
+
socket: string;
|
|
16
|
+
alias: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IRFeatureEntry {
|
|
19
|
+
type: string;
|
|
20
|
+
resolved_version: string;
|
|
21
|
+
labels?: Map<string, string>;
|
|
22
|
+
catalog_annotations?: Map<string, string>;
|
|
23
|
+
binding?: string;
|
|
24
|
+
values?: unknown;
|
|
25
|
+
infra?: unknown;
|
|
26
|
+
inject?: unknown;
|
|
27
|
+
origin?: string;
|
|
28
|
+
annotation_key?: string;
|
|
29
|
+
annotation_source?: string;
|
|
30
|
+
values_provenance?: Map<string, FieldProvenance>;
|
|
31
|
+
infra_provenance?: Map<string, FieldProvenance>;
|
|
32
|
+
sensitive?: boolean;
|
|
33
|
+
sensitive_inject?: unknown;
|
|
34
|
+
sensitive_payload_leaves?: string[];
|
|
35
|
+
connection?: AttachmentConnection;
|
|
36
|
+
realization?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface IRBoundaryFeature {
|
|
39
|
+
type: string;
|
|
40
|
+
infra?: unknown;
|
|
41
|
+
sensitive_payload_leaves?: string[];
|
|
42
|
+
realization?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface CatalogMetadata {
|
|
45
|
+
maintainers?: Maintainer[];
|
|
46
|
+
license?: string;
|
|
47
|
+
repository?: string;
|
|
48
|
+
home?: string;
|
|
49
|
+
keywords?: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface IRNode {
|
|
52
|
+
description?: string;
|
|
53
|
+
labels: Map<string, string>;
|
|
54
|
+
component: string;
|
|
55
|
+
resolved_version: string;
|
|
56
|
+
sync_wave?: number;
|
|
57
|
+
boundary_path?: string;
|
|
58
|
+
subsystem_path?: string;
|
|
59
|
+
synthesized_subsystem?: boolean;
|
|
60
|
+
synthesized_boundary?: boolean;
|
|
61
|
+
catalog_metadata?: CatalogMetadata;
|
|
62
|
+
catalog_annotations?: Map<string, string>;
|
|
63
|
+
release_annotations?: Map<string, string>;
|
|
64
|
+
aggregate_annotations?: Map<string, string>;
|
|
65
|
+
self_inject?: unknown;
|
|
66
|
+
source_file?: string;
|
|
67
|
+
uses?: unknown;
|
|
68
|
+
sensitive_payload_leaves?: string[];
|
|
69
|
+
}
|
|
70
|
+
export interface IREdge {
|
|
71
|
+
source: string;
|
|
72
|
+
target: string;
|
|
73
|
+
socket?: string;
|
|
74
|
+
alias?: string;
|
|
75
|
+
socket_declaration: string;
|
|
76
|
+
origin_feature?: string;
|
|
77
|
+
origin_feature_instance?: string;
|
|
78
|
+
origin_release?: boolean;
|
|
79
|
+
values?: unknown;
|
|
80
|
+
infra?: unknown;
|
|
81
|
+
inject?: unknown;
|
|
82
|
+
sensitive_payload_leaves?: string[];
|
|
83
|
+
}
|
|
84
|
+
export interface IRMetadata {
|
|
85
|
+
aggregate_name: string;
|
|
86
|
+
}
|
|
87
|
+
export interface IRProvenance {
|
|
88
|
+
schema_version: string;
|
|
89
|
+
compiler_version: string;
|
|
90
|
+
aggregate_version: string;
|
|
91
|
+
manifest_version: string;
|
|
92
|
+
release_version: string;
|
|
93
|
+
}
|
|
94
|
+
export interface IRSpec {
|
|
95
|
+
nodes: Map<string, IRNode>;
|
|
96
|
+
edges: IREdge[];
|
|
97
|
+
values_mapping: Map<string, unknown>;
|
|
98
|
+
infra_mapping: Map<string, unknown>;
|
|
99
|
+
feature_values_mapping: Map<string, Map<string, IRFeatureEntry>>;
|
|
100
|
+
boundary_features?: Map<string, Map<string, IRBoundaryFeature>>;
|
|
101
|
+
provenance: IRProvenance;
|
|
102
|
+
}
|
|
103
|
+
export interface IRGraph {
|
|
104
|
+
apiVersion: string;
|
|
105
|
+
kind: string;
|
|
106
|
+
metadata: IRMetadata;
|
|
107
|
+
spec: IRSpec;
|
|
108
|
+
}
|
|
109
|
+
export declare function encodeMaintainer(v: Maintainer): string;
|
|
110
|
+
export declare function decodeMaintainer(data: string): Maintainer;
|
|
111
|
+
export declare function encodeFieldProvenance(v: FieldProvenance): string;
|
|
112
|
+
export declare function decodeFieldProvenance(data: string): FieldProvenance;
|
|
113
|
+
export declare function encodeAttachmentConnection(v: AttachmentConnection): string;
|
|
114
|
+
export declare function decodeAttachmentConnection(data: string): AttachmentConnection;
|
|
115
|
+
export declare function encodeIRFeatureEntry(v: IRFeatureEntry): string;
|
|
116
|
+
export declare function decodeIRFeatureEntry(data: string): IRFeatureEntry;
|
|
117
|
+
export declare function encodeIRBoundaryFeature(v: IRBoundaryFeature): string;
|
|
118
|
+
export declare function decodeIRBoundaryFeature(data: string): IRBoundaryFeature;
|
|
119
|
+
export declare function encodeCatalogMetadata(v: CatalogMetadata): string;
|
|
120
|
+
export declare function decodeCatalogMetadata(data: string): CatalogMetadata;
|
|
121
|
+
export declare function encodeIRNode(v: IRNode): string;
|
|
122
|
+
export declare function decodeIRNode(data: string): IRNode;
|
|
123
|
+
export declare function encodeIREdge(v: IREdge): string;
|
|
124
|
+
export declare function decodeIREdge(data: string): IREdge;
|
|
125
|
+
export declare function encodeIRMetadata(v: IRMetadata): string;
|
|
126
|
+
export declare function decodeIRMetadata(data: string): IRMetadata;
|
|
127
|
+
export declare function encodeIRProvenance(v: IRProvenance): string;
|
|
128
|
+
export declare function decodeIRProvenance(data: string): IRProvenance;
|
|
129
|
+
export declare function encodeIRSpec(v: IRSpec): string;
|
|
130
|
+
export declare function decodeIRSpec(data: string): IRSpec;
|
|
131
|
+
export declare function encodeIRGraph(v: IRGraph): string;
|
|
132
|
+
export declare function decodeIRGraph(data: string): IRGraph;
|
|
133
|
+
export declare function encodeCBORMaintainer(v: Maintainer): Uint8Array;
|
|
134
|
+
export declare function appendCBORMaintainer(out: number[], v: Maintainer): void;
|
|
135
|
+
export declare function decodeCBORMaintainer(data: Uint8Array): Maintainer;
|
|
136
|
+
export declare function decodeCBORMaintainerFrom(dec: CborDec): Maintainer;
|
|
137
|
+
export declare function encodeCBORFieldProvenance(v: FieldProvenance): Uint8Array;
|
|
138
|
+
export declare function appendCBORFieldProvenance(out: number[], v: FieldProvenance): void;
|
|
139
|
+
export declare function decodeCBORFieldProvenance(data: Uint8Array): FieldProvenance;
|
|
140
|
+
export declare function decodeCBORFieldProvenanceFrom(dec: CborDec): FieldProvenance;
|
|
141
|
+
export declare function encodeCBORAttachmentConnection(v: AttachmentConnection): Uint8Array;
|
|
142
|
+
export declare function appendCBORAttachmentConnection(out: number[], v: AttachmentConnection): void;
|
|
143
|
+
export declare function decodeCBORAttachmentConnection(data: Uint8Array): AttachmentConnection;
|
|
144
|
+
export declare function decodeCBORAttachmentConnectionFrom(dec: CborDec): AttachmentConnection;
|
|
145
|
+
export declare function encodeCBORIRFeatureEntry(v: IRFeatureEntry): Uint8Array;
|
|
146
|
+
export declare function appendCBORIRFeatureEntry(out: number[], v: IRFeatureEntry): void;
|
|
147
|
+
export declare function decodeCBORIRFeatureEntry(data: Uint8Array): IRFeatureEntry;
|
|
148
|
+
export declare function decodeCBORIRFeatureEntryFrom(dec: CborDec): IRFeatureEntry;
|
|
149
|
+
export declare function encodeCBORIRBoundaryFeature(v: IRBoundaryFeature): Uint8Array;
|
|
150
|
+
export declare function appendCBORIRBoundaryFeature(out: number[], v: IRBoundaryFeature): void;
|
|
151
|
+
export declare function decodeCBORIRBoundaryFeature(data: Uint8Array): IRBoundaryFeature;
|
|
152
|
+
export declare function decodeCBORIRBoundaryFeatureFrom(dec: CborDec): IRBoundaryFeature;
|
|
153
|
+
export declare function encodeCBORCatalogMetadata(v: CatalogMetadata): Uint8Array;
|
|
154
|
+
export declare function appendCBORCatalogMetadata(out: number[], v: CatalogMetadata): void;
|
|
155
|
+
export declare function decodeCBORCatalogMetadata(data: Uint8Array): CatalogMetadata;
|
|
156
|
+
export declare function decodeCBORCatalogMetadataFrom(dec: CborDec): CatalogMetadata;
|
|
157
|
+
export declare function encodeCBORIRNode(v: IRNode): Uint8Array;
|
|
158
|
+
export declare function appendCBORIRNode(out: number[], v: IRNode): void;
|
|
159
|
+
export declare function decodeCBORIRNode(data: Uint8Array): IRNode;
|
|
160
|
+
export declare function decodeCBORIRNodeFrom(dec: CborDec): IRNode;
|
|
161
|
+
export declare function encodeCBORIREdge(v: IREdge): Uint8Array;
|
|
162
|
+
export declare function appendCBORIREdge(out: number[], v: IREdge): void;
|
|
163
|
+
export declare function decodeCBORIREdge(data: Uint8Array): IREdge;
|
|
164
|
+
export declare function decodeCBORIREdgeFrom(dec: CborDec): IREdge;
|
|
165
|
+
export declare function encodeCBORIRMetadata(v: IRMetadata): Uint8Array;
|
|
166
|
+
export declare function appendCBORIRMetadata(out: number[], v: IRMetadata): void;
|
|
167
|
+
export declare function decodeCBORIRMetadata(data: Uint8Array): IRMetadata;
|
|
168
|
+
export declare function decodeCBORIRMetadataFrom(dec: CborDec): IRMetadata;
|
|
169
|
+
export declare function encodeCBORIRProvenance(v: IRProvenance): Uint8Array;
|
|
170
|
+
export declare function appendCBORIRProvenance(out: number[], v: IRProvenance): void;
|
|
171
|
+
export declare function decodeCBORIRProvenance(data: Uint8Array): IRProvenance;
|
|
172
|
+
export declare function decodeCBORIRProvenanceFrom(dec: CborDec): IRProvenance;
|
|
173
|
+
export declare function encodeCBORIRSpec(v: IRSpec): Uint8Array;
|
|
174
|
+
export declare function appendCBORIRSpec(out: number[], v: IRSpec): void;
|
|
175
|
+
export declare function decodeCBORIRSpec(data: Uint8Array): IRSpec;
|
|
176
|
+
export declare function decodeCBORIRSpecFrom(dec: CborDec): IRSpec;
|
|
177
|
+
export declare function encodeCBORIRGraph(v: IRGraph): Uint8Array;
|
|
178
|
+
export declare function appendCBORIRGraph(out: number[], v: IRGraph): void;
|
|
179
|
+
export declare function decodeCBORIRGraph(data: Uint8Array): IRGraph;
|
|
180
|
+
export declare function decodeCBORIRGraphFrom(dec: CborDec): IRGraph;
|