@codelia/runtime 0.1.71 → 0.1.74

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/dist/sdk.d.cts CHANGED
@@ -103,6 +103,14 @@ type TaskExecutionMetadata = {
103
103
  worktree_path?: string;
104
104
  };
105
105
  type TaskExecutionOutputStream = "stdout" | "stderr";
106
+ type TaskExecutionInput = {
107
+ text: string;
108
+ close: boolean;
109
+ };
110
+ type TaskExecutionInputResult = {
111
+ bytes_written: number;
112
+ stdin_closed: boolean;
113
+ };
106
114
  type TaskExecutionResult = {
107
115
  state: TerminalTaskState;
108
116
  result?: TaskResult;
@@ -114,6 +122,7 @@ type TaskExecutionHandle = {
114
122
  metadata?: TaskExecutionMetadata | Promise<TaskExecutionMetadata | null | undefined> | null;
115
123
  wait: Promise<TaskExecutionResult>;
116
124
  readOutput?: (stream: TaskExecutionOutputStream) => string | Promise<string>;
125
+ writeInput?: (input: TaskExecutionInput) => TaskExecutionInputResult | Promise<TaskExecutionInputResult>;
117
126
  cancel?: (reason?: string) => Promise<void> | void;
118
127
  };
119
128
  type TaskExecutionStartContext = {
@@ -162,6 +171,14 @@ declare class TaskManager {
162
171
  status(taskId: string): Promise<TaskRecord | null>;
163
172
  result(taskId: string): Promise<TaskResult | null>;
164
173
  readOutput(taskId: string, stream: TaskExecutionOutputStream): Promise<string | null>;
174
+ writeInput(taskId: string, input: {
175
+ text: string;
176
+ close: boolean;
177
+ sessionId?: string;
178
+ }): Promise<{
179
+ task: TaskRecord;
180
+ result: TaskExecutionInputResult;
181
+ }>;
165
182
  wait(taskId: string, options?: {
166
183
  signal?: AbortSignal;
167
184
  pollIntervalMs?: number;
package/dist/sdk.d.ts CHANGED
@@ -103,6 +103,14 @@ type TaskExecutionMetadata = {
103
103
  worktree_path?: string;
104
104
  };
105
105
  type TaskExecutionOutputStream = "stdout" | "stderr";
106
+ type TaskExecutionInput = {
107
+ text: string;
108
+ close: boolean;
109
+ };
110
+ type TaskExecutionInputResult = {
111
+ bytes_written: number;
112
+ stdin_closed: boolean;
113
+ };
106
114
  type TaskExecutionResult = {
107
115
  state: TerminalTaskState;
108
116
  result?: TaskResult;
@@ -114,6 +122,7 @@ type TaskExecutionHandle = {
114
122
  metadata?: TaskExecutionMetadata | Promise<TaskExecutionMetadata | null | undefined> | null;
115
123
  wait: Promise<TaskExecutionResult>;
116
124
  readOutput?: (stream: TaskExecutionOutputStream) => string | Promise<string>;
125
+ writeInput?: (input: TaskExecutionInput) => TaskExecutionInputResult | Promise<TaskExecutionInputResult>;
117
126
  cancel?: (reason?: string) => Promise<void> | void;
118
127
  };
119
128
  type TaskExecutionStartContext = {
@@ -162,6 +171,14 @@ declare class TaskManager {
162
171
  status(taskId: string): Promise<TaskRecord | null>;
163
172
  result(taskId: string): Promise<TaskResult | null>;
164
173
  readOutput(taskId: string, stream: TaskExecutionOutputStream): Promise<string | null>;
174
+ writeInput(taskId: string, input: {
175
+ text: string;
176
+ close: boolean;
177
+ sessionId?: string;
178
+ }): Promise<{
179
+ task: TaskRecord;
180
+ result: TaskExecutionInputResult;
181
+ }>;
165
182
  wait(taskId: string, options?: {
166
183
  signal?: AbortSignal;
167
184
  pollIntervalMs?: number;
package/dist/sdk.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startRuntime
3
- } from "./chunk-F4WMTUWR.js";
3
+ } from "./chunk-2IAS4F2W.js";
4
4
  export {
5
5
  startRuntime
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codelia/runtime",
3
- "version": "0.1.71",
3
+ "version": "0.1.74",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20 <25"
@@ -28,14 +28,14 @@
28
28
  "typecheck": "tsc --noEmit"
29
29
  },
30
30
  "dependencies": {
31
- "@codelia/config": "0.1.71",
32
- "@codelia/config-loader": "0.1.71",
33
- "@codelia/core": "0.1.71",
34
- "@codelia/logger": "0.1.71",
35
- "@codelia/model-metadata": "0.1.71",
36
- "@codelia/protocol": "0.1.71",
37
- "@codelia/shared-types": "0.1.71",
38
- "@codelia/storage": "0.1.71",
31
+ "@codelia/config": "0.1.74",
32
+ "@codelia/config-loader": "0.1.74",
33
+ "@codelia/core": "0.1.74",
34
+ "@codelia/logger": "0.1.74",
35
+ "@codelia/model-metadata": "0.1.74",
36
+ "@codelia/protocol": "0.1.74",
37
+ "@codelia/shared-types": "0.1.74",
38
+ "@codelia/storage": "0.1.74",
39
39
  "eventsource-parser": "^3.0.6",
40
40
  "oauth4webapi": "^3.8.4",
41
41
  "zod": "^4.3.5"