@tocca-systems/twp-cli 0.157.1 → 0.158.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGELOG.public.md +10 -0
  2. package/README.md +11 -8
  3. package/command-model/_routes.json +33 -0
  4. package/command-model/api-key.json +2 -2
  5. package/command-model/budget.json +6 -4
  6. package/command-model/desktop-release.json +2 -1
  7. package/command-model/equipment-category.json +2 -2
  8. package/command-model/equipment-status.json +2 -2
  9. package/command-model/floor-map-calendar-booking.json +6 -0
  10. package/command-model/floor-map-calendar-status.json +2 -1
  11. package/command-model/floor-map.json +1 -1
  12. package/command-model/index.json +16 -12
  13. package/command-model/media-file.json +2 -2
  14. package/command-model/microsoft-graph-proxy-v2.json +6 -4
  15. package/command-model/my-training.json +2 -0
  16. package/command-model/ojt-plan.json +2 -1
  17. package/command-model/private-agent-loop.json +13 -0
  18. package/command-model/private-task.json +3 -2
  19. package/command-model/project-task.json +3 -3
  20. package/command-model/project.json +2 -2
  21. package/command-model/sales-ai-review-criterion-proposal.json +1 -1
  22. package/command-model/sales-ai-review-knowledge-pr.json +1 -1
  23. package/command-model/saved-tab.json +3 -3
  24. package/command-model/survey.json +2 -1
  25. package/command-model/system-component-master.json +9 -0
  26. package/command-model/task-recurrence.json +1 -1
  27. package/command-model/training-master.json +2 -2
  28. package/command-model/user-list-item-order.json +1 -0
  29. package/command-model/user-preferences.json +6 -0
  30. package/command-model/user-ui-settings.json +7 -0
  31. package/command-model/worker-agent.json +2 -2
  32. package/dist/{api-command-6HRXP2YK.js → api-command-2Z2H462U.js} +1 -1
  33. package/dist/{app-66NNGNL7.js → app-UVBHL2L2.js} +3 -3
  34. package/dist/{auto-update-worker-3XBEWI2S.js → auto-update-worker-VB2VIC2C.js} +1 -1
  35. package/dist/budget-GNKRQFYQ.js +5 -0
  36. package/dist/{chunk-WDV4PXDC.js → chunk-63HAA5LI.js} +17 -18
  37. package/dist/{chunk-HS3BBJBF.js → chunk-E7TTXK27.js} +3 -3
  38. package/dist/{chunk-YZSPEVDK.js → chunk-N4M7KM6M.js} +1 -1
  39. package/dist/{chunk-YUTETDHZ.js → chunk-SGED65UG.js} +1 -1
  40. package/dist/{chunk-3RH5KOFK.js → chunk-X6ZCO3QD.js} +62 -42
  41. package/dist/{chunk-2OHVXYEA.js → chunk-X7I2MXZE.js} +12 -14
  42. package/dist/cli.js +13 -11
  43. package/dist/{commands-4S2VWF45.js → commands-P62VLORG.js} +1 -1
  44. package/dist/{github-git-BMBK7E2A.js → github-git-RJSZNVGE.js} +1 -1
  45. package/dist/{holiday-XJCSHCGE.js → holiday-WOGBAL7M.js} +1 -1
  46. package/dist/{media-7W4GOYNS.js → media-H3N6OUL3.js} +1 -1
  47. package/dist/{oneshot-NKFL7NUB.js → oneshot-LZHXHAQM.js} +2 -2
  48. package/dist/{registry-DABXSURV.js → registry-HDW7TOLI.js} +1 -1
  49. package/dist/{run-54O7TMZE.js → run-XYRBN4AI.js} +1 -1
  50. package/dist/{update-IOD4ZXFF.js → update-FUV5EYJO.js} +1 -1
  51. package/package.json +1 -1
  52. package/dist/budget-QNLGIQKK.js +0 -5
@@ -3,13 +3,13 @@
3
3
  "operations": [
4
4
  {"name":"activate","domain":"project","operationId":"project.activate","method":"POST","path":"/v2/projects/{id}/activate","summary":"プロジェクトのtask_last_updated_atを現在時刻に更新(マイタスク画面への表示用)","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"write","aliases":[]},
5
5
  {"name":"close","domain":"project","operationId":"project.close","method":"POST","path":"/v2/projects/{id}/close","summary":"プロジェクトをクローズ","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"write","aliases":[]},
6
- {"name":"create","domain":"project","operationId":"project.store","method":"POST","path":"/v2/projects","summary":"プロジェクト作成","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"code":{"type":"string","maxLength":255},"name":{"type":"string","maxLength":255},"parent_project_id":{"type":["string","null"]},"segment":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","closed",null]},"start_date":{"type":["string","null"],"format":"date"},"end_date":{"type":["string","null"],"format":"date"},"project_manager_id":{"type":["string","null"]},"project_leader_id":{"type":["string","null"]},"quality_manager_id":{"type":["string","null"]},"profit_manager_id":{"type":["string","null"]},"reporter_id":{"type":["string","null"]},"customer_liaison_id":{"type":["string","null"]},"enduser_company_id":{"type":["string","null"]},"customer_company_id":{"type":["string","null"]},"department_id":{"type":["string","null"]},"quality_evaluation":{"type":["string","null"]},"cost_evaluation":{"type":["string","null"]},"delivery_evaluation":{"type":["string","null"]},"develop_method_type":{"type":["integer","null"],"enum":["0","1","2",null]},"develop_scale_plan":{"type":["number","null"]},"develop_scale_result":{"type":["number","null"]},"memo":{"type":["string","null"]},"display_flg":{"type":["boolean","null"]},"task_enabled_flg":{"type":["boolean","null"]},"ai_analysis_enabled_flg":{"type":["boolean","null"]},"punch_disabled_flg":{"type":["boolean","null"]},"files_enabled":{"type":"boolean"},"wiki_enabled":{"type":"boolean"},"show_completed_subtasks":{"type":"boolean"},"status_report_excluded_flg":{"type":"boolean"},"assignment_default_mode":{"type":["string","null"],"enum":["full_time","no_hours","default_hours","required",null]},"assignment_default_hours":{"type":["number","null"],"minimum":0.5,"maximum":24},"cost_type":{"type":["integer","null"],"enum":["0","1",null]},"assign_over_policy":{"type":["integer","null"],"enum":["0","1","2",null]},"quality_requirement_level":{"type":["integer","null"],"minimum":0,"maximum":5},"release_approved_date":{"type":["string","null"],"format":"date"},"release_approved_by":{"type":["string","null"]},"release_date":{"type":["string","null"],"format":"date"},"delivery_date":{"type":["string","null"],"format":"date"},"risk":{"type":["string","null"]},"chance":{"type":["string","null"]},"improvement_point":{"type":["string","null"]},"improvement_method":{"type":["string","null"]},"user_num":{"type":["integer","null"],"minimum":0},"admin_num":{"type":["integer","null"],"minimum":0},"default_due_days":{"type":["integer","null"],"minimum":1,"maximum":365},"wiki_default_content_format":{"type":["string","null"],"enum":["html","markdown","blocknote",null]},"from_estimate_id":{"type":["string","null"]},"create_team_chat":{"type":"boolean"}},"required":["code","name"]}},"resultPath":null,"risk":"write","aliases":[]},
6
+ {"name":"create","domain":"project","operationId":"project.store","method":"POST","path":"/v2/projects","summary":"プロジェクト作成","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"code":{"type":"string","maxLength":255},"name":{"type":"string","maxLength":255},"parent_project_id":{"type":["string","null"]},"segment":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","closed",null]},"start_date":{"type":["string","null"],"format":"date"},"end_date":{"type":["string","null"],"format":"date"},"project_manager_id":{"type":["string","null"]},"project_leader_id":{"type":["string","null"]},"quality_manager_id":{"type":["string","null"]},"profit_manager_id":{"type":["string","null"]},"reporter_id":{"type":["string","null"]},"customer_liaison_id":{"type":["string","null"]},"enduser_company_id":{"type":["string","null"]},"customer_company_id":{"type":["string","null"]},"department_id":{"type":["string","null"]},"quality_evaluation":{"type":["string","null"]},"cost_evaluation":{"type":["string","null"]},"delivery_evaluation":{"type":["string","null"]},"develop_method_type":{"type":["integer","null"],"enum":["0","1","2",null]},"develop_scale_plan":{"type":["number","null"]},"develop_scale_result":{"type":["number","null"]},"memo":{"type":["string","null"]},"display_flg":{"type":["boolean","null"]},"task_enabled_flg":{"type":["boolean","null"]},"ai_analysis_enabled_flg":{"type":["boolean","null"]},"punch_disabled_flg":{"type":["boolean","null"]},"files_enabled":{"type":"boolean"},"wiki_enabled":{"type":"boolean"},"show_completed_subtasks":{"type":"boolean"},"status_report_excluded_flg":{"type":"boolean"},"assignment_default_mode":{"type":["string","null"],"enum":["full_time","no_hours","default_hours","required",null]},"assignment_default_hours":{"type":["number","null"],"minimum":0.5,"maximum":24},"cost_type":{"type":["integer","null"],"enum":["0","1",null]},"assign_over_policy":{"type":["integer","null"],"enum":["0","1","2",null]},"quality_requirement_level":{"type":["integer","null"],"minimum":0,"maximum":5},"release_approved_date":{"type":["string","null"],"format":"date"},"release_approved_by":{"type":["string","null"]},"release_date":{"type":["string","null"],"format":"date"},"delivery_date":{"type":["string","null"],"format":"date"},"risk":{"type":["string","null"]},"chance":{"type":["string","null"]},"improvement_point":{"type":["string","null"]},"improvement_method":{"type":["string","null"]},"user_num":{"type":["integer","null"],"minimum":0},"admin_num":{"type":["integer","null"],"minimum":0},"default_due_days":{"type":["integer","null"],"minimum":1,"maximum":365},"default_due_view":{"type":["object","null"],"properties":{"within":{"type":"string"},"include_no_due":{"type":"boolean"}}},"wiki_default_content_format":{"type":["string","null"],"enum":["html","markdown","blocknote",null]},"from_estimate_id":{"type":["string","null"]},"create_team_chat":{"type":"boolean"}},"required":["code","name"]}},"resultPath":null,"risk":"write","aliases":[]},
7
7
  {"name":"delete","domain":"project","operationId":"project.destroy","method":"DELETE","path":"/v2/projects/{id}","summary":"プロジェクト削除","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"destructive","aliases":[]},
8
8
  {"name":"get","domain":"project","operationId":"project.show","method":"GET","path":"/v2/projects/{id}","summary":"プロジェクト詳細取得","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"read","aliases":[]},
9
9
  {"name":"list","domain":"project","operationId":"project.index","method":"GET","path":"/v2/projects","summary":"プロジェクト一覧取得(カーソルベースページネーション)","pathParams":[],"queryParams":[{"name":"sort","type":"string","required":false,"description":"並び順。task_last_updated を指定するとタスクの最終更新が新しい順","source":"spec"},{"name":"status","type":"string","required":false,"description":"プロジェクトの状態で絞り込む","source":"spec"},{"name":"keyword","type":"string","required":false,"description":"キーワードで絞り込む","source":"spec"},{"name":"display_flg","type":"string","required":false,"description":"表示フラグで絞り込む","source":"spec"},{"name":"page","type":"integer","required":false,"source":"spec"},{"name":"member_user_id","type":"string","required":false,"description":"指定したユーザーがメンバーのプロジェクトだけにする","source":"spec"},{"name":"for_punch","type":"boolean","required":false,"description":"true で打刻(工数入力)に使えるプロジェクトだけにする","source":"curation"},{"name":"department_id","type":"string","required":false,"description":"担当部署で絞り込む","source":"spec"},{"name":"project_manager_id","type":"string","required":false,"description":"プロジェクト責任者で絞り込む","source":"spec"},{"name":"company_id","type":"string","required":false,"description":"取引先企業で絞り込む","source":"spec"}],"body":null,"resultPath":"items","risk":"read","aliases":[]},
10
10
  {"name":"preview-code-change","domain":"project","operationId":"project.previewCodeChange","method":"GET","path":"/v2/projects/{id}/code-change-preview","summary":"プロジェクトコード変更の影響プレビュー","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[{"name":"code","type":"string","required":true,"description":"変更後のプロジェクトコード","source":"spec"}],"body":null,"resultPath":null,"risk":"read","aliases":[]},
11
11
  {"name":"search","domain":"project","operationId":"project.search","method":"GET","path":"/v2/projects/search","summary":"プロジェクト詳細検索(ハイブリッド方式)","pathParams":[],"queryParams":[{"name":"inventory_classification","type":["string","null"],"required":false,"source":"spec"},{"name":"with_inventory","type":["string","null"],"required":false,"source":"spec"},{"name":"overview_status","type":["string","null"],"required":false,"source":"spec"},{"name":"profit_fiscal_year","type":"integer","required":false,"description":"収支列(売上見込〜粗利率実績)で並べるときの年度。そのときだけ必須","source":"spec"},{"name":"profit_labor_cost_basis","type":["string","null"],"required":false,"source":"spec"},{"name":"keyword","type":"string","required":false,"description":"キーワードで絞り込む","source":"spec"},{"name":"status","type":"string","required":false,"description":"プロジェクトの状態で絞り込む","source":"spec"},{"name":"display_flg","type":"string","required":false,"description":"表示フラグで絞り込む","source":"spec"},{"name":"include_closed","type":"string","required":false,"description":"true で終了したプロジェクトも含める","source":"spec"},{"name":"include_hidden","type":"string","required":false,"description":"true で非表示のプロジェクトも含める","source":"spec"},{"name":"segment","type":"string","required":false,"description":"セグメントで絞り込む","source":"spec"},{"name":"start_date_from","type":"string","required":false,"description":"開始日がこの日以降(YYYY-MM-DD)","source":"spec"},{"name":"start_date_to","type":"string","required":false,"description":"開始日がこの日以前(YYYY-MM-DD)","source":"spec"},{"name":"end_date_from","type":"string","required":false,"description":"終了日がこの日以降(YYYY-MM-DD)","source":"spec"},{"name":"end_date_to","type":"string","required":false,"description":"終了日がこの日以前(YYYY-MM-DD)","source":"spec"},{"name":"sort_column","type":"string","required":false,"description":"並べ替える列(既定 updated_at)","source":"spec"},{"name":"sort_direction","type":"string","required":false,"description":"asc(昇順)/ desc(降順・既定)","source":"spec"},{"name":"with_company_summaries","type":"string","required":false,"source":"spec"},{"name":"enduser_company_id","type":"string","required":false,"description":"エンドユーザー企業で絞り込む","source":"curation"},{"name":"customer_company_id","type":"string","required":false,"description":"顧客企業で絞り込む","source":"curation"},{"name":"department_id","type":"string","required":false,"description":"担当部署で絞り込む","source":"curation"},{"name":"project_manager_id","type":"string","required":false,"description":"プロジェクト責任者で絞り込む","source":"curation"},{"name":"profit_manager_id","type":"string","required":false,"description":"収益管理責任者で絞り込む","source":"curation"},{"name":"page_limit","type":"integer","required":false,"description":"1ページあたりの件数(既定 50。この一覧は limit ではなくこちらを読む)","source":"curation"},{"name":"page_no","type":"integer","required":false,"description":"ページ番号(1始まり)","source":"curation"}],"body":null,"resultPath":"list","risk":"read","aliases":[]},
12
12
  {"name":"show-by-code","domain":"project","operationId":"project.showByCode","method":"GET","path":"/v2/projects/by-code/{code}","summary":"プロジェクトコードから詳細取得","pathParams":[{"name":"code","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"read","aliases":[]},
13
- {"name":"update","domain":"project","operationId":"project.update","method":"PUT","path":"/v2/projects/{id}","summary":"プロジェクト更新","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":{"schema":{"type":"object","properties":{"code":{"type":"string","maxLength":255},"name":{"type":"string","maxLength":255},"parent_project_id":{"type":["string","null"]},"segment":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","closed",null]},"start_date":{"type":["string","null"],"format":"date"},"end_date":{"type":["string","null"],"format":"date"},"project_manager_id":{"type":["string","null"]},"project_leader_id":{"type":["string","null"]},"quality_manager_id":{"type":["string","null"]},"profit_manager_id":{"type":["string","null"]},"reporter_id":{"type":["string","null"]},"customer_liaison_id":{"type":["string","null"]},"enduser_company_id":{"type":["string","null"]},"customer_company_id":{"type":["string","null"]},"department_id":{"type":["string","null"]},"quality_evaluation":{"type":["string","null"]},"cost_evaluation":{"type":["string","null"]},"delivery_evaluation":{"type":["string","null"]},"develop_method_type":{"type":["integer","null"],"enum":["0","1","2",null]},"develop_scale_plan":{"type":["number","null"]},"develop_scale_result":{"type":["number","null"]},"memo":{"type":["string","null"]},"display_flg":{"type":["boolean","null"]},"closed_flg":{"type":["boolean","null"]},"task_enabled_flg":{"type":["boolean","null"]},"ai_analysis_enabled_flg":{"type":["boolean","null"]},"punch_disabled_flg":{"type":["boolean","null"]},"files_enabled":{"type":"boolean"},"wiki_enabled":{"type":"boolean"},"show_completed_subtasks":{"type":"boolean"},"status_report_excluded_flg":{"type":"boolean"},"assignment_default_mode":{"type":["string","null"],"enum":["full_time","no_hours","default_hours","required",null]},"assignment_default_hours":{"type":["number","null"],"minimum":0.5,"maximum":24},"cost_type":{"type":["integer","null"],"enum":["0","1",null]},"assign_over_policy":{"type":["integer","null"],"enum":["0","1","2",null]},"quality_requirement_level":{"type":["integer","null"],"minimum":0,"maximum":5},"release_approved_date":{"type":["string","null"],"format":"date"},"release_approved_by":{"type":["string","null"]},"release_date":{"type":["string","null"],"format":"date"},"delivery_date":{"type":["string","null"],"format":"date"},"risk":{"type":["string","null"]},"chance":{"type":["string","null"]},"improvement_point":{"type":["string","null"]},"improvement_method":{"type":["string","null"]},"user_num":{"type":["integer","null"],"minimum":0},"admin_num":{"type":["integer","null"],"minimum":0},"default_due_days":{"type":["integer","null"],"minimum":1,"maximum":365},"wiki_default_content_format":{"type":["string","null"],"enum":["html","markdown","blocknote",null]},"icon_attachment_id":{"type":["string","null"],"format":"uuid"},"overview_service":{"type":["string","null"],"maxLength":200000},"overview_scope":{"type":["string","null"],"maxLength":200000},"overview_team":{"type":["string","null"],"maxLength":200000},"overview_schedule":{"type":["string","null"],"maxLength":200000},"overview_notes":{"type":["string","null"],"maxLength":200000},"overview_status":{"type":"string","enum":["undecided","drafting","ready","done","not_needed"]}}}},"resultPath":null,"risk":"write","aliases":[]}
13
+ {"name":"update","domain":"project","operationId":"project.update","method":"PUT","path":"/v2/projects/{id}","summary":"プロジェクト更新","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":{"schema":{"type":"object","properties":{"code":{"type":"string","maxLength":255},"name":{"type":"string","maxLength":255},"parent_project_id":{"type":["string","null"]},"segment":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","closed",null]},"start_date":{"type":["string","null"],"format":"date"},"end_date":{"type":["string","null"],"format":"date"},"project_manager_id":{"type":["string","null"]},"project_leader_id":{"type":["string","null"]},"quality_manager_id":{"type":["string","null"]},"profit_manager_id":{"type":["string","null"]},"reporter_id":{"type":["string","null"]},"customer_liaison_id":{"type":["string","null"]},"enduser_company_id":{"type":["string","null"]},"customer_company_id":{"type":["string","null"]},"department_id":{"type":["string","null"]},"quality_evaluation":{"type":["string","null"]},"cost_evaluation":{"type":["string","null"]},"delivery_evaluation":{"type":["string","null"]},"develop_method_type":{"type":["integer","null"],"enum":["0","1","2",null]},"develop_scale_plan":{"type":["number","null"]},"develop_scale_result":{"type":["number","null"]},"memo":{"type":["string","null"]},"display_flg":{"type":["boolean","null"]},"closed_flg":{"type":["boolean","null"]},"task_enabled_flg":{"type":["boolean","null"]},"ai_analysis_enabled_flg":{"type":["boolean","null"]},"punch_disabled_flg":{"type":["boolean","null"]},"files_enabled":{"type":"boolean"},"wiki_enabled":{"type":"boolean"},"show_completed_subtasks":{"type":"boolean"},"status_report_excluded_flg":{"type":"boolean"},"assignment_default_mode":{"type":["string","null"],"enum":["full_time","no_hours","default_hours","required",null]},"assignment_default_hours":{"type":["number","null"],"minimum":0.5,"maximum":24},"cost_type":{"type":["integer","null"],"enum":["0","1",null]},"assign_over_policy":{"type":["integer","null"],"enum":["0","1","2",null]},"quality_requirement_level":{"type":["integer","null"],"minimum":0,"maximum":5},"release_approved_date":{"type":["string","null"],"format":"date"},"release_approved_by":{"type":["string","null"]},"release_date":{"type":["string","null"],"format":"date"},"delivery_date":{"type":["string","null"],"format":"date"},"risk":{"type":["string","null"]},"chance":{"type":["string","null"]},"improvement_point":{"type":["string","null"]},"improvement_method":{"type":["string","null"]},"user_num":{"type":["integer","null"],"minimum":0},"admin_num":{"type":["integer","null"],"minimum":0},"default_due_days":{"type":["integer","null"],"minimum":1,"maximum":365},"default_due_view":{"type":["object","null"],"properties":{"within":{"type":"string"},"include_no_due":{"type":"boolean"}}},"wiki_default_content_format":{"type":["string","null"],"enum":["html","markdown","blocknote",null]},"icon_attachment_id":{"type":["string","null"],"format":"uuid"},"overview_service":{"type":["string","null"],"maxLength":200000},"overview_scope":{"type":["string","null"],"maxLength":200000},"overview_team":{"type":["string","null"],"maxLength":200000},"overview_schedule":{"type":["string","null"],"maxLength":200000},"overview_notes":{"type":["string","null"],"maxLength":200000},"overview_status":{"type":"string","enum":["undecided","drafting","ready","done","not_needed"]}}}},"resultPath":null,"risk":"write","aliases":[]}
14
14
  ]
15
15
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "domain": "sales-ai-review-criterion-proposal",
3
3
  "operations": [
4
- {"name":"adopt","domain":"sales-ai-review-criterion-proposal","operationId":"salesAiReviewCriterionProposal.adopt","method":"POST","path":"/v2/sales/ai-review-criterion-proposals/{id}/adopt","summary":"採用して追記PRを作る(マージはしない)","pathParams":[{"name":"id","type":"integer","required":true,"source":"spec"}],"queryParams":[],"body":{"schema":{"type":"object","properties":{"body":{"type":["string","null"],"maxLength":8000}},"title":"SalesAiReviewCriterionProposalAdoptRequest"}},"resultPath":null,"risk":"write","aliases":[]},
4
+ {"name":"adopt","domain":"sales-ai-review-criterion-proposal","operationId":"salesAiReviewCriterionProposal.adopt","method":"POST","path":"/v2/sales/ai-review-criterion-proposals/{id}/adopt","summary":"採用して追記作業のタスクを起票する(PRは作らない。)","pathParams":[{"name":"id","type":"integer","required":true,"source":"spec"}],"queryParams":[],"body":{"schema":{"type":"object","properties":{"body":{"type":["string","null"],"maxLength":8000}},"title":"SalesAiReviewCriterionProposalAdoptRequest"}},"resultPath":null,"risk":"write","aliases":[]},
5
5
  {"name":"list","domain":"sales-ai-review-criterion-proposal","operationId":"salesAiReviewCriterionProposal.index","method":"GET","path":"/v2/sales/ai-review-criterion-proposals","summary":"","pathParams":[],"queryParams":[{"name":"status","type":["string","null"],"required":false,"source":"spec"},{"name":"since","type":["string","null"],"required":false,"source":"spec"}],"body":null,"resultPath":"items","risk":"read","aliases":[]},
6
6
  {"name":"reject","domain":"sales-ai-review-criterion-proposal","operationId":"salesAiReviewCriterionProposal.reject","method":"POST","path":"/v2/sales/ai-review-criterion-proposals/{id}/reject","summary":"不採用にする(PRは作らない)","pathParams":[{"name":"id","type":"integer","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"write","aliases":[]}
7
7
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "domain": "sales-ai-review-knowledge-pr",
3
3
  "operations": [
4
- {"name":"create","domain":"sales-ai-review-knowledge-pr","operationId":"salesAiReviewKnowledgePr.store","method":"POST","path":"/v2/sales/ai-review-reasons/knowledge-pr","summary":"追記PRの作成","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"reason_ids":{"type":"array","items":{"type":"integer","minimum":1},"minItems":1,"maxItems":20},"draft":{"type":"string","maxLength":8000},"target_path":{"type":["string","null"],"maxLength":255}},"required":["reason_ids","draft"]}},"resultPath":"","risk":"write","aliases":[]}
4
+ {"name":"create","domain":"sales-ai-review-knowledge-pr","operationId":"salesAiReviewKnowledgePr.store","method":"POST","path":"/v2/sales/ai-review-reasons/knowledge-pr","summary":"追記作業のタスクの起票","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"reason_ids":{"type":"array","items":{"type":"integer","minimum":1},"minItems":1,"maxItems":20},"draft":{"type":"string","maxLength":8000},"target_path":{"type":["string","null"],"maxLength":255}},"required":["reason_ids","draft"]}},"resultPath":"","risk":"write","aliases":[]}
5
5
  ]
6
6
  }
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "domain": "saved-tab",
3
3
  "operations": [
4
- {"name":"create","domain":"saved-tab","operationId":"savedTab.store","method":"POST","path":"/v2/saved-tabs","summary":"保存済みタブ作成","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"list_type":{"type":"string","enum":["sales_estimates","sales_contracts","sales_invoices","sales_deposits","project_list","media_files_personal","media_files_project","meeting_list"]},"name":{"type":"string","maxLength":100},"conditions":{"type":"array","items":{"type":"string"}}},"required":["list_type","name","conditions"]}},"resultPath":null,"risk":"write","aliases":[]},
4
+ {"name":"create","domain":"saved-tab","operationId":"savedTab.store","method":"POST","path":"/v2/saved-tabs","summary":"保存済みタブ作成","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"list_type":{"type":"string","enum":["sales_estimates","sales_contracts","sales_invoices","sales_deposits","project_list","media_files_personal","media_files_project","meeting_list","task_gantt_private","task_gantt_project"]},"project_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"name":{"type":"string","maxLength":100},"conditions":{"type":"array","items":{"type":"string"}}},"required":["list_type","name","conditions"]}},"resultPath":null,"risk":"write","aliases":[]},
5
5
  {"name":"delete","domain":"saved-tab","operationId":"savedTab.destroy","method":"DELETE","path":"/v2/saved-tabs/{tabId}","summary":"保存済みタブ削除","pathParams":[{"name":"tabId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"destructive","aliases":[]},
6
- {"name":"list","domain":"saved-tab","operationId":"savedTab.index","method":"GET","path":"/v2/saved-tabs","summary":"保存済みタブ一覧取得","pathParams":[],"queryParams":[{"name":"list_type","type":"string","required":true,"source":"spec"}],"body":null,"resultPath":"data","risk":"read","aliases":[]},
7
- {"name":"reorder","domain":"saved-tab","operationId":"savedTab.reorder","method":"PUT","path":"/v2/saved-tabs/reorder","summary":"保存済みタブの並び替え","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"list_type":{"type":"string","enum":["sales_estimates","sales_contracts","sales_invoices","sales_deposits","project_list","media_files_personal","media_files_project","meeting_list"]},"tab_ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":20,"uniqueItems":true}},"required":["list_type","tab_ids"]}},"resultPath":"data","risk":"write","aliases":[]},
6
+ {"name":"list","domain":"saved-tab","operationId":"savedTab.index","method":"GET","path":"/v2/saved-tabs","summary":"保存済みタブ一覧取得","pathParams":[],"queryParams":[{"name":"list_type","type":"string","required":true,"source":"spec"},{"name":"project_id","type":"string","required":false,"description":"list_type=task_gantt_project のときだけ必須","source":"spec"}],"body":null,"resultPath":"data","risk":"read","aliases":[]},
7
+ {"name":"reorder","domain":"saved-tab","operationId":"savedTab.reorder","method":"PUT","path":"/v2/saved-tabs/reorder","summary":"保存済みタブの並び替え","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"list_type":{"type":"string","enum":["sales_estimates","sales_contracts","sales_invoices","sales_deposits","project_list","media_files_personal","media_files_project","meeting_list","task_gantt_private","task_gantt_project"]},"project_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"tab_ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":20,"uniqueItems":true}},"required":["list_type","tab_ids"]}},"resultPath":"data","risk":"write","aliases":[]},
8
8
  {"name":"update","domain":"saved-tab","operationId":"savedTab.update","method":"PUT","path":"/v2/saved-tabs/{tabId}","summary":"保存済みタブ更新(名称変更・検索条件の上書き)","pathParams":[{"name":"tabId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"conditions":{"type":"array","items":{"type":"string"}}}}},"resultPath":null,"risk":"write","aliases":[]}
9
9
  ]
10
10
  }
@@ -25,7 +25,8 @@
25
25
  {"name":"list-questions","domain":"survey","operationId":"survey.listQuestions","method":"GET","path":"/v2/surveys/{id}/questions","summary":"質問一覧を取得","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":"items","risk":"read","aliases":[]},
26
26
  {"name":"list-responses","domain":"survey","operationId":"survey.listResponses","method":"GET","path":"/v2/surveys/{id}/responses","summary":"回答一覧を取得","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[{"name":"sort_by","type":"string","required":false,"description":"並べ替える項目","source":"spec"},{"name":"sort_order","type":"string","required":false,"description":"asc / desc","source":"spec"}],"body":null,"resultPath":"items","risk":"read","aliases":[]},
27
27
  {"name":"list-targets","domain":"survey","operationId":"survey.listTargets","method":"GET","path":"/v2/surveys/{id}/targets","summary":"回答対象者の一覧を取得","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":"items","risk":"read","aliases":[]},
28
- {"name":"my-notifiable-pending","domain":"survey","operationId":"survey.myNotifiablePending","method":"GET","path":"/v2/surveys/my/pending-tasks","summary":"「やるべきタスク」「本日のやるべきタスク」に表示する未回答サーベイを取得する。","pathParams":[],"queryParams":[{"name":"channel","type":"string","required":false,"description":"表示先で絞り込む","source":"spec"},{"name":"scope","type":"string","required":false,"description":"対象範囲で絞り込む","source":"spec"}],"body":null,"resultPath":"items","risk":"read","aliases":[]},
28
+ {"name":"my-notifiable-pending","domain":"survey","operationId":"survey.myNotifiablePending","method":"GET","path":"/v2/surveys/my/pending-tasks","summary":"「やるべきタスク」「本日のやるべきタスク」に表示する未回答サーベイを取得する。","pathParams":[],"queryParams":[{"name":"scope","type":"string","required":false,"description":"対象範囲で絞り込む","source":"spec"},{"name":"channel","type":"string","required":false,"description":"表示先で絞り込む","source":"curation"}],"body":null,"resultPath":"items","risk":"read","aliases":[]},
29
+ {"name":"my-notifiable-pending-all","domain":"survey","operationId":"survey.myNotifiablePendingAll","method":"GET","path":"/v2/surveys/my/pending-tasks/all","summary":"汎用アンケートと組織サーベイの未回答を1本で返す。","pathParams":[],"queryParams":[],"body":null,"resultPath":null,"risk":"read","aliases":[]},
29
30
  {"name":"my-pending","domain":"survey","operationId":"survey.myPending","method":"GET","path":"/v2/surveys/my","summary":"自分が回答対象のアンケート一覧を取得","pathParams":[],"queryParams":[{"name":"survey_type","type":"string","required":false,"description":"アンケートの種類で絞り込む","source":"spec"}],"body":null,"resultPath":"items","risk":"read","aliases":[]},
30
31
  {"name":"my-responses","domain":"survey","operationId":"survey.myResponses","method":"GET","path":"/v2/surveys/{id}/my-responses","summary":"ログインユーザー本人の回答内容を返す(読み取り専用)。","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":"items","risk":"read","aliases":[]},
31
32
  {"name":"notification-audience-eligibility","domain":"survey","operationId":"survey.notificationAudienceEligibility","method":"POST","path":"/v2/surveys/notification-audience-eligibility","summary":"指定ユーザー公開の未回答通知可否を、契約・所属情報を露出せず集約判定する。","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"user_ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":1000,"uniqueItems":true}},"required":["user_ids"]}},"resultPath":null,"risk":"write","aliases":[]},
@@ -0,0 +1,9 @@
1
+ {
2
+ "domain": "system-component-master",
3
+ "operations": [
4
+ {"name":"create","domain":"system-component-master","operationId":"systemComponentMaster.store","method":"POST","path":"/v2/system-component-masters","summary":"","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["category","product","version"]},"parent_id":{"type":["string","null"],"maxLength":100},"name":{"type":"string","maxLength":100},"eol_date":{"type":["string","null"],"format":"date"},"sort_order":{"type":["integer","null"],"minimum":0}},"required":["kind","name"],"title":"StoreSystemComponentMasterRequest"}},"resultPath":null,"risk":"write","aliases":[]},
5
+ {"name":"delete","domain":"system-component-master","operationId":"systemComponentMaster.destroy","method":"DELETE","path":"/v2/system-component-masters/{id}","summary":"","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"destructive","aliases":[]},
6
+ {"name":"list","domain":"system-component-master","operationId":"systemComponentMaster.index","method":"GET","path":"/v2/system-component-masters","summary":"","pathParams":[],"queryParams":[{"name":"kind","type":"string","required":false,"source":"spec"},{"name":"parent_id","type":"string","required":false,"source":"spec"}],"body":null,"resultPath":"items","risk":"read","aliases":[]},
7
+ {"name":"update","domain":"system-component-master","operationId":"systemComponentMaster.update","method":"PUT","path":"/v2/system-component-masters/{id}","summary":"","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"eol_date":{"type":["string","null"],"format":"date"},"sort_order":{"type":["integer","null"],"minimum":0}},"title":"UpdateSystemComponentMasterRequest"}},"resultPath":null,"risk":"write","aliases":[]}
8
+ ]
9
+ }
@@ -5,6 +5,6 @@
5
5
  {"name":"generate","domain":"task-recurrence","operationId":"taskRecurrence.generate","method":"POST","path":"/v2/projects/{projectId}/tasks/{taskId}/recurrence/generate","summary":"次回のタスクを手動で作成する","pathParams":[{"name":"projectId","type":"string","required":true,"source":"spec"},{"name":"taskId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"write","aliases":[]},
6
6
  {"name":"get","domain":"task-recurrence","operationId":"taskRecurrence.show","method":"GET","path":"/v2/projects/{projectId}/tasks/{taskId}/recurrence","summary":"タスクの繰り返し設定を取得","pathParams":[{"name":"projectId","type":"string","required":true,"source":"spec"},{"name":"taskId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"read","aliases":[]},
7
7
  {"name":"history","domain":"task-recurrence","operationId":"taskRecurrence.history","method":"GET","path":"/v2/projects/{projectId}/tasks/{taskId}/recurrence/history","summary":"同一系列(繰り返し)の実行履歴を取得する","pathParams":[{"name":"projectId","type":"string","required":true,"source":"spec"},{"name":"taskId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"read","aliases":[]},
8
- {"name":"update","domain":"task-recurrence","operationId":"taskRecurrence.update","method":"PATCH","path":"/v2/projects/{projectId}/tasks/{taskId}/recurrence","summary":"タスクの繰り返し設定を更新","pathParams":[{"name":"projectId","type":"string","required":true,"source":"spec"},{"name":"taskId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":{"schema":{"type":"object","properties":{"recurrence_type":{"type":"string","enum":["daily","weekly","monthly","quarterly","half_yearly","yearly"]},"recurrence_interval":{"type":["integer","null"],"minimum":1,"maximum":365},"recurrence_end_date":{"type":["string","null"],"format":"date"},"recurrence_weekday":{"type":["integer","null"],"minimum":0,"maximum":6},"recurrence_week_of_month":{"type":["integer","null"],"minimum":1,"maximum":5},"recurrence_day_of_month":{"type":["integer","null"],"minimum":1,"maximum":31},"recurrence_day_mode":{"type":["string","null"],"enum":["last_day","first_business_day","last_business_day",null]},"recurrence_holiday_adjust":{"type":["boolean","null"]},"recurrence_auto_generate":{"type":["boolean","null"]},"recurrence_generate_before_days":{"type":["integer","null"],"minimum":0,"maximum":365}},"required":["recurrence_type"]}},"resultPath":null,"risk":"write","aliases":[]}
8
+ {"name":"update","domain":"task-recurrence","operationId":"taskRecurrence.update","method":"PATCH","path":"/v2/projects/{projectId}/tasks/{taskId}/recurrence","summary":"タスクの繰り返し設定を更新","pathParams":[{"name":"projectId","type":"string","required":true,"source":"spec"},{"name":"taskId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":{"schema":{"type":"object","properties":{"recurrence_type":{"type":"string","enum":["daily","weekly","monthly","quarterly","half_yearly","yearly"]},"recurrence_interval":{"type":["integer","null"],"minimum":1,"maximum":365},"recurrence_end_date":{"type":["string","null"],"format":"date"},"recurrence_weekday":{"type":["integer","null"],"minimum":0,"maximum":6},"recurrence_week_of_month":{"type":["integer","null"],"minimum":1,"maximum":5},"recurrence_day_of_month":{"type":["integer","null"],"minimum":1,"maximum":31},"recurrence_day_mode":{"type":["string","null"],"enum":["last_day","first_business_day","last_business_day",null]},"recurrence_holiday_adjust":{"type":["boolean","null"]},"recurrence_auto_generate":{"type":["boolean","null"]},"recurrence_generate_before_days":{"type":["integer","null"],"minimum":0,"maximum":365},"recurrence_subject_template":{"type":["string","null"],"maxLength":255},"recurrence_period_offset":{"type":["integer","null"],"enum":["-1","0","1",null]}},"required":["recurrence_type"]}},"resultPath":null,"risk":"write","aliases":[]}
9
9
  ]
10
10
  }
@@ -2,10 +2,10 @@
2
2
  "domain": "training-master",
3
3
  "operations": [
4
4
  {"name":"active","domain":"training-master","operationId":"trainingMaster.active","method":"GET","path":"/v2/training/masters/active","summary":"アクティブな研修マスタ一覧を取得(選択用)","pathParams":[],"queryParams":[{"name":"training_type","type":"string","required":false,"source":"spec"}],"body":null,"resultPath":"items","risk":"read","aliases":[]},
5
- {"name":"create","domain":"training-master","operationId":"trainingMaster.store","method":"POST","path":"/v2/training/masters","summary":"研修マスタを作成","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"training_name":{"type":"string","maxLength":255},"training_description":{"type":["string","null"]},"training_type":{"type":["string","null"],"enum":["internal","external","webinar_live","webinar_recorded",null]},"file_urls":{"type":["array","null"],"items":{"type":"string","maxLength":2048}},"movie_file_ids":{"type":["array","null"],"items":{"type":"string"}},"attachment_file_ids":{"type":["array","null"],"items":{"type":"string"}},"is_active":{"type":["boolean","null"]}},"required":["training_name"]}},"resultPath":null,"risk":"write","aliases":[]},
5
+ {"name":"create","domain":"training-master","operationId":"trainingMaster.store","method":"POST","path":"/v2/training/masters","summary":"研修マスタを作成","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"training_name":{"type":"string","maxLength":255},"training_description":{"type":["string","null"]},"training_type":{"type":["string","null"],"enum":["internal","external","webinar_live","webinar_recorded",null]},"file_urls":{"type":["array","null"],"items":{"type":"string","maxLength":2048}},"movie_file_ids":{"type":["array","null"],"items":{"type":"string"}},"attachment_file_ids":{"type":["array","null"],"items":{"type":"string"}},"is_active":{"type":["boolean","null"]},"report_start_timing":{"type":["string","null"],"enum":["after_completion","any_status",null]}},"required":["training_name"]}},"resultPath":null,"risk":"write","aliases":[]},
6
6
  {"name":"delete","domain":"training-master","operationId":"trainingMaster.destroy","method":"DELETE","path":"/v2/training/masters/{id}","summary":"研修マスタを削除","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"destructive","aliases":[]},
7
7
  {"name":"get","domain":"training-master","operationId":"trainingMaster.show","method":"GET","path":"/v2/training/masters/{id}","summary":"研修マスタ詳細を取得","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"read","aliases":[]},
8
8
  {"name":"list","domain":"training-master","operationId":"trainingMaster.index","method":"GET","path":"/v2/training/masters","summary":"研修マスタ一覧を取得","pathParams":[],"queryParams":[{"name":"training_type","type":"string","required":false,"source":"spec"},{"name":"is_active","type":"string","required":false,"source":"spec"},{"name":"keyword","type":"string","required":false,"source":"spec"},{"name":"created_by","type":"string","required":false,"source":"spec"}],"body":null,"resultPath":"items","risk":"read","aliases":[]},
9
- {"name":"update","domain":"training-master","operationId":"trainingMaster.update","method":"PUT","path":"/v2/training/masters/{id}","summary":"研修マスタを更新","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":{"schema":{"type":"object","properties":{"training_name":{"type":"string","maxLength":255},"training_description":{"type":["string","null"]},"training_type":{"type":["string","null"],"enum":["internal","external","webinar_live","webinar_recorded",null]},"file_urls":{"type":["array","null"],"items":{"type":"string","maxLength":2048}},"movie_file_ids":{"type":["array","null"],"items":{"type":"string"}},"attachment_file_ids":{"type":["array","null"],"items":{"type":"string"}},"is_active":{"type":["boolean","null"]}}}},"resultPath":null,"risk":"write","aliases":[]}
9
+ {"name":"update","domain":"training-master","operationId":"trainingMaster.update","method":"PUT","path":"/v2/training/masters/{id}","summary":"研修マスタを更新","pathParams":[{"name":"id","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":{"schema":{"type":"object","properties":{"training_name":{"type":"string","maxLength":255},"training_description":{"type":["string","null"]},"training_type":{"type":["string","null"],"enum":["internal","external","webinar_live","webinar_recorded",null]},"file_urls":{"type":["array","null"],"items":{"type":"string","maxLength":2048}},"movie_file_ids":{"type":["array","null"],"items":{"type":"string"}},"attachment_file_ids":{"type":["array","null"],"items":{"type":"string"}},"is_active":{"type":["boolean","null"]},"report_start_timing":{"type":["string","null"],"enum":["after_completion","any_status",null]}}}},"resultPath":null,"risk":"write","aliases":[]}
10
10
  ]
11
11
  }
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "domain": "user-list-item-order",
3
3
  "operations": [
4
+ {"name":"all","domain":"user-list-item-order","operationId":"userListItemOrder.all","method":"GET","path":"/v2/user/list-item-orders/all","summary":"全種別の並び順をまとめて取得","pathParams":[],"queryParams":[],"body":null,"resultPath":null,"risk":"read","aliases":[]},
4
5
  {"name":"get","domain":"user-list-item-order","operationId":"userListItemOrder.show","method":"GET","path":"/v2/user/list-item-orders","summary":"並び順を取得","pathParams":[],"queryParams":[{"name":"list_type","type":"string","required":true,"source":"spec"}],"body":null,"resultPath":null,"risk":"read","aliases":[]},
5
6
  {"name":"update","domain":"user-list-item-order","operationId":"userListItemOrder.update","method":"PUT","path":"/v2/user/list-item-orders","summary":"並び順を保存(全置換)","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"list_type":{"type":"string","enum":["my_task_active_projects","my_task_closed_projects","my_task_active_segments","my_task_closed_segments","sidebar_menu_order","sidebar_menu_hidden"]},"item_ids":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":500,"uniqueItems":true}},"required":["list_type","item_ids"],"title":"ListItemOrderRequest"}},"resultPath":null,"risk":"write","aliases":[]}
6
7
  ]
@@ -0,0 +1,6 @@
1
+ {
2
+ "domain": "user-preferences",
3
+ "operations": [
4
+ {"name":"all","domain":"user-preferences","operationId":"userPreferences.all","method":"GET","path":"/v2/user/preferences/all","summary":"","pathParams":[],"queryParams":[],"body":null,"resultPath":null,"risk":"read","aliases":[]}
5
+ ]
6
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "domain": "user-ui-settings",
3
+ "operations": [
4
+ {"name":"get","domain":"user-ui-settings","operationId":"userUiSettings.show","method":"GET","path":"/v2/user-ui-settings","summary":"表示設定の取得","pathParams":[],"queryParams":[],"body":null,"resultPath":null,"risk":"read","aliases":[]},
5
+ {"name":"update","domain":"user-ui-settings","operationId":"userUiSettings.update","method":"PUT","path":"/v2/user-ui-settings","summary":"表示設定の保存(送った項目だけを更新。null は既定値へ戻す)","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"task_gantt_task_column_width":{"type":["integer","null"],"minimum":160,"maximum":800}},"title":"UpdateUserUiSettingsRequest"}},"resultPath":null,"risk":"write","aliases":[]}
6
+ ]
7
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "domain": "worker-agent",
3
3
  "operations": [
4
- {"name":"create","domain":"worker-agent","operationId":"workerAgent.store","method":"POST","path":"/v2/worker-agents","summary":"作成","pathParams":[],"queryParams":[],"body":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"description":{"type":["string","null"],"maxLength":1000},"instruction":{"type":"string","maxLength":20000},"allowed_tools":{"type":"array","items":{"type":"string","maxLength":100},"maxItems":64},"write_enabled":{"type":["boolean","null"]},"ai_provider":{"type":["string","null"],"enum":["anthropic",null]},"ai_model":{"type":["string","null"],"maxLength":100},"is_enabled":{"type":["boolean","null"]},"allowed_tool_categories":{"type":"array","items":{"type":"string","enum":["attendance","backlog","ms365","note","notification","organization","private_task","sales","task"]},"uniqueItems":true},"schedule":{"type":"object","properties":{"type":{"type":"string","enum":["interval","daily","weekly","monthly"]},"interval_minutes":{"type":["integer","null"],"minimum":15,"maximum":1440},"time_of_day":{"type":["string","null"]},"days_of_week":{"type":["array","null"],"items":{"type":"integer","minimum":1,"maximum":7}},"days_of_month":{"type":["array","null"],"items":{"type":"integer","minimum":1,"maximum":31}},"last_day_of_month":{"type":["boolean","null"]},"timezone":{"type":["string","null"],"enum":["Asia/Tokyo",null]}},"required":["type"]}},"required":["name","instruction","schedule"],"title":"StoreWorkerAgentRequest"}},"resultPath":null,"risk":"write","aliases":[]},
4
+ {"name":"create","domain":"worker-agent","operationId":"workerAgent.store","method":"POST","path":"/v2/worker-agents","summary":"作成","pathParams":[],"queryParams":[],"body":null,"resultPath":null,"risk":"write","aliases":[]},
5
5
  {"name":"delete","domain":"worker-agent","operationId":"workerAgent.destroy","method":"DELETE","path":"/v2/worker-agents/{agentId}","summary":"削除(★オーナーのみ)","pathParams":[{"name":"agentId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":"","risk":"destructive","aliases":[]},
6
6
  {"name":"disable","domain":"worker-agent","operationId":"workerAgent.disable","method":"POST","path":"/v2/worker-agents/{agentId}/disable","summary":"無効化(オーナー または `agent` admin)","pathParams":[{"name":"agentId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":"","risk":"write","aliases":[]},
7
7
  {"name":"enable","domain":"worker-agent","operationId":"workerAgent.enable","method":"POST","path":"/v2/worker-agents/{agentId}/enable","summary":"有効化(★オーナーのみ)","pathParams":[{"name":"agentId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"write","aliases":[]},
@@ -10,6 +10,6 @@
10
10
  {"name":"list","domain":"worker-agent","operationId":"workerAgent.index","method":"GET","path":"/v2/worker-agents","summary":"一覧","pathParams":[],"queryParams":[{"name":"owner_user_id","type":"string","required":false,"source":"spec"}],"body":null,"resultPath":"","risk":"read","aliases":[]},
11
11
  {"name":"show-tool","domain":"worker-agent","operationId":"workerAgent.showTool","method":"GET","path":"/v2/worker-agents/tools/{name}","summary":"ツール詳細(入力スキーマ含む)","pathParams":[{"name":"name","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":"","risk":"read","aliases":[]},
12
12
  {"name":"tools","domain":"worker-agent","operationId":"workerAgent.tools","method":"GET","path":"/v2/worker-agents/tools","summary":"ツールカタログ","pathParams":[],"queryParams":[{"name":"category","type":"string","required":false,"source":"spec"},{"name":"keyword","type":"string","required":false,"source":"spec"}],"body":null,"resultPath":"","risk":"read","aliases":[]},
13
- {"name":"update","domain":"worker-agent","operationId":"workerAgent.update","method":"PATCH","path":"/v2/worker-agents/{agentId}","summary":"更新(★オーナーのみ)","pathParams":[{"name":"agentId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"description":{"type":["string","null"],"maxLength":1000},"instruction":{"type":"string","maxLength":20000},"allowed_tools":{"type":"array","items":{"type":"string","maxLength":100},"maxItems":64},"write_enabled":{"type":"boolean"},"ai_provider":{"type":["string","null"],"enum":["anthropic",null]},"ai_model":{"type":["string","null"],"maxLength":100},"allowed_tool_categories":{"type":"array","items":{"type":"string","enum":["attendance","backlog","ms365","note","notification","organization","private_task","sales","task"]},"uniqueItems":true},"schedule":{"type":"object","properties":{"type":{"type":"string","enum":["interval","daily","weekly","monthly"]},"interval_minutes":{"type":["integer","null"],"minimum":15,"maximum":1440},"time_of_day":{"type":["string","null"]},"days_of_week":{"type":["array","null"],"items":{"type":"integer","minimum":1,"maximum":7}},"days_of_month":{"type":["array","null"],"items":{"type":"integer","minimum":1,"maximum":31}},"last_day_of_month":{"type":["boolean","null"]},"timezone":{"type":["string","null"],"enum":["Asia/Tokyo",null]}}}},"title":"UpdateWorkerAgentRequest"}},"resultPath":null,"risk":"write","aliases":[]}
13
+ {"name":"update","domain":"worker-agent","operationId":"workerAgent.update","method":"PATCH","path":"/v2/worker-agents/{agentId}","summary":"更新(★オーナーのみ)","pathParams":[{"name":"agentId","type":"string","required":true,"source":"spec"}],"queryParams":[],"body":null,"resultPath":null,"risk":"write","aliases":[]}
14
14
  ]
15
15
  }
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __twpCreateRequire } from 'node:module';
2
2
  const require = __twpCreateRequire(import.meta.url);
3
- import{CommandModelMissingError,MAX_REPORTED_VIOLATIONS,loadCommandModelDomain,loadCommandModelRoutes,validateBody,validateQuery}from"./chunk-DEIIS7JP.js";import{exitCodeFor,fetchAllPages,reportError}from"./chunk-YZSPEVDK.js";import"./chunk-HS3BBJBF.js";import{evaluateQuery}from"./chunk-PAJAEUPA.js";import{renderOutput}from"./chunk-P4QSPSOQ.js";import"./chunk-Q3B65OFC.js";import{describeWaitResult,parseWaitOptions,waitUntilTerminal}from"./chunk-3EFJQDC4.js";
3
+ import{CommandModelMissingError,MAX_REPORTED_VIOLATIONS,loadCommandModelDomain,loadCommandModelRoutes,validateBody,validateQuery}from"./chunk-DEIIS7JP.js";import{exitCodeFor,fetchAllPages,reportError}from"./chunk-N4M7KM6M.js";import"./chunk-E7TTXK27.js";import{evaluateQuery}from"./chunk-PAJAEUPA.js";import{renderOutput}from"./chunk-P4QSPSOQ.js";import"./chunk-Q3B65OFC.js";import{describeWaitResult,parseWaitOptions,waitUntilTerminal}from"./chunk-3EFJQDC4.js";
4
4
  import{readBody}from"./chunk-V5WDGX4S.js";import{ALLOW_REDACTED_FLAG,NO_REDACT_FLAG,NO_REDACT_NOTICE}from"./chunk-W4NLJ2YK.js";import{redactSecretValues,redactSecrets,withDebug}from"./chunk-BD7O73GK.js";import{parseOperationArgs,repeatedValues}from"./chunk-6NHLWYI2.js";import"./chunk-WGBSVOTQ.js";import{ApiError,RepeatedQueryValue,TwpApiClient,appendQuery,appendRepeatable,isArrayQueryKey}from"./chunk-3CEGTEI3.js";import"./chunk-CJFIIGSH.js";import"./chunk-HVZUXLQ4.js";
5
5
  import"./chunk-YJP4FUY4.js";import"./chunk-SBRTBKEZ.js";import{DEFAULT_MAX_ITEMS,DEFAULT_MAX_PAGES,envelopePaging,isPageNumberEnvelope,pageRangeNotes,positiveInteger,readEnvelopeCursor,readPageNumberCursor,shellQuote}from"./chunk-TDO6V3ZW.js";import"./chunk-HCTPCUST.js";import{ApiResponseError,EXIT_OK,EXIT_WAIT_TIMEOUT,NetworkError,UsageError}from"./chunk-STILP3Z6.js";import{GLOBAL_OPTIONS_HELP}from"./chunk-TZL2342W.js";import{AuthSession,NotLoggedInError,SessionExpiredError}from"./chunk-3WPPJAUV.js";
6
6
  import{loadCredentials}from"./chunk-GWVREACM.js";import{httpFetch}from"./chunk-J7QYPKVK.js";import{effectiveApiUrl,resolveConfiguredOutput,resolveProfile}from"./chunk-YMM2AVTL.js";import"./chunk-RZVI6PMW.js";import{HELP_TOKEN}from"./chunk-F3UL5POS.js";import"./chunk-OKATZ4SN.js";import{OUTPUT_FORMATS,resolveOutputFormat}from"./chunk-RKBUJKI5.js";import"./chunk-UREA4ZIG.js";import{stripTerminalControls}from"./chunk-NHYMHCAT.js";import"./chunk-VSJBJXZO.js";var MIN_SEGMENT_CHARS=3;var parsedCache=new WeakMap;function splitSegments(path){return path.split("/").filter(segment=>segment!=="")}function parseRoutes(routes){const cached=parsedCache.get(routes);if(cached!==void 0)return cached;const parsed=[];for(const[key,domain]of Object.entries(routes.routes)){const space=key.indexOf(" ");if(space<=0)continue;const template=key.slice(space+1);parsed.push({method:key.slice(0,space),template,domain,segments:splitSegments(template).map(segment=>/^\{[^/{}]+\}$/.
@@ -1,8 +1,8 @@
1
1
  import { createRequire as __twpCreateRequire } from 'node:module';
2
2
  const require = __twpCreateRequire(import.meta.url);
3
- import{RESIDENT_TOKEN_CAP,activateModeFiles,activatePermissionSettings,buildResidentSet,buildSystemPrompt,createAuditLogger,createTwpToolkit,currentBranch,describeAuditLog,describeToolCatalog,displayCwd,executeTool,findProjectTwpSubdir,localTools,lstatOrNull,parseFrontMatter,parseRule,persistProjectAllow,projectPermissionsPath,projectRootFor,readFileTool,residentInputs,resolveGitExecutable,runTurn}from"./chunk-2OHVXYEA.js";import"./chunk-DEIIS7JP.js";import{buildDiffLines,diffStat}from"./chunk-VRBI2NPI.js";
3
+ import{RESIDENT_TOKEN_CAP,activateModeFiles,activatePermissionSettings,buildResidentSet,buildSystemPrompt,createAuditLogger,createTwpToolkit,currentBranch,describeAuditLog,describeToolCatalog,displayCwd,executeTool,findProjectTwpSubdir,localTools,lstatOrNull,parseFrontMatter,parseRule,persistProjectAllow,projectPermissionsPath,projectRootFor,readFileTool,residentInputs,resolveGitExecutable,runTurn}from"./chunk-X7I2MXZE.js";import"./chunk-DEIIS7JP.js";import{buildDiffLines,diffStat}from"./chunk-VRBI2NPI.js";
4
4
  import{secretReason}from"./chunk-3CQP4TW4.js";import{require_fuzzysort}from"./chunk-DIMZRTLE.js";import"./chunk-N2UVRM3Z.js";import"./chunk-BD7O73GK.js";import"./chunk-WGBSVOTQ.js";import"./chunk-3CEGTEI3.js";import"./chunk-CJFIIGSH.js";import"./chunk-HVZUXLQ4.js";import"./chunk-YJP4FUY4.js";import"./chunk-SBRTBKEZ.js";import"./chunk-STILP3Z6.js";import{RelayError,builtinCatalog,classifyModelSwitch,createRuntime,formatContextRemaining,
5
- loadCachedCatalog,modelLabel,pickModel,specFor,toModelInfos}from"./chunk-WDV4PXDC.js";import"./chunk-D233KKXW.js";import"./chunk-PMOUHEJQ.js";import"./chunk-3WPPJAUV.js";import"./chunk-GWVREACM.js";import{proxyDiagnostics}from"./chunk-J7QYPKVK.js";import{checkMinSupportedVersion,isBelowMinSupported,minSupportedBlockMessage}from"./chunk-DXXFUNYN.js";import"./chunk-YMM2AVTL.js";import{configReadDirs,twpHomeDir}from"./chunk-RZVI6PMW.js";import{parseArgv}from"./chunk-UHE6HW5D.js";
5
+ loadCachedCatalog,modelLabel,pickModel,specFor,toModelInfos}from"./chunk-63HAA5LI.js";import"./chunk-D233KKXW.js";import"./chunk-PMOUHEJQ.js";import"./chunk-3WPPJAUV.js";import"./chunk-GWVREACM.js";import{proxyDiagnostics}from"./chunk-J7QYPKVK.js";import{checkMinSupportedVersion,isBelowMinSupported,minSupportedBlockMessage}from"./chunk-DXXFUNYN.js";import"./chunk-YMM2AVTL.js";import{configReadDirs,twpHomeDir}from"./chunk-RZVI6PMW.js";import{parseArgv}from"./chunk-UHE6HW5D.js";
6
6
  import{applyPermissionMode,checkPermission,describePermissionMode,getMode,isModeId,modeSource,nextMode}from"./chunk-2LOT54OO.js";import"./chunk-NJL3H2BB.js";import"./chunk-F3UL5POS.js";import"./chunk-SAJP6TFS.js";import{formatUnknownArgs}from"./chunk-OKATZ4SN.js";import{isFullWidth,isWide,stringWidth,stripAnsi}from"./chunk-UREA4ZIG.js";import{stripTerminalControls}from"./chunk-NHYMHCAT.js";import{__commonJS,__export,__require,__toESM}from"./chunk-VSJBJXZO.js";var require_react_production=__commonJS({"node_modules/react/cjs/react.production.js"(exports){"use strict";var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element");var REACT_PORTAL_TYPE=Symbol.for("react.portal");var REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");var REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode");var REACT_PROFILER_TYPE=Symbol.for("react.profiler");var REACT_CONSUMER_TYPE=Symbol.for("react.consumer");var REACT_CONTEXT_TYPE=Symbol.for("react.context");var REACT_FORWARD_REF_TYPE=Symbol.
7
7
  for("react.forward_ref");var REACT_SUSPENSE_TYPE=Symbol.for("react.suspense");var REACT_MEMO_TYPE=Symbol.for("react.memo");var REACT_LAZY_TYPE=Symbol.for("react.lazy");var REACT_ACTIVITY_TYPE=Symbol.for("react.activity");var REACT_VIEW_TRANSITION_TYPE=Symbol.for("react.view_transition");var MAYBE_ITERATOR_SYMBOL=Symbol.iterator;function getIteratorFn(maybeIterable){if(null===maybeIterable||"object"!==typeof maybeIterable)return null;maybeIterable=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||
8
8
  maybeIterable["@@iterator"];return"function"===typeof maybeIterable?maybeIterable:null}var ReactNoopUpdateQueue={isMounted:function(){return false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};var assign=Object.assign;var emptyObject={};function Component(props,context,updater){this.props=props;this.context=context;this.refs=emptyObject;this.updater=updater||ReactNoopUpdateQueue}Component.prototype.isReactComponent={};Component.prototype.setState=
@@ -1212,7 +1212,7 @@ cwd()){const listed=await gitListFiles(cwd2);const raw=listed??await walkFiles(c
1212
1212
  1;const after=/^[^\s]*/.exec(text.slice(cursor))?.[0]??"";return{query,start,end:cursor+after.length}}var TWP_SLASH_ROUTES={"/tasks":{domain:"task",operation:"list"},"/task":{domain:"task",operation:"get"},"/projects":{domain:"project",operation:"list"}};function isTwpSlashCommand(name){return Object.hasOwn(TWP_SLASH_ROUTES,name)}async function runTwpSlashCommand(name,args,deps){const route=TWP_SLASH_ROUTES[name];if(!Object.hasOwn(TWP_SLASH_ROUTES,name)||route===void 0){return{code:2,out:"",err:`\u4E0D\u660E\u306A\u30B3\u30DE\u30F3\u30C9: ${name}
1213
1213
  `}}const parsed=parseArgv([route.domain,route.operation,...args]);if(parsed.command!=="domain"||parsed.domain!==route.domain){return{code:2,out:"",err:`${name}: \u3053\u306E\u5F15\u6570\u306F\u4F7F\u3048\u307E\u305B\u3093\uFF08${args.join(" ")}\uFF09
1214
1214
  `}}if(parsed.unknown.length>0){return{code:2,out:"",err:`\u4E0D\u660E\u306A\u5F15\u6570: ${formatUnknownArgs(parsed.unknown)}
1215
- `}}let out="";let err="";const io={out:text=>void(out+=text),err:text=>void(err+=text),isTty:true};const globals={profile:parsed.profile??deps.profile,...parsed.output!==void 0?{output:parsed.output}:{},...parsed.query!==void 0?{query:parsed.query}:{},dryRun:parsed.dryRun,debug:parsed.debug,yes:parsed.yes,refresh:parsed.refresh};const{runDomain}=await import("./run-54O7TMZE.js");try{const code=await runDomain({domain:route.domain,...parsed.operation!==void 0?{operation:parsed.operation}:
1215
+ `}}let out="";let err="";const io={out:text=>void(out+=text),err:text=>void(err+=text),isTty:true};const globals={profile:parsed.profile??deps.profile,...parsed.output!==void 0?{output:parsed.output}:{},...parsed.query!==void 0?{query:parsed.query}:{},dryRun:parsed.dryRun,debug:parsed.debug,yes:parsed.yes,refresh:parsed.refresh};const{runDomain}=await import("./run-XYRBN4AI.js");try{const code=await runDomain({domain:route.domain,...parsed.operation!==void 0?{operation:parsed.operation}:
1216
1216
  {},argv:parsed.domainArgv,help:parsed.domainHelp,globals,version:deps.version,io,...deps.fetchImpl!==void 0?{fetchImpl:deps.fetchImpl}:{}});return{code,out,err}}catch(e){return{code:1,out,err:`${err}${e.message}
1217
1217
  `}}}var GIT_LOG_OUTPUT=["9f3c1a2 feat(ui): \u4E00\u89A7\u306E\u30D5\u30A3\u30EB\u30BF\u3092 URL \u30AF\u30A8\u30EA\u3068\u540C\u671F\u3059\u308B","4b8e0d7 fix(ui): \u4EEE\u60F3\u30B9\u30AF\u30ED\u30FC\u30EB\u306E\u884C\u9AD8\u3055\u3092\u5B9F\u6E2C\u5024\u306B\u5408\u308F\u305B\u308B","c15a99e refactor(api): \u4E00\u89A7\u53D6\u5F97\u306E\u30DA\u30FC\u30B8\u30F3\u30B0\u51E6\u7406\u3092\u5171\u901A\u5316\u3059\u308B","2d70f4b test: \u4E00\u89A7\u30D5\u30A3\u30EB\u30BF\u306E\u56DE\u5E30\u30C6\u30B9\u30C8\u3092\u8FFD\u52A0\u3059\u308B",
1218
1218
  "a6e2b38 fix(api): \u7A7A\u306E\u691C\u7D22\u6761\u4EF6\u3067\u5168\u4EF6\u8FD4\u3089\u306A\u3044\u3088\u3046\u306B\u3059\u308B","7c40d51 chore(deps): \u958B\u767A\u4F9D\u5B58\u3092\u6700\u65B0\u3078\u66F4\u65B0\u3059\u308B","e83b1c6 docs: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u624B\u9806\u306B Node 22 \u306E\u524D\u63D0\u3092\u8FFD\u8A18\u3059\u308B","b91f7a4 fix(ui): \u30E2\u30FC\u30C0\u30EB\u306E\u91CD\u306A\u308A\u9806\u3092\u6307\u5B9A\u3059\u308B","5a2c8e0 perf(api): \u4E00\u89A7\u306E N+1 \u3092\u89E3\u6D88\u3059\u308B",
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __twpCreateRequire } from 'node:module';
2
2
  const require = __twpCreateRequire(import.meta.url);
3
- import{fetchLatestVersion,isBehindLatest,resolveNpmCommand}from"./chunk-YUTETDHZ.js";import"./chunk-WDV4PXDC.js";import"./chunk-D233KKXW.js";import"./chunk-PMOUHEJQ.js";import"./chunk-3WPPJAUV.js";import"./chunk-GWVREACM.js";import"./chunk-J7QYPKVK.js";import{PARENT_PID_ENV,WORKER_ENV,autoUpdateDisabledReason,classifyInstall,isCheckDue,listRegisteredPids,lockFilePath,readUpdateState,resolveCliPath,runDirPath,writeUpdateState}from"./chunk-D7DXSVB3.js";
3
+ import{fetchLatestVersion,isBehindLatest,resolveNpmCommand}from"./chunk-SGED65UG.js";import"./chunk-63HAA5LI.js";import"./chunk-D233KKXW.js";import"./chunk-PMOUHEJQ.js";import"./chunk-3WPPJAUV.js";import"./chunk-GWVREACM.js";import"./chunk-J7QYPKVK.js";import{PARENT_PID_ENV,WORKER_ENV,autoUpdateDisabledReason,classifyInstall,isCheckDue,listRegisteredPids,lockFilePath,readUpdateState,resolveCliPath,runDirPath,writeUpdateState}from"./chunk-D7DXSVB3.js";
4
4
  import{PACKAGE_NAME,parseVersionCore}from"./chunk-DXXFUNYN.js";import"./chunk-5WGOHFAS.js";import"./chunk-YMM2AVTL.js";import"./chunk-RZVI6PMW.js";import{stripTerminalControls}from"./chunk-NHYMHCAT.js";import"./chunk-VSJBJXZO.js";import{execFile}from"child_process";import fs from"fs";import path from"path";var PARENT_WAIT_MAX_MS=12*60*60*1e3;var PARENT_POLL_MS=1e3;var LOCK_STALE_MS=PARENT_WAIT_MAX_MS+60*60*1e3;var INSTALL_TIMEOUT_MS=0;function childEnv(env){const next={...env};delete next[WORKER_ENV];delete next[PARENT_PID_ENV];return next}function createNpmRunner(env=process.env){const cmd=resolveNpmCommand({env});if(cmd===null)return null;return(args,timeoutMs)=>new Promise(resolve=>{execFile(cmd.file,[...cmd.prefix,...args],{timeout:timeoutMs,windowsHide:true,maxBuffer:8*1024*1024,cwd:path.dirname(lockFilePath(env)),env:childEnv(env)},(error,stdout,stderr)=>{if(error===null){resolve({ok:true,stdout:String(stdout),stderr:String(
5
5
  stderr)});return}const e=error;resolve({ok:false,stdout:String(stdout??""),stderr:String(stderr??""),...e.killed?{error:"\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F"}:typeof e.code==="string"?{error:e.code}:{}})})})}function summarizeNpmFailure(result){const text=`${result.stderr}
6
6
  ${result.stdout}`;const code=/npm (?:ERR!|error) code (\S+)/.exec(text)?.[1]??result.error;let reason;if(code==="EACCES"||code==="EPERM"){reason=`\u30B0\u30ED\u30FC\u30D0\u30EB\u306E\u5C0E\u5165\u5148\u306B\u66F8\u304D\u8FBC\u3080\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\uFF08${code}\uFF09`}else if(code!==void 0&&/^(ENOTFOUND|ETIMEDOUT|ECONNREFUSED|ECONNRESET|EAI_AGAIN|ENETUNREACH)$/.test(code)){reason=`npm registry \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${code}\
@@ -0,0 +1,5 @@
1
+ import { createRequire as __twpCreateRequire } from 'node:module';
2
+ const require = __twpCreateRequire(import.meta.url);
3
+ import{allocationBackupDir,allocationBackupRows,allocationFiscalYear,breakdownRows,budgetDomain,dashboardRows,fiscalYear,importRejection,overwriteLines,parseAllocationRows,parseSplit,parseTargetRows,periodsLabel,writeAllocationBackup}from"./chunk-X6ZCO3QD.js";import"./chunk-7YYTTJSI.js";import"./chunk-7GRBFIJC.js";import"./chunk-O756DX6D.js";import"./chunk-MIGCXBCV.js";import"./chunk-YLF4S4MC.js";import"./chunk-CHT6EP5C.js";import"./chunk-V5WDGX4S.js";
4
+ import"./chunk-W4NLJ2YK.js";import"./chunk-BD7O73GK.js";import"./chunk-6NHLWYI2.js";import"./chunk-WGBSVOTQ.js";import"./chunk-3CEGTEI3.js";import"./chunk-CJFIIGSH.js";import"./chunk-HVZUXLQ4.js";import"./chunk-YJP4FUY4.js";import"./chunk-SBRTBKEZ.js";import"./chunk-TDO6V3ZW.js";import"./chunk-7DCWZ2NF.js";import"./chunk-HCTPCUST.js";import"./chunk-STILP3Z6.js";import"./chunk-J7QYPKVK.js";import"./chunk-YMM2AVTL.js";
5
+ import"./chunk-RZVI6PMW.js";import"./chunk-OKATZ4SN.js";import"./chunk-NHYMHCAT.js";import"./chunk-VSJBJXZO.js";export{allocationBackupDir,allocationBackupRows,allocationFiscalYear,breakdownRows,budgetDomain,dashboardRows,fiscalYear,importRejection,overwriteLines,parseAllocationRows,parseSplit,parseTargetRows,periodsLabel,writeAllocationBackup};
@@ -66,22 +66,21 @@ const message=stripTerminalControls(body?.message??nested?.message??`HTTP ${res.
66
66
  401)}if(res.status===403){return new RelayError("cli_disabled",message,403)}if(res.status===429){return new RelayError("rate_limit",message,429)}if(res.status===400){const detail=body?.details;if(Array.isArray(detail?.allowed_models)){return new RelayError("model_not_allowed",`${message}
67
67
  \u5229\u7528\u3067\u304D\u308B\u30E2\u30C7\u30EB: ${detail.allowed_models.join(" / ")}`,400)}return new RelayError("validation",message,400)}if(res.status===413){return new RelayError("validation","\u9001\u4FE1\u3059\u308B\u4F1A\u8A71\u304C\u5927\u304D\u3059\u304E\u3066\u30E2\u30C7\u30EB\u53D6\u6B21\u30B5\u30FC\u30D0\u304C\u53D7\u3051\u4ED8\u3051\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u4E0A\u9650 4MiB\uFF09\u3002`/clear` \u3067\u5C65\u6B74\u3092\u6D88\u3059\u304B\u3001\u8CBC\u308A\u4ED8\u3051\u305F\u5185\u5BB9\u30FB\u8AAD\u307F\u8FBC\u3080\u30D5\u30A1\u30A4\u30EB\u3092\u5C0F\u3055\u304F\u3057\u3066\u3084\u308A\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
68
68
  413)}if(res.status===503){return new RelayError("unavailable",message,503)}return new RelayError("upstream",message,res.status)}function safeJson5(text){try{const parsed=JSON.parse(text);return typeof parsed==="object"&&parsed!==null?parsed:null}catch{return null}}function isAbortError(err){return err instanceof Error&&(err.name==="AbortError"||err.name==="TimeoutError")}function errorMessage(err){return err instanceof Error?err.message:String(err)}var DEFAULT_CONTEXT_WINDOW_TOKENS=2e5;var DEFAULT_MAX_TOKENS=8192;var TRIM_THRESHOLD=.8;function trimLimitTokens(contextWindowTokens,maxTokens){return Math.max(1,Math.floor((contextWindowTokens-maxTokens)*TRIM_THRESHOLD))}var RELAY_BODY_LIMIT_BYTES=4*1024*1024;var BODY_SAFETY_MARGIN_BYTES=256*1024;var DEFAULT_MAX_HISTORY_BYTES=RELAY_BODY_LIMIT_BYTES-BODY_SAFETY_MARGIN_BYTES;var IMAGE_DROPPED_NOTICE="\uFF08\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u4E0A\u9650\u306E\u305F\u3081\u3001\u3053\u3053\u306B\u3042\u3063\u305F\u753B\u50CF\u306F\u5C65\u6B74\u304B\u3089\u5916\u308C\u307E\u3057\u305F\uFF09";
69
- var ContextManager=class{constructor(defaultContextWindowTokens=DEFAULT_CONTEXT_WINDOW_TOKENS){this.defaultContextWindowTokens=defaultContextWindowTokens;this.contextWindowTokens=defaultContextWindowTokens}defaultContextWindowTokens;messages=[];totals=emptyUsage();turns=0;lastPromptTokens=0;pendingChars=0;droppedMessages=0;pinnedHead=false;historyTail=null;currentUser=null;relayCountsImageBase64=false;contextWindowTokens;setContextWindow(tokens){this.contextWindowTokens=tokens!==null&&tokens>0?tokens:
70
- this.defaultContextWindowTokens}setRelayCountsImageBase64(on){this.relayCountsImageBase64=on}addUser(text,images=[]){const blocks=[...text!==""||images.length===0?[{type:"text",text}]:[],...images.map(image=>({...image}))];this.pendingChars+=blocks.reduce((n,b)=>n+blockLength(b),0);const last=this.messages[this.messages.length-1];if(last?.role==="user"){last.content.push(...blocks);this.currentUser=last;return}const message={role:"user",content:blocks};this.messages.push(message);this.currentUser=
71
- message}restoreHistory(messages){if(this.messages.length>0){throw new Error("\u5C65\u6B74\u306F\u6700\u521D\u306E\u30E6\u30FC\u30B6\u30FC\u30BF\u30FC\u30F3\u3088\u308A\u524D\u306B\u3060\u3051\u7A4D\u3081\u307E\u3059")}let skippedLeadingAssistant=0;for(const m of messages){if(m.content==="")continue;const last=this.messages[this.messages.length-1];if(last===void 0&&m.role==="assistant"){skippedLeadingAssistant+=1;continue}if(last?.role===m.role){last.content.push({type:"text",text:m.content})}else{
72
- this.messages.push({role:m.role,content:[{type:"text",text:m.content}]})}this.pendingChars+=m.content.length}this.pinnedHead=this.messages.length>0;const tail=this.messages[this.messages.length-1];this.historyTail=tail?.role==="user"?{message:tail,blocks:tail.content.length}:null;return{messages:this.messages.length,skippedLeadingAssistant}}addToolExchange(assistantText,toolUses,results){if(toolUses.length===0)return;const blocks=[];if(assistantText.trim()!=="")blocks.push({type:"text",text:assistantText});
73
- blocks.push(...toolUses);this.messages.push({role:"assistant",content:blocks});this.messages.push({role:"user",content:results});this.pendingChars+=blocks.reduce((n,b)=>n+blockLength(b),0);this.pendingChars+=results.reduce((n,b)=>n+blockLength(b),0)}completeTurn(assistantText){const text=assistantText.trim();if(text===""){const last=this.messages[this.messages.length-1];if(last?.role==="user"&&!hasToolResult(last)){const tail=this.historyTail;if(tail!==null&&tail.message===last&&last.content.length>
74
- tail.blocks){const removed=last.content.splice(tail.blocks);this.pendingChars=Math.max(0,this.pendingChars-removed.reduce((n,b)=>n+blockLength(b),0))}else{this.messages.pop();this.pendingChars=Math.max(0,this.pendingChars-lengthOf(last))}}return false}this.messages.push({role:"assistant",content:[{type:"text",text:assistantText}]});this.pendingChars+=assistantText.length;this.turns+=1;this.historyTail=null;return true}applyUsage(usage){this.totals={inputTokens:this.totals.inputTokens+usage.inputTokens,
75
- cacheReadTokens:this.totals.cacheReadTokens+usage.cacheReadTokens,cacheWriteTokens:this.totals.cacheWriteTokens+usage.cacheWriteTokens,outputTokens:this.totals.outputTokens+usage.outputTokens};const prompt=usage.inputTokens+usage.cacheReadTokens+usage.cacheWriteTokens;if(prompt>0){this.lastPromptTokens=prompt;this.pendingChars=0}}history(){return this.messages.map(m=>({role:m.role,content:m.content.map(copyBlock)}))}isEmpty(){return this.messages.length===0}clear(){this.messages=[];this.totals=emptyUsage();
76
- this.turns=0;this.lastPromptTokens=0;this.pendingChars=0;this.droppedMessages=0;this.pinnedHead=false;this.historyTail=null;this.currentUser=null}trimToFit(maxTokens=DEFAULT_MAX_TOKENS,maxHistoryBytes=DEFAULT_MAX_HISTORY_BYTES){const limit=trimLimitTokens(this.contextWindowTokens,maxTokens);let dropped=0;let bytes=this.messages.reduce((sum,m)=>sum+bytesOf(m),0);const over=()=>this.estimatedPromptTokens()+this.relayImageTokens()>limit||bytes>maxHistoryBytes;const dropAt=index=>{const[removed]=this.
77
- messages.splice(index,1);if(!removed)return;this.lastPromptTokens=Math.max(0,this.lastPromptTokens-Math.ceil(lengthOf(removed)/4));bytes-=bytesOf(removed);dropped+=1};const stripImages=message=>{for(let i=0;i<message.content.length&&over();i++){const block=message.content[i];if(block?.type!=="image")continue;const before=bytesOf(message);const freed=blockLength(block)-IMAGE_DROPPED_NOTICE.length;message.content[i]={type:"text",text:IMAGE_DROPPED_NOTICE};bytes-=before-bytesOf(message);if(message===
78
- this.currentUser&&this.pendingChars>=freed){this.pendingChars-=freed}else{this.lastPromptTokens=Math.max(0,this.lastPromptTokens-Math.ceil(freed/4))}dropped+=1}};for(const message of this.messages){if(!over())break;if(message===this.currentUser)continue;stripImages(message)}if(this.pinnedHead){const current=()=>{const tracked=this.currentUser===null?-1:this.messages.indexOf(this.currentUser);if(tracked>0)return tracked;for(let i=this.messages.length-1;i>0;i--){const m=this.messages[i];if(m?.role===
79
- "user"&&!hasToolResult(m))return i}return 0};while(over()&&this.messages[1]?.role==="assistant"&&current()>2){dropAt(1);dropAt(1)}while(over()){const cur=current();if(this.messages.length-cur<4||this.messages[cur+1]?.role!=="assistant")break;dropAt(cur+1);dropAt(cur+1)}if(over())this.pinnedHead=false}const shiftOldest=keepCurrent=>{while(over()&&this.messages.length>1){if(keepCurrent&&this.messages[0]===this.currentUser)break;const removed=this.messages.shift();if(!removed)break;const removedTokens=Math.
80
- ceil(lengthOf(removed)/4);this.lastPromptTokens=Math.max(0,this.lastPromptTokens-removedTokens);bytes-=bytesOf(removed);dropped+=1}};shiftOldest(true);if(over()&&this.currentUser!==null&&this.messages.includes(this.currentUser)){stripImages(this.currentUser)}shiftOldest(false);while(this.messages.length>0){const head2=this.messages[0];if(!head2)break;const orphanResult=hasToolResult(head2)&&this.messages.length>1;if(head2.role!=="assistant"&&!orphanResult)break;this.messages.shift();this.lastPromptTokens=
81
- Math.max(0,this.lastPromptTokens-Math.ceil(lengthOf(head2)/4));dropped+=1}const head=this.messages[0];if(head&&hasToolResult(head)){const before=lengthOf(head);const kept=head.content.filter(block=>block.type!=="tool_result");head.content=kept.length>0?kept:[{type:"text",text:"\uFF08\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u4E0A\u9650\u306E\u305F\u3081\u3001\u76F4\u524D\u306E\u30C4\u30FC\u30EB\u5B9F\u884C\u7D50\u679C\u306F\u5C65\u6B74\u304B\u3089\u5916\u308C\u307E\u3057\u305F\uFF09"}];const freed=before-
82
- lengthOf(head);this.lastPromptTokens=Math.max(0,this.lastPromptTokens-Math.ceil(freed/4));this.pendingChars=Math.max(0,this.pendingChars-freed);dropped+=1}this.droppedMessages+=dropped;return dropped}estimatedPromptTokens(){if(this.lastPromptTokens===0){return Math.ceil(this.totalChars()/4)}return this.lastPromptTokens+Math.ceil(this.pendingChars/4)}snapshot(){const used=this.estimatedPromptTokens();const remaining=Math.round((this.contextWindowTokens-used)/this.contextWindowTokens*100);return{totals:{
83
- ...this.totals},turns:this.turns,lastPromptTokens:this.lastPromptTokens,remainingPercent:Math.max(0,Math.min(100,remaining)),contextWindowTokens:this.contextWindowTokens,droppedMessages:this.droppedMessages}}relayImageTokens(){if(!this.relayCountsImageBase64)return 0;let chars=0;for(const m of this.messages){for(const block of m.content)if(block.type==="image")chars+=block.data.length}return Math.ceil(chars/4)}totalChars(){return this.messages.reduce((sum,m)=>sum+lengthOf(m),0)}};function bytesOf(message){
84
- return Buffer.byteLength(JSON.stringify(message),"utf8")+1}function lengthOf(message){return message.content.reduce((sum,block)=>sum+blockLength(block),0)}function copyBlock(block){return block.type==="tool_use"?{...block,input:{...block.input}}:{...block}}function hasToolResult(message){return message.content.some(block=>block.type==="tool_result")}function formatContextRemaining(snapshot){return`\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u6B8B\u91CF: ${snapshot.remainingPercent}%\uFF08\u7A93 ${snapshot.
85
- contextWindowTokens.toLocaleString("en-US")} tok \u306E\u6982\u7B97\uFF09`}function createRuntime(opts){const env=opts.env??process.env;const cwd=opts.cwd??process.cwd();const profile=resolveProfile(opts.profile,env,cwd);const delegated=env[DELEGATED_TOKEN_ENV]?.trim()||null;delete env[DELEGATED_TOKEN_ENV];const creds=delegated?null:loadCredentials(profile.name,env);const trusted=delegatedEndpoints(env);const apiUrl=delegated?trusted.apiUrl:effectiveApiUrl(profile,creds?.api_url,env);const relayUrl=delegated?trusted.relayUrl:effectiveRelayUrl(profile,creds?.relay_url,env);
69
+ var ContextManager=class{constructor(defaultContextWindowTokens=DEFAULT_CONTEXT_WINDOW_TOKENS){this.defaultContextWindowTokens=defaultContextWindowTokens;this.contextWindowTokens=defaultContextWindowTokens}defaultContextWindowTokens;messages=[];totals=emptyUsage();turns=0;lastPromptTokens=0;pendingChars=0;droppedMessages=0;pinnedHead=false;historyTail=null;currentUser=null;contextWindowTokens;setContextWindow(tokens){this.contextWindowTokens=tokens!==null&&tokens>0?tokens:this.defaultContextWindowTokens}addUser(text,images=[]){
70
+ const blocks=[...text!==""||images.length===0?[{type:"text",text}]:[],...images.map(image=>({...image}))];this.pendingChars+=blocks.reduce((n,b)=>n+blockLength(b),0);const last=this.messages[this.messages.length-1];if(last?.role==="user"){last.content.push(...blocks);this.currentUser=last;return}const message={role:"user",content:blocks};this.messages.push(message);this.currentUser=message}restoreHistory(messages){if(this.messages.length>0){throw new Error("\u5C65\u6B74\u306F\u6700\u521D\u306E\u30E6\u30FC\u30B6\u30FC\u30BF\u30FC\u30F3\u3088\u308A\u524D\u306B\u3060\u3051\u7A4D\u3081\u307E\u3059")}
71
+ let skippedLeadingAssistant=0;for(const m of messages){if(m.content==="")continue;const last=this.messages[this.messages.length-1];if(last===void 0&&m.role==="assistant"){skippedLeadingAssistant+=1;continue}if(last?.role===m.role){last.content.push({type:"text",text:m.content})}else{this.messages.push({role:m.role,content:[{type:"text",text:m.content}]})}this.pendingChars+=m.content.length}this.pinnedHead=this.messages.length>0;const tail=this.messages[this.messages.length-1];this.historyTail=tail?.
72
+ role==="user"?{message:tail,blocks:tail.content.length}:null;return{messages:this.messages.length,skippedLeadingAssistant}}addToolExchange(assistantText,toolUses,results){if(toolUses.length===0)return;const blocks=[];if(assistantText.trim()!=="")blocks.push({type:"text",text:assistantText});blocks.push(...toolUses);this.messages.push({role:"assistant",content:blocks});this.messages.push({role:"user",content:results});this.pendingChars+=blocks.reduce((n,b)=>n+blockLength(b),0);this.pendingChars+=
73
+ results.reduce((n,b)=>n+blockLength(b),0)}completeTurn(assistantText){const text=assistantText.trim();if(text===""){const last=this.messages[this.messages.length-1];if(last?.role==="user"&&!hasToolResult(last)){const tail=this.historyTail;if(tail!==null&&tail.message===last&&last.content.length>tail.blocks){const removed=last.content.splice(tail.blocks);this.pendingChars=Math.max(0,this.pendingChars-removed.reduce((n,b)=>n+blockLength(b),0))}else{this.messages.pop();this.pendingChars=Math.max(0,
74
+ this.pendingChars-lengthOf(last))}}return false}this.messages.push({role:"assistant",content:[{type:"text",text:assistantText}]});this.pendingChars+=assistantText.length;this.turns+=1;this.historyTail=null;return true}applyUsage(usage){this.totals={inputTokens:this.totals.inputTokens+usage.inputTokens,cacheReadTokens:this.totals.cacheReadTokens+usage.cacheReadTokens,cacheWriteTokens:this.totals.cacheWriteTokens+usage.cacheWriteTokens,outputTokens:this.totals.outputTokens+usage.outputTokens};const prompt=usage.
75
+ inputTokens+usage.cacheReadTokens+usage.cacheWriteTokens;if(prompt>0){this.lastPromptTokens=prompt;this.pendingChars=0}}history(){return this.messages.map(m=>({role:m.role,content:m.content.map(copyBlock)}))}isEmpty(){return this.messages.length===0}clear(){this.messages=[];this.totals=emptyUsage();this.turns=0;this.lastPromptTokens=0;this.pendingChars=0;this.droppedMessages=0;this.pinnedHead=false;this.historyTail=null;this.currentUser=null}trimToFit(maxTokens=DEFAULT_MAX_TOKENS,maxHistoryBytes=DEFAULT_MAX_HISTORY_BYTES){
76
+ const limit=trimLimitTokens(this.contextWindowTokens,maxTokens);let dropped=0;let bytes=this.messages.reduce((sum,m)=>sum+bytesOf(m),0);const over=()=>this.estimatedPromptTokens()>limit||bytes>maxHistoryBytes;const dropAt=index=>{const[removed]=this.messages.splice(index,1);if(!removed)return;this.lastPromptTokens=Math.max(0,this.lastPromptTokens-Math.ceil(lengthOf(removed)/4));bytes-=bytesOf(removed);dropped+=1};const stripImages=message=>{for(let i=0;i<message.content.length&&over();i++){const block=message.
77
+ content[i];if(block?.type!=="image")continue;const before=bytesOf(message);const freed=blockLength(block)-IMAGE_DROPPED_NOTICE.length;message.content[i]={type:"text",text:IMAGE_DROPPED_NOTICE};bytes-=before-bytesOf(message);if(message===this.currentUser&&this.pendingChars>=freed){this.pendingChars-=freed}else{this.lastPromptTokens=Math.max(0,this.lastPromptTokens-Math.ceil(freed/4))}dropped+=1}};for(const message of this.messages){if(!over())break;if(message===this.currentUser)continue;stripImages(
78
+ message)}if(this.pinnedHead){const current=()=>{const tracked=this.currentUser===null?-1:this.messages.indexOf(this.currentUser);if(tracked>0)return tracked;for(let i=this.messages.length-1;i>0;i--){const m=this.messages[i];if(m?.role==="user"&&!hasToolResult(m))return i}return 0};while(over()&&this.messages[1]?.role==="assistant"&&current()>2){dropAt(1);dropAt(1)}while(over()){const cur=current();if(this.messages.length-cur<4||this.messages[cur+1]?.role!=="assistant")break;dropAt(cur+1);dropAt(
79
+ cur+1)}if(over())this.pinnedHead=false}const shiftOldest=keepCurrent=>{while(over()&&this.messages.length>1){if(keepCurrent&&this.messages[0]===this.currentUser)break;const removed=this.messages.shift();if(!removed)break;const removedTokens=Math.ceil(lengthOf(removed)/4);this.lastPromptTokens=Math.max(0,this.lastPromptTokens-removedTokens);bytes-=bytesOf(removed);dropped+=1}};shiftOldest(true);if(over()&&this.currentUser!==null&&this.messages.includes(this.currentUser)){stripImages(this.currentUser)}
80
+ shiftOldest(false);while(this.messages.length>0){const head2=this.messages[0];if(!head2)break;const orphanResult=hasToolResult(head2)&&this.messages.length>1;if(head2.role!=="assistant"&&!orphanResult)break;this.messages.shift();this.lastPromptTokens=Math.max(0,this.lastPromptTokens-Math.ceil(lengthOf(head2)/4));dropped+=1}const head=this.messages[0];if(head&&hasToolResult(head)){const before=lengthOf(head);const kept=head.content.filter(block=>block.type!=="tool_result");head.content=kept.length>
81
+ 0?kept:[{type:"text",text:"\uFF08\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u4E0A\u9650\u306E\u305F\u3081\u3001\u76F4\u524D\u306E\u30C4\u30FC\u30EB\u5B9F\u884C\u7D50\u679C\u306F\u5C65\u6B74\u304B\u3089\u5916\u308C\u307E\u3057\u305F\uFF09"}];const freed=before-lengthOf(head);this.lastPromptTokens=Math.max(0,this.lastPromptTokens-Math.ceil(freed/4));this.pendingChars=Math.max(0,this.pendingChars-freed);dropped+=1}this.droppedMessages+=dropped;return dropped}estimatedPromptTokens(){if(this.lastPromptTokens===
82
+ 0){return Math.ceil(this.totalChars()/4)}return this.lastPromptTokens+Math.ceil(this.pendingChars/4)}snapshot(){const used=this.estimatedPromptTokens();const remaining=Math.round((this.contextWindowTokens-used)/this.contextWindowTokens*100);return{totals:{...this.totals},turns:this.turns,lastPromptTokens:this.lastPromptTokens,remainingPercent:Math.max(0,Math.min(100,remaining)),contextWindowTokens:this.contextWindowTokens,droppedMessages:this.droppedMessages}}totalChars(){return this.messages.reduce(
83
+ (sum,m)=>sum+lengthOf(m),0)}};function bytesOf(message){return Buffer.byteLength(JSON.stringify(message),"utf8")+1}function lengthOf(message){return message.content.reduce((sum,block)=>sum+blockLength(block),0)}function copyBlock(block){return block.type==="tool_use"?{...block,input:{...block.input}}:{...block}}function hasToolResult(message){return message.content.some(block=>block.type==="tool_result")}function formatContextRemaining(snapshot){return`\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u6B8B\u91CF: ${snapshot.
84
+ remainingPercent}%\uFF08\u7A93 ${snapshot.contextWindowTokens.toLocaleString("en-US")} tok \u306E\u6982\u7B97\uFF09`}function createRuntime(opts){const env=opts.env??process.env;const cwd=opts.cwd??process.cwd();const profile=resolveProfile(opts.profile,env,cwd);const delegated=env[DELEGATED_TOKEN_ENV]?.trim()||null;delete env[DELEGATED_TOKEN_ENV];const creds=delegated?null:loadCredentials(profile.name,env);const trusted=delegatedEndpoints(env);const apiUrl=delegated?trusted.apiUrl:effectiveApiUrl(profile,creds?.api_url,env);const relayUrl=delegated?trusted.relayUrl:effectiveRelayUrl(profile,creds?.relay_url,env);
86
85
  const session=new AuthSession(profile.name,apiUrl,env);if(delegated)session.useDelegatedToken(delegated);const client=new RelayClient(relayUrl,session,httpFetch,opts.cliVersion);const configured=resolveConfiguredModel(opts.model,profile.name,env,cwd);return{profileName:profile.name,apiUrl,relayUrl,client,session,context:new ContextManager,loggedIn:creds!==null||session.isDelegated,configuredModel:configured?.model??null,loadCatalog:()=>loadCatalog(client,profile.name,relayUrl,env,!session.isDelegated),
87
- loadCachedFloor:()=>session.isDelegated?{minSupportedVersion:null,fetchedAt:null}:loadCachedVersionFloor(profile.name,relayUrl,env),loadCachedCatalog:()=>session.isDelegated?null:loadCachedCatalog(profile.name,relayUrl,env),delegationBlockedReason:normalizeBaseUrl(apiUrl)===trusted.apiUrl&&normalizeBaseUrl(relayUrl)===trusted.relayUrl?null:"\u63A5\u7D9A\u5148\u304C\u5171\u6709\u306E TWP_HOME \u306E\u8A2D\u5B9A\uFF08config.json \u306E api_url / relay_url \u304B\u8CC7\u683C\u60C5\u5831\u306E\u767A\u884C\u5143\uFF09\u304B\u3089\u6C7A\u307E\u3063\u3066\u3044\u308B\u305F\u3081\u3001\u59D4\u4EFB\u30C8\u30FC\u30AF\u30F3\u3092\u53D7\u3051\u4ED8\u3051\u307E\u305B\u3093\u3002\u63A5\u7D9A\u5148\u306F TWP_API_URL / TWP_RELAY_URL \u3067\u6E21\u3057\u3066\u304F\u3060\u3055\u3044"}}export{CHAT_IMAGE_MEDIA_TYPES,emptyUsage,DEFAULT_CONTEXT_WINDOW_TOKENS,DEFAULT_MAX_TOKENS,trimLimitTokens,DEFAULT_MAX_HISTORY_BYTES,bytesOf,formatContextRemaining,modelLabel,toModelInfos,effectiveModelSpec,builtinCatalog,loadCachedCatalog,pickModel,specFor,classifyModelSwitch,RelayError,createRuntime};
86
+ loadCachedFloor:()=>session.isDelegated?{minSupportedVersion:null,fetchedAt:null}:loadCachedVersionFloor(profile.name,relayUrl,env),loadCachedCatalog:()=>session.isDelegated?null:loadCachedCatalog(profile.name,relayUrl,env),delegationBlockedReason:normalizeBaseUrl(apiUrl)===trusted.apiUrl&&normalizeBaseUrl(relayUrl)===trusted.relayUrl?null:"\u63A5\u7D9A\u5148\u304C\u5171\u6709\u306E TWP_HOME \u306E\u8A2D\u5B9A\uFF08config.json \u306E api_url / relay_url \u304B\u8CC7\u683C\u60C5\u5831\u306E\u767A\u884C\u5143\uFF09\u304B\u3089\u6C7A\u307E\u3063\u3066\u3044\u308B\u305F\u3081\u3001\u59D4\u4EFB\u30C8\u30FC\u30AF\u30F3\u3092\u53D7\u3051\u4ED8\u3051\u307E\u305B\u3093\u3002\u63A5\u7D9A\u5148\u306F TWP_API_URL / TWP_RELAY_URL \u3067\u6E21\u3057\u3066\u304F\u3060\u3055\u3044"}}export{CHAT_IMAGE_MEDIA_TYPES,emptyUsage,DEFAULT_MAX_TOKENS,DEFAULT_MAX_HISTORY_BYTES,bytesOf,formatContextRemaining,modelLabel,toModelInfos,effectiveModelSpec,builtinCatalog,loadCachedCatalog,pickModel,specFor,classifyModelSwitch,RelayError,createRuntime};
@@ -1,11 +1,11 @@
1
1
  import { createRequire as __twpCreateRequire } from 'node:module';
2
2
  const require = __twpCreateRequire(import.meta.url);
3
3
  var LOADERS={agent:async()=>(await import("./agent-VRFUCPH5.js")).agentDomain,"agent-loop":async()=>(await import("./agent-loop-NM4VGCNK.js")).agentLoopDomain,"ai-review-reason":async()=>(await import("./sales-ai-review-C4PP5AWL.js")).aiReviewReasonDomain,analysis:async()=>(await import("./analysis-KIINLXQA.js")).analysisDomain,announcement:async()=>(await import("./announcement-RT5EGF3D.js")).announcementDomain,"api-key":async()=>(await import("./api-key-5YNSOY7D.js")).apiKeyDomain,attendance:async()=>(await import("./attendance-correct-QLM2ZKAZ.js")).
4
- attendanceDomainWithRecords,"audit-log":async()=>(await import("./audit-log-AFBDNA3K.js")).auditLogDomain,backlog:async()=>(await import("./backlog-AEUXNA3H.js")).backlogDomain,brief:async()=>(await import("./brief-JKHTU72A.js")).briefDomain,budget:async()=>(await import("./budget-QNLGIQKK.js")).budgetDomain,"business-hours":async()=>(await import("./business-hours-QL763KSA.js")).businessHoursDomain,"business-place":async()=>(await import("./sales-master-HWVXQCCO.js")).businessPlaceDomain,
4
+ attendanceDomainWithRecords,"audit-log":async()=>(await import("./audit-log-AFBDNA3K.js")).auditLogDomain,backlog:async()=>(await import("./backlog-AEUXNA3H.js")).backlogDomain,brief:async()=>(await import("./brief-JKHTU72A.js")).briefDomain,budget:async()=>(await import("./budget-GNKRQFYQ.js")).budgetDomain,"business-hours":async()=>(await import("./business-hours-QL763KSA.js")).businessHoursDomain,"business-place":async()=>(await import("./sales-master-HWVXQCCO.js")).businessPlaceDomain,
5
5
  chat:async()=>(await import("./chat-2X6F7ERR.js")).chatDomain,company:async()=>(await import("./company-HM3T6GMR.js")).companyDomain,content:async()=>(await import("./content-BCVFYM4E.js")).contentDomain,contract:async()=>(await import("./contract-VNEESYMW.js")).contractDomain,corporate:async()=>(await import("./corporate-EJDTWEZF.js")).corporateDomain,customer:async()=>(await import("./company-HM3T6GMR.js")).customerDomain,department:async()=>(await import("./department-CKGOG66B.js")).
6
6
  departmentDomain,deposit:async()=>(await import("./deposit-6A6UN4XI.js")).depositDomain,equipment:async()=>(await import("./equipment-4MV3LQF3.js")).equipmentDomain,estimate:async()=>(await import("./estimate-MIBZGO55.js")).estimateDomain,evaluation:async()=>(await import("./evaluation-PRQUSFII.js")).evaluationDomain,expense:async()=>(await import("./expense-SJKGEC7M.js")).expenseDomain,faq:async()=>(await import("./faq-3QWPYKEY.js")).faqDomain,"fiscal-year":async()=>(await import("./fiscal-year-AZE2KTT7.js")).
7
- fiscalYearDomain,github:async()=>(await import("./github-CXZYWXX6.js")).githubDomain,hearing:async()=>(await import("./hearing-NT6NMFAV.js")).hearingDomain,holiday:async()=>(await import("./holiday-XJCSHCGE.js")).holidayDomain,"goal-sheet":async()=>(await import("./evaluation-PRQUSFII.js")).goalSheetDomain,inquiry:async()=>(await import("./inquiry-OUEWPY3D.js")).inquiryDomain,invoice:async()=>(await import("./invoice-Y4BQYBFW.js")).invoiceDomain,"job-title":async()=>(await import("./job-title-XCCI3HTF.js")).
8
- jobTitleDomain,journal:async()=>(await import("./journal-E3GQQR4S.js")).journalDomain,knowledge:async()=>(await import("./domain-knowledge-4SELDK4C.js")).knowledgeDomain,leave:async()=>(await import("./leave-VMCCIHXZ.js")).leaveDomain,license:async()=>(await import("./license-UJF6HO4F.js")).licenseDomain,"login-history":async()=>(await import("./login-history-QPQQNVWE.js")).loginHistoryDomain,media:async()=>(await import("./media-7W4GOYNS.js")).mediaDomain,meeting:async()=>(await import("./knowledge-AIXFEVXM.js")).
7
+ fiscalYearDomain,github:async()=>(await import("./github-CXZYWXX6.js")).githubDomain,hearing:async()=>(await import("./hearing-NT6NMFAV.js")).hearingDomain,holiday:async()=>(await import("./holiday-WOGBAL7M.js")).holidayDomain,"goal-sheet":async()=>(await import("./evaluation-PRQUSFII.js")).goalSheetDomain,inquiry:async()=>(await import("./inquiry-OUEWPY3D.js")).inquiryDomain,invoice:async()=>(await import("./invoice-Y4BQYBFW.js")).invoiceDomain,"job-title":async()=>(await import("./job-title-XCCI3HTF.js")).
8
+ jobTitleDomain,journal:async()=>(await import("./journal-E3GQQR4S.js")).journalDomain,knowledge:async()=>(await import("./domain-knowledge-4SELDK4C.js")).knowledgeDomain,leave:async()=>(await import("./leave-VMCCIHXZ.js")).leaveDomain,license:async()=>(await import("./license-UJF6HO4F.js")).licenseDomain,"login-history":async()=>(await import("./login-history-QPQQNVWE.js")).loginHistoryDomain,media:async()=>(await import("./media-H3N6OUL3.js")).mediaDomain,meeting:async()=>(await import("./knowledge-AIXFEVXM.js")).
9
9
  meetingDomain,note:async()=>(await import("./note-FOCBMAUJ.js")).noteDomain,notification:async()=>(await import("./notification-JBCNHNQW.js")).notificationDomain,ojt:async()=>(await import("./ojt-EFCQ6TSX.js")).ojtDomain,onedrive:async()=>(await import("./onedrive-QT3BIYM3.js")).onedriveDomain,outlook:async()=>(await import("./outlook-RSWPGKML.js")).outlookDomain,payee:async()=>(await import("./sales-master-HWVXQCCO.js")).payeeDomain,position:async()=>(await import("./position-BAYFBP27.js")).
10
10
  positionDomain,project:async()=>(await import("./project-IE5HPH62.js")).projectDomain,"process-master":async()=>(await import("./project-masters-DON5GGSB.js")).processMasterDomain,prospect:async()=>(await import("./prospect-VU2O3EQW.js")).prospectDomain,purchase:async()=>(await import("./purchase-5IX7APWV.js")).purchaseDomain,qualification:async()=>(await import("./skill-KW7WYVZ2.js")).qualificationDomain,"quality-check-item":async()=>(await import("./project-masters-DON5GGSB.js")).qualityCheckItemDomain,
11
11
  receivable:async()=>(await import("./receivable-DRDUV4MB.js")).receivableDomain,redmine:async()=>(await import("./redmine-RXWZVFRW.js")).redmineDomain,report:async()=>(await import("./report-GDOYJSP7.js")).reportDomain,"role-template":async()=>(await import("./evaluation-PRQUSFII.js")).roleTemplateDomain,"rounding-setting":async()=>(await import("./sales-numbering-JF5XTTLS.js")).roundingSettingDomain,"seal-impression":async()=>(await import("./sales-master-HWVXQCCO.js")).sealImpressionDomain,
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __twpCreateRequire } from 'node:module';
2
2
  const require = __twpCreateRequire(import.meta.url);
3
- import{loadDomain}from"./chunk-HS3BBJBF.js";import{evaluateQuery}from"./chunk-PAJAEUPA.js";import{renderDocument,renderOutput}from"./chunk-P4QSPSOQ.js";import{JsonBodyWithView}from"./chunk-Q3B65OFC.js";import{NO_REDACT_NOTICE,withCommonFlags}from"./chunk-W4NLJ2YK.js";import{redactSecretValues,redactSecrets,withDebug}from"./chunk-BD7O73GK.js";import{parseOperationArgs}from"./chunk-6NHLWYI2.js";import{Resolver,credentialIdentity,requireDefaultProject}from"./chunk-WGBSVOTQ.js";
3
+ import{loadDomain}from"./chunk-E7TTXK27.js";import{evaluateQuery}from"./chunk-PAJAEUPA.js";import{renderDocument,renderOutput}from"./chunk-P4QSPSOQ.js";import{JsonBodyWithView}from"./chunk-Q3B65OFC.js";import{NO_REDACT_NOTICE,withCommonFlags}from"./chunk-W4NLJ2YK.js";import{redactSecretValues,redactSecrets,withDebug}from"./chunk-BD7O73GK.js";import{parseOperationArgs}from"./chunk-6NHLWYI2.js";import{Resolver,credentialIdentity,requireDefaultProject}from"./chunk-WGBSVOTQ.js";
4
4
  import{ApiError,MultipartBody,TwpApiClient,appendQuery}from"./chunk-3CEGTEI3.js";import{ResolveError}from"./chunk-HVZUXLQ4.js";import{DEFAULT_MAX_ITEMS,DEFAULT_MAX_PAGES,nextPageNotes,positiveInteger,shellQuote}from"./chunk-TDO6V3ZW.js";import{isRecord}from"./chunk-HCTPCUST.js";import{ApiRejectedError,ApiResponseError,ConflictError,EXIT_API_CLIENT,EXIT_API_SERVER,EXIT_AUTH,EXIT_CONFLICT,EXIT_FAILURE,EXIT_OK,EXIT_USAGE,EXIT_WAIT_TIMEOUT,NetworkError,UsageError,WaitTimeoutError}from"./chunk-STILP3Z6.js";
5
5
  import{GLOBAL_OPTIONS_HELP}from"./chunk-TZL2342W.js";import{AuthSession,NotLoggedInError,SessionExpiredError}from"./chunk-3WPPJAUV.js";import{loadCredentials}from"./chunk-GWVREACM.js";import{httpFetch}from"./chunk-J7QYPKVK.js";import{effectiveApiUrl,loadUserConfig,resolveConfiguredBacklogSpace,resolveConfiguredOutput,resolveProfile}from"./chunk-YMM2AVTL.js";import{HELP_TOKEN}from"./chunk-F3UL5POS.js";import{OUTPUT_FORMATS,resolveOutputFormat}from"./chunk-RKBUJKI5.js";
6
6
  import{stringWidth}from"./chunk-UREA4ZIG.js";import{stripTerminalControls}from"./chunk-NHYMHCAT.js";import fs from"fs";import path from"path";function alignedList(entries,indent=" "){const width=entries.reduce((max,[left])=>Math.max(max,stringWidth(left)),0);return entries.map(([left,right])=>`${indent}${left}${" ".repeat(Math.max(0,width-stringWidth(left)))} ${right}`).join("\n")}function subresourcesOf(resource){return resource.subresources??[]}function renderResourceHelp(resource,path2){const subresources=subresourcesOf(resource);const operationSection=resource.operations.length===0?"":`
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __twpCreateRequire } from 'node:module';
2
2
  const require = __twpCreateRequire(import.meta.url);
3
- import{createRuntime}from"./chunk-WDV4PXDC.js";import{findExecutable}from"./chunk-PMOUHEJQ.js";import{httpFetch}from"./chunk-J7QYPKVK.js";import{describeAutoUpdate}from"./chunk-D7DXSVB3.js";import{PACKAGE_NAME,UPDATE_COMMAND,compareVersionCores,isBelowMinSupported,parseVersionCore}from"./chunk-DXXFUNYN.js";import{stripTerminalControls}from"./chunk-NHYMHCAT.js";import{execFile}from"child_process";import fs from"fs";import path from"path";function resolveNpmCommand(deps={}){const platform=deps.platform??process.platform;const env=deps.env??process.env;const npmPath=(deps.find??(name=>findExecutable(name,{env,platform})))("npm");if(npmPath===null)return null;if(platform!=="win32")return{file:npmPath,prefix:[]};if(/\.exe$/i.test(npmPath))return{file:npmPath,prefix:[]};const cliJs=path.win32.join(path.win32.dirname(npmPath),"node_modules","npm","bin","npm-cli.js");return(deps.exists??fs.existsSync)(cliJs)?{file:deps.nodePath??process.
3
+ import{createRuntime}from"./chunk-63HAA5LI.js";import{findExecutable}from"./chunk-PMOUHEJQ.js";import{httpFetch}from"./chunk-J7QYPKVK.js";import{describeAutoUpdate}from"./chunk-D7DXSVB3.js";import{PACKAGE_NAME,UPDATE_COMMAND,compareVersionCores,isBelowMinSupported,parseVersionCore}from"./chunk-DXXFUNYN.js";import{stripTerminalControls}from"./chunk-NHYMHCAT.js";import{execFile}from"child_process";import fs from"fs";import path from"path";function resolveNpmCommand(deps={}){const platform=deps.platform??process.platform;const env=deps.env??process.env;const npmPath=(deps.find??(name=>findExecutable(name,{env,platform})))("npm");if(npmPath===null)return null;if(platform!=="win32")return{file:npmPath,prefix:[]};if(/\.exe$/i.test(npmPath))return{file:npmPath,prefix:[]};const cliJs=path.win32.join(path.win32.dirname(npmPath),"node_modules","npm","bin","npm-cli.js");return(deps.exists??fs.existsSync)(cliJs)?{file:deps.nodePath??process.
4
4
  execPath,prefix:[cliJs]}:null}var DEFAULT_REGISTRY="https://registry.npmjs.org";function registryBase(env=process.env){const configured=env["npm_config_registry"]?.trim();if(configured===void 0||configured==="")return DEFAULT_REGISTRY;try{const url=new URL(configured);if(url.protocol!=="https:"&&url.protocol!=="http:")return DEFAULT_REGISTRY}catch{return DEFAULT_REGISTRY}return configured.replace(/\/+$/,"")}async function fetchFromRegistry(fetchImpl=httpFetch,env=process.env){const url=`${registryBase(env)}/${PACKAGE_NAME.replace(
5
5
  "/","%2f")}`;const res=await fetchImpl(url,{headers:{Accept:"application/vnd.npm.install-v1+json"},signal:AbortSignal.timeout(5e3)});if(!res.ok){throw new Error(`registry \u304C ${res.status} \u3092\u8FD4\u3057\u307E\u3057\u305F`)}const body=await res.json();const latest=body["dist-tags"]?.latest;if(typeof latest!=="string"||parseVersionCore(latest)===null){throw new Error("registry \u306E\u5FDC\u7B54\u306B dist-tags.latest \u304C\u3042\u308A\u307E\u305B\u3093")}return{version:latest.trim(),source:"\
6
6
  registry"}}async function fetchFromNpmCli(){const npm=resolveNpmCommand();if(npm===null){throw new Error("npm \u304C PATH \u306B\u898B\u3064\u304B\u308A\u307E\u305B\u3093")}const stdout=await new Promise((resolve,reject)=>{execFile(npm.file,[...npm.prefix,"view",PACKAGE_NAME,"version","--json"],{timeout:15e3,windowsHide:true},(error,out)=>error?reject(error):resolve(out))});const parsed=JSON.parse(stdout.trim());const latest=typeof parsed==="string"?parsed:null;if(latest===null||parseVersionCore(