mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-28 08:06:16 +00:00
* feat: let AI harnesses solve tasks with code, then save and reuse it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvufUfjaH7aRMxVWTue * fix: page code mode searches locally and name the job in the chat's run result Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvufUfjaH7aRMxVWTue * chore: point the EE ref at the code_mode feature usage registration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvufUfjaH7aRMxVWTue * fix: follow the search cursor and match words in any script Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvufUfjaH7aRMxVWTue * fix: count only test_run_code runs and save only their previews Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvufUfjaH7aRMxVWTue * refactor: drop save_preview and keep code mode programs with write_script Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvufUfjaH7aRMxVWTue * docs: trim code mode guidance and cover it with ai_evals cases Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvufUfjaH7aRMxVWTue * fix: show the staged name of drafts found by a list_workspace_items search Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvufUfjaH7aRMxVWTue * chore: update ee-repo-ref to 6e6a9f3ed1e3023da46dc6f6af8f465abb5da001 This commit updates the EE repository reference after PR #988 was merged in windmill-ee-private. Previous ee-repo-ref: 82008bd50305789174eb50ed06d9c12b25b74d9e New ee-repo-ref: 6e6a9f3ed1e3023da46dc6f6af8f465abb5da001 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
278 lines
11 KiB
YAML
278 lines
11 KiB
YAML
- id: bun-hello-script
|
|
prompt: |-
|
|
Create a Windmill Bun script at `f/evals/hello.ts`.
|
|
It should take a `name` input and return a greeting object like `{ greeting: "Hello, Alice!" }`.
|
|
expected: ai_evals/fixtures/cli/expected/bun-hello-script
|
|
cliExpect:
|
|
requiredSkills:
|
|
- write-script-bun
|
|
requiredSkillsBeforeFirstMutation:
|
|
- write-script-bun
|
|
forbiddenSkills:
|
|
- write-script-python3
|
|
- write-flow
|
|
forbiddenExecutedCommands:
|
|
- ^wmill generate-metadata
|
|
- ^wmill sync push
|
|
judgeChecklist:
|
|
- creates the requested Bun script at f/evals/hello.ts
|
|
- takes a name input
|
|
- returns an object containing the greeting
|
|
|
|
- id: bun-hello-flow
|
|
prompt: |-
|
|
Create a Windmill flow at `f/evals/hello__flow`.
|
|
It should take a `name` input and return a greeting object like `{ greeting: "Hello, Alice!" }`.
|
|
Put the step code in `hello.ts`.
|
|
expected: ai_evals/fixtures/cli/expected/bun-hello-flow
|
|
cliExpect:
|
|
requiredSkills:
|
|
- write-flow
|
|
requiredSkillsBeforeFirstMutation:
|
|
- write-flow
|
|
forbiddenSkills:
|
|
- write-script-python3
|
|
forbiddenExecutedCommands:
|
|
- ^wmill generate-metadata
|
|
- ^wmill sync push
|
|
judgeChecklist:
|
|
- creates the requested flow folder with flow.yaml and hello.ts
|
|
- wires the name input into the flow step
|
|
- returns the greeting object
|
|
|
|
- id: python-add-numbers-script
|
|
prompt: |-
|
|
Add a Windmill Python script at `f/evals/add_numbers.py`.
|
|
It should take `a` and `b` as inputs and return `{ "total": a + b }`.
|
|
expected: ai_evals/fixtures/cli/expected/python-add-numbers-script
|
|
cliExpect:
|
|
requiredSkills:
|
|
- write-script-python3
|
|
requiredSkillsBeforeFirstMutation:
|
|
- write-script-python3
|
|
forbiddenSkills:
|
|
- write-script-bun
|
|
- write-flow
|
|
forbiddenExecutedCommands:
|
|
- ^wmill generate-metadata
|
|
- ^wmill sync push
|
|
judgeChecklist:
|
|
- creates the requested Python script at f/evals/add_numbers.py
|
|
- takes `a` and `b` as inputs
|
|
- returns an object with total equal to a plus b
|
|
|
|
- id: bun-hello-script-uppercase
|
|
prompt: |-
|
|
Update `f/evals/hello.ts` so it accepts an optional `uppercase` boolean.
|
|
Keep returning `{ greeting: ... }`, but when `uppercase` is true the greeting should be uppercased before returning it.
|
|
initial: ai_evals/fixtures/cli/initial/bun-hello-script-uppercase
|
|
expected: ai_evals/fixtures/cli/expected/bun-hello-script-uppercase
|
|
judgeChecklist:
|
|
- updates the existing hello.ts file rather than creating a new script
|
|
- accepts an optional uppercase boolean input
|
|
- keeps returning an object with greeting
|
|
- uppercases the greeting when uppercase is true
|
|
|
|
- id: bun-hello-flow-punctuation
|
|
prompt: |-
|
|
Update the existing flow in `f/evals/hello__flow` so it also accepts an optional `punctuation` input.
|
|
The greeting should use that punctuation and default to `!` when it is missing.
|
|
initial: ai_evals/fixtures/cli/initial/bun-hello-flow-punctuation
|
|
expected: ai_evals/fixtures/cli/expected/bun-hello-flow-punctuation
|
|
judgeChecklist:
|
|
- updates the existing hello flow instead of creating a new one
|
|
- adds an optional punctuation input to the flow
|
|
- updates the step code so the returned greeting uses punctuation
|
|
- defaults punctuation to an exclamation mark when omitted
|
|
|
|
# An in-house API has no hub resource type, so its connection needs a type of the workspace's
|
|
# own: a token parameter or a variable read inside the code is the fallback the guidance rules out.
|
|
- id: cli-resource-type-custom-api
|
|
prompt: |-
|
|
Create a Windmill Bun script at `f/evals/get_invoice.ts` that fetches an invoice by id from our internal billing API at https://billing.acme.internal/api/v1. It authenticates with a bearer token.
|
|
cliExpect:
|
|
requiredSkills:
|
|
- write-script-bun
|
|
forbiddenExecutedCommands:
|
|
- ^wmill sync push
|
|
judgeChecklist:
|
|
- creates the script at f/evals/get_invoice.ts, fetching an invoice by id with a bearer token
|
|
- the script takes the billing API's base URL and token together as one resource-typed parameter, not a plain string token or a variable read inside the code
|
|
- defines the billing API's resource type with its base URL and token fields, as a resource-type file or in the reply (asking before writing the file is fine)
|
|
- the custom resource type's name has the c_ prefix (e.g. `RT.CAcmeBilling` in TypeScript, `c_acme_billing.resource-type.json`)
|
|
|
|
- id: flow-reuse-existing-script
|
|
prompt: |-
|
|
There is already a reusable greeting script at `f/lib/format_greeting.ts`.
|
|
Create a flow at `f/evals/reuse_greeting__flow` that takes a `name` input and reuses that existing script instead of duplicating the logic inline.
|
|
initial: ai_evals/fixtures/cli/initial/flow-reuse-existing-script
|
|
expected: ai_evals/fixtures/cli/expected/flow-reuse-existing-script
|
|
cliExpect:
|
|
requiredSkills:
|
|
- write-flow
|
|
requiredSkillsBeforeFirstMutation:
|
|
- write-flow
|
|
forbiddenExecutedCommands:
|
|
- ^wmill generate-metadata
|
|
- ^wmill sync push
|
|
judgeChecklist:
|
|
- creates the requested flow at f/evals/reuse_greeting__flow
|
|
- reuses the existing script from f/lib by path
|
|
- does not duplicate the greeting logic in a new inline script
|
|
- wires the name input into the reused script
|
|
|
|
- id: wac-typescript-order-workflow
|
|
prompt: |-
|
|
Create a Windmill Workflow-as-Code TypeScript script at `f/evals/order_workflow.ts`.
|
|
It should take an `orderId` string, load the order in a durable task, checkpoint a processing timestamp with `step`, and return `{ orderId, processedAt, status }`.
|
|
cliExpect:
|
|
requiredSkills:
|
|
- write-workflow-as-code
|
|
requiredSkillsBeforeFirstMutation:
|
|
- write-workflow-as-code
|
|
forbiddenSkills:
|
|
- write-flow
|
|
- write-script-bun
|
|
- write-script-python3
|
|
judgeChecklist:
|
|
- creates the requested TypeScript WAC script at f/evals/order_workflow.ts
|
|
- uses the Workflow-as-Code SDK from windmill-client
|
|
- wraps the entrypoint with workflow
|
|
- uses a durable task for loading the order
|
|
- uses step to checkpoint the processing timestamp
|
|
- does not create an OpenFlow flow.yaml or flow folder
|
|
|
|
- id: wac-python-approval-workflow
|
|
prompt: |-
|
|
Create a Windmill Workflow-as-Code Python script at `f/evals/approval_workflow.py`.
|
|
It should take a `request_id` string, prepare an approval summary in a task, create resume URLs inside a durable step, wait for approval, and return the approval result.
|
|
cliExpect:
|
|
requiredSkills:
|
|
- write-workflow-as-code
|
|
requiredSkillsBeforeFirstMutation:
|
|
- write-workflow-as-code
|
|
forbiddenSkills:
|
|
- write-flow
|
|
- write-script-bun
|
|
- write-script-python3
|
|
judgeChecklist:
|
|
- creates the requested Python WAC script at f/evals/approval_workflow.py
|
|
- imports Workflow-as-Code helpers from wmill
|
|
- decorates an async entrypoint with @workflow
|
|
- uses @task for the approval summary work
|
|
- gets resume URLs inside step before waiting for approval
|
|
- uses wait_for_approval
|
|
- does not create an OpenFlow flow.yaml or flow folder
|
|
|
|
- id: wac-not-openflow-disambiguation
|
|
prompt: |-
|
|
Create this as Workflow-as-Code, not an OpenFlow YAML flow: a TypeScript script at `f/evals/fanout_workflow.ts`.
|
|
It should take an array of customer IDs, process each customer with a WAC task, run the independent customer tasks in parallel, and return the collected results.
|
|
cliExpect:
|
|
requiredSkills:
|
|
- write-workflow-as-code
|
|
requiredSkillsBeforeFirstMutation:
|
|
- write-workflow-as-code
|
|
forbiddenSkills:
|
|
- write-flow
|
|
- write-script-bun
|
|
- write-script-python3
|
|
judgeChecklist:
|
|
- creates the requested TypeScript script at f/evals/fanout_workflow.ts
|
|
- treats the request as Workflow-as-Code rather than an OpenFlow flow
|
|
- uses workflow for the script entrypoint
|
|
- uses task for each customer processing unit
|
|
- runs independent customer tasks in parallel
|
|
- does not create a flow folder or flow.yaml
|
|
|
|
- id: cli-job-debug-guidance
|
|
prompt: |-
|
|
A Windmill job failed.
|
|
Tell me exactly which `wmill` commands to run to inspect the job details, logs, and final result for job ID `123`.
|
|
Do not modify any files.
|
|
cliExpect:
|
|
requiredSkills:
|
|
- cli-commands
|
|
workspaceUnchanged: true
|
|
orderedProposedCommands:
|
|
- wmill job get 123
|
|
- wmill job logs 123
|
|
- wmill job result 123
|
|
forbiddenProposedCommands:
|
|
- wmill sync push
|
|
forbiddenExecutedCommands:
|
|
- ^wmill job get
|
|
- ^wmill job logs
|
|
- ^wmill job result
|
|
judgeChecklist:
|
|
- does not modify the workspace
|
|
- recommends commands to inspect the job details
|
|
- recommends commands to inspect the job logs
|
|
- recommends commands to inspect the final result
|
|
|
|
- id: cli-sync-pull-guidance
|
|
prompt: |-
|
|
I want to review remote workspace changes before editing locally.
|
|
Tell me the first `wmill` command I should run.
|
|
Do not modify any files.
|
|
cliExpect:
|
|
requiredSkills:
|
|
- cli-commands
|
|
workspaceUnchanged: true
|
|
requiredProposedCommands:
|
|
- wmill sync pull
|
|
forbiddenProposedCommands:
|
|
- wmill sync push
|
|
forbiddenExecutedCommands:
|
|
- ^wmill sync pull
|
|
- ^wmill sync push
|
|
judgeChecklist:
|
|
- does not modify the workspace
|
|
- recommends using sync pull before making local edits
|
|
- does not recommend pushing first
|
|
|
|
- id: cli-script-deploy-guidance
|
|
prompt: |-
|
|
I already modified a Windmill script locally and now want the next CLI commands to prepare it and deploy it.
|
|
Tell me the commands to run, in order.
|
|
Do not modify any files.
|
|
cliExpect:
|
|
requiredSkills:
|
|
- cli-commands
|
|
workspaceUnchanged: true
|
|
orderedAssistantMentions:
|
|
- wmill generate-metadata
|
|
- wmill sync push
|
|
orderedProposedCommands:
|
|
- wmill generate-metadata
|
|
- wmill sync push
|
|
forbiddenExecutedCommands:
|
|
- ^wmill generate-metadata
|
|
- ^wmill sync push
|
|
judgeChecklist:
|
|
- does not modify the workspace
|
|
- recommends generate-metadata before sync push
|
|
- presents the commands in order
|
|
|
|
# Code mode from the CLI: a task against a system the workspace holds credentials for is answered
|
|
# by previewing a script in the user's scope, never by pushing it. `wmill` is stubbed here, so the
|
|
# preview is checked as a proposed command and the file as written.
|
|
- id: cli-codemode-preview-not-push
|
|
prompt: |-
|
|
How many stars does windmill-labs/windmill have on GitHub right now? Use our GitHub resource
|
|
at `f/evals/github_main` in the Windmill workspace.
|
|
cliExpect:
|
|
requiredSkills:
|
|
- code-mode
|
|
requiredProposedCommands:
|
|
- wmill script preview
|
|
forbiddenProposedCommands:
|
|
- wmill sync push
|
|
forbiddenExecutedCommands:
|
|
- ^wmill sync push
|
|
judgeChecklist:
|
|
- writes one Windmill script with a main function that returns the repository's star count, for a u/<username>/ path (`wmill` is stubbed here and refuses every command, so a placeholder username, a script given in the reply rather than written once the stub refused, and no count in the reply are all fine)
|
|
- the script takes the GitHub resource as a typed main parameter rather than reading a token itself
|
|
- proposes running it with wmill script preview, passing $res:f/evals/github_main
|
|
- does not push or deploy the script
|