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
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
persist-credentials: false

- name: Setup Tools
uses: TanStack/config/.github/setup@a4c6d06ed525a310901e3e9fbed9b2301ebecfd5 # main

Check warning on line 46 in .github/workflows/benchmarks.yml

View workflow job for this annotation

GitHub Actions / Run zizmor

ref-version-mismatch

benchmarks.yml:46: action's hash pin has mismatched or missing version comment: points to commit b313637fa7d3

- name: Run intent CodSpeed benchmark
continue-on-error: true
uses: CodSpeedHQ/action@c145068895e045cc725ee76fcd2307624b65c3af # v4.17.5
uses: CodSpeedHQ/action@a4a36bb07c0638b0b4ca52bf1f3dad1b4289e52f # v4.18.1
with:
mode: simulation
run: WITH_INSTRUMENTATION=1 pnpm exec nx run @benchmarks/intent:test:perf
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
persist-credentials: false
- name: Run zizmor
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7
with:
advanced-security: false
annotations: true
4 changes: 2 additions & 2 deletions benchmarks/intent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"test:perf": "vitest bench --config ./vitest.config.ts ./*.bench.ts"
},
"devDependencies": {
"@codspeed/vitest-plugin": "^5.5.0",
"@codspeed/vitest-plugin": "^5.7.1",
"typescript": "6.0.3",
"vitest": "4.1.8"
"vitest": "4.1.9"
},
"nx": {
"targets": {
Expand Down
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
6 changes: 3 additions & 3 deletions evals/intent-discovery/fixtures/router-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"private": true,
"type": "module",
"dependencies": {
"@tanstack/react-router": "1.170.16",
"react": "19.2.0",
"react-dom": "19.2.0"
"@tanstack/react-router": "1.170.17",
"react": "19.2.7",
"react-dom": "19.2.7"
}
}
8 changes: 4 additions & 4 deletions evals/intent-discovery/fixtures/start-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"private": true,
"type": "module",
"dependencies": {
"@tanstack/react-router": "1.170.16",
"@tanstack/react-start": "1.168.26",
"react": "19.2.0",
"react-dom": "19.2.0"
"@tanstack/react-router": "1.170.17",
"@tanstack/react-start": "1.168.27",
"react": "19.2.7",
"react-dom": "19.2.7"
}
}
6 changes: 3 additions & 3 deletions evals/intent-discovery/fixtures/table-v9-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"private": true,
"type": "module",
"dependencies": {
"@tanstack/react-table": "9.0.0-beta.16",
"react": "19.2.0",
"react-dom": "19.2.0"
"@tanstack/react-table": "9.0.0-beta.26",
"react": "19.2.7",
"react-dom": "19.2.7"
}
}
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
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
"@types/node": "^25.0.7",
"eslint": "^9.39.4",
"eslint-plugin-unused-imports": "^4.4.1",
"knip": "^6.16.1",
"knip": "^6.23.0",
"markdown-link-extractor": "^4.0.3",
"nx": "^22.7.5",
"prettier": "^3.8.4",
"sherif": "^1.11.1",
"nx": "^22.7.6",
"prettier": "^3.9.4",
"sherif": "^1.12.0",
"tinyglobby": "^0.2.17",
"typescript": "6.0.3",
"vitest": "4.1.8",
"vitest-evals": "^0.13.1"
"vitest": "4.1.9",
"vitest-evals": "^0.14.0"
}
}
6 changes: 3 additions & 3 deletions packages/intent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
"dependencies": {
"cac": "^6.7.14",
"jsonc-parser": "^3.3.1",
"semver": "^7.8.4",
"semver": "^7.8.5",
"std-env": "^4.1.0",
"yaml": "2.9.0"
},
"devDependencies": {
"@types/semver": "^7.7.1",
"tsdown": "^0.22.2",
"verdaccio": "^6.7.2"
"tsdown": "^0.22.3",
"verdaccio": "^6.7.4"
},
"scripts": {
"prepack": "npm run build",
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