@denizokcu/haze 1.1.0 → 1.1.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/CHANGELOG.md +24 -1
- package/README.md +9 -5
- package/dist/buildInfo.json +3 -3
- package/dist/cli/chat/busyIndicator.d.ts +11 -0
- package/dist/cli/chat/busyIndicator.js +34 -0
- package/dist/cli/chat/chatMetrics.d.ts +0 -1
- package/dist/cli/chat/chatMetrics.js +1 -7
- package/dist/cli/chat/followUpQueue.d.ts +11 -0
- package/dist/cli/chat/followUpQueue.js +38 -0
- package/dist/cli/chat/messages.d.ts +0 -22
- package/dist/cli/chat/messages.js +40 -85
- package/dist/cli/chat/sessionLifecycle.d.ts +3 -1
- package/dist/cli/chat/sessionLifecycle.js +6 -1
- package/dist/cli/chat/sessionRecorder.d.ts +2 -0
- package/dist/cli/chat/sessionRecorder.js +6 -0
- package/dist/cli/chat/startupSequence.d.ts +29 -0
- package/dist/cli/chat/startupSequence.js +59 -0
- package/dist/cli/chat/transcriptPartition.d.ts +23 -0
- package/dist/cli/chat/transcriptPartition.js +78 -0
- package/dist/cli/chat/wizard/fieldTransitions.d.ts +38 -0
- package/dist/cli/chat/wizard/fieldTransitions.js +43 -0
- package/dist/cli/chat/wizard/lspHandlers.d.ts +4 -0
- package/dist/cli/chat/wizard/lspHandlers.js +85 -0
- package/dist/cli/chat/wizard/mcpHandlers.d.ts +8 -0
- package/dist/cli/chat/wizard/mcpHandlers.js +82 -0
- package/dist/cli/chat/wizard/providerHandlers.d.ts +12 -0
- package/dist/cli/chat/wizard/providerHandlers.js +420 -0
- package/dist/cli/chat/wizard/sessionThemeHandlers.d.ts +4 -0
- package/dist/cli/chat/wizard/sessionThemeHandlers.js +48 -0
- package/dist/cli/chat/wizard/skillsHandlers.d.ts +4 -0
- package/dist/cli/chat/wizard/skillsHandlers.js +125 -0
- package/dist/cli/chat/wizard/types.d.ts +63 -0
- package/dist/cli/chat/wizard/types.js +24 -0
- package/dist/cli/chat/wizard/uiState.d.ts +56 -0
- package/dist/cli/chat/wizard/uiState.js +15 -0
- package/dist/cli/chat/wizardDispatch.d.ts +11 -113
- package/dist/cli/chat/wizardDispatch.js +41 -815
- package/dist/cli/commands/chat.js +45 -108
- package/dist/cli/commands/formatters.d.ts +0 -3
- package/dist/cli/commands/formatters.js +0 -29
- package/dist/cli/commands/runCommand.d.ts +2 -0
- package/dist/cli/commands/runCommand.js +67 -4
- package/dist/cli/commands/streaming/assistantSegments.d.ts +19 -0
- package/dist/cli/commands/streaming/assistantSegments.js +48 -0
- package/dist/cli/commands/streaming/attemptOutcome.d.ts +2 -2
- package/dist/cli/commands/streaming/attemptOutcome.js +17 -7
- package/dist/cli/commands/streaming/goalCheckpoint.d.ts +69 -8
- package/dist/cli/commands/streaming/goalCheckpoint.js +36 -1
- package/dist/cli/commands/streaming/goalSupervisor.d.ts +17 -2
- package/dist/cli/commands/streaming/goalSupervisor.js +62 -12
- package/dist/cli/commands/streaming/prepareStep.d.ts +35 -0
- package/dist/cli/commands/streaming/prepareStep.js +100 -0
- package/dist/cli/commands/streaming/recoverySlices.d.ts +15 -0
- package/dist/cli/commands/streaming/recoverySlices.js +29 -0
- package/dist/cli/commands/streaming/stallRecovery.d.ts +0 -1
- package/dist/cli/commands/streaming/stallRecovery.js +0 -4
- package/dist/cli/commands/streaming/streamLoop.js +9 -230
- package/dist/cli/commands/streaming/toolGroupRenderer.js +2 -1
- package/dist/cli/commands/streaming/toolPartHandlers.d.ts +19 -0
- package/dist/cli/commands/streaming/toolPartHandlers.js +95 -0
- package/dist/cli/commands/streaming.d.ts +4 -1
- package/dist/cli/commands/streaming.js +6 -21
- package/dist/cli/index.js +3 -1
- package/dist/config/providerPresets.d.ts +7 -0
- package/dist/config/providerPresets.js +195 -391
- package/dist/core/agent/completionController.d.ts +14 -7
- package/dist/core/agent/completionController.js +12 -6
- package/dist/core/agent/events.d.ts +12 -0
- package/dist/core/agent/goalPolicy.d.ts +4 -3
- package/dist/core/agent/goalPolicy.js +9 -4
- package/dist/core/agent/workState.d.ts +25 -15
- package/dist/core/agent/workState.js +71 -43
- package/dist/core/session/sessionSlimming.js +8 -0
- package/dist/core/session/sessionStore.d.ts +61 -1
- package/dist/core/session/sessionStore.js +115 -6
- package/dist/llm/hazeTools.d.ts +64 -208
- package/dist/llm/tools/taskTool.d.ts +64 -208
- package/dist/llm/tools/taskTool.js +22 -10
- package/dist/ui/components/TextInput.js +6 -67
- package/dist/ui/components/useInputSuggestions.d.ts +27 -0
- package/dist/ui/components/useInputSuggestions.js +98 -0
- package/dist/ui/theme.d.ts +8 -8
- package/dist/ui/theme.js +11 -12
- package/dist/ui/themes/registry.d.ts +5 -0
- package/dist/ui/themes/registry.js +436 -0
- package/dist/utils/format.d.ts +10 -0
- package/dist/utils/format.js +45 -0
- package/package.json +1 -1
- package/dist/ui/themes/af-magic.d.ts +0 -7
- package/dist/ui/themes/af-magic.js +0 -25
- package/dist/ui/themes/agnoster.d.ts +0 -10
- package/dist/ui/themes/agnoster.js +0 -40
- package/dist/ui/themes/bira.d.ts +0 -10
- package/dist/ui/themes/bira.js +0 -28
- package/dist/ui/themes/bureau.d.ts +0 -10
- package/dist/ui/themes/bureau.js +0 -28
- package/dist/ui/themes/clean.d.ts +0 -9
- package/dist/ui/themes/clean.js +0 -27
- package/dist/ui/themes/cloud.d.ts +0 -6
- package/dist/ui/themes/cloud.js +0 -24
- package/dist/ui/themes/dst.d.ts +0 -10
- package/dist/ui/themes/dst.js +0 -28
- package/dist/ui/themes/fishy.d.ts +0 -7
- package/dist/ui/themes/fishy.js +0 -25
- package/dist/ui/themes/index.d.ts +0 -8
- package/dist/ui/themes/index.js +0 -36
- package/dist/ui/themes/light.d.ts +0 -3
- package/dist/ui/themes/light.js +0 -21
- package/dist/ui/themes/purple.d.ts +0 -7
- package/dist/ui/themes/purple.js +0 -26
- package/dist/ui/themes/robbyrussell.d.ts +0 -8
- package/dist/ui/themes/robbyrussell.js +0 -26
- package/dist/ui/themes/solarized-dark.d.ts +0 -16
- package/dist/ui/themes/solarized-dark.js +0 -44
- package/dist/ui/themes/solarized-light.d.ts +0 -12
- package/dist/ui/themes/solarized-light.js +0 -40
- package/dist/ui/themes/steeef.d.ts +0 -11
- package/dist/ui/themes/steeef.js +0 -29
|
@@ -6,6 +6,15 @@ import { prepareSessionEntryForWrite } from './sessionSlimming.js';
|
|
|
6
6
|
import { appendPrivateFile, ensurePrivateDir, tightenPrivateFile, writePrivateFileAtomic } from '../../config/privateStorage.js';
|
|
7
7
|
import { JSONL_LINE_BYTES } from '../limits.js';
|
|
8
8
|
import { iterateBoundedUtf8Lines } from '../io/boundedRead.js';
|
|
9
|
+
function parseLedgerRedEvidence(value) {
|
|
10
|
+
if (typeof value !== 'object' || value == null)
|
|
11
|
+
return undefined;
|
|
12
|
+
const record = value;
|
|
13
|
+
if (typeof record.command !== 'string' || typeof record.commandKey !== 'string')
|
|
14
|
+
return undefined;
|
|
15
|
+
const summary = typeof record.summary === 'string' ? record.summary : '';
|
|
16
|
+
return { command: record.command.slice(0, 400), commandKey: record.commandKey.slice(0, 400), summary: summary.slice(0, 200) };
|
|
17
|
+
}
|
|
9
18
|
const DEFAULT_SESSIONS_DIR = path.join(HAZE_DIR, 'sessions');
|
|
10
19
|
function cwdHash(cwd = process.cwd()) {
|
|
11
20
|
return crypto.createHash('sha256').update(path.resolve(cwd)).digest('hex').slice(0, 16);
|
|
@@ -110,6 +119,10 @@ let effectiveVacuumThresholdBytes = SESSION_VACUUM_THRESHOLD_BYTES;
|
|
|
110
119
|
export function setSessionVacuumThresholdForTests(bytes) {
|
|
111
120
|
effectiveVacuumThresholdBytes = bytes;
|
|
112
121
|
}
|
|
122
|
+
/** Trailing goal-ledger entries preserved per goal id when the vacuum rewrites (frontier + end + one audit entry). */
|
|
123
|
+
export const GOAL_LEDGER_KEEP_PER_GOAL = 3;
|
|
124
|
+
/** Ledger trim must amortize its rewrite: rewrite for goal entries alone only past this many dropped bytes. */
|
|
125
|
+
export const GOAL_LEDGER_TRIM_BYTES = 2_048;
|
|
113
126
|
export async function vacuumSessionFileIfLarge(session, thresholdBytes = effectiveVacuumThresholdBytes) {
|
|
114
127
|
const file = validatedSessionFile(session);
|
|
115
128
|
if (session.deferredWrite)
|
|
@@ -126,16 +139,36 @@ export async function vacuumSessionFileIfLarge(session, thresholdBytes = effecti
|
|
|
126
139
|
if (entry.type === 'work_state_snapshot')
|
|
127
140
|
lastWorkState = index;
|
|
128
141
|
});
|
|
142
|
+
// Goal-ledger bound (P1): long autonomous goals append one entry per physical
|
|
143
|
+
// turn; intermediate `goal_continue` entries of superseded cycles are audit
|
|
144
|
+
// trail only. Keep the trailing few per goal id — the frontier and the
|
|
145
|
+
// terminal entry are always among them — so a very long-lived session file
|
|
146
|
+
// stays bounded without ever losing a live frontier.
|
|
147
|
+
const keepGoal = new Set();
|
|
148
|
+
const goalIndexesByGoal = new Map();
|
|
149
|
+
entries.forEach((entry, index) => {
|
|
150
|
+
if (entry.type === 'goal')
|
|
151
|
+
goalIndexesByGoal.set(entry.goalId, [...(goalIndexesByGoal.get(entry.goalId) ?? []), index]);
|
|
152
|
+
});
|
|
153
|
+
for (const indexes of goalIndexesByGoal.values()) {
|
|
154
|
+
for (const index of indexes.slice(-GOAL_LEDGER_KEEP_PER_GOAL))
|
|
155
|
+
keepGoal.add(index);
|
|
156
|
+
}
|
|
129
157
|
// Malformed lines are dropped by the rewrite: they were already unusable
|
|
130
158
|
// (and reported as parse errors on read) and keeping them would defeat the
|
|
131
159
|
// size bound the vacuum exists to enforce.
|
|
132
|
-
const
|
|
160
|
+
const candidate = entries.filter((entry, index) => (entry.type !== 'conversation_snapshot' && entry.type !== 'work_state_snapshot')
|
|
133
161
|
|| index === lastConversation
|
|
134
162
|
|| index === lastWorkState);
|
|
163
|
+
const kept = candidate.filter((entry, index) => entry.type !== 'goal' || keepGoal.has(index));
|
|
164
|
+
const droppedGoalBytes = candidate
|
|
165
|
+
.filter((entry, index) => entry.type === 'goal' && !keepGoal.has(index))
|
|
166
|
+
.reduce((sum, entry) => sum + Buffer.byteLength(JSON.stringify(entry), 'utf8'), 0);
|
|
135
167
|
const serialized = kept.map(entry => JSON.stringify(entry)).join('\n') + '\n';
|
|
136
|
-
// Only rewrite when it meaningfully shrinks the file
|
|
137
|
-
// dominant snapshot would trigger a full rewrite on every append
|
|
138
|
-
|
|
168
|
+
// Only rewrite when it meaningfully shrinks the file (otherwise a single
|
|
169
|
+
// dominant snapshot would trigger a full rewrite on every append), or when
|
|
170
|
+
// the goal-ledger trim alone has accumulated enough to amortize the rewrite.
|
|
171
|
+
if (serialized.length > stat.size / 2 && droppedGoalBytes < GOAL_LEDGER_TRIM_BYTES)
|
|
139
172
|
return false;
|
|
140
173
|
await writePrivateFileAtomic(file, serialized);
|
|
141
174
|
return true;
|
|
@@ -155,6 +188,31 @@ function optionalBuildProvenance(value) {
|
|
|
155
188
|
return false;
|
|
156
189
|
return optionalString(value.commit) && optionalString(value.builtAt);
|
|
157
190
|
}
|
|
191
|
+
function optionalTaskCounts(value) {
|
|
192
|
+
if (value === undefined)
|
|
193
|
+
return true;
|
|
194
|
+
if (!isRecord(value))
|
|
195
|
+
return false;
|
|
196
|
+
return ['total', 'pending', 'inProgress', 'completed'].every(key => typeof value[key] === 'number');
|
|
197
|
+
}
|
|
198
|
+
function optionalLedgerRedEvidence(value) {
|
|
199
|
+
return value === undefined || parseLedgerRedEvidence(value) !== undefined;
|
|
200
|
+
}
|
|
201
|
+
function frontierFromGoalEntry(entry) {
|
|
202
|
+
return {
|
|
203
|
+
goalId: entry.goalId,
|
|
204
|
+
request: entry.request,
|
|
205
|
+
requestHash: entry.requestHash,
|
|
206
|
+
intent: entry.intent,
|
|
207
|
+
cycle: entry.cycle,
|
|
208
|
+
mutationCount: entry.mutationCount,
|
|
209
|
+
validationOutcome: entry.validationOutcome,
|
|
210
|
+
progressSignature: entry.progressSignature,
|
|
211
|
+
...(entry.taskCounts ? { taskCounts: entry.taskCounts } : {}),
|
|
212
|
+
...(entry.redEvidence ? { redEvidence: entry.redEvidence } : {}),
|
|
213
|
+
at: entry.at,
|
|
214
|
+
};
|
|
215
|
+
}
|
|
158
216
|
function parseSessionEntry(value) {
|
|
159
217
|
const invalid = (detail) => {
|
|
160
218
|
throw new Error(`unexpected entry shape: ${detail}`);
|
|
@@ -192,6 +250,17 @@ function parseSessionEntry(value) {
|
|
|
192
250
|
if (typeof value.at !== 'string' || typeof value.name !== 'string' || !optionalString(value.text))
|
|
193
251
|
return invalid('invalid event');
|
|
194
252
|
return value;
|
|
253
|
+
case 'goal':
|
|
254
|
+
if (typeof value.at !== 'string' || typeof value.goalId !== 'string'
|
|
255
|
+
|| (value.phase !== 'goal_start' && value.phase !== 'goal_continue' && value.phase !== 'goal_end')
|
|
256
|
+
|| typeof value.request !== 'string' || typeof value.requestHash !== 'string' || typeof value.intent !== 'string'
|
|
257
|
+
|| typeof value.cycle !== 'number' || typeof value.mutationCount !== 'number'
|
|
258
|
+
|| typeof value.validationOutcome !== 'string' || typeof value.progressSignature !== 'string'
|
|
259
|
+
|| !optionalTaskCounts(value.taskCounts)
|
|
260
|
+
|| !optionalString(value.stopReason) || !optionalString(value.status)
|
|
261
|
+
|| !optionalLedgerRedEvidence(value.redEvidence))
|
|
262
|
+
return invalid('invalid goal');
|
|
263
|
+
return value;
|
|
195
264
|
default:
|
|
196
265
|
return invalid(`unknown entry type '${type}'`);
|
|
197
266
|
}
|
|
@@ -239,21 +308,61 @@ export async function readSessionEntries(session) {
|
|
|
239
308
|
const parseErrors = await scanSessionEntries(session, entry => entries.push(entry));
|
|
240
309
|
return { entries, parseErrors };
|
|
241
310
|
}
|
|
311
|
+
/**
|
|
312
|
+
* Pure frontier detection over parsed session entries (P1): the append-only
|
|
313
|
+
* goal ledger's frontier is the last entry of the most recent goal id that has
|
|
314
|
+
* no `goal_end` entry. A truncated or malformed tail line parses as absent, so
|
|
315
|
+
* a crash mid-write can never resurrect a half-written boundary
|
|
316
|
+
* (autoprompt's "treat half-written artifacts as absent").
|
|
317
|
+
*/
|
|
318
|
+
export function findGoalLedgerFrontier(entries) {
|
|
319
|
+
let frontier;
|
|
320
|
+
for (const entry of entries) {
|
|
321
|
+
if (entry.type !== 'goal')
|
|
322
|
+
continue;
|
|
323
|
+
if (entry.phase === 'goal_end') {
|
|
324
|
+
if (frontier?.goalId === entry.goalId)
|
|
325
|
+
frontier = undefined;
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
frontier = frontierFromGoalEntry(entry);
|
|
329
|
+
}
|
|
330
|
+
return frontier;
|
|
331
|
+
}
|
|
332
|
+
/** Read the goal-ledger frontier of a stored session (one file scan). */
|
|
333
|
+
export async function readGoalLedgerFrontier(session) {
|
|
334
|
+
const { entries } = await readSessionEntries(session);
|
|
335
|
+
return findGoalLedgerFrontier(entries);
|
|
336
|
+
}
|
|
242
337
|
/**
|
|
243
338
|
* Restore conversation and work state in one file scan (CR-013). Session
|
|
244
339
|
* files grow to megabytes in long workspaces; resuming should not parse the
|
|
245
|
-
* JSONL twice.
|
|
340
|
+
* JSONL twice. The goal-ledger frontier rides the same scan (P1).
|
|
246
341
|
*/
|
|
247
342
|
export async function restoreSessionState(session) {
|
|
248
343
|
let messages = [];
|
|
249
344
|
let workState;
|
|
345
|
+
let goalFrontier;
|
|
346
|
+
const terminatedGoals = new Set();
|
|
250
347
|
const parseErrors = await scanSessionEntries(session, entry => {
|
|
251
348
|
if (entry.type === 'conversation_snapshot')
|
|
252
349
|
messages = entry.messages;
|
|
253
350
|
if (entry.type === 'work_state_snapshot')
|
|
254
351
|
workState = entry.state;
|
|
352
|
+
if (entry.type === 'goal') {
|
|
353
|
+
if (entry.phase === 'goal_end') {
|
|
354
|
+
terminatedGoals.add(entry.goalId);
|
|
355
|
+
if (goalFrontier?.goalId === entry.goalId)
|
|
356
|
+
goalFrontier = undefined;
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
goalFrontier = frontierFromGoalEntry(entry);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
255
362
|
});
|
|
256
|
-
|
|
363
|
+
if (goalFrontier && terminatedGoals.has(goalFrontier.goalId))
|
|
364
|
+
goalFrontier = undefined;
|
|
365
|
+
return { messages, workState, parseErrors, goalFrontier };
|
|
257
366
|
}
|
|
258
367
|
export async function restoreConversation(session) {
|
|
259
368
|
const { messages, parseErrors } = await restoreSessionState(session);
|
package/dist/llm/hazeTools.d.ts
CHANGED
|
@@ -5802,24 +5802,15 @@ export declare const hazeTools: {
|
|
|
5802
5802
|
output: NoInfer<{
|
|
5803
5803
|
ok: boolean;
|
|
5804
5804
|
error: string;
|
|
5805
|
-
taskCount?: undefined;
|
|
5806
|
-
summary?: undefined;
|
|
5807
|
-
counts?: undefined;
|
|
5808
5805
|
} | {
|
|
5809
|
-
ok: boolean;
|
|
5810
|
-
taskCount: number;
|
|
5811
5806
|
summary: string;
|
|
5812
|
-
|
|
5813
|
-
counts?: undefined;
|
|
5814
|
-
} | {
|
|
5815
|
-
ok: boolean;
|
|
5816
|
-
taskCount: number;
|
|
5817
|
-
counts: {
|
|
5807
|
+
counts?: {
|
|
5818
5808
|
pending: number;
|
|
5819
5809
|
in_progress: number;
|
|
5820
5810
|
completed: number;
|
|
5821
|
-
};
|
|
5822
|
-
|
|
5811
|
+
} | undefined;
|
|
5812
|
+
ok: boolean;
|
|
5813
|
+
taskCount: number;
|
|
5823
5814
|
error?: undefined;
|
|
5824
5815
|
}>;
|
|
5825
5816
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
@@ -5827,24 +5818,15 @@ export declare const hazeTools: {
|
|
|
5827
5818
|
outputSchema?: import("ai").FlexibleSchema<{
|
|
5828
5819
|
ok: boolean;
|
|
5829
5820
|
error: string;
|
|
5830
|
-
taskCount?: undefined;
|
|
5831
|
-
summary?: undefined;
|
|
5832
|
-
counts?: undefined;
|
|
5833
5821
|
} | {
|
|
5834
|
-
ok: boolean;
|
|
5835
|
-
taskCount: number;
|
|
5836
5822
|
summary: string;
|
|
5837
|
-
|
|
5838
|
-
counts?: undefined;
|
|
5839
|
-
} | {
|
|
5840
|
-
ok: boolean;
|
|
5841
|
-
taskCount: number;
|
|
5842
|
-
counts: {
|
|
5823
|
+
counts?: {
|
|
5843
5824
|
pending: number;
|
|
5844
5825
|
in_progress: number;
|
|
5845
5826
|
completed: number;
|
|
5846
|
-
};
|
|
5847
|
-
|
|
5827
|
+
} | undefined;
|
|
5828
|
+
ok: boolean;
|
|
5829
|
+
taskCount: number;
|
|
5848
5830
|
error?: undefined;
|
|
5849
5831
|
}> | undefined;
|
|
5850
5832
|
execute: import("ai").ToolExecuteFunction<{
|
|
@@ -5855,24 +5837,15 @@ export declare const hazeTools: {
|
|
|
5855
5837
|
}, {
|
|
5856
5838
|
ok: boolean;
|
|
5857
5839
|
error: string;
|
|
5858
|
-
taskCount?: undefined;
|
|
5859
|
-
summary?: undefined;
|
|
5860
|
-
counts?: undefined;
|
|
5861
5840
|
} | {
|
|
5862
|
-
ok: boolean;
|
|
5863
|
-
taskCount: number;
|
|
5864
5841
|
summary: string;
|
|
5865
|
-
|
|
5866
|
-
counts?: undefined;
|
|
5867
|
-
} | {
|
|
5868
|
-
ok: boolean;
|
|
5869
|
-
taskCount: number;
|
|
5870
|
-
counts: {
|
|
5842
|
+
counts?: {
|
|
5871
5843
|
pending: number;
|
|
5872
5844
|
in_progress: number;
|
|
5873
5845
|
completed: number;
|
|
5874
|
-
};
|
|
5875
|
-
|
|
5846
|
+
} | undefined;
|
|
5847
|
+
ok: boolean;
|
|
5848
|
+
taskCount: number;
|
|
5876
5849
|
error?: undefined;
|
|
5877
5850
|
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
5878
5851
|
} & {
|
|
@@ -5904,24 +5877,15 @@ export declare const hazeTools: {
|
|
|
5904
5877
|
}, {
|
|
5905
5878
|
ok: boolean;
|
|
5906
5879
|
error: string;
|
|
5907
|
-
taskCount?: undefined;
|
|
5908
|
-
summary?: undefined;
|
|
5909
|
-
counts?: undefined;
|
|
5910
5880
|
} | {
|
|
5911
|
-
ok: boolean;
|
|
5912
|
-
taskCount: number;
|
|
5913
5881
|
summary: string;
|
|
5914
|
-
|
|
5915
|
-
counts?: undefined;
|
|
5916
|
-
} | {
|
|
5917
|
-
ok: boolean;
|
|
5918
|
-
taskCount: number;
|
|
5919
|
-
counts: {
|
|
5882
|
+
counts?: {
|
|
5920
5883
|
pending: number;
|
|
5921
5884
|
in_progress: number;
|
|
5922
5885
|
completed: number;
|
|
5923
|
-
};
|
|
5924
|
-
|
|
5886
|
+
} | undefined;
|
|
5887
|
+
ok: boolean;
|
|
5888
|
+
taskCount: number;
|
|
5925
5889
|
error?: undefined;
|
|
5926
5890
|
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
5927
5891
|
}) | ({
|
|
@@ -5964,24 +5928,15 @@ export declare const hazeTools: {
|
|
|
5964
5928
|
output: NoInfer<{
|
|
5965
5929
|
ok: boolean;
|
|
5966
5930
|
error: string;
|
|
5967
|
-
taskCount?: undefined;
|
|
5968
|
-
summary?: undefined;
|
|
5969
|
-
counts?: undefined;
|
|
5970
5931
|
} | {
|
|
5971
|
-
ok: boolean;
|
|
5972
|
-
taskCount: number;
|
|
5973
5932
|
summary: string;
|
|
5974
|
-
|
|
5975
|
-
counts?: undefined;
|
|
5976
|
-
} | {
|
|
5977
|
-
ok: boolean;
|
|
5978
|
-
taskCount: number;
|
|
5979
|
-
counts: {
|
|
5933
|
+
counts?: {
|
|
5980
5934
|
pending: number;
|
|
5981
5935
|
in_progress: number;
|
|
5982
5936
|
completed: number;
|
|
5983
|
-
};
|
|
5984
|
-
|
|
5937
|
+
} | undefined;
|
|
5938
|
+
ok: boolean;
|
|
5939
|
+
taskCount: number;
|
|
5985
5940
|
error?: undefined;
|
|
5986
5941
|
}>;
|
|
5987
5942
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
@@ -5989,24 +5944,15 @@ export declare const hazeTools: {
|
|
|
5989
5944
|
outputSchema?: import("ai").FlexibleSchema<{
|
|
5990
5945
|
ok: boolean;
|
|
5991
5946
|
error: string;
|
|
5992
|
-
taskCount?: undefined;
|
|
5993
|
-
summary?: undefined;
|
|
5994
|
-
counts?: undefined;
|
|
5995
5947
|
} | {
|
|
5996
|
-
ok: boolean;
|
|
5997
|
-
taskCount: number;
|
|
5998
5948
|
summary: string;
|
|
5999
|
-
|
|
6000
|
-
counts?: undefined;
|
|
6001
|
-
} | {
|
|
6002
|
-
ok: boolean;
|
|
6003
|
-
taskCount: number;
|
|
6004
|
-
counts: {
|
|
5949
|
+
counts?: {
|
|
6005
5950
|
pending: number;
|
|
6006
5951
|
in_progress: number;
|
|
6007
5952
|
completed: number;
|
|
6008
|
-
};
|
|
6009
|
-
|
|
5953
|
+
} | undefined;
|
|
5954
|
+
ok: boolean;
|
|
5955
|
+
taskCount: number;
|
|
6010
5956
|
error?: undefined;
|
|
6011
5957
|
}> | undefined;
|
|
6012
5958
|
execute: import("ai").ToolExecuteFunction<{
|
|
@@ -6017,24 +5963,15 @@ export declare const hazeTools: {
|
|
|
6017
5963
|
}, {
|
|
6018
5964
|
ok: boolean;
|
|
6019
5965
|
error: string;
|
|
6020
|
-
taskCount?: undefined;
|
|
6021
|
-
summary?: undefined;
|
|
6022
|
-
counts?: undefined;
|
|
6023
5966
|
} | {
|
|
6024
|
-
ok: boolean;
|
|
6025
|
-
taskCount: number;
|
|
6026
5967
|
summary: string;
|
|
6027
|
-
|
|
6028
|
-
counts?: undefined;
|
|
6029
|
-
} | {
|
|
6030
|
-
ok: boolean;
|
|
6031
|
-
taskCount: number;
|
|
6032
|
-
counts: {
|
|
5968
|
+
counts?: {
|
|
6033
5969
|
pending: number;
|
|
6034
5970
|
in_progress: number;
|
|
6035
5971
|
completed: number;
|
|
6036
|
-
};
|
|
6037
|
-
|
|
5972
|
+
} | undefined;
|
|
5973
|
+
ok: boolean;
|
|
5974
|
+
taskCount: number;
|
|
6038
5975
|
error?: undefined;
|
|
6039
5976
|
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
6040
5977
|
} & {
|
|
@@ -6066,24 +6003,15 @@ export declare const hazeTools: {
|
|
|
6066
6003
|
}, {
|
|
6067
6004
|
ok: boolean;
|
|
6068
6005
|
error: string;
|
|
6069
|
-
taskCount?: undefined;
|
|
6070
|
-
summary?: undefined;
|
|
6071
|
-
counts?: undefined;
|
|
6072
6006
|
} | {
|
|
6073
|
-
ok: boolean;
|
|
6074
|
-
taskCount: number;
|
|
6075
6007
|
summary: string;
|
|
6076
|
-
|
|
6077
|
-
counts?: undefined;
|
|
6078
|
-
} | {
|
|
6079
|
-
ok: boolean;
|
|
6080
|
-
taskCount: number;
|
|
6081
|
-
counts: {
|
|
6008
|
+
counts?: {
|
|
6082
6009
|
pending: number;
|
|
6083
6010
|
in_progress: number;
|
|
6084
6011
|
completed: number;
|
|
6085
|
-
};
|
|
6086
|
-
|
|
6012
|
+
} | undefined;
|
|
6013
|
+
ok: boolean;
|
|
6014
|
+
taskCount: number;
|
|
6087
6015
|
error?: undefined;
|
|
6088
6016
|
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
6089
6017
|
}) | ({
|
|
@@ -6126,24 +6054,15 @@ export declare const hazeTools: {
|
|
|
6126
6054
|
output: NoInfer<{
|
|
6127
6055
|
ok: boolean;
|
|
6128
6056
|
error: string;
|
|
6129
|
-
taskCount?: undefined;
|
|
6130
|
-
summary?: undefined;
|
|
6131
|
-
counts?: undefined;
|
|
6132
6057
|
} | {
|
|
6133
|
-
ok: boolean;
|
|
6134
|
-
taskCount: number;
|
|
6135
6058
|
summary: string;
|
|
6136
|
-
|
|
6137
|
-
counts?: undefined;
|
|
6138
|
-
} | {
|
|
6139
|
-
ok: boolean;
|
|
6140
|
-
taskCount: number;
|
|
6141
|
-
counts: {
|
|
6059
|
+
counts?: {
|
|
6142
6060
|
pending: number;
|
|
6143
6061
|
in_progress: number;
|
|
6144
6062
|
completed: number;
|
|
6145
|
-
};
|
|
6146
|
-
|
|
6063
|
+
} | undefined;
|
|
6064
|
+
ok: boolean;
|
|
6065
|
+
taskCount: number;
|
|
6147
6066
|
error?: undefined;
|
|
6148
6067
|
}>;
|
|
6149
6068
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
@@ -6151,24 +6070,15 @@ export declare const hazeTools: {
|
|
|
6151
6070
|
outputSchema?: import("ai").FlexibleSchema<{
|
|
6152
6071
|
ok: boolean;
|
|
6153
6072
|
error: string;
|
|
6154
|
-
taskCount?: undefined;
|
|
6155
|
-
summary?: undefined;
|
|
6156
|
-
counts?: undefined;
|
|
6157
6073
|
} | {
|
|
6158
|
-
ok: boolean;
|
|
6159
|
-
taskCount: number;
|
|
6160
6074
|
summary: string;
|
|
6161
|
-
|
|
6162
|
-
counts?: undefined;
|
|
6163
|
-
} | {
|
|
6164
|
-
ok: boolean;
|
|
6165
|
-
taskCount: number;
|
|
6166
|
-
counts: {
|
|
6075
|
+
counts?: {
|
|
6167
6076
|
pending: number;
|
|
6168
6077
|
in_progress: number;
|
|
6169
6078
|
completed: number;
|
|
6170
|
-
};
|
|
6171
|
-
|
|
6079
|
+
} | undefined;
|
|
6080
|
+
ok: boolean;
|
|
6081
|
+
taskCount: number;
|
|
6172
6082
|
error?: undefined;
|
|
6173
6083
|
}> | undefined;
|
|
6174
6084
|
execute: import("ai").ToolExecuteFunction<{
|
|
@@ -6179,24 +6089,15 @@ export declare const hazeTools: {
|
|
|
6179
6089
|
}, {
|
|
6180
6090
|
ok: boolean;
|
|
6181
6091
|
error: string;
|
|
6182
|
-
taskCount?: undefined;
|
|
6183
|
-
summary?: undefined;
|
|
6184
|
-
counts?: undefined;
|
|
6185
6092
|
} | {
|
|
6186
|
-
ok: boolean;
|
|
6187
|
-
taskCount: number;
|
|
6188
6093
|
summary: string;
|
|
6189
|
-
|
|
6190
|
-
counts?: undefined;
|
|
6191
|
-
} | {
|
|
6192
|
-
ok: boolean;
|
|
6193
|
-
taskCount: number;
|
|
6194
|
-
counts: {
|
|
6094
|
+
counts?: {
|
|
6195
6095
|
pending: number;
|
|
6196
6096
|
in_progress: number;
|
|
6197
6097
|
completed: number;
|
|
6198
|
-
};
|
|
6199
|
-
|
|
6098
|
+
} | undefined;
|
|
6099
|
+
ok: boolean;
|
|
6100
|
+
taskCount: number;
|
|
6200
6101
|
error?: undefined;
|
|
6201
6102
|
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
6202
6103
|
} & {
|
|
@@ -6218,24 +6119,15 @@ export declare const hazeTools: {
|
|
|
6218
6119
|
}, {
|
|
6219
6120
|
ok: boolean;
|
|
6220
6121
|
error: string;
|
|
6221
|
-
taskCount?: undefined;
|
|
6222
|
-
summary?: undefined;
|
|
6223
|
-
counts?: undefined;
|
|
6224
6122
|
} | {
|
|
6225
|
-
ok: boolean;
|
|
6226
|
-
taskCount: number;
|
|
6227
6123
|
summary: string;
|
|
6228
|
-
|
|
6229
|
-
counts?: undefined;
|
|
6230
|
-
} | {
|
|
6231
|
-
ok: boolean;
|
|
6232
|
-
taskCount: number;
|
|
6233
|
-
counts: {
|
|
6124
|
+
counts?: {
|
|
6234
6125
|
pending: number;
|
|
6235
6126
|
in_progress: number;
|
|
6236
6127
|
completed: number;
|
|
6237
|
-
};
|
|
6238
|
-
|
|
6128
|
+
} | undefined;
|
|
6129
|
+
ok: boolean;
|
|
6130
|
+
taskCount: number;
|
|
6239
6131
|
error?: undefined;
|
|
6240
6132
|
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
6241
6133
|
}) | ({
|
|
@@ -6278,24 +6170,15 @@ export declare const hazeTools: {
|
|
|
6278
6170
|
output: NoInfer<{
|
|
6279
6171
|
ok: boolean;
|
|
6280
6172
|
error: string;
|
|
6281
|
-
taskCount?: undefined;
|
|
6282
|
-
summary?: undefined;
|
|
6283
|
-
counts?: undefined;
|
|
6284
6173
|
} | {
|
|
6285
|
-
ok: boolean;
|
|
6286
|
-
taskCount: number;
|
|
6287
6174
|
summary: string;
|
|
6288
|
-
|
|
6289
|
-
counts?: undefined;
|
|
6290
|
-
} | {
|
|
6291
|
-
ok: boolean;
|
|
6292
|
-
taskCount: number;
|
|
6293
|
-
counts: {
|
|
6175
|
+
counts?: {
|
|
6294
6176
|
pending: number;
|
|
6295
6177
|
in_progress: number;
|
|
6296
6178
|
completed: number;
|
|
6297
|
-
};
|
|
6298
|
-
|
|
6179
|
+
} | undefined;
|
|
6180
|
+
ok: boolean;
|
|
6181
|
+
taskCount: number;
|
|
6299
6182
|
error?: undefined;
|
|
6300
6183
|
}>;
|
|
6301
6184
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
@@ -6303,24 +6186,15 @@ export declare const hazeTools: {
|
|
|
6303
6186
|
outputSchema?: import("ai").FlexibleSchema<{
|
|
6304
6187
|
ok: boolean;
|
|
6305
6188
|
error: string;
|
|
6306
|
-
taskCount?: undefined;
|
|
6307
|
-
summary?: undefined;
|
|
6308
|
-
counts?: undefined;
|
|
6309
6189
|
} | {
|
|
6310
|
-
ok: boolean;
|
|
6311
|
-
taskCount: number;
|
|
6312
6190
|
summary: string;
|
|
6313
|
-
|
|
6314
|
-
counts?: undefined;
|
|
6315
|
-
} | {
|
|
6316
|
-
ok: boolean;
|
|
6317
|
-
taskCount: number;
|
|
6318
|
-
counts: {
|
|
6191
|
+
counts?: {
|
|
6319
6192
|
pending: number;
|
|
6320
6193
|
in_progress: number;
|
|
6321
6194
|
completed: number;
|
|
6322
|
-
};
|
|
6323
|
-
|
|
6195
|
+
} | undefined;
|
|
6196
|
+
ok: boolean;
|
|
6197
|
+
taskCount: number;
|
|
6324
6198
|
error?: undefined;
|
|
6325
6199
|
}> | undefined;
|
|
6326
6200
|
execute: import("ai").ToolExecuteFunction<{
|
|
@@ -6331,24 +6205,15 @@ export declare const hazeTools: {
|
|
|
6331
6205
|
}, {
|
|
6332
6206
|
ok: boolean;
|
|
6333
6207
|
error: string;
|
|
6334
|
-
taskCount?: undefined;
|
|
6335
|
-
summary?: undefined;
|
|
6336
|
-
counts?: undefined;
|
|
6337
6208
|
} | {
|
|
6338
|
-
ok: boolean;
|
|
6339
|
-
taskCount: number;
|
|
6340
6209
|
summary: string;
|
|
6341
|
-
|
|
6342
|
-
counts?: undefined;
|
|
6343
|
-
} | {
|
|
6344
|
-
ok: boolean;
|
|
6345
|
-
taskCount: number;
|
|
6346
|
-
counts: {
|
|
6210
|
+
counts?: {
|
|
6347
6211
|
pending: number;
|
|
6348
6212
|
in_progress: number;
|
|
6349
6213
|
completed: number;
|
|
6350
|
-
};
|
|
6351
|
-
|
|
6214
|
+
} | undefined;
|
|
6215
|
+
ok: boolean;
|
|
6216
|
+
taskCount: number;
|
|
6352
6217
|
error?: undefined;
|
|
6353
6218
|
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
6354
6219
|
} & {
|
|
@@ -6370,24 +6235,15 @@ export declare const hazeTools: {
|
|
|
6370
6235
|
}, {
|
|
6371
6236
|
ok: boolean;
|
|
6372
6237
|
error: string;
|
|
6373
|
-
taskCount?: undefined;
|
|
6374
|
-
summary?: undefined;
|
|
6375
|
-
counts?: undefined;
|
|
6376
6238
|
} | {
|
|
6377
|
-
ok: boolean;
|
|
6378
|
-
taskCount: number;
|
|
6379
6239
|
summary: string;
|
|
6380
|
-
|
|
6381
|
-
counts?: undefined;
|
|
6382
|
-
} | {
|
|
6383
|
-
ok: boolean;
|
|
6384
|
-
taskCount: number;
|
|
6385
|
-
counts: {
|
|
6240
|
+
counts?: {
|
|
6386
6241
|
pending: number;
|
|
6387
6242
|
in_progress: number;
|
|
6388
6243
|
completed: number;
|
|
6389
|
-
};
|
|
6390
|
-
|
|
6244
|
+
} | undefined;
|
|
6245
|
+
ok: boolean;
|
|
6246
|
+
taskCount: number;
|
|
6391
6247
|
error?: undefined;
|
|
6392
6248
|
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
6393
6249
|
});
|