Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions proposals/cli/wit-0.3.0-draft/command.wit
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package wasi:[email protected]2025-09-16;
package wasi:[email protected]2026-01-06;

@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
world command {
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
include imports;

@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
export run;
}
16 changes: 8 additions & 8 deletions proposals/cli/wit-0.3.0-draft/deps.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[clocks]
path = "../../clocks/wit-0.3.0-draft"
sha256 = "6c0d121ab51a75ad7e348129631cd721885ad994f38317af887137fdf4b0ff6d"
sha512 = "dadf98b75fd14f67ad95dcb595eadcc21bf846ba9301b0bcec062e0a6fdad9bdacb0927927b319ef082f105433f6fa298c52687cb17e9fdb2bb21e05fb288fce"
sha256 = "92b3fbb2700613b35f3fa8f2cc9d9b9a93b9d81feebedd4d071ab9c28cdc66e8"
sha512 = "702dd507f4d26b7b2ddfcfe8186532683824a21af1c9eadbe47359690e83be66c047c54eb29e71efc20de27d9f4b643610e4102880a93b45fb76c3e808252877"

[filesystem]
path = "../../filesystem/wit-0.3.0-draft"
sha256 = "0cc915eec8544a2d1e24358de902005ba2ae3595047ae5ab5bfa3e2b1b803922"
sha512 = "ba1899426490b9f27836ae9ef50799cbaf8976c1a6c081d91de897ee630a69db7dc2e48d627aff9024129d476c044522c23616c8df6e8304cec7c4e69f803a78"
sha256 = "ab88210ca207526acc50e0b942d3edd05a2c4108bc261a8e0b3aa26ddd03e71a"
sha512 = "6a23790610c34d8d1c5e70c9464be18f61e85a27caabdcf80c173e4b53ece69a078957f2ba8b7e0835f23149c37447fad9945ec0a62ff144749348939f321e27"

[random]
path = "../../random/wit-0.3.0-draft"
sha256 = "0a0cead69094ce1773468ff363b2d324ded025aab4f03a1d53b2538710c31e43"
sha512 = "3596bbd164c28254aefb0f7c7a047d81121df1de170808d16975f021c5170ea35dfe6fc1867f93469013ab8d36df8de14d4c5e1c9b70197bfd10e699fd6757e5"
sha256 = "f8bc74d443aacc210c1ff76617bfbd41f118185a8cdbafcd1b69347eaa817b18"
sha512 = "904912869d515a3ddb474d8fe3e273a71e76f897e4156ffc3107e4aa4ce6c7716ed52bb8455e46324456c07a9be26507bb1d7b229167fcdd915ece10fbea163e"

[sockets]
path = "../../sockets/wit-0.3.0-draft"
sha256 = "4964bac273f53af2cb15aa4cf8d0fe8bf46d7005b4b6d83e48a2423108f3b7ec"
sha512 = "6999f873305c8fc3892756115c1cb155df77c71d1f94c3285a2e5643eaef8f2423437bd235da3920740c2b3a8c1afb1cc13b4a622f4edaffd16fb75cdbb40057"
sha256 = "64d37fcd1d5c896bd692d1856520ce24af0be71083089758a9e42b4f94c24a1d"
sha512 = "7ac104891d5f6485511d5bb4789802f9bc0bc1992cb52c582ce17c03069100d1e592563e139bc92f0b751711f07724d26b728cb67c406198346262fc7cfcee0b"
8 changes: 4 additions & 4 deletions proposals/cli/wit-0.3.0-draft/environment.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface environment {
/// Get the POSIX-style environment variables.
///
Expand All @@ -8,15 +8,15 @@ interface environment {
/// Morally, these are a value import, but until value imports are available
/// in the component model, this import function should return the same
/// values each time it is called.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
get-environment: func() -> list<tuple<string, string>>;

/// Get the POSIX-style arguments to the program.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
get-arguments: func() -> list<string>;

/// Return a path that programs should use as their initial current working
/// directory, interpreting `.` as shorthand for this.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
get-initial-cwd: func() -> option<string>;
}
4 changes: 2 additions & 2 deletions proposals/cli/wit-0.3.0-draft/exit.wit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface exit {
/// Exit the current instance and any linked instances.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
exit: func(status: result);

/// Exit the current instance and any linked instances, reporting the
Expand Down
40 changes: 20 additions & 20 deletions proposals/cli/wit-0.3.0-draft/imports.wit
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
package wasi:[email protected]2025-09-16;
package wasi:[email protected]2026-01-06;

@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
world imports {
@since(version = 0.3.0-rc-2025-09-16)
include wasi:clocks/[email protected]2025-09-16;
@since(version = 0.3.0-rc-2025-09-16)
include wasi:filesystem/[email protected]2025-09-16;
@since(version = 0.3.0-rc-2025-09-16)
include wasi:sockets/[email protected]2025-09-16;
@since(version = 0.3.0-rc-2025-09-16)
include wasi:random/[email protected]2025-09-16;
@since(version = 0.3.0-rc-2026-01-06)
include wasi:clocks/[email protected]2026-01-06;
@since(version = 0.3.0-rc-2026-01-06)
include wasi:filesystem/[email protected]2026-01-06;
@since(version = 0.3.0-rc-2026-01-06)
include wasi:sockets/[email protected]2026-01-06;
@since(version = 0.3.0-rc-2026-01-06)
include wasi:random/[email protected]2026-01-06;

@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import environment;
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import exit;
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import stdin;
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import stdout;
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import stderr;
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import terminal-input;
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import terminal-output;
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import terminal-stdin;
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import terminal-stdout;
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import terminal-stderr;
}
4 changes: 2 additions & 2 deletions proposals/cli/wit-0.3.0-draft/run.wit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface run {
/// Run the program.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
run: async func() -> result;
}
16 changes: 8 additions & 8 deletions proposals/cli/wit-0.3.0-draft/stdio.wit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface types {
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
enum error-code {
/// Input/output error
io,
Expand All @@ -11,7 +11,7 @@ interface types {
}
}

@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface stdin {
use types.{error-code};

Expand All @@ -28,11 +28,11 @@ interface stdin {
///
/// Multiple streams may be active at the same time. The behavior of concurrent
/// reads is implementation-specific.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
read-via-stream: func() -> tuple<stream<u8>, future<result<_, error-code>>>;
}

@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface stdout {
use types.{error-code};

Expand All @@ -44,11 +44,11 @@ interface stdout {
///
/// Otherwise if there is an error the readable end of the stream will be
/// dropped and this function will return an error-code.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
write-via-stream: async func(data: stream<u8>) -> result<_, error-code>;
}

@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface stderr {
use types.{error-code};

Expand All @@ -60,6 +60,6 @@ interface stderr {
///
/// Otherwise if there is an error the readable end of the stream will be
/// dropped and this function will return an error-code.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
write-via-stream: async func(data: stream<u8>) -> result<_, error-code>;
}
26 changes: 13 additions & 13 deletions proposals/cli/wit-0.3.0-draft/terminal.wit
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/// In the future, this may include functions for disabling echoing,
/// disabling input buffering so that keyboard events are sent through
/// immediately, querying supported features, and so on.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface terminal-input {
/// The input side of a terminal.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
resource terminal-input;
}

Expand All @@ -15,48 +15,48 @@ interface terminal-input {
/// In the future, this may include functions for querying the terminal
/// size, being notified of terminal size changes, querying supported
/// features, and so on.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface terminal-output {
/// The output side of a terminal.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
resource terminal-output;
}

/// An interface providing an optional `terminal-input` for stdin as a
/// link-time authority.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface terminal-stdin {
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
use terminal-input.{terminal-input};

/// If stdin is connected to a terminal, return a `terminal-input` handle
/// allowing further interaction with it.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
get-terminal-stdin: func() -> option<terminal-input>;
}

/// An interface providing an optional `terminal-output` for stdout as a
/// link-time authority.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface terminal-stdout {
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
use terminal-output.{terminal-output};

/// If stdout is connected to a terminal, return a `terminal-output` handle
/// allowing further interaction with it.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
get-terminal-stdout: func() -> option<terminal-output>;
}

/// An interface providing an optional `terminal-output` for stderr as a
/// link-time authority.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface terminal-stderr {
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
use terminal-output.{terminal-output};

/// If stderr is connected to a terminal, return a `terminal-output` handle
/// allowing further interaction with it.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
get-terminal-stderr: func() -> option<terminal-output>;
}
14 changes: 7 additions & 7 deletions proposals/clocks/wit-0.3.0-draft/monotonic-clock.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:[email protected]2025-09-16;
package wasi:[email protected]2026-01-06;
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
/// time.
///
Expand All @@ -7,14 +7,14 @@ package wasi:[email protected];
///
/// A monotonic clock is a clock which has an unspecified initial value, and
/// successive reads of the clock will produce non-decreasing values.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface monotonic-clock {
use types.{duration};

/// A mark on a monotonic clock is a number of nanoseconds since an
/// unspecified initial value, and can only be compared to instances from
/// the same monotonic-clock.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
type mark = u64;

/// Read the current value of the clock.
Expand All @@ -26,22 +26,22 @@ interface monotonic-clock {
/// the value of the clock in a `mark`. Consequently, implementations
/// should ensure that the starting time is low enough to avoid the
/// possibility of overflow in practice.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
now: func() -> mark;

/// Query the resolution of the clock. Returns the duration of time
/// corresponding to a clock tick.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
get-resolution: func() -> duration;

/// Wait until the specified mark has occurred.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
wait-until: async func(
when: mark,
);

/// Wait for the specified duration to elapse.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
wait-for: async func(
how-long: duration,
);
Expand Down
10 changes: 5 additions & 5 deletions proposals/clocks/wit-0.3.0-draft/system-clock.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:[email protected]2025-09-16;
package wasi:[email protected]2026-01-06;
/// WASI System Clock is a clock API intended to let users query the current
/// time. The clock is not necessarily monotonic as it may be reset.
///
Expand All @@ -9,7 +9,7 @@ package wasi:[email protected];
/// monotonic, making it unsuitable for measuring elapsed time.
///
/// It is intended for reporting the current date and time for humans.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface system-clock {
use types.{duration};

Expand All @@ -29,7 +29,7 @@ interface system-clock {
///
/// [POSIX's Seconds Since the Epoch]: https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xbd_chap04.html#tag_21_04_16
/// [Unix Time]: https://en.wikipedia.org/wiki/Unix_time
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
record instant {
seconds: s64,
nanoseconds: u32,
Expand All @@ -41,11 +41,11 @@ interface system-clock {
/// will not necessarily produce a sequence of non-decreasing values.
///
/// The nanoseconds field of the output is always less than 1000000000.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
now: func() -> instant;

/// Query the resolution of the clock. Returns the smallest duration of time
/// that the implementation permits distinguishing.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
get-resolution: func() -> duration;
}
2 changes: 1 addition & 1 deletion proposals/clocks/wit-0.3.0-draft/timezone.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:[email protected]2025-09-16;
package wasi:[email protected]2026-01-06;

@unstable(feature = clocks-timezone)
interface timezone {
Expand Down
6 changes: 3 additions & 3 deletions proposals/clocks/wit-0.3.0-draft/types.wit
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package wasi:[email protected]2025-09-16;
package wasi:[email protected]2026-01-06;
/// This interface common types used throughout wasi:clocks.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
interface types {
/// A duration of time, in nanoseconds.
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
type duration = u64;
}
8 changes: 4 additions & 4 deletions proposals/clocks/wit-0.3.0-draft/world.wit
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package wasi:[email protected]2025-09-16;
package wasi:[email protected]2026-01-06;

@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
world imports {
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import monotonic-clock;
@since(version = 0.3.0-rc-2025-09-16)
@since(version = 0.3.0-rc-2026-01-06)
import system-clock;
@unstable(feature = clocks-timezone)
import timezone;
Expand Down
4 changes: 2 additions & 2 deletions proposals/filesystem/wit-0.3.0-draft/deps.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[clocks]
path = "../../clocks/wit-0.3.0-draft"
sha256 = "6c0d121ab51a75ad7e348129631cd721885ad994f38317af887137fdf4b0ff6d"
sha512 = "dadf98b75fd14f67ad95dcb595eadcc21bf846ba9301b0bcec062e0a6fdad9bdacb0927927b319ef082f105433f6fa298c52687cb17e9fdb2bb21e05fb288fce"
sha256 = "92b3fbb2700613b35f3fa8f2cc9d9b9a93b9d81feebedd4d071ab9c28cdc66e8"
sha512 = "702dd507f4d26b7b2ddfcfe8186532683824a21af1c9eadbe47359690e83be66c047c54eb29e71efc20de27d9f4b643610e4102880a93b45fb76c3e808252877"
Loading