Skip to content
Merged
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 .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "taskflow",
"description": "Plan-and-task workflow: scope/tasks/questions/progress scaffolding split into pull requests under a line budget, acceptance criteria agreed up front, tests red before green, one-task-per-commit cycle, questions answered at the task that needs them, red-first bug fixes, docs-and-diagram sync, standards review.",
"version": "0.8.6",
"version": "0.8.7",
"types": "./types/index.d.ts",
"author": { "name": "Guilherme Moraes" },
"license": "MIT"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Then, in the repo you want to use it on:

> 💡 To install from a local checkout instead, pass its path to `/plugin marketplace add`.

The plugin also adds a side pane. `/taskflow`
The plugin also adds a side pane. `/open-mod`
opens it: every plan's progress, its active tasks and open questions, the pull requests
with their links, a key for `/next-task`, and a delete button for a plan folder that
asks before it removes anything. It opens by itself at session start on terminals of 144
Expand Down
15 changes: 15 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ export default tseslint.config(
rules: {
'no-console': 'error',
'eqeqeq': 'error',
'no-restricted-syntax': [
'error',
{
selector:
"ExportNamedDeclaration > VariableDeclaration > VariableDeclarator > ArrowFunctionExpression[params.0.name='$']",
message:
"Export a function that takes $ as a `function` declaration: the plugin engine follows $ across an import only into function declarations, and refuses the module otherwise.",
},
{
selector:
"ExportNamedDeclaration > VariableDeclaration > VariableDeclarator > FunctionExpression[params.0.name='$']",
message:
"Export a function that takes $ as a `function` declaration: the plugin engine follows $ across an import only into function declarations, and refuses the module otherwise.",
},
],
},
},
)
9 changes: 6 additions & 3 deletions panel/data/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ export async function openSettings($: EngineInterface) {
await update($, settings, () => view)
}

export const closeSettings = ($: EngineInterface) => update($, settings, () => null)
export function closeSettings($: EngineInterface) {
return update($, settings, () => null)
}

export const editSettings = ($: EngineInterface, change: Partial<SettingsView['draft']>) =>
update($, settings, view => (view === null ? view : { ...view, draft: { ...view.draft, ...change } }))
export function editSettings($: EngineInterface, change: Partial<SettingsView['draft']>) {
return update($, settings, view => (view === null ? view : { ...view, draft: { ...view.draft, ...change } }))
}

export async function submitSettings($: EngineInterface, draft: SettingsView['draft']) {
const saved = await saveSettings($, draft)
Expand Down
4 changes: 2 additions & 2 deletions panel/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function openPane($: EngineInterface, focus = false) {

export const register: Register = on => {
on('session.start', async ($, e, next) => {
await $.command.register({ name: 'taskflow', description: 'Open the Taskflow pane: plans, tasks, PRs' })
await $.command.register({ name: 'open-mod', description: 'Open the Taskflow pane: plans, tasks, PRs' })
void loadBoard($)
void openPane($)
$.clock.every(100, () => void update($, animationStep, step => step + 1))
Expand All @@ -33,7 +33,7 @@ export const register: Register = on => {
return next(e)
})

on('command.run', { command: 'taskflow' }, async $ => {
on('command.run', { command: 'open-mod' }, async $ => {
await loadBoard($)
await openPane($, true)

Expand Down
Loading