Skip to content
Open
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
4 changes: 1 addition & 3 deletions evals/intent-discovery/corpus/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const expectedSkillAreas = ['router', 'start', 'table-v9'] as const
export type ExpectedSkillArea = (typeof expectedSkillAreas)[number]

export type IntentDiscoveryFixture =
| 'router-basic'
| 'start-basic'
| 'table-v9-basic'
'router-basic' | 'start-basic' | 'table-v9-basic'

export type IntentDiscoveryFailureClass =
| 'strict-success'
Expand Down
3 changes: 1 addition & 2 deletions evals/intent-discovery/harness/intent-hooks/hook-core.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export type IntentObservation = {
}

export type GateDecision =
| { decision: 'allow' }
| { decision: 'deny'; reason: string }
{ decision: 'allow' } | { decision: 'deny'; reason: string }

export const EDIT_TOOLS: Set<string>
export const GATE_DENY_REASON: string
Expand Down
3 changes: 1 addition & 2 deletions packages/intent/src/commands/install/guidance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ interface WriteIntentSkillsBlockSkippedResult {
}

export type WriteIntentSkillsBlockResult =
| WriteIntentSkillsBlockFileResult
| WriteIntentSkillsBlockSkippedResult
WriteIntentSkillsBlockFileResult | WriteIntentSkillsBlockSkippedResult

interface ManagedBlock {
end: number
Expand Down
4 changes: 1 addition & 3 deletions packages/intent/src/core/source-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ export interface SourcePolicyOptions {
}

type LoadRefusalCode =
| 'package-excluded'
| 'package-not-listed'
| 'skill-excluded'
'package-excluded' | 'package-not-listed' | 'skill-excluded'

export interface LoadRefusal {
code: LoadRefusalCode
Expand Down
3 changes: 1 addition & 2 deletions packages/intent/src/hooks/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export type IntentObservation = IntentInvocation & {
}

export type HookDecision =
| { decision: 'allow' }
| { decision: 'deny'; reason: string }
{ decision: 'allow' } | { decision: 'deny'; reason: string }

export type ToolEvent = {
tool_name?: unknown
Expand Down
4 changes: 1 addition & 3 deletions packages/intent/src/skills/use.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ export interface SkillUse {
}

export type SkillUseParseErrorCode =
| 'missing-separator'
| 'empty-package'
| 'empty-skill'
'missing-separator' | 'empty-package' | 'empty-skill'

export class SkillUseParseError extends Error {
readonly code: SkillUseParseErrorCode
Expand Down
Loading
Loading