@tocca-systems/twp-cli 0.17.0 → 0.17.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.
- package/command-model/company.json +19 -0
- package/command-model/department.json +10 -0
- package/command-model/equipment.json +5 -0
- package/command-model/index.json +20 -20
- package/command-model/invoice.json +24 -2
- package/command-model/meeting.json +29 -9
- package/command-model/my-task.json +1 -0
- package/command-model/note.json +34 -8
- package/command-model/notification.json +35 -0
- package/command-model/private-task.json +46 -1
- package/command-model/project-member.json +2 -1
- package/command-model/project-task-comment.json +1 -1
- package/command-model/project-task.json +153 -4
- package/command-model/project.json +49 -2
- package/command-model/prospect.json +24 -1
- package/command-model/report.json +62 -18
- package/command-model/survey.json +38 -29
- package/command-model/user.json +2 -1
- package/command-model/wiki.json +29 -5
- package/command-model/workflow-instance.json +8 -3
- package/dist/{ai-dispatch-NTBNFFCS.js → ai-dispatch-27EZS2S3.js} +1 -1
- package/dist/{chunk-3WJHTPOZ.js → chunk-H3JTPDCJ.js} +7 -4
- package/dist/{chunk-EZCMF4I3.js → chunk-SQSVA6AT.js} +3 -2
- package/dist/cli.js +2 -2
- package/dist/{commands-UGGBVOYU.js → commands-XYKBLMXT.js} +17 -14
- package/dist/{setup-I4PA2TQW.js → setup-AJ56N6XO.js} +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"operationId": "survey.addQuestion",
|
|
8
8
|
"method": "POST",
|
|
9
9
|
"path": "/v2/surveys/{id}/questions",
|
|
10
|
-
"summary": "",
|
|
10
|
+
"summary": "質問を追加",
|
|
11
11
|
"pathParams": [
|
|
12
12
|
{
|
|
13
13
|
"name": "id",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"operationId": "survey.applyTemplate",
|
|
121
121
|
"method": "POST",
|
|
122
122
|
"path": "/v2/surveys/{id}/apply-template",
|
|
123
|
-
"summary": "",
|
|
123
|
+
"summary": "テンプレートの質問を適用",
|
|
124
124
|
"pathParams": [
|
|
125
125
|
{
|
|
126
126
|
"name": "id",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"operationId": "survey.bulkAddTargets",
|
|
142
142
|
"method": "POST",
|
|
143
143
|
"path": "/v2/surveys/{id}/targets/bulk",
|
|
144
|
-
"summary": "",
|
|
144
|
+
"summary": "回答対象者を一括で追加",
|
|
145
145
|
"pathParams": [
|
|
146
146
|
{
|
|
147
147
|
"name": "id",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"operationId": "survey.close",
|
|
185
185
|
"method": "POST",
|
|
186
186
|
"path": "/v2/surveys/{id}/close",
|
|
187
|
-
"summary": "",
|
|
187
|
+
"summary": "アンケートを締め切る",
|
|
188
188
|
"pathParams": [
|
|
189
189
|
{
|
|
190
190
|
"name": "id",
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"operationId": "survey.store",
|
|
206
206
|
"method": "POST",
|
|
207
207
|
"path": "/v2/surveys",
|
|
208
|
-
"summary": "",
|
|
208
|
+
"summary": "アンケートを作成",
|
|
209
209
|
"pathParams": [],
|
|
210
210
|
"queryParams": [],
|
|
211
211
|
"body": {
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
"operationId": "survey.destroy",
|
|
415
415
|
"method": "DELETE",
|
|
416
416
|
"path": "/v2/surveys/{id}",
|
|
417
|
-
"summary": "",
|
|
417
|
+
"summary": "アンケートを削除",
|
|
418
418
|
"pathParams": [
|
|
419
419
|
{
|
|
420
420
|
"name": "id",
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
"operationId": "survey.deleteQuestion",
|
|
436
436
|
"method": "DELETE",
|
|
437
437
|
"path": "/v2/surveys/{id}/questions/{questionId}",
|
|
438
|
-
"summary": "",
|
|
438
|
+
"summary": "質問を削除",
|
|
439
439
|
"pathParams": [
|
|
440
440
|
{
|
|
441
441
|
"name": "id",
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
"operationId": "survey.deleteTarget",
|
|
463
463
|
"method": "DELETE",
|
|
464
464
|
"path": "/v2/surveys/{id}/targets/users/{userId}",
|
|
465
|
-
"summary": "",
|
|
465
|
+
"summary": "回答対象者から外す",
|
|
466
466
|
"pathParams": [
|
|
467
467
|
{
|
|
468
468
|
"name": "id",
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
"operationId": "survey.distribute",
|
|
517
517
|
"method": "POST",
|
|
518
518
|
"path": "/v2/surveys/{id}/distribute",
|
|
519
|
-
"summary": "",
|
|
519
|
+
"summary": "回答対象者へアンケートを配信",
|
|
520
520
|
"pathParams": [
|
|
521
521
|
{
|
|
522
522
|
"name": "id",
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
"operationId": "survey.exportResponsesCsv",
|
|
595
595
|
"method": "GET",
|
|
596
596
|
"path": "/v2/surveys/{id}/responses/csv",
|
|
597
|
-
"summary": "",
|
|
597
|
+
"summary": "回答をCSVで出力",
|
|
598
598
|
"pathParams": [
|
|
599
599
|
{
|
|
600
600
|
"name": "id",
|
|
@@ -630,7 +630,7 @@
|
|
|
630
630
|
"operationId": "survey.generatePublicToken",
|
|
631
631
|
"method": "POST",
|
|
632
632
|
"path": "/v2/surveys/{id}/public-token",
|
|
633
|
-
"summary": "",
|
|
633
|
+
"summary": "公開回答用のURLを発行",
|
|
634
634
|
"pathParams": [
|
|
635
635
|
{
|
|
636
636
|
"name": "id",
|
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
"operationId": "survey.show",
|
|
652
652
|
"method": "GET",
|
|
653
653
|
"path": "/v2/surveys/{id}",
|
|
654
|
-
"summary": "",
|
|
654
|
+
"summary": "アンケート詳細を取得",
|
|
655
655
|
"pathParams": [
|
|
656
656
|
{
|
|
657
657
|
"name": "id",
|
|
@@ -687,7 +687,7 @@
|
|
|
687
687
|
"operationId": "survey.getForm",
|
|
688
688
|
"method": "GET",
|
|
689
689
|
"path": "/v2/surveys/{id}/form",
|
|
690
|
-
"summary": "",
|
|
690
|
+
"summary": "回答フォーム(アンケートと質問)を取得",
|
|
691
691
|
"pathParams": [
|
|
692
692
|
{
|
|
693
693
|
"name": "id",
|
|
@@ -730,6 +730,7 @@
|
|
|
730
730
|
"name": "scope",
|
|
731
731
|
"type": "string",
|
|
732
732
|
"required": false,
|
|
733
|
+
"description": "方針の対象範囲",
|
|
733
734
|
"source": "spec"
|
|
734
735
|
},
|
|
735
736
|
{
|
|
@@ -758,7 +759,7 @@
|
|
|
758
759
|
"operationId": "survey.getResults",
|
|
759
760
|
"method": "GET",
|
|
760
761
|
"path": "/v2/surveys/{id}/results",
|
|
761
|
-
"summary": "",
|
|
762
|
+
"summary": "集計結果を取得",
|
|
762
763
|
"pathParams": [
|
|
763
764
|
{
|
|
764
765
|
"name": "id",
|
|
@@ -784,7 +785,7 @@
|
|
|
784
785
|
}
|
|
785
786
|
],
|
|
786
787
|
"body": null,
|
|
787
|
-
"resultPath":
|
|
788
|
+
"resultPath": null,
|
|
788
789
|
"risk": "read",
|
|
789
790
|
"aliases": []
|
|
790
791
|
},
|
|
@@ -794,25 +795,28 @@
|
|
|
794
795
|
"operationId": "survey.index",
|
|
795
796
|
"method": "GET",
|
|
796
797
|
"path": "/v2/surveys",
|
|
797
|
-
"summary": "",
|
|
798
|
+
"summary": "アンケート一覧を取得",
|
|
798
799
|
"pathParams": [],
|
|
799
800
|
"queryParams": [
|
|
800
801
|
{
|
|
801
802
|
"name": "survey_type",
|
|
802
803
|
"type": "string",
|
|
803
804
|
"required": false,
|
|
805
|
+
"description": "アンケートの種類で絞り込む",
|
|
804
806
|
"source": "spec"
|
|
805
807
|
},
|
|
806
808
|
{
|
|
807
809
|
"name": "status",
|
|
808
810
|
"type": "string",
|
|
809
811
|
"required": false,
|
|
812
|
+
"description": "状態で絞り込む",
|
|
810
813
|
"source": "spec"
|
|
811
814
|
},
|
|
812
815
|
{
|
|
813
816
|
"name": "link_category",
|
|
814
817
|
"type": "string",
|
|
815
818
|
"required": false,
|
|
819
|
+
"description": "紐づけ先の分類で絞り込む",
|
|
816
820
|
"source": "spec"
|
|
817
821
|
},
|
|
818
822
|
{
|
|
@@ -867,7 +871,7 @@
|
|
|
867
871
|
}
|
|
868
872
|
],
|
|
869
873
|
"body": null,
|
|
870
|
-
"resultPath":
|
|
874
|
+
"resultPath": "invited_user_ids",
|
|
871
875
|
"risk": "read",
|
|
872
876
|
"aliases": []
|
|
873
877
|
},
|
|
@@ -877,7 +881,7 @@
|
|
|
877
881
|
"operationId": "survey.listQuestions",
|
|
878
882
|
"method": "GET",
|
|
879
883
|
"path": "/v2/surveys/{id}/questions",
|
|
880
|
-
"summary": "",
|
|
884
|
+
"summary": "質問一覧を取得",
|
|
881
885
|
"pathParams": [
|
|
882
886
|
{
|
|
883
887
|
"name": "id",
|
|
@@ -913,7 +917,7 @@
|
|
|
913
917
|
"operationId": "survey.listResponses",
|
|
914
918
|
"method": "GET",
|
|
915
919
|
"path": "/v2/surveys/{id}/responses",
|
|
916
|
-
"summary": "",
|
|
920
|
+
"summary": "回答一覧を取得",
|
|
917
921
|
"pathParams": [
|
|
918
922
|
{
|
|
919
923
|
"name": "id",
|
|
@@ -927,12 +931,14 @@
|
|
|
927
931
|
"name": "sort_by",
|
|
928
932
|
"type": "string",
|
|
929
933
|
"required": false,
|
|
934
|
+
"description": "並べ替える項目",
|
|
930
935
|
"source": "spec"
|
|
931
936
|
},
|
|
932
937
|
{
|
|
933
938
|
"name": "sort_order",
|
|
934
939
|
"type": "string",
|
|
935
940
|
"required": false,
|
|
941
|
+
"description": "asc / desc",
|
|
936
942
|
"source": "spec"
|
|
937
943
|
},
|
|
938
944
|
{
|
|
@@ -961,7 +967,7 @@
|
|
|
961
967
|
"operationId": "survey.listTargets",
|
|
962
968
|
"method": "GET",
|
|
963
969
|
"path": "/v2/surveys/{id}/targets",
|
|
964
|
-
"summary": "",
|
|
970
|
+
"summary": "回答対象者の一覧を取得",
|
|
965
971
|
"pathParams": [
|
|
966
972
|
{
|
|
967
973
|
"name": "id",
|
|
@@ -1004,12 +1010,14 @@
|
|
|
1004
1010
|
"name": "channel",
|
|
1005
1011
|
"type": "string",
|
|
1006
1012
|
"required": false,
|
|
1013
|
+
"description": "表示先で絞り込む",
|
|
1007
1014
|
"source": "spec"
|
|
1008
1015
|
},
|
|
1009
1016
|
{
|
|
1010
1017
|
"name": "scope",
|
|
1011
1018
|
"type": "string",
|
|
1012
1019
|
"required": false,
|
|
1020
|
+
"description": "対象範囲で絞り込む",
|
|
1013
1021
|
"source": "spec"
|
|
1014
1022
|
},
|
|
1015
1023
|
{
|
|
@@ -1038,13 +1046,14 @@
|
|
|
1038
1046
|
"operationId": "survey.myPending",
|
|
1039
1047
|
"method": "GET",
|
|
1040
1048
|
"path": "/v2/surveys/my",
|
|
1041
|
-
"summary": "",
|
|
1049
|
+
"summary": "自分が回答対象のアンケート一覧を取得",
|
|
1042
1050
|
"pathParams": [],
|
|
1043
1051
|
"queryParams": [
|
|
1044
1052
|
{
|
|
1045
1053
|
"name": "survey_type",
|
|
1046
1054
|
"type": "string",
|
|
1047
1055
|
"required": false,
|
|
1056
|
+
"description": "アンケートの種類で絞り込む",
|
|
1048
1057
|
"source": "spec"
|
|
1049
1058
|
},
|
|
1050
1059
|
{
|
|
@@ -1105,7 +1114,7 @@
|
|
|
1105
1114
|
"operationId": "survey.publish",
|
|
1106
1115
|
"method": "POST",
|
|
1107
1116
|
"path": "/v2/surveys/{id}/publish",
|
|
1108
|
-
"summary": "",
|
|
1117
|
+
"summary": "アンケートを公開",
|
|
1109
1118
|
"pathParams": [
|
|
1110
1119
|
{
|
|
1111
1120
|
"name": "id",
|
|
@@ -1126,7 +1135,7 @@
|
|
|
1126
1135
|
"operationId": "survey.registerCustomer",
|
|
1127
1136
|
"method": "POST",
|
|
1128
1137
|
"path": "/v2/surveys/{id}/responses/{responseId}/register-customer",
|
|
1129
|
-
"summary": "",
|
|
1138
|
+
"summary": "回答者を顧客として登録",
|
|
1130
1139
|
"pathParams": [
|
|
1131
1140
|
{
|
|
1132
1141
|
"name": "id",
|
|
@@ -1162,7 +1171,7 @@
|
|
|
1162
1171
|
"operationId": "survey.reorderQuestions",
|
|
1163
1172
|
"method": "PUT",
|
|
1164
1173
|
"path": "/v2/surveys/{id}/questions/reorder",
|
|
1165
|
-
"summary": "",
|
|
1174
|
+
"summary": "質問を並べ替える",
|
|
1166
1175
|
"pathParams": [
|
|
1167
1176
|
{
|
|
1168
1177
|
"name": "id",
|
|
@@ -1199,7 +1208,7 @@
|
|
|
1199
1208
|
"operationId": "survey.revokePublicToken",
|
|
1200
1209
|
"method": "DELETE",
|
|
1201
1210
|
"path": "/v2/surveys/{id}/public-token",
|
|
1202
|
-
"summary": "",
|
|
1211
|
+
"summary": "公開回答用のURLを無効にする",
|
|
1203
1212
|
"pathParams": [
|
|
1204
1213
|
{
|
|
1205
1214
|
"name": "id",
|
|
@@ -1220,7 +1229,7 @@
|
|
|
1220
1229
|
"operationId": "survey.setAcceptingResponses",
|
|
1221
1230
|
"method": "PATCH",
|
|
1222
1231
|
"path": "/v2/surveys/{id}/accepting-responses",
|
|
1223
|
-
"summary": "",
|
|
1232
|
+
"summary": "回答の受付を再開・停止する",
|
|
1224
1233
|
"pathParams": [
|
|
1225
1234
|
{
|
|
1226
1235
|
"name": "id",
|
|
@@ -1253,7 +1262,7 @@
|
|
|
1253
1262
|
"operationId": "survey.submitResponse",
|
|
1254
1263
|
"method": "POST",
|
|
1255
1264
|
"path": "/v2/surveys/{id}/responses",
|
|
1256
|
-
"summary": "",
|
|
1265
|
+
"summary": "回答を送信",
|
|
1257
1266
|
"pathParams": [
|
|
1258
1267
|
{
|
|
1259
1268
|
"name": "id",
|
|
@@ -1341,7 +1350,7 @@
|
|
|
1341
1350
|
"operationId": "survey.update",
|
|
1342
1351
|
"method": "PUT",
|
|
1343
1352
|
"path": "/v2/surveys/{id}",
|
|
1344
|
-
"summary": "",
|
|
1353
|
+
"summary": "アンケートを更新",
|
|
1345
1354
|
"pathParams": [
|
|
1346
1355
|
{
|
|
1347
1356
|
"name": "id",
|
|
@@ -1646,7 +1655,7 @@
|
|
|
1646
1655
|
"operationId": "survey.updateQuestion",
|
|
1647
1656
|
"method": "PUT",
|
|
1648
1657
|
"path": "/v2/surveys/{id}/questions/{questionId}",
|
|
1649
|
-
"summary": "",
|
|
1658
|
+
"summary": "質問を更新",
|
|
1650
1659
|
"pathParams": [
|
|
1651
1660
|
{
|
|
1652
1661
|
"name": "id",
|
package/command-model/user.json
CHANGED
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
}
|
|
326
326
|
],
|
|
327
327
|
"body": null,
|
|
328
|
-
"resultPath":
|
|
328
|
+
"resultPath": null,
|
|
329
329
|
"risk": "read",
|
|
330
330
|
"aliases": []
|
|
331
331
|
},
|
|
@@ -429,6 +429,7 @@
|
|
|
429
429
|
"name": "keyword",
|
|
430
430
|
"type": "string",
|
|
431
431
|
"required": false,
|
|
432
|
+
"description": "キーワードで絞り込む",
|
|
432
433
|
"source": "spec"
|
|
433
434
|
},
|
|
434
435
|
{
|
package/command-model/wiki.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
35
|
"body": null,
|
|
36
|
-
"resultPath":
|
|
36
|
+
"resultPath": "backlinks",
|
|
37
37
|
"risk": "read",
|
|
38
38
|
"aliases": []
|
|
39
39
|
},
|
|
@@ -173,18 +173,21 @@
|
|
|
173
173
|
"name": "status",
|
|
174
174
|
"type": "string",
|
|
175
175
|
"required": false,
|
|
176
|
+
"description": "ページの状態で絞り込む",
|
|
176
177
|
"source": "spec"
|
|
177
178
|
},
|
|
178
179
|
{
|
|
179
180
|
"name": "tag",
|
|
180
181
|
"type": "string",
|
|
181
182
|
"required": false,
|
|
183
|
+
"description": "タグで絞り込む",
|
|
182
184
|
"source": "spec"
|
|
183
185
|
},
|
|
184
186
|
{
|
|
185
187
|
"name": "keyword",
|
|
186
188
|
"type": "string",
|
|
187
189
|
"required": false,
|
|
190
|
+
"description": "キーワードで絞り込む",
|
|
188
191
|
"source": "spec"
|
|
189
192
|
},
|
|
190
193
|
{
|
|
@@ -200,10 +203,17 @@
|
|
|
200
203
|
"required": false,
|
|
201
204
|
"description": "1ページあたりの件数",
|
|
202
205
|
"source": "curation"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "project_id",
|
|
209
|
+
"type": "string",
|
|
210
|
+
"required": true,
|
|
211
|
+
"description": "対象プロジェクトのID",
|
|
212
|
+
"source": "curation"
|
|
203
213
|
}
|
|
204
214
|
],
|
|
205
215
|
"body": null,
|
|
206
|
-
"resultPath":
|
|
216
|
+
"resultPath": "items",
|
|
207
217
|
"risk": "read",
|
|
208
218
|
"aliases": []
|
|
209
219
|
},
|
|
@@ -308,10 +318,17 @@
|
|
|
308
318
|
"required": false,
|
|
309
319
|
"description": "次ページの取得に使うカーソル",
|
|
310
320
|
"source": "curation"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "project_id",
|
|
324
|
+
"type": "string",
|
|
325
|
+
"required": true,
|
|
326
|
+
"description": "対象プロジェクトのID",
|
|
327
|
+
"source": "curation"
|
|
311
328
|
}
|
|
312
329
|
],
|
|
313
330
|
"body": null,
|
|
314
|
-
"resultPath":
|
|
331
|
+
"resultPath": "tags",
|
|
315
332
|
"risk": "read",
|
|
316
333
|
"aliases": []
|
|
317
334
|
},
|
|
@@ -337,10 +354,17 @@
|
|
|
337
354
|
"required": false,
|
|
338
355
|
"description": "次ページの取得に使うカーソル",
|
|
339
356
|
"source": "curation"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "project_id",
|
|
360
|
+
"type": "string",
|
|
361
|
+
"required": true,
|
|
362
|
+
"description": "対象プロジェクトのID",
|
|
363
|
+
"source": "curation"
|
|
340
364
|
}
|
|
341
365
|
],
|
|
342
366
|
"body": null,
|
|
343
|
-
"resultPath":
|
|
367
|
+
"resultPath": "tree",
|
|
344
368
|
"risk": "read",
|
|
345
369
|
"aliases": []
|
|
346
370
|
},
|
|
@@ -441,7 +465,7 @@
|
|
|
441
465
|
}
|
|
442
466
|
],
|
|
443
467
|
"body": null,
|
|
444
|
-
"resultPath":
|
|
468
|
+
"resultPath": "versions",
|
|
445
469
|
"risk": "read",
|
|
446
470
|
"aliases": []
|
|
447
471
|
}
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
}
|
|
135
135
|
],
|
|
136
136
|
"body": null,
|
|
137
|
-
"resultPath":
|
|
137
|
+
"resultPath": null,
|
|
138
138
|
"risk": "read",
|
|
139
139
|
"aliases": []
|
|
140
140
|
},
|
|
@@ -154,6 +154,7 @@
|
|
|
154
154
|
"null"
|
|
155
155
|
],
|
|
156
156
|
"required": false,
|
|
157
|
+
"description": "ワークフロー(申請の種類)IDで絞り込む",
|
|
157
158
|
"source": "spec"
|
|
158
159
|
},
|
|
159
160
|
{
|
|
@@ -167,12 +168,14 @@
|
|
|
167
168
|
"name": "status",
|
|
168
169
|
"type": "string",
|
|
169
170
|
"required": false,
|
|
171
|
+
"description": "申請の状態で絞り込む",
|
|
170
172
|
"source": "spec"
|
|
171
173
|
},
|
|
172
174
|
{
|
|
173
175
|
"name": "keyword",
|
|
174
176
|
"type": "string",
|
|
175
177
|
"required": false,
|
|
178
|
+
"description": "キーワードで絞り込む",
|
|
176
179
|
"source": "spec"
|
|
177
180
|
},
|
|
178
181
|
{
|
|
@@ -184,7 +187,7 @@
|
|
|
184
187
|
}
|
|
185
188
|
],
|
|
186
189
|
"body": null,
|
|
187
|
-
"resultPath": "",
|
|
190
|
+
"resultPath": "items",
|
|
188
191
|
"risk": "read",
|
|
189
192
|
"aliases": []
|
|
190
193
|
},
|
|
@@ -204,12 +207,14 @@
|
|
|
204
207
|
"null"
|
|
205
208
|
],
|
|
206
209
|
"required": false,
|
|
210
|
+
"description": "ワークフロー(申請の種類)IDで絞り込む",
|
|
207
211
|
"source": "spec"
|
|
208
212
|
},
|
|
209
213
|
{
|
|
210
214
|
"name": "status",
|
|
211
215
|
"type": "string",
|
|
212
216
|
"required": false,
|
|
217
|
+
"description": "申請の状態で絞り込む",
|
|
213
218
|
"source": "spec"
|
|
214
219
|
},
|
|
215
220
|
{
|
|
@@ -228,7 +233,7 @@
|
|
|
228
233
|
}
|
|
229
234
|
],
|
|
230
235
|
"body": null,
|
|
231
|
-
"resultPath": "",
|
|
236
|
+
"resultPath": "items",
|
|
232
237
|
"risk": "read",
|
|
233
238
|
"aliases": []
|
|
234
239
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __twpCreateRequire } from 'node:module';
|
|
2
2
|
const require = __twpCreateRequire(import.meta.url);
|
|
3
|
-
import{failureHint,isAuthError,isCliFatalText,isRateLimited,isServerAiType,isUntrusted,maxTurnsReached,rateLimitWaitSeconds,tailForScan}from"./chunk-ZOOEH7ZE.js";import{DEFAULT_CLAUDE_LAUNCHER,activeSlotPath,detectAiClis,detectClaudeAutoSwitch,isClaudeAi,isUsableModelId,modelFitsRoute,resolveSpawnTarget,usesBedrock,wrapWithAutoSwitch}from"./chunk-
|
|
3
|
+
import{failureHint,isAuthError,isCliFatalText,isRateLimited,isServerAiType,isUntrusted,maxTurnsReached,rateLimitWaitSeconds,tailForScan}from"./chunk-ZOOEH7ZE.js";import{DEFAULT_CLAUDE_LAUNCHER,activeSlotPath,detectAiClis,detectClaudeAutoSwitch,isClaudeAi,isUsableModelId,modelFitsRoute,resolveSpawnTarget,usesBedrock,wrapWithAutoSwitch}from"./chunk-H3JTPDCJ.js";import{isForceOnly,killProcessTree,system32}from"./chunk-N2UVRM3Z.js";import{findExecutable,isWindowsDriveAbsolute}from"./chunk-PMOUHEJQ.js";
|
|
4
4
|
import{stripTerminalControls}from"./chunk-NHYMHCAT.js";import"./chunk-VSJBJXZO.js";import{spawnSync}from"child_process";import fs2 from"fs";import path2 from"path";import{spawn}from"child_process";import fs from"fs";import path from"path";var FINAL_REPORT_BEGIN="<<<AI_FINAL_REPORT>>>";var FINAL_REPORT_END="<<<END_AI_FINAL_REPORT>>>";var ClaudeStreamRenderer=class{constructor(now=()=>new Date){this.now=now}now;toolNames=new Map;toolCount=0;result={subtype:null,isError:null,numTurns:null,costUsd:null,durationMs:null,tokensIn:null,tokensOut:null,rateLimited:false,resetsAt:null,finalText:""};push(line){const trimmed=line.trim();if(trimmed==="")return[];let event;try{const parsed=JSON.parse(trimmed);if(parsed===null||typeof parsed!=="\
|
|
5
5
|
object"||Array.isArray(parsed)){return[line]}event=parsed}catch{return[line]}switch(event["type"]){case"rate_limit_event":return this.onRateLimit(event);case"assistant":return this.onAssistant(event);case"user":return this.onUser(event);case"result":return this.onResult(event);default:return event["type"]==="system"?[]:[line]}}sawRateLimit(){return this.result.rateLimited}lastRateLimitNote="";onRateLimit(event){const info=event["rate_limit_info"];if(info===null||typeof info!=="object")return[];const rec=info;
|
|
6
6
|
const status=typeof rec["status"]==="string"?rec["status"]:"";const resets=typeof rec["resetsAt"]==="number"?rec["resetsAt"]:null;if(status==="")return[];const at=isSaneEpochSec(resets)?` resets=${new Date(resets*1e3).toISOString()}`:"";if(status.startsWith("allowed")){if(status==="allowed")return[];const seen=`${status}|${resets??""}`;if(seen===this.lastRateLimitNote)return[];this.lastRateLimitNote=seen;return[this.line(`\u2139\uFE0F \u4E0A\u9650\u306B\u63A5\u8FD1\uFF08status=${status}${at}\uFF09\u2014 \u5B9F\
|
|
@@ -14,9 +14,12 @@ ok:true,file:prog,args:[...shim.nodeArgs,target,...args],note:`${file} \u2192 ${
|
|
|
14
14
|
return ai==="claude"||!["gemini","codex","copilot"].includes(ai)}import{createHash}from"crypto";import fs2 from"fs";var FALSY=new Set(["0","false","no","off"]);function isBoolishTrue(raw){const v=(raw??"").trim();if(v==="")return false;return!FALSY.has(v.toLowerCase())}var EXCLUSIVE_SKILL_FLOOR=["support-triage"];function normalizeSkillName(skill){return skill.trim().replace(/^twp-/,"")}var stripPrefix=normalizeSkillName;function skillOfItem(item){const explicit=(item.ai_skill??"").trim();if(explicit)return stripPrefix(explicit);const m=/\/twp-([a-z0-9-]+)/.exec(item.prompt??"");return m?.[1]??""}function ageMinutesOf(item,now){for(const raw of[item.started_at,item.updated_at,item.dequeued_at,item.created_at]){if(!raw)continue;const ts=Date.parse(raw);if(Number.
|
|
15
15
|
isNaN(ts))continue;return Math.floor((now.getTime()-ts)/6e4)}return null}function exclusiveInflightEntries(groups,opts){const now=opts.now??new Date;const staleMinutes=opts.staleHours*60;const bySkill=new Map;for(const group of groups){for(const item of group.items){const skill=skillOfItem(item);if(!skill)continue;const status=group.status==="mixed"?item.status??"unknown":group.status;const ageMinutes=ageMinutesOf(item,now);if(status==="processing"&&ageMinutes!==null&&ageMinutes>staleMinutes)continue;
|
|
16
16
|
const entry={skill,status,runner:item.runner_id??"-",ageMinutes};const prev=bySkill.get(skill);if(!prev||(entry.ageMinutes??-1)>(prev.ageMinutes??-1))bySkill.set(skill,entry)}}return[...bySkill.values()].sort((a,b)=>a.skill.localeCompare(b.skill))}function formatExclusiveEntry(entry){const age=entry.ageMinutes===null?"\u4E0D\u660E":`${entry.ageMinutes}\u5206`;return`${entry.skill} status=${entry.status} runner=${entry.runner} \u7D4C\u904E=${age}`}import path2 from"path";var BUILTIN={primary_rotation:{complex:["claude"],search:["claude"],simple:["claude"]},fallback_chains:{complex:["claude","codex"],search:["codex","gemini","copilot","claude"],simple:["codex","gemini","copilot","claude"]}};function usesBedrock(env){return isBoolishTrue(env.CLAUDE_CODE_USE_BEDROCK)}var DEFAULT_CATEGORY="complex";var EFFORTS=new Set(["low","medium","high","xhigh","max"]);var MAX_COOLDOWN_SEC=3600;var DEFAULT_COOLDOWN_SEC=300;var AI_UNUSABLE_COOLDOWN_SEC=1800;
|
|
17
|
-
function loadAiConfig(inline,file,workspace){const
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
function loadAiConfig(inline,file,workspace){const read=readAiConfigFile(file,workspace);const warnings=read.problem===null?[]:[read.problem.startsWith("ai_config_file \u3092\u8AAD\u3081\u307E\u305B\u3093")?`${read.problem}
|
|
18
|
+
\u3053\u306E\u72B6\u614B\u3067\u306F\u5168\u30B9\u30AD\u30EB\u304C\u65E2\u5B9A\u30AB\u30C6\u30B4\u30EA\u3067\u8D70\u308A\u307E\u3059\u3002\u78BA\u8A8D: python3 -m json.tool <file>`:read.problem];return{config:new AiConfig(mergeAiConfig(read.file,inline)),warnings}}function readAiConfigFile(file,workspace){if(file===void 0||file.trim()==="")return{file:null,problem:null};const resolved=path2.isAbsolute(file)?file:path2.resolve(workspace,file);try{const parsed=JSON.parse(fs2.readFileSync(resolved,
|
|
19
|
+
"utf8"));if(parsed===null||typeof parsed!=="object"||Array.isArray(parsed)){return{file:null,problem:`ai_config_file \u304C\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${resolved}`}}return{file:parsed,problem:null}}catch(err){return{file:null,problem:`ai_config_file \u3092\u8AAD\u3081\u307E\u305B\u3093: ${resolved}\uFF08${err.message}\uFF09`}}}function mergeAiConfig(fromFile,inline){return{...fromFile??{},...inline??{}}}function reloadAiConfig(target,inline,file,workspace){
|
|
20
|
+
const hashBefore=target.hash();const read=readAiConfigFile(file,workspace);if(read.file===null){if(read.problem===null)return{status:"skipped",hashBefore,hashAfter:hashBefore,warnings:[]};return{status:"kept",hashBefore,hashAfter:hashBefore,warnings:[`${read.problem}
|
|
21
|
+
\u73FE\u5728\u306E\u8A2D\u5B9A\uFF08config_hash ${hashBefore}\uFF09\u306E\u307E\u307E\u8D70\u308A\u307E\u3059\u3002\u78BA\u8A8D: python3 -m json.tool <file>`]}}const changed=target.replace(mergeAiConfig(read.file,inline));return{status:changed?"updated":"unchanged",hashBefore,hashAfter:target.hash(),warnings:[]}}function stableJson(value){return JSON.stringify(value,(_key,v)=>v!==null&&typeof v==="object"&&!Array.isArray(v)?Object.fromEntries(Object.entries(v).sort(([a],[b])=>a.localeCompare(
|
|
22
|
+
b))):v)}var CHAIN_KEYS=["primary_rotation","fallback_chains"];var AiConfig=class _AiConfig{rotation=new Map;limitedUntil=new Map;unusableUntil=new Map;highRiskSkills;raw;constructor(raw){this.raw=raw;this.highRiskSkills=_AiConfig.highRiskSet(raw)}static highRiskSet(raw){return new Set((raw.high_risk_skills??[]).filter(v=>typeof v==="string"&&v!==""))}replace(next){if(stableJson(next)===stableJson(this.raw))return false;this.raw=next;this.highRiskSkills=_AiConfig.highRiskSet(next);return true}hash(){
|
|
20
23
|
const significant=Object.fromEntries(Object.entries(this.raw).filter(([k])=>!k.startsWith("_")&&!CHAIN_KEYS.includes(k)).sort(([a],[b])=>a.localeCompare(b)));return createHash("sha256").update(JSON.stringify(significant)).digest("hex").slice(0,16)}categoryForSkill(skill){const name=stripPrefix2(skill);return this.raw.skill_category?.[name]??DEFAULT_CATEGORY}usesAi(ai){const rotations=this.raw.primary_rotation??BUILTIN.primary_rotation;const chains=this.raw.fallback_chains??BUILTIN.fallback_chains;
|
|
21
24
|
const categories=new Set([DEFAULT_CATEGORY,...Object.keys(rotations),...Object.keys(chains),...Object.values(this.raw.skill_category??{})]);const matches=name=>isClaudeAi(ai)?isClaudeAi(name):name===ai;for(const category of categories){const rotation=rotations[category]??rotations[DEFAULT_CATEGORY]??BUILTIN.primary_rotation[DEFAULT_CATEGORY]??[];const chain=chains[category]??chains[DEFAULT_CATEGORY]??BUILTIN.fallback_chains[DEFAULT_CATEGORY]??["claude"];for(const name of[...rotation,...chain]){if(matches(
|
|
22
25
|
name))return true}}return false}chainFor(category){const chains=this.raw.fallback_chains??BUILTIN.fallback_chains;return chains[category]??chains[DEFAULT_CATEGORY]??BUILTIN.fallback_chains[DEFAULT_CATEGORY]??["claude"]}primaryFor(category,skill){const rotations=this.raw.primary_rotation??BUILTIN.primary_rotation;const entries=rotations[category]??rotations[DEFAULT_CATEGORY]??BUILTIN.primary_rotation[DEFAULT_CATEGORY]??[];if(entries.length===0)return"";const start=this.rotation.get(category)??0;for(let i=0;i<
|
|
@@ -45,4 +48,4 @@ return{auth:"unknown",detail:oneLine(`\u8CC7\u683C\u60C5\u5831\u3092\u89E3\u91C8
|
|
|
45
48
|
blockedReason:null}}function detectPending(ai){return{auth:"unknown",detail:"\u30ED\u30B0\u30A4\u30F3\u5224\u5B9A\u306E\u65B9\u6CD5\u304C\u672A\u78BA\u5B9A\u3067\u3059",blockedReason:`${ai} \u306F\u7121\u4EBA\u5B9F\u884C\u3067\u306E\u8A8D\u8A3C\u72B6\u614B\u3092\u5224\u5B9A\u3059\u308B\u65B9\u6CD5\u304C\u672A\u78BA\u5B9A\u306E\u305F\u3081\u9078\u629E\u3067\u304D\u307E\u305B\u3093`}}function detectAiClis(deps={}){const d=resolve(deps);return DETECTABLE_AIS.map(ai=>{const binPath=findOnPath(ai,d);
|
|
46
49
|
if(binPath===null){return{ai,installed:false,binPath:null,auth:"unknown",detail:"PATH \u306B\u898B\u3064\u304B\u308A\u307E\u305B\u3093\uFF08\u672A\u5C0E\u5165\uFF09",blockedReason:null}}const state=ai==="claude"?detectClaude(d):ai==="codex"?detectCodex(d,binPath):detectPending(ai);return{ai,installed:true,binPath,...state}})}function formatDetection(d,index){const selectable=isSelectable(d);const mark=selectable?d.auth==="authenticated"?"\u2705":"\u2754":" ";const num=index===null?" ":`${String(
|
|
47
50
|
index).padStart(2)}.`;const state=!d.installed?"\u672A\u5C0E\u5165":d.auth==="authenticated"?"\u30ED\u30B0\u30A4\u30F3\u6E08\u307F":d.auth==="unauthenticated"?"\u672A\u30ED\u30B0\u30A4\u30F3":"\u672A\u5224\u5B9A";const blocked=d.blockedReason===null?"":`
|
|
48
|
-
\u9078\u629E\u3067\u304D\u307E\u305B\u3093: ${oneLine(d.blockedReason)}`;return`${num} ${mark} ${d.ai.padEnd(8)} ${state.padEnd(8)} ${oneLine(d.detail)}${blocked}`}export{isBoolishTrue,resolveSpawnTarget,spawnSyncResolved,DEFAULT_CLAUDE_LAUNCHER,detectClaudeAutoSwitch,wrapWithAutoSwitch,activeSlotPath,isClaudeAi,normalizeSkillName,skillOfItem,exclusiveInflightEntries,formatExclusiveEntry,usesBedrock,loadAiConfig,AiConfig,modelFitsRoute,isUsableModelId,isDetectableAi,isSelectable,resolveDetectDeps,claudeConfigDir,detectAiClis,formatDetection};
|
|
51
|
+
\u9078\u629E\u3067\u304D\u307E\u305B\u3093: ${oneLine(d.blockedReason)}`;return`${num} ${mark} ${d.ai.padEnd(8)} ${state.padEnd(8)} ${oneLine(d.detail)}${blocked}`}export{isBoolishTrue,resolveSpawnTarget,spawnSyncResolved,DEFAULT_CLAUDE_LAUNCHER,detectClaudeAutoSwitch,wrapWithAutoSwitch,activeSlotPath,isClaudeAi,normalizeSkillName,skillOfItem,exclusiveInflightEntries,formatExclusiveEntry,usesBedrock,loadAiConfig,reloadAiConfig,AiConfig,modelFitsRoute,isUsableModelId,isDetectableAi,isSelectable,resolveDetectDeps,claudeConfigDir,detectAiClis,formatDetection};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __twpCreateRequire } from 'node:module';
|
|
2
2
|
const require = __twpCreateRequire(import.meta.url);
|
|
3
|
-
import{DEFAULT_CLAUDE_LAUNCHER,isBoolishTrue,loadAiConfig}from"./chunk-
|
|
3
|
+
import{DEFAULT_CLAUDE_LAUNCHER,isBoolishTrue,loadAiConfig}from"./chunk-H3JTPDCJ.js";import{killProcessTree}from"./chunk-N2UVRM3Z.js";import{findExecutable,isWindowsDriveAbsolute}from"./chunk-PMOUHEJQ.js";import{projectFileKey}from"./chunk-GY7KI5E5.js";import{twpHomeDir}from"./chunk-RZVI6PMW.js";function stringField(value,key,fallback,warnings){if(value===void 0||value===null)return fallback;if(typeof value!=="string"||value.trim()===""){warnings.push(`claude_launcher.${key} \u306F\u7A7A\u3067\u306A\u3044\u6587\u5B57\u5217\u3067\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\uFF08\u65E2\u5B9A '${fallback}' \u3092\u4F7F\u3044\u307E\u3059\uFF09`);return fallback}return value.trim()}function argvField(value,key,fallback,warnings,allowEmpty){if(value===void 0||value===null)return fallback;
|
|
4
4
|
if(!Array.isArray(value)){warnings.push(`claude_launcher.${key} \u306F\u6587\u5B57\u5217\u306E\u914D\u5217\u3067\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\uFF08\u65E2\u5B9A [${fallback.join(", ")}] \u3092\u4F7F\u3044\u307E\u3059\uFF09`);return fallback}for(const v of value){if(typeof v!=="string"||v.trim()===""){warnings.push(`claude_launcher.${key} \u306E\u8981\u7D20\u306F\u7A7A\u3067\u306A\u3044\u6587\u5B57\u5217\u3067\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\uFF08\u65E2\u5B9A [${fallback.
|
|
5
5
|
join(", ")}] \u3092\u4F7F\u3044\u307E\u3059\uFF09`);return fallback}}if(value.length===0&&!allowEmpty){warnings.push(`claude_launcher.${key} \u306F1\u3064\u4EE5\u4E0A\u306E\u5F15\u6570\u304C\u8981\u308A\u307E\u3059\uFF08\u65E2\u5B9A [${fallback.join(", ")}] \u3092\u4F7F\u3044\u307E\u3059\uFF09`);return fallback}return value.map(v=>v.trim())}function probeMatchField(value,warnings){const raw=stringField(value,"probe_match",DEFAULT_CLAUDE_LAUNCHER.probeMatch,warnings);try{new RegExp(raw,"m")}catch(err){
|
|
6
6
|
warnings.push(`claude_launcher.probe_match \u306F\u6B63\u898F\u8868\u73FE\u3068\u3057\u3066\u89E3\u91C8\u3067\u304D\u307E\u305B\u3093\uFF08${err.message}\uFF09\u3002\u65E2\u5B9A '${DEFAULT_CLAUDE_LAUNCHER.probeMatch}' \u3092\u4F7F\u3044\u307E\u3059`);return DEFAULT_CLAUDE_LAUNCHER.probeMatch}return raw}var NOT_YET_APPLIED=[{key:"probe",get:c=>c.probe},{key:"probe_match",get:c=>c.probeMatch},{key:"exec_args",get:c=>c.execArgs},{key:"active_args",get:c=>c.activeArgs}];function sameAsDefault(key,parsed){
|
|
@@ -74,4 +74,5 @@ daemon,maxCycles:input.daemon?Number.MAX_SAFE_INTEGER:input.maxCycles??1,interva
|
|
|
74
74
|
env.PLAN_LOCK_RENEW_INTERVAL,Math.trunc(planLockTtlSec/3),1,"PLAN_LOCK_RENEW_INTERVAL="),planLockStealAttempts:num2(env.PLAN_LOCK_STEAL_ATTEMPTS,3,0,"PLAN_LOCK_STEAL_ATTEMPTS="),planLockPermanentMax:num2(env.PLAN_LOCK_PERMANENT_MAX,3,1,"PLAN_LOCK_PERMANENT_MAX="),scheduleMidcycleMax:num2(env.SCHEDULE_MIDCYCLE_MAX,6,1,"SCHEDULE_MIDCYCLE_MAX="),blockerRecoveryMaxPerDay:num2(env.BLOCKER_RECOVERY_MAX_PER_DAY,2,1,"BLOCKER_RECOVERY_MAX_PER_DAY="),releaseRerunAutoEnqueue:env.RELEASE_RERUN_AUTOENQUEUE_ENABLED!==
|
|
75
75
|
"false",releaseRerunMaxPerCause:num2(env.RELEASE_RERUN_MAX_PER_CAUSE,2,1,"RELEASE_RERUN_MAX_PER_CAUSE="),writebackMaxAgeDays:num2(env.AGENT_LOOP_WRITEBACK_MAX_AGE_DAYS,7,1,"AGENT_LOOP_WRITEBACK_MAX_AGE_DAYS="),scheduleTimezone:nonEmpty(env.AGENT_LOOP_SCHEDULE_TZ)??"Asia/Tokyo",counterTimezone:nonEmpty(env.AGENT_LOOP_COUNTER_TZ)??"Asia/Tokyo",compileCommand:local.compile_command!==void 0&&local.compile_command.length>0?local.compile_command:null,charterFile:nonEmpty(env.CHARTER_FILE)??nonEmpty(local.
|
|
76
76
|
charter_file)??"CONSTITUTION.md",charterEnabled:resolveCharterEnabled(env.CHARTER_ENABLED,local.charter_enabled,m=>warnings.push(m)),charterPrefix:charterWrapper(env.CHARTER_PREFIX,local.charter_prefix,"charter_prefix",m=>warnings.push(m)),charterSuffix:charterWrapper(env.CHARTER_SUFFIX,local.charter_suffix,"charter_suffix",m=>warnings.push(m)),planEnabled:resolveBoolSetting(env.PLAN_ENABLED,local.plan_enabled,"plan_enabled",true,"\u8A08\u753B\u30D5\u30A7\u30FC\u30BA\u3092\u5B9F\u884C\u3057\u307E\u3059",
|
|
77
|
-
m=>warnings.push(m)),ai:ai.config,operations:operations.operations,claudeLauncher:claudeLauncher.launcher,capacityProbe:capacityProbe.probe,prefetch:prefetch.hooks,preflight:preflight.hooks,configHash:ai.config.hash(),version:input.version,warnings,releaseOutcomeLogPath:releaseOutcomeLogPath(env)}}function localDate(timezone,now=new Date){const fmt=new Intl.DateTimeFormat("en-CA",{timeZone:timezone,year:"numeric",month:"2-digit",day:"2-digit"});
|
|
77
|
+
m=>warnings.push(m)),ai:ai.config,aiSource:{inline:local.ai,file:local.ai_config_file},operations:operations.operations,claudeLauncher:claudeLauncher.launcher,capacityProbe:capacityProbe.probe,prefetch:prefetch.hooks,preflight:preflight.hooks,configHash:ai.config.hash(),version:input.version,warnings,releaseOutcomeLogPath:releaseOutcomeLogPath(env)}}function localDate(timezone,now=new Date){const fmt=new Intl.DateTimeFormat("en-CA",{timeZone:timezone,year:"numeric",month:"2-digit",day:"2-digit"});
|
|
78
|
+
return fmt.format(now)}export{runPrefetch,runPreflight,formatHookWiring,formatHookIds,CapacityReporter,parseClaudeLauncher,evaluateOwnership,describeOperations,loopStateDir,localConfigPath,buildLoopConfig,localDate};
|
package/dist/cli.js
CHANGED
|
@@ -24,7 +24,7 @@ if(out.output!==void 0)out.unknown.push("--output");if(out.query!==void 0)out.un
|
|
|
24
24
|
void 0)out.unknown.push("--counts");if(out.scheduleGate!==void 0)out.unknown.push("--gate")}if(out.command==="task-loop"&&out.taskLoopAction!=="stop"&&out.stopForce){out.unknown.push("--force")}if(out.command==="task-loop"&&out.taskLoopAction!=="stop"&&out.stopDrain){out.unknown.push("--drain")}if(out.command==="task-loop"&&out.taskLoopAction==="stop"&&out.stopForce&&out.stopDrain){out.unknown.push("--force \u3068 --drain \u306F\u540C\u6642\u306B\u6307\u5B9A\u3067\u304D\u307E\u305B\u3093");out.stopForce=
|
|
25
25
|
false;out.stopDrain=false}if(out.command==="task-loop"&&out.taskLoopAction!=="setup"){if(out.yes)out.unknown.push("--yes");if(out.ais!==void 0)out.unknown.push("--ai");if(out.workspace!==void 0)out.unknown.push("--workspace");if(out.aiConfigFile!==void 0)out.unknown.push("--ai-config-file");if(out.noAiConfigFile)out.unknown.push("--no-ai-config-file")}if(out.command==="task-loop"&&(out.taskLoopAction==="stop"||out.taskLoopAction==="status")){if(out.safe)out.unknown.push("--safe");if(out.daemon)out.
|
|
26
26
|
unknown.push("--daemon");if(out.forceRunner)out.unknown.push("--force-runner");if(out.engine!==void 0)out.unknown.push("--engine");if(out.interval!==void 0)out.unknown.push("--interval");if(out.maxCycles!==void 0)out.unknown.push("--max-cycles")}if(out.command==="task-loop"&&out.taskLoopAction==="setup"){if(out.engine!==void 0)out.unknown.push("--engine");if(out.safe)out.unknown.push("--safe");if(out.daemon)out.unknown.push("--daemon");if(out.forceRunner)out.unknown.push("--force-runner");if(out.
|
|
27
|
-
interval!==void 0)out.unknown.push("--interval");if(out.maxCycles!==void 0)out.unknown.push("--max-cycles")}return out}var VERSION=true?"0.17.
|
|
27
|
+
interval!==void 0)out.unknown.push("--interval");if(out.maxCycles!==void 0)out.unknown.push("--max-cycles")}return out}var VERSION=true?"0.17.1":"0.0.0-dev";var HELP=`twp ${VERSION} \u2014 TWP CLI
|
|
28
28
|
|
|
29
29
|
\u4F7F\u3044\u65B9:
|
|
30
30
|
twp \u5BFE\u8A71 TUI \u3092\u8D77\u52D5
|
|
@@ -152,6 +152,6 @@ TUI \u5185:
|
|
|
152
152
|
${HELP}`);process.exitCode=2;return}if(args.command==="domain"&&args.domain!==void 0){const{runDomain}=await import("./run-DWQEHR6I.js");process.exitCode=await runDomain({domain:args.domain,...args.operation!==void 0?{operation:args.operation}:{},argv:args.domainArgv,help:args.domainHelp,globals:{...args.profile!==void 0?{profile:args.profile}:{},...args.output!==void 0?{output:args.output}:{},...args.query!==void 0?{query:args.query}:{},dryRun:args.dryRun,debug:args.debug,yes:args.yes,refresh:args.
|
|
153
153
|
refresh},version:VERSION});return}if(args.command==="api"){const{runApiCommand}=await import("./api-command-UIL4WGMG.js");process.exitCode=await runApiCommand({argv:args.domainArgv,help:args.domainHelp,globals:{...args.profile!==void 0?{profile:args.profile}:{},...args.output!==void 0?{output:args.output}:{},...args.query!==void 0?{query:args.query}:{},dryRun:args.dryRun,debug:args.debug,yes:args.yes},version:VERSION});return}if(args.command==="update"){const{runUpdate}=await import("./update-WDWUECN7.js");
|
|
154
154
|
process.exitCode=await runUpdate({...args.profile!==void 0?{profile:args.profile}:{},version:VERSION});return}if(args.command==="login"||args.command==="logout"||args.command==="whoami"){const{runLogin,runLogout,runWhoami}=await import("./commands-VUWI4ERO.js");const options={profile:args.profile,method:args.loginMethod,tenant:args.tenant,noBrowser:args.loginNoBrowser,cliVersion:VERSION};const runner=args.command==="login"?runLogin:args.command==="logout"?runLogout:runWhoami;process.exitCode=
|
|
155
|
-
await runner(options);return}if(args.command==="task-loop"){const{runTaskLoop}=await import("./commands-
|
|
155
|
+
await runner(options);return}if(args.command==="task-loop"){const{runTaskLoop}=await import("./commands-XYKBLMXT.js");process.exitCode=await runTaskLoop({action:args.taskLoopAction??"run",project:args.project,profile:args.profile,safe:args.safe,daemon:args.daemon,interval:args.interval,maxCycles:args.maxCycles,forceRunner:args.forceRunner,force:args.stopForce,drain:args.stopDrain,engine:args.engine,version:VERSION,verbose:args.verbose,scheduleNow:args.scheduleNow,scheduleCounts:args.scheduleCounts,
|
|
156
156
|
scheduleGate:args.scheduleGate,yes:args.yes,ais:args.ais,workspace:args.workspace,aiConfigFile:args.aiConfigFile,noAiConfigFile:args.noAiConfigFile});return}if(args.command==="print"){const{runOneShot}=await import("./oneshot-HQJEXZHJ.js");process.exitCode=await runOneShot({prompt:args.prompt??"",fromStdin:args.promptFromStdin,mode:args.mode??"dev",...args.permissionMode!==void 0?{permissionMode:args.permissionMode}:{},...args.model!==void 0?{model:args.model}:{},...args.profile!==void 0?{profile:args.
|
|
157
157
|
profile}:{},version:VERSION});return}const{startTui}=await import("./app-LLSZV6SM.js");await startTui({mode:args.mode,permissionMode:args.permissionMode,model:args.model,profile:args.profile,noTui:args.noTui||!process.stdout.isTTY,doctor:args.doctor,version:VERSION})}await main();
|