@noetic-tools/types 1.3.0 → 1.4.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/dist/types/detached.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @public Lifecycle states for a detached (background) execution. */
|
|
2
2
|
declare const DetachedStatus: {
|
|
3
|
-
readonly Running:
|
|
4
|
-
readonly Completed:
|
|
5
|
-
readonly Failed:
|
|
3
|
+
readonly Running: 'running';
|
|
4
|
+
readonly Completed: 'completed';
|
|
5
|
+
readonly Failed: 'failed';
|
|
6
6
|
};
|
|
7
7
|
type DetachedStatus = (typeof DetachedStatus)[keyof typeof DetachedStatus];
|
|
8
8
|
/** @public Handle returned by `detachedSpawn`, used to poll or await a background execution. */
|
package/dist/types/memory.d.ts
CHANGED
|
@@ -173,6 +173,13 @@ export interface ReturnParams<TState> {
|
|
|
173
173
|
childLog: ItemLog;
|
|
174
174
|
parentState: TState;
|
|
175
175
|
result: unknown;
|
|
176
|
+
/**
|
|
177
|
+
* The child's execution context — the same one passed to `onSpawn`. Layers
|
|
178
|
+
* that merge artifacts from several concurrent children (fan-out) use
|
|
179
|
+
* `childCtx.executionId` to namespace the child's contribution instead of
|
|
180
|
+
* letting the last child to return silently overwrite its siblings.
|
|
181
|
+
*/
|
|
182
|
+
childCtx: ExecutionContext;
|
|
176
183
|
}
|
|
177
184
|
/** @public Value returned by a memory layer's `onReturn` hook with the merged parent state. */
|
|
178
185
|
export interface ReturnResult<TState> {
|
|
@@ -28,10 +28,10 @@ import type { SubprocessAdapter } from './subprocess-adapter.js';
|
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
30
|
export declare const SubHarnessKind: {
|
|
31
|
-
readonly ClaudeCode:
|
|
32
|
-
readonly Codex:
|
|
33
|
-
readonly Opencode:
|
|
34
|
-
readonly Pi:
|
|
31
|
+
readonly ClaudeCode: 'claude-code';
|
|
32
|
+
readonly Codex: 'codex';
|
|
33
|
+
readonly Opencode: 'opencode';
|
|
34
|
+
readonly Pi: 'pi';
|
|
35
35
|
};
|
|
36
36
|
/** @public Union of all harness step kinds. */
|
|
37
37
|
export type SubHarnessKind = (typeof SubHarnessKind)[keyof typeof SubHarnessKind];
|
|
@@ -107,9 +107,9 @@ export declare const SubHarnessStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
107
107
|
}, z.core.$strip>, z.ZodObject<{
|
|
108
108
|
type: z.ZodLiteral<"finish">;
|
|
109
109
|
finishReason: z.ZodEnum<{
|
|
110
|
+
aborted: "aborted";
|
|
110
111
|
error: "error";
|
|
111
112
|
length: "length";
|
|
112
|
-
aborted: "aborted";
|
|
113
113
|
stop: "stop";
|
|
114
114
|
"tool-calls": "tool-calls";
|
|
115
115
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noetic-tools/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Foundational type contracts and primitives shared across the Noetic framework (items, LLM config, adapters, steering, errors).",
|
|
6
6
|
"license": "Apache-2.0",
|