@harness-engineering/types 0.5.0 → 0.6.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/README.md +20 -0
- package/dist/index.d.mts +127 -51
- package/dist/index.d.ts +127 -51
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,26 @@ Type guard to check if Result is Ok.
|
|
|
63
63
|
|
|
64
64
|
Type guard to check if Result is Err.
|
|
65
65
|
|
|
66
|
+
### `UsageRecord`
|
|
67
|
+
|
|
68
|
+
Extended token usage entry for cost tracking. Composes `TokenUsage` with session metadata, cache token counts, model identifier, and cost in integer microdollars.
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import type { UsageRecord } from '@harness-engineering/types';
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### `ModelPricing`
|
|
75
|
+
|
|
76
|
+
Per-model pricing rates in USD per 1 million tokens. Includes input, output, and optional cache read/write rates.
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import type { ModelPricing } from '@harness-engineering/types';
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### `DailyUsage` / `SessionUsage`
|
|
83
|
+
|
|
84
|
+
Aggregated usage views for daily trends and per-session breakdowns. Used by `harness usage` CLI commands.
|
|
85
|
+
|
|
66
86
|
## License
|
|
67
87
|
|
|
68
88
|
MIT
|
package/dist/index.d.mts
CHANGED
|
@@ -1,53 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Session-scoped accumulative state types.
|
|
3
|
-
*
|
|
4
|
-
* Session memory allows skills to append to shared sections (terminology,
|
|
5
|
-
* decisions, constraints, risks, openQuestions, evidence) rather than
|
|
6
|
-
* overwriting. Each entry is timestamped and tagged with the authoring skill.
|
|
7
|
-
*
|
|
8
|
-
* @see docs/changes/ai-foundations-integration/proposal.md
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Names of accumulative session sections.
|
|
12
|
-
* Runtime array used for iteration and validation.
|
|
13
|
-
*/
|
|
14
|
-
declare const SESSION_SECTION_NAMES: readonly ["terminology", "decisions", "constraints", "risks", "openQuestions", "evidence"];
|
|
15
|
-
/**
|
|
16
|
-
* Union type of valid session section names.
|
|
17
|
-
*/
|
|
18
|
-
type SessionSectionName = (typeof SESSION_SECTION_NAMES)[number];
|
|
19
|
-
/**
|
|
20
|
-
* Lifecycle status of a session entry.
|
|
21
|
-
* - `active` — current and relevant
|
|
22
|
-
* - `resolved` — addressed or answered (e.g., an open question that was resolved)
|
|
23
|
-
* - `superseded` — replaced by a newer entry
|
|
24
|
-
*/
|
|
25
|
-
type SessionEntryStatus = 'active' | 'resolved' | 'superseded';
|
|
26
|
-
/**
|
|
27
|
-
* A single entry in a session section.
|
|
28
|
-
* Entries are append-only; skills mark them as `resolved` or `superseded`
|
|
29
|
-
* rather than deleting.
|
|
30
|
-
*/
|
|
31
|
-
interface SessionEntry {
|
|
32
|
-
/** Auto-generated unique identifier */
|
|
33
|
-
id: string;
|
|
34
|
-
/** ISO 8601 timestamp of when the entry was created */
|
|
35
|
-
timestamp: string;
|
|
36
|
-
/** Name of the skill that authored this entry */
|
|
37
|
-
authorSkill: string;
|
|
38
|
-
/** The entry content (free-form text) */
|
|
39
|
-
content: string;
|
|
40
|
-
/** Lifecycle status of the entry */
|
|
41
|
-
status: SessionEntryStatus;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Container mapping each section name to its array of entries.
|
|
45
|
-
* Used as the shape of session-scoped state in `state.json`.
|
|
46
|
-
*/
|
|
47
|
-
type SessionSections = {
|
|
48
|
-
[K in SessionSectionName]: SessionEntry[];
|
|
49
|
-
};
|
|
50
|
-
|
|
51
1
|
/**
|
|
52
2
|
* Token usage statistics for an agent turn or session.
|
|
53
3
|
*/
|
|
@@ -320,6 +270,132 @@ interface WorkflowDefinition {
|
|
|
320
270
|
promptTemplate: string;
|
|
321
271
|
}
|
|
322
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Extended entry for cost tracking storage and display.
|
|
275
|
+
* Composes TokenUsage — does not extend it.
|
|
276
|
+
*/
|
|
277
|
+
interface UsageRecord {
|
|
278
|
+
/** Harness session identifier */
|
|
279
|
+
sessionId: string;
|
|
280
|
+
/** ISO 8601 timestamp of the usage event */
|
|
281
|
+
timestamp: string;
|
|
282
|
+
/** Token counts for this event */
|
|
283
|
+
tokens: TokenUsage;
|
|
284
|
+
/** Tokens used to create prompt cache entries */
|
|
285
|
+
cacheCreationTokens?: number;
|
|
286
|
+
/** Tokens read from prompt cache */
|
|
287
|
+
cacheReadTokens?: number;
|
|
288
|
+
/** Model identifier (e.g., "claude-sonnet-4-20250514") */
|
|
289
|
+
model?: string;
|
|
290
|
+
/** Cost in integer microdollars (USD * 1,000,000), calculated at read time */
|
|
291
|
+
costMicroUSD?: number;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Per-model pricing rates, all in USD per 1 million tokens.
|
|
295
|
+
*/
|
|
296
|
+
interface ModelPricing {
|
|
297
|
+
/** Input token cost per 1M tokens */
|
|
298
|
+
inputPer1M: number;
|
|
299
|
+
/** Output token cost per 1M tokens */
|
|
300
|
+
outputPer1M: number;
|
|
301
|
+
/** Cache read cost per 1M tokens (not all models support caching) */
|
|
302
|
+
cacheReadPer1M?: number;
|
|
303
|
+
/** Cache write/creation cost per 1M tokens */
|
|
304
|
+
cacheWritePer1M?: number;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Aggregated usage for a single calendar day.
|
|
308
|
+
*/
|
|
309
|
+
interface DailyUsage {
|
|
310
|
+
/** ISO 8601 date string (YYYY-MM-DD) */
|
|
311
|
+
date: string;
|
|
312
|
+
/** Number of distinct sessions that had activity on this day */
|
|
313
|
+
sessionCount: number;
|
|
314
|
+
/** Summed token counts across all sessions */
|
|
315
|
+
tokens: TokenUsage;
|
|
316
|
+
/** Summed cache creation tokens (omitted if no cache data) */
|
|
317
|
+
cacheCreationTokens?: number;
|
|
318
|
+
/** Summed cache read tokens (omitted if no cache data) */
|
|
319
|
+
cacheReadTokens?: number;
|
|
320
|
+
/** Total cost in integer microdollars, null if any session has unknown pricing */
|
|
321
|
+
costMicroUSD: number | null;
|
|
322
|
+
/** Distinct model identifiers seen on this day */
|
|
323
|
+
models: string[];
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Aggregated usage for a single session across all its turns.
|
|
327
|
+
*/
|
|
328
|
+
interface SessionUsage {
|
|
329
|
+
/** Harness session identifier */
|
|
330
|
+
sessionId: string;
|
|
331
|
+
/** ISO 8601 timestamp of the first event in this session */
|
|
332
|
+
firstTimestamp: string;
|
|
333
|
+
/** ISO 8601 timestamp of the last event in this session */
|
|
334
|
+
lastTimestamp: string;
|
|
335
|
+
/** Summed token counts across all turns */
|
|
336
|
+
tokens: TokenUsage;
|
|
337
|
+
/** Summed cache creation tokens (omitted if no cache data) */
|
|
338
|
+
cacheCreationTokens?: number;
|
|
339
|
+
/** Summed cache read tokens (omitted if no cache data) */
|
|
340
|
+
cacheReadTokens?: number;
|
|
341
|
+
/** Model identifier (may be populated from CC data) */
|
|
342
|
+
model?: string;
|
|
343
|
+
/** Total cost in integer microdollars, null if pricing unavailable */
|
|
344
|
+
costMicroUSD: number | null;
|
|
345
|
+
/** Data source: 'harness', 'claude-code', or 'merged' */
|
|
346
|
+
source: 'harness' | 'claude-code' | 'merged';
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Session-scoped accumulative state types.
|
|
351
|
+
*
|
|
352
|
+
* Session memory allows skills to append to shared sections (terminology,
|
|
353
|
+
* decisions, constraints, risks, openQuestions, evidence) rather than
|
|
354
|
+
* overwriting. Each entry is timestamped and tagged with the authoring skill.
|
|
355
|
+
*
|
|
356
|
+
* @see docs/changes/ai-foundations-integration/proposal.md
|
|
357
|
+
*/
|
|
358
|
+
/**
|
|
359
|
+
* Names of accumulative session sections.
|
|
360
|
+
* Runtime array used for iteration and validation.
|
|
361
|
+
*/
|
|
362
|
+
declare const SESSION_SECTION_NAMES: readonly ["terminology", "decisions", "constraints", "risks", "openQuestions", "evidence"];
|
|
363
|
+
/**
|
|
364
|
+
* Union type of valid session section names.
|
|
365
|
+
*/
|
|
366
|
+
type SessionSectionName = (typeof SESSION_SECTION_NAMES)[number];
|
|
367
|
+
/**
|
|
368
|
+
* Lifecycle status of a session entry.
|
|
369
|
+
* - `active` — current and relevant
|
|
370
|
+
* - `resolved` — addressed or answered (e.g., an open question that was resolved)
|
|
371
|
+
* - `superseded` — replaced by a newer entry
|
|
372
|
+
*/
|
|
373
|
+
type SessionEntryStatus = 'active' | 'resolved' | 'superseded';
|
|
374
|
+
/**
|
|
375
|
+
* A single entry in a session section.
|
|
376
|
+
* Entries are append-only; skills mark them as `resolved` or `superseded`
|
|
377
|
+
* rather than deleting.
|
|
378
|
+
*/
|
|
379
|
+
interface SessionEntry {
|
|
380
|
+
/** Auto-generated unique identifier */
|
|
381
|
+
id: string;
|
|
382
|
+
/** ISO 8601 timestamp of when the entry was created */
|
|
383
|
+
timestamp: string;
|
|
384
|
+
/** Name of the skill that authored this entry */
|
|
385
|
+
authorSkill: string;
|
|
386
|
+
/** The entry content (free-form text) */
|
|
387
|
+
content: string;
|
|
388
|
+
/** Lifecycle status of the entry */
|
|
389
|
+
status: SessionEntryStatus;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Container mapping each section name to its array of entries.
|
|
393
|
+
* Used as the shape of session-scoped state in `state.json`.
|
|
394
|
+
*/
|
|
395
|
+
type SessionSections = {
|
|
396
|
+
[K in SessionSectionName]: SessionEntry[];
|
|
397
|
+
};
|
|
398
|
+
|
|
323
399
|
/**
|
|
324
400
|
* @harness-engineering/types
|
|
325
401
|
*
|
|
@@ -643,4 +719,4 @@ interface Roadmap {
|
|
|
643
719
|
milestones: RoadmapMilestone[];
|
|
644
720
|
}
|
|
645
721
|
|
|
646
|
-
export { type AgentBackend, type AgentConfig, type AgentError, type AgentErrorCategory, type AgentEvent, type AgentSession, type BlockerRef, type CICheckIssue, type CICheckName, type CICheckOptions, type CICheckReport, type CICheckResult, type CICheckStatus, type CICheckSummary, type CIFailOnSeverity, type CIInitOptions, type CIPlatform, type CognitiveMode, Err, type FeatureStatus, type HooksConfig, type Issue, type IssueTrackerClient, Ok, type PollingConfig, type Result, type Roadmap, type RoadmapFeature, type RoadmapFrontmatter, type RoadmapMilestone, SESSION_SECTION_NAMES, STANDARD_COGNITIVE_MODES, type ServerConfig, type SessionEntry, type SessionEntryStatus, type SessionSectionName, type SessionSections, type SessionStartParams, type SkillContext, type SkillError, type SkillLifecycleHooks, type SkillMetadata, type SkillResult, type StepOutcome, type TokenUsage, type TrackerConfig, type TurnContext, type TurnParams, type TurnResult, type Workflow, type WorkflowConfig, type WorkflowDefinition, type WorkflowResult, type WorkflowStep, type WorkflowStepResult, type WorkspaceConfig, isErr, isOk };
|
|
722
|
+
export { type AgentBackend, type AgentConfig, type AgentError, type AgentErrorCategory, type AgentEvent, type AgentSession, type BlockerRef, type CICheckIssue, type CICheckName, type CICheckOptions, type CICheckReport, type CICheckResult, type CICheckStatus, type CICheckSummary, type CIFailOnSeverity, type CIInitOptions, type CIPlatform, type CognitiveMode, type DailyUsage, Err, type FeatureStatus, type HooksConfig, type Issue, type IssueTrackerClient, type ModelPricing, Ok, type PollingConfig, type Result, type Roadmap, type RoadmapFeature, type RoadmapFrontmatter, type RoadmapMilestone, SESSION_SECTION_NAMES, STANDARD_COGNITIVE_MODES, type ServerConfig, type SessionEntry, type SessionEntryStatus, type SessionSectionName, type SessionSections, type SessionStartParams, type SessionUsage, type SkillContext, type SkillError, type SkillLifecycleHooks, type SkillMetadata, type SkillResult, type StepOutcome, type TokenUsage, type TrackerConfig, type TurnContext, type TurnParams, type TurnResult, type UsageRecord, type Workflow, type WorkflowConfig, type WorkflowDefinition, type WorkflowResult, type WorkflowStep, type WorkflowStepResult, type WorkspaceConfig, isErr, isOk };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,53 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Session-scoped accumulative state types.
|
|
3
|
-
*
|
|
4
|
-
* Session memory allows skills to append to shared sections (terminology,
|
|
5
|
-
* decisions, constraints, risks, openQuestions, evidence) rather than
|
|
6
|
-
* overwriting. Each entry is timestamped and tagged with the authoring skill.
|
|
7
|
-
*
|
|
8
|
-
* @see docs/changes/ai-foundations-integration/proposal.md
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Names of accumulative session sections.
|
|
12
|
-
* Runtime array used for iteration and validation.
|
|
13
|
-
*/
|
|
14
|
-
declare const SESSION_SECTION_NAMES: readonly ["terminology", "decisions", "constraints", "risks", "openQuestions", "evidence"];
|
|
15
|
-
/**
|
|
16
|
-
* Union type of valid session section names.
|
|
17
|
-
*/
|
|
18
|
-
type SessionSectionName = (typeof SESSION_SECTION_NAMES)[number];
|
|
19
|
-
/**
|
|
20
|
-
* Lifecycle status of a session entry.
|
|
21
|
-
* - `active` — current and relevant
|
|
22
|
-
* - `resolved` — addressed or answered (e.g., an open question that was resolved)
|
|
23
|
-
* - `superseded` — replaced by a newer entry
|
|
24
|
-
*/
|
|
25
|
-
type SessionEntryStatus = 'active' | 'resolved' | 'superseded';
|
|
26
|
-
/**
|
|
27
|
-
* A single entry in a session section.
|
|
28
|
-
* Entries are append-only; skills mark them as `resolved` or `superseded`
|
|
29
|
-
* rather than deleting.
|
|
30
|
-
*/
|
|
31
|
-
interface SessionEntry {
|
|
32
|
-
/** Auto-generated unique identifier */
|
|
33
|
-
id: string;
|
|
34
|
-
/** ISO 8601 timestamp of when the entry was created */
|
|
35
|
-
timestamp: string;
|
|
36
|
-
/** Name of the skill that authored this entry */
|
|
37
|
-
authorSkill: string;
|
|
38
|
-
/** The entry content (free-form text) */
|
|
39
|
-
content: string;
|
|
40
|
-
/** Lifecycle status of the entry */
|
|
41
|
-
status: SessionEntryStatus;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Container mapping each section name to its array of entries.
|
|
45
|
-
* Used as the shape of session-scoped state in `state.json`.
|
|
46
|
-
*/
|
|
47
|
-
type SessionSections = {
|
|
48
|
-
[K in SessionSectionName]: SessionEntry[];
|
|
49
|
-
};
|
|
50
|
-
|
|
51
1
|
/**
|
|
52
2
|
* Token usage statistics for an agent turn or session.
|
|
53
3
|
*/
|
|
@@ -320,6 +270,132 @@ interface WorkflowDefinition {
|
|
|
320
270
|
promptTemplate: string;
|
|
321
271
|
}
|
|
322
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Extended entry for cost tracking storage and display.
|
|
275
|
+
* Composes TokenUsage — does not extend it.
|
|
276
|
+
*/
|
|
277
|
+
interface UsageRecord {
|
|
278
|
+
/** Harness session identifier */
|
|
279
|
+
sessionId: string;
|
|
280
|
+
/** ISO 8601 timestamp of the usage event */
|
|
281
|
+
timestamp: string;
|
|
282
|
+
/** Token counts for this event */
|
|
283
|
+
tokens: TokenUsage;
|
|
284
|
+
/** Tokens used to create prompt cache entries */
|
|
285
|
+
cacheCreationTokens?: number;
|
|
286
|
+
/** Tokens read from prompt cache */
|
|
287
|
+
cacheReadTokens?: number;
|
|
288
|
+
/** Model identifier (e.g., "claude-sonnet-4-20250514") */
|
|
289
|
+
model?: string;
|
|
290
|
+
/** Cost in integer microdollars (USD * 1,000,000), calculated at read time */
|
|
291
|
+
costMicroUSD?: number;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Per-model pricing rates, all in USD per 1 million tokens.
|
|
295
|
+
*/
|
|
296
|
+
interface ModelPricing {
|
|
297
|
+
/** Input token cost per 1M tokens */
|
|
298
|
+
inputPer1M: number;
|
|
299
|
+
/** Output token cost per 1M tokens */
|
|
300
|
+
outputPer1M: number;
|
|
301
|
+
/** Cache read cost per 1M tokens (not all models support caching) */
|
|
302
|
+
cacheReadPer1M?: number;
|
|
303
|
+
/** Cache write/creation cost per 1M tokens */
|
|
304
|
+
cacheWritePer1M?: number;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Aggregated usage for a single calendar day.
|
|
308
|
+
*/
|
|
309
|
+
interface DailyUsage {
|
|
310
|
+
/** ISO 8601 date string (YYYY-MM-DD) */
|
|
311
|
+
date: string;
|
|
312
|
+
/** Number of distinct sessions that had activity on this day */
|
|
313
|
+
sessionCount: number;
|
|
314
|
+
/** Summed token counts across all sessions */
|
|
315
|
+
tokens: TokenUsage;
|
|
316
|
+
/** Summed cache creation tokens (omitted if no cache data) */
|
|
317
|
+
cacheCreationTokens?: number;
|
|
318
|
+
/** Summed cache read tokens (omitted if no cache data) */
|
|
319
|
+
cacheReadTokens?: number;
|
|
320
|
+
/** Total cost in integer microdollars, null if any session has unknown pricing */
|
|
321
|
+
costMicroUSD: number | null;
|
|
322
|
+
/** Distinct model identifiers seen on this day */
|
|
323
|
+
models: string[];
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Aggregated usage for a single session across all its turns.
|
|
327
|
+
*/
|
|
328
|
+
interface SessionUsage {
|
|
329
|
+
/** Harness session identifier */
|
|
330
|
+
sessionId: string;
|
|
331
|
+
/** ISO 8601 timestamp of the first event in this session */
|
|
332
|
+
firstTimestamp: string;
|
|
333
|
+
/** ISO 8601 timestamp of the last event in this session */
|
|
334
|
+
lastTimestamp: string;
|
|
335
|
+
/** Summed token counts across all turns */
|
|
336
|
+
tokens: TokenUsage;
|
|
337
|
+
/** Summed cache creation tokens (omitted if no cache data) */
|
|
338
|
+
cacheCreationTokens?: number;
|
|
339
|
+
/** Summed cache read tokens (omitted if no cache data) */
|
|
340
|
+
cacheReadTokens?: number;
|
|
341
|
+
/** Model identifier (may be populated from CC data) */
|
|
342
|
+
model?: string;
|
|
343
|
+
/** Total cost in integer microdollars, null if pricing unavailable */
|
|
344
|
+
costMicroUSD: number | null;
|
|
345
|
+
/** Data source: 'harness', 'claude-code', or 'merged' */
|
|
346
|
+
source: 'harness' | 'claude-code' | 'merged';
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Session-scoped accumulative state types.
|
|
351
|
+
*
|
|
352
|
+
* Session memory allows skills to append to shared sections (terminology,
|
|
353
|
+
* decisions, constraints, risks, openQuestions, evidence) rather than
|
|
354
|
+
* overwriting. Each entry is timestamped and tagged with the authoring skill.
|
|
355
|
+
*
|
|
356
|
+
* @see docs/changes/ai-foundations-integration/proposal.md
|
|
357
|
+
*/
|
|
358
|
+
/**
|
|
359
|
+
* Names of accumulative session sections.
|
|
360
|
+
* Runtime array used for iteration and validation.
|
|
361
|
+
*/
|
|
362
|
+
declare const SESSION_SECTION_NAMES: readonly ["terminology", "decisions", "constraints", "risks", "openQuestions", "evidence"];
|
|
363
|
+
/**
|
|
364
|
+
* Union type of valid session section names.
|
|
365
|
+
*/
|
|
366
|
+
type SessionSectionName = (typeof SESSION_SECTION_NAMES)[number];
|
|
367
|
+
/**
|
|
368
|
+
* Lifecycle status of a session entry.
|
|
369
|
+
* - `active` — current and relevant
|
|
370
|
+
* - `resolved` — addressed or answered (e.g., an open question that was resolved)
|
|
371
|
+
* - `superseded` — replaced by a newer entry
|
|
372
|
+
*/
|
|
373
|
+
type SessionEntryStatus = 'active' | 'resolved' | 'superseded';
|
|
374
|
+
/**
|
|
375
|
+
* A single entry in a session section.
|
|
376
|
+
* Entries are append-only; skills mark them as `resolved` or `superseded`
|
|
377
|
+
* rather than deleting.
|
|
378
|
+
*/
|
|
379
|
+
interface SessionEntry {
|
|
380
|
+
/** Auto-generated unique identifier */
|
|
381
|
+
id: string;
|
|
382
|
+
/** ISO 8601 timestamp of when the entry was created */
|
|
383
|
+
timestamp: string;
|
|
384
|
+
/** Name of the skill that authored this entry */
|
|
385
|
+
authorSkill: string;
|
|
386
|
+
/** The entry content (free-form text) */
|
|
387
|
+
content: string;
|
|
388
|
+
/** Lifecycle status of the entry */
|
|
389
|
+
status: SessionEntryStatus;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Container mapping each section name to its array of entries.
|
|
393
|
+
* Used as the shape of session-scoped state in `state.json`.
|
|
394
|
+
*/
|
|
395
|
+
type SessionSections = {
|
|
396
|
+
[K in SessionSectionName]: SessionEntry[];
|
|
397
|
+
};
|
|
398
|
+
|
|
323
399
|
/**
|
|
324
400
|
* @harness-engineering/types
|
|
325
401
|
*
|
|
@@ -643,4 +719,4 @@ interface Roadmap {
|
|
|
643
719
|
milestones: RoadmapMilestone[];
|
|
644
720
|
}
|
|
645
721
|
|
|
646
|
-
export { type AgentBackend, type AgentConfig, type AgentError, type AgentErrorCategory, type AgentEvent, type AgentSession, type BlockerRef, type CICheckIssue, type CICheckName, type CICheckOptions, type CICheckReport, type CICheckResult, type CICheckStatus, type CICheckSummary, type CIFailOnSeverity, type CIInitOptions, type CIPlatform, type CognitiveMode, Err, type FeatureStatus, type HooksConfig, type Issue, type IssueTrackerClient, Ok, type PollingConfig, type Result, type Roadmap, type RoadmapFeature, type RoadmapFrontmatter, type RoadmapMilestone, SESSION_SECTION_NAMES, STANDARD_COGNITIVE_MODES, type ServerConfig, type SessionEntry, type SessionEntryStatus, type SessionSectionName, type SessionSections, type SessionStartParams, type SkillContext, type SkillError, type SkillLifecycleHooks, type SkillMetadata, type SkillResult, type StepOutcome, type TokenUsage, type TrackerConfig, type TurnContext, type TurnParams, type TurnResult, type Workflow, type WorkflowConfig, type WorkflowDefinition, type WorkflowResult, type WorkflowStep, type WorkflowStepResult, type WorkspaceConfig, isErr, isOk };
|
|
722
|
+
export { type AgentBackend, type AgentConfig, type AgentError, type AgentErrorCategory, type AgentEvent, type AgentSession, type BlockerRef, type CICheckIssue, type CICheckName, type CICheckOptions, type CICheckReport, type CICheckResult, type CICheckStatus, type CICheckSummary, type CIFailOnSeverity, type CIInitOptions, type CIPlatform, type CognitiveMode, type DailyUsage, Err, type FeatureStatus, type HooksConfig, type Issue, type IssueTrackerClient, type ModelPricing, Ok, type PollingConfig, type Result, type Roadmap, type RoadmapFeature, type RoadmapFrontmatter, type RoadmapMilestone, SESSION_SECTION_NAMES, STANDARD_COGNITIVE_MODES, type ServerConfig, type SessionEntry, type SessionEntryStatus, type SessionSectionName, type SessionSections, type SessionStartParams, type SessionUsage, type SkillContext, type SkillError, type SkillLifecycleHooks, type SkillMetadata, type SkillResult, type StepOutcome, type TokenUsage, type TrackerConfig, type TurnContext, type TurnParams, type TurnResult, type UsageRecord, type Workflow, type WorkflowConfig, type WorkflowDefinition, type WorkflowResult, type WorkflowStep, type WorkflowStepResult, type WorkspaceConfig, isErr, isOk };
|