@cosmonic-labs/openapi2mcp 0.9.0 → 0.10.1
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 +1 -1
- package/dist/interfaces/wasi-cli-environment.d.ts +1 -1
- package/dist/interfaces/wasi-cli-exit.d.ts +1 -1
- package/dist/interfaces/wasi-cli-run.d.ts +1 -1
- package/dist/interfaces/wasi-cli-stderr.d.ts +1 -1
- package/dist/interfaces/wasi-cli-stdin.d.ts +1 -1
- package/dist/interfaces/wasi-cli-stdout.d.ts +1 -1
- package/dist/interfaces/wasi-cli-terminal-input.d.ts +1 -1
- package/dist/interfaces/wasi-cli-terminal-output.d.ts +1 -1
- package/dist/interfaces/wasi-cli-terminal-stderr.d.ts +1 -1
- package/dist/interfaces/wasi-cli-terminal-stdin.d.ts +1 -1
- package/dist/interfaces/wasi-cli-terminal-stdout.d.ts +1 -1
- package/dist/interfaces/wasi-clocks-monotonic-clock.d.ts +4 -0
- package/dist/interfaces/wasi-clocks-wall-clock.d.ts +1 -1
- package/dist/interfaces/wasi-filesystem-preopens.d.ts +1 -1
- package/dist/interfaces/wasi-filesystem-types.d.ts +19 -22
- package/dist/interfaces/wasi-io-error.d.ts +1 -2
- package/dist/interfaces/wasi-io-poll.d.ts +3 -1
- package/dist/interfaces/wasi-io-streams.d.ts +4 -3
- package/dist/interfaces/wasi-random-insecure-seed.d.ts +1 -1
- package/dist/openapi2mcp.core.wasm +0 -0
- package/dist/openapi2mcp.d.ts +19 -20
- package/dist/openapi2mcp.js +10312 -4724
- package/package.json +7 -4
- package/dist/interfaces/wasi-sockets-tcp.d.ts +0 -8
- package/dist/interfaces/wasi-sockets-udp.d.ts +0 -22
- package/dist/openapi2mcp.core2.wasm +0 -0
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** @module Interface wasi:cli/run@0.2.
|
|
1
|
+
/** @module Interface wasi:cli/run@0.2.0 **/
|
|
2
2
|
export function run(): void;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
/** @module Interface wasi:filesystem/types@0.2.
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
read?: boolean,
|
|
5
|
-
write?: boolean,
|
|
6
|
-
fileIntegritySync?: boolean,
|
|
7
|
-
dataIntegritySync?: boolean,
|
|
8
|
-
requestedWriteSync?: boolean,
|
|
9
|
-
mutateDirectory?: boolean,
|
|
10
|
-
}
|
|
1
|
+
/** @module Interface wasi:filesystem/types@0.2.12 **/
|
|
2
|
+
export type Filesize = bigint;
|
|
3
|
+
export type InputStream = import('./wasi-io-streams.js').InputStream;
|
|
11
4
|
/**
|
|
12
5
|
* # Variants
|
|
13
6
|
*
|
|
@@ -86,7 +79,15 @@ export interface DescriptorFlags {
|
|
|
86
79
|
* ## `"cross-device"`
|
|
87
80
|
*/
|
|
88
81
|
export type ErrorCode = 'access' | 'would-block' | 'already' | 'bad-descriptor' | 'busy' | 'deadlock' | 'quota' | 'exist' | 'file-too-large' | 'illegal-byte-sequence' | 'in-progress' | 'interrupted' | 'invalid' | 'io' | 'is-directory' | 'loop' | 'too-many-links' | 'message-size' | 'name-too-long' | 'no-device' | 'no-entry' | 'no-lock' | 'insufficient-memory' | 'insufficient-space' | 'not-directory' | 'not-empty' | 'not-recoverable' | 'unsupported' | 'no-tty' | 'no-such-device' | 'overflow' | 'not-permitted' | 'pipe' | 'read-only' | 'invalid-seek' | 'text-file-busy' | 'cross-device';
|
|
89
|
-
export type
|
|
82
|
+
export type OutputStream = import('./wasi-io-streams.js').OutputStream;
|
|
83
|
+
export interface DescriptorFlags {
|
|
84
|
+
read?: boolean,
|
|
85
|
+
write?: boolean,
|
|
86
|
+
fileIntegritySync?: boolean,
|
|
87
|
+
dataIntegritySync?: boolean,
|
|
88
|
+
requestedWriteSync?: boolean,
|
|
89
|
+
mutateDirectory?: boolean,
|
|
90
|
+
}
|
|
90
91
|
/**
|
|
91
92
|
* # Variants
|
|
92
93
|
*
|
|
@@ -107,15 +108,7 @@ export type Error = import('./wasi-io-streams.js').Error;
|
|
|
107
108
|
* ## `"socket"`
|
|
108
109
|
*/
|
|
109
110
|
export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | 'directory' | 'fifo' | 'symbolic-link' | 'regular-file' | 'socket';
|
|
110
|
-
export interface DirectoryEntry {
|
|
111
|
-
type: DescriptorType,
|
|
112
|
-
name: string,
|
|
113
|
-
}
|
|
114
|
-
export interface PathFlags {
|
|
115
|
-
symlinkFollow?: boolean,
|
|
116
|
-
}
|
|
117
111
|
export type LinkCount = bigint;
|
|
118
|
-
export type Filesize = bigint;
|
|
119
112
|
export type Datetime = import('./wasi-clocks-wall-clock.js').Datetime;
|
|
120
113
|
export interface DescriptorStat {
|
|
121
114
|
type: DescriptorType,
|
|
@@ -125,18 +118,23 @@ export interface DescriptorStat {
|
|
|
125
118
|
dataModificationTimestamp?: Datetime,
|
|
126
119
|
statusChangeTimestamp?: Datetime,
|
|
127
120
|
}
|
|
121
|
+
export interface PathFlags {
|
|
122
|
+
symlinkFollow?: boolean,
|
|
123
|
+
}
|
|
128
124
|
export interface OpenFlags {
|
|
129
125
|
create?: boolean,
|
|
130
126
|
directory?: boolean,
|
|
131
127
|
exclusive?: boolean,
|
|
132
128
|
truncate?: boolean,
|
|
133
129
|
}
|
|
134
|
-
export type InputStream = import('./wasi-io-streams.js').InputStream;
|
|
135
|
-
export type OutputStream = import('./wasi-io-streams.js').OutputStream;
|
|
136
130
|
export interface MetadataHashValue {
|
|
137
131
|
lower: bigint,
|
|
138
132
|
upper: bigint,
|
|
139
133
|
}
|
|
134
|
+
export interface DirectoryEntry {
|
|
135
|
+
type: DescriptorType,
|
|
136
|
+
name: string,
|
|
137
|
+
}
|
|
140
138
|
|
|
141
139
|
export class Descriptor {
|
|
142
140
|
/**
|
|
@@ -147,7 +145,6 @@ export class Descriptor {
|
|
|
147
145
|
writeViaStream(offset: Filesize): OutputStream;
|
|
148
146
|
appendViaStream(): OutputStream;
|
|
149
147
|
getFlags(): DescriptorFlags;
|
|
150
|
-
getType(): DescriptorType;
|
|
151
148
|
readDirectory(): DirectoryEntryStream;
|
|
152
149
|
stat(): DescriptorStat;
|
|
153
150
|
statAt(pathFlags: PathFlags, path: string): DescriptorStat;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
/** @module Interface wasi:io/poll@0.2.
|
|
1
|
+
/** @module Interface wasi:io/poll@0.2.12 **/
|
|
2
|
+
export function poll(in_: Array<Pollable>): Uint32Array;
|
|
2
3
|
|
|
3
4
|
export class Pollable {
|
|
4
5
|
/**
|
|
5
6
|
* This type does not have a public constructor.
|
|
6
7
|
*/
|
|
7
8
|
private constructor();
|
|
9
|
+
block(): void;
|
|
8
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @module Interface wasi:io/streams@0.2.
|
|
1
|
+
/** @module Interface wasi:io/streams@0.2.12 **/
|
|
2
2
|
export type Error = import('./wasi-io-error.js').Error;
|
|
3
3
|
export type StreamError = StreamErrorLastOperationFailed | StreamErrorClosed;
|
|
4
4
|
export interface StreamErrorLastOperationFailed {
|
|
@@ -8,6 +8,7 @@ export interface StreamErrorLastOperationFailed {
|
|
|
8
8
|
export interface StreamErrorClosed {
|
|
9
9
|
tag: 'closed',
|
|
10
10
|
}
|
|
11
|
+
export type Pollable = import('./wasi-io-poll.js').Pollable;
|
|
11
12
|
|
|
12
13
|
export class InputStream {
|
|
13
14
|
/**
|
|
@@ -15,7 +16,7 @@ export class InputStream {
|
|
|
15
16
|
*/
|
|
16
17
|
private constructor();
|
|
17
18
|
read(len: bigint): Uint8Array;
|
|
18
|
-
|
|
19
|
+
subscribe(): Pollable;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export class OutputStream {
|
|
@@ -25,6 +26,6 @@ export class OutputStream {
|
|
|
25
26
|
private constructor();
|
|
26
27
|
checkWrite(): bigint;
|
|
27
28
|
write(contents: Uint8Array): void;
|
|
28
|
-
blockingWriteAndFlush(contents: Uint8Array): void;
|
|
29
29
|
blockingFlush(): void;
|
|
30
|
+
subscribe(): Pollable;
|
|
30
31
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** @module Interface wasi:random/insecure-seed@0.2.
|
|
1
|
+
/** @module Interface wasi:random/insecure-seed@0.2.12 **/
|
|
2
2
|
export function insecureSeed(): [bigint, bigint];
|
|
Binary file
|
package/dist/openapi2mcp.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
// world root:component/root
|
|
2
|
-
export type * as
|
|
3
|
-
export type * as
|
|
4
|
-
export type * as
|
|
5
|
-
export type * as
|
|
6
|
-
export type * as
|
|
7
|
-
export type * as
|
|
8
|
-
export type * as
|
|
9
|
-
export type * as
|
|
10
|
-
export type * as
|
|
11
|
-
export type * as
|
|
12
|
-
export type * as
|
|
13
|
-
export type * as
|
|
14
|
-
export type * as
|
|
15
|
-
export type * as
|
|
16
|
-
export type * as
|
|
17
|
-
export type * as
|
|
18
|
-
export type * as
|
|
19
|
-
export type * as
|
|
20
|
-
export
|
|
21
|
-
export * as run from './interfaces/wasi-cli-run.js'; // export wasi:cli/run@0.2.6
|
|
2
|
+
export type * as WasiCliEnvironment0212 from './interfaces/wasi-cli-environment.js'; // import wasi:cli/environment@0.2.12
|
|
3
|
+
export type * as WasiCliExit0212 from './interfaces/wasi-cli-exit.js'; // import wasi:cli/exit@0.2.12
|
|
4
|
+
export type * as WasiCliStderr0212 from './interfaces/wasi-cli-stderr.js'; // import wasi:cli/stderr@0.2.12
|
|
5
|
+
export type * as WasiCliStdin0212 from './interfaces/wasi-cli-stdin.js'; // import wasi:cli/stdin@0.2.12
|
|
6
|
+
export type * as WasiCliStdout0212 from './interfaces/wasi-cli-stdout.js'; // import wasi:cli/stdout@0.2.12
|
|
7
|
+
export type * as WasiCliTerminalInput0212 from './interfaces/wasi-cli-terminal-input.js'; // import wasi:cli/terminal-input@0.2.12
|
|
8
|
+
export type * as WasiCliTerminalOutput0212 from './interfaces/wasi-cli-terminal-output.js'; // import wasi:cli/terminal-output@0.2.12
|
|
9
|
+
export type * as WasiCliTerminalStderr0212 from './interfaces/wasi-cli-terminal-stderr.js'; // import wasi:cli/terminal-stderr@0.2.12
|
|
10
|
+
export type * as WasiCliTerminalStdin0212 from './interfaces/wasi-cli-terminal-stdin.js'; // import wasi:cli/terminal-stdin@0.2.12
|
|
11
|
+
export type * as WasiCliTerminalStdout0212 from './interfaces/wasi-cli-terminal-stdout.js'; // import wasi:cli/terminal-stdout@0.2.12
|
|
12
|
+
export type * as WasiClocksMonotonicClock0212 from './interfaces/wasi-clocks-monotonic-clock.js'; // import wasi:clocks/monotonic-clock@0.2.12
|
|
13
|
+
export type * as WasiClocksWallClock0212 from './interfaces/wasi-clocks-wall-clock.js'; // import wasi:clocks/wall-clock@0.2.12
|
|
14
|
+
export type * as WasiFilesystemPreopens0212 from './interfaces/wasi-filesystem-preopens.js'; // import wasi:filesystem/preopens@0.2.12
|
|
15
|
+
export type * as WasiFilesystemTypes0212 from './interfaces/wasi-filesystem-types.js'; // import wasi:filesystem/types@0.2.12
|
|
16
|
+
export type * as WasiIoError0212 from './interfaces/wasi-io-error.js'; // import wasi:io/error@0.2.12
|
|
17
|
+
export type * as WasiIoPoll0212 from './interfaces/wasi-io-poll.js'; // import wasi:io/poll@0.2.12
|
|
18
|
+
export type * as WasiIoStreams0212 from './interfaces/wasi-io-streams.js'; // import wasi:io/streams@0.2.12
|
|
19
|
+
export type * as WasiRandomInsecureSeed0212 from './interfaces/wasi-random-insecure-seed.js'; // import wasi:random/insecure-seed@0.2.12
|
|
20
|
+
export * as run from './interfaces/wasi-cli-run.js'; // export wasi:cli/run@0.2.0
|