# SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
#
# SPDX-License-Identifier: CC0-1.0

# plan rendering
[plan]
no_goal = "wile suli li lon ala"
legend_label = "nasin sitelen:"
no_tasks = "pali li lon ala."

# status labels
[status]
pending = "awen"
in_progress = "pali lon"
completed = "pini"
failed = "pakala"
cancelled = "weka"

# shared helpers
[session]
none_active = "tenpo pali li lon ala. o open kepeken `np s`."

# start command (cmd/s.go)
[session.start]
already_active = "tenpo pali %s li lon nasin %s.\n"
already_active_guidance = "o toki tawa jan lawa sina: ona li wile awen pali (`np r`) anu poki e ona (`np a`)."
now_active = "tenpo pali %s li open lon nasin %s.\n\n"
guidance = """o lukin pona e ijo pana (lipu/issue/tomo sitelen/ilo/lipu lawa/commit/etc.). o pilin e ona lon lawa. sina lukin e ona kama la, o lukin ala sin. taso sina sona ala pona, o alasa lukin e lipu ante lon ijo ni taso: ona li pona tawa wile sina, kepeken tenpo lili taso.

o pana e wile suli kepeken `np g s -t "nimi wile" -d "toki wile"`.

nimi wile o lili, tan ni: o kepeken ala nimi mute (li suli lili kepeken nimi 20 taso). lon 'description', o toki pona e sona mute — o kepeken ala ijo sama pi 'title'. ken la pali li pakala; tan ni, o pana e ijo ni:
- sitelen lili taso pi ijo pana. o pana e URL/ID/hash.
- nasin pi lipu suli: nasin pi lipu tawa pali; sina ken pana e nimi pi ijo wawa tan lipu. o ante ala e lipu anu ilo pona ona.
- linja: 'sona pini lon tenpo ni:' o pana e pilin pi tenpo ni lon ijo ni, kepeken musi pi sona lili.

o pana e pali wan kepeken `np t a -t "pali wan" -d "sona"`; taso o kepeken 'batch' la, li pona mute. tawa linja mute lon 'description', o kepeken linja pi nimi mute:
    np t a -t "pali wan" -d "sona pi tenpo 1" -t "pali tu" -d "tenpo 2 la
    sona mute" -t "pali tu wan" -d "tenpo 3"

o awen ante e 'status' pi pali la:
  lon pali wan:  `np t u -i task-id -s in_progress|completed|failed|cancelled`
  taso o kepeken 'batch':  `np t u -i abc123 -s completed -i def456 -s in_progress`

sina wile lukin e lipu pali ale la, o kepeken `np p`."""

# resume command (cmd/r.go)
[session.resume]
header = "\nmi awen pali e tenpo pali. tawa kama:"
guidance = """1. o pilin wawa e wile suli en toki ona.
2. o lukin e lipu pana en ijo suli (kepeken pali 'awen'), tawa sona e pali pi sin lon.
3. o pana e pali sin la. linja mute li ken lon 'description':
       # Single
       np t a -t "nimi pali" -d "sona"

       # Batch (li pona tawa mute)
       np t a -t "wan" -d "tenpo 1" -t "tu" -d "tenpo 2 la
       sona mute" -t "tu wan" -d "tenpo 3"
4. o ante e 'status' la:
     lon wan: `np t u -i <task-id> -s <status>`
     lon mute:  `np t u -i <id1> -s <status1> -i <id2> -s <status2>`
   'status': pending, in_progress, completed, failed, cancelled"""
in_progress_count = "\n%d pali li lon pali.\n"
pending_count = "%d pali li awen.\n"

# archive command (cmd/a.go)
[session.archive]
success = "tenpo pali %s li poki lon lipu.\n"
none_active = "tenpo pali li lon ala. o open kepeken `np s`."

# goal set command (cmd/g/s.go)
[goal.set]
title_required = "nimi pi wile suli li wile."
description_required = "toki 'description' pi wile suli li wile."
already_set = "wile suli li lon. o kepeken 'np g u' tawa ante (o kepeken -r/--reason)."
guidance = "o lukin pona e ijo ale sewi ni: sitelen pana, lipu sona, lipu lawa, ante. sina sona pona la, o pana e lipu pali sina. o pana/ante kepeken 'batch' la, li pona."

# goal update command (cmd/g/u.go)
[goal.update]
not_set = "wile suli li lon ala. o kepeken 'np g s' lon pini."
reason_required = "toki tan li wile tawa ante e wile."
title_empty = "nimi pi wile suli li ken ala jo e ala."
no_changes_provided = "o pana e ala lili — kepeken ala wan tan --title anu --description."
no_changes_made = "wile li sama kepeken ni; mi ante ala."
guidance = "mi ante e wile. o kama sona la pali awen li jo 'wile' anu seme; o ante e ona anu o pana e pali sin."

# task add command (cmd/t/a.go)
[task.add]
count_mismatch = "nanpa pi nimi en 'description' li sama ala."
none_provided = "o pana e pali ala wan kepeken -t nimi -d 'description'."
title_empty_at = "nimi pali lon nanpa %d li ken ala jo e ala.\n"
title_empty = "nimi pali li wile."
success = "pali %d li lon.\n"
guidance = """o ante e 'status' pi pali:
  lon wan: `np t u -i task-id -s in_progress|completed|failed|cancelled`.
  lon mute:  `np t u -i abc123 -s completed -i def456 -s in_progress`."""

# task list command (cmd/t/t.go)
[task.list]
invalid_status = "status %q li ike. ken pona: pending, in_progress, completed, failed, cancelled, all.\n"

# task update command (cmd/t/u.go)
[task.update]
no_ids = "o pana e i pali kepeken -i/--id."
title_desc_single_only = "ante pi nimi en 'description' li ken taso lon pali wan."
status_count_mismatch = "sina pana e i mute taso nanpa pi 'status' li sama ala. tawa 'batch', o pana e i en s kepeken nanpa sama."
invalid_status = "status %q tawa pali %s li ike. ken pona: pending, in_progress, completed, failed, cancelled.\n"
reason_required_status = "toki tan (-r/--reason) li wile la sina ante e 'status' tawa cancelled anu failed."
not_found = "pali %q li lon ala lon tenpo ni.\n"
no_updates = "mi ante ala e pali (pali ale li lon anu lon 'status' lon ni sama).\n"
success = "mi ante e pali %d.\n"
none_pending_archive = "pali awen li lon ala. sina pali e wile la, o o ante tawa jan lawa: wile ala wile poki e tenpo pali (`np a`)."
continue_working = "o awen pali lon pali li lon. o kepeken `np t u -i <id1> -s <status1> -i <id2> -s <status2>` tawa ante mute."
title_empty = "nimi pali li wile."
invalid_status_single = "status %q li ike. ken pona: pending, in_progress, completed, failed, cancelled.\n"
no_changes_provided = "o pana e ala lili — o kepeken wan tan --title, --description, anu --status."
reason_required = "toki tan (-r/--reason) li wile lon ante e nimi/'description' anu la 'status' tawa cancelled/failure."
completed_continue = "pali li kama pini. o awen pali lon pali li lon. o kepeken `np t u -i <id1> -s <status1> -i <id2> -s <status2>` tawa ante mute."
updated_review = "pali li ante. o kepeken `np p` tawa lukin e lipu pali ale."
