cmdbox 0.6.1__py3-none-any.whl → 0.6.2__py3-none-any.whl
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.
Potentially problematic release.
This version of cmdbox might be problematic. Click here for more details.
- cmdbox/app/auth/azure_signin.py +5 -1
- cmdbox/app/auth/signin.py +7 -3
- cmdbox/app/edge.py +3 -3
- cmdbox/app/features/cli/agent_base.py +42 -42
- cmdbox/app/features/cli/audit_base.py +28 -28
- cmdbox/app/features/cli/cmdbox_audit_createdb.py +28 -28
- cmdbox/app/features/cli/cmdbox_audit_delete.py +26 -26
- cmdbox/app/features/cli/cmdbox_audit_search.py +42 -42
- cmdbox/app/features/cli/cmdbox_audit_write.py +22 -22
- cmdbox/app/features/cli/cmdbox_client_file_copy.py +36 -36
- cmdbox/app/features/cli/cmdbox_client_file_download.py +38 -38
- cmdbox/app/features/cli/cmdbox_client_file_list.py +34 -34
- cmdbox/app/features/cli/cmdbox_client_file_mkdir.py +32 -32
- cmdbox/app/features/cli/cmdbox_client_file_move.py +34 -34
- cmdbox/app/features/cli/cmdbox_client_file_remove.py +32 -32
- cmdbox/app/features/cli/cmdbox_client_file_rmdir.py +32 -32
- cmdbox/app/features/cli/cmdbox_client_file_upload.py +38 -38
- cmdbox/app/features/cli/cmdbox_client_server_info.py +26 -26
- cmdbox/app/features/cli/cmdbox_cmd_list.py +22 -21
- cmdbox/app/features/cli/cmdbox_cmd_load.py +24 -20
- cmdbox/app/features/cli/cmdbox_edge_config.py +40 -40
- cmdbox/app/features/cli/cmdbox_edge_start.py +4 -4
- cmdbox/app/features/cli/cmdbox_gui_start.py +2 -2
- cmdbox/app/features/cli/cmdbox_gui_stop.py +2 -2
- cmdbox/app/features/cli/cmdbox_mcp_proxy.py +17 -11
- cmdbox/app/features/cli/cmdbox_server_list.py +20 -20
- cmdbox/app/features/cli/cmdbox_server_start.py +26 -26
- cmdbox/app/features/cli/cmdbox_server_stop.py +26 -26
- cmdbox/app/features/cli/cmdbox_web_apikey_add.py +24 -24
- cmdbox/app/features/cli/cmdbox_web_apikey_del.py +24 -24
- cmdbox/app/features/cli/cmdbox_web_gencert.py +24 -24
- cmdbox/app/features/cli/cmdbox_web_genpass.py +20 -20
- cmdbox/app/features/cli/cmdbox_web_group_add.py +26 -26
- cmdbox/app/features/cli/cmdbox_web_group_del.py +22 -22
- cmdbox/app/features/cli/cmdbox_web_group_edit.py +26 -26
- cmdbox/app/features/cli/cmdbox_web_group_list.py +22 -22
- cmdbox/app/features/cli/cmdbox_web_start.py +66 -66
- cmdbox/app/features/cli/cmdbox_web_stop.py +10 -10
- cmdbox/app/features/cli/cmdbox_web_user_add.py +32 -32
- cmdbox/app/features/cli/cmdbox_web_user_del.py +22 -22
- cmdbox/app/features/cli/cmdbox_web_user_edit.py +32 -32
- cmdbox/app/features/cli/cmdbox_web_user_list.py +22 -22
- cmdbox/app/features/web/cmdbox_web_agent.py +0 -4
- cmdbox/app/mcp.py +316 -120
- cmdbox/app/options.py +21 -21
- cmdbox/app/web.py +1 -1
- cmdbox/extensions/sample_project/sample/app/features/cli/sample_client_time.py +4 -4
- cmdbox/extensions/sample_project/sample/app/features/cli/sample_server_time.py +18 -18
- cmdbox/extensions/sample_project/sample/extensions/user_list.yml +4 -0
- cmdbox/extensions/user_list.yml +4 -0
- cmdbox/licenses/LICENSE_dnspython_2_7_0_ISC_License-ISCL.txt +35 -0
- cmdbox/licenses/LICENSE_email_validator_2_2_0_The_Unlicense-Unlicense.txt +27 -0
- cmdbox/licenses/files.txt +4 -2
- cmdbox/version.py +2 -2
- cmdbox/web/agent.html +2 -2
- cmdbox/web/assets/cmdbox/audit.js +14 -14
- cmdbox/web/assets/cmdbox/common.js +21 -7
- cmdbox/web/assets/cmdbox/list_cmd.js +5 -5
- cmdbox/web/assets/cmdbox/signin.js +17 -7
- cmdbox/web/assets/cmdbox/svgicon.js +3 -3
- cmdbox/web/assets/cmdbox/users.js +14 -5
- cmdbox/web/audit.html +6 -6
- cmdbox/web/signin.html +33 -7
- cmdbox/web/users.html +4 -4
- {cmdbox-0.6.1.dist-info → cmdbox-0.6.2.dist-info}/METADATA +27 -23
- {cmdbox-0.6.1.dist-info → cmdbox-0.6.2.dist-info}/RECORD +72 -70
- /cmdbox/licenses/{LICENSE_fastmcp_2_9_2_Apache_Software_License.txt → LICENSE_fastmcp_2_10_1_Apache_Software_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_mcp_1_9_4_MIT_License.txt → LICENSE_mcp_1_10_1_MIT_License.txt} +0 -0
- {cmdbox-0.6.1.dist-info → cmdbox-0.6.2.dist-info}/LICENSE +0 -0
- {cmdbox-0.6.1.dist-info → cmdbox-0.6.2.dist-info}/WHEEL +0 -0
- {cmdbox-0.6.1.dist-info → cmdbox-0.6.2.dist-info}/entry_points.txt +0 -0
- {cmdbox-0.6.1.dist-info → cmdbox-0.6.2.dist-info}/top_level.txt +0 -0
|
@@ -34,45 +34,45 @@ class WebGroupEdit(feature.UnsupportEdgeFeature):
|
|
|
34
34
|
"""
|
|
35
35
|
return dict(
|
|
36
36
|
use_redis=self.USE_REDIS_MEIGHT, nouse_webmode=False,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
description_ja="Webモードのグループを編集します。",
|
|
38
|
+
description_en="Edit a group in Web mode.",
|
|
39
39
|
choice=[
|
|
40
40
|
dict(opt="host", type=Options.T_STR, default=self.default_host, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
description_ja="Redisサーバーのサービスホストを指定します。",
|
|
42
|
+
description_en="Specify the service host of the Redis server."),
|
|
43
43
|
dict(opt="port", type=Options.T_INT, default=self.default_port, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
description_ja="Redisサーバーのサービスポートを指定します。",
|
|
45
|
+
description_en="Specify the service port of the Redis server."),
|
|
46
46
|
dict(opt="password", type=Options.T_STR, default=self.default_pass, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
description_ja="Redisサーバーのアクセスパスワード(任意)を指定します。省略時は `password` を使用します。",
|
|
48
|
+
description_en="Specify the access password of the Redis server (optional). If omitted, `password` is used."),
|
|
49
49
|
dict(opt="svname", type=Options.T_STR, default=self.default_svname, required=True, multi=False, hide=True, choice=None, web="readonly",
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
description_ja="サーバーのサービス名を指定します。省略時は `server` を使用します。",
|
|
51
|
+
description_en="Specify the service name of the inference server. If omitted, `server` is used."),
|
|
52
52
|
dict(opt="data", type=Options.T_FILE, default=self.default_data, required=False, multi=False, hide=False, choice=None,
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
description_ja=f"省略した時は `$HONE/.{self.ver.__appid__}` を使用します。",
|
|
54
|
+
description_en=f"When omitted, `$HONE/.{self.ver.__appid__}` is used."),
|
|
55
55
|
dict(opt="group_id", type=Options.T_INT, default=None, required=True, multi=False, hide=False, choice=None,
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
description_ja="グループIDを指定します。",
|
|
57
|
+
description_en="Specify the group ID. Do not duplicate other groups."),
|
|
58
58
|
dict(opt="group_name", type=Options.T_STR, default=None, required=True, multi=False, hide=False, choice=None,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
description_ja="グループ名を指定します。他のグループと重複しないようにしてください。",
|
|
60
|
+
description_en="Specify a group name. Do not duplicate other groups."),
|
|
61
61
|
dict(opt="group_parent", type=Options.T_STR, default=None, required=False, multi=False, hide=False, choice=None,
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
description_ja="親グループ名を指定します。",
|
|
63
|
+
description_en="Specifies the parent group name."),
|
|
64
64
|
dict(opt="signin_file", type=Options.T_FILE, default=f".{self.ver.__appid__}/user_list.yml", required=True, multi=False, hide=False, choice=None,
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
description_ja="サインイン可能なユーザーとパスワードを記載したファイルを指定します。省略した時は認証を要求しません。",
|
|
66
|
+
description_en="Specify a file containing users and passwords with which they can signin. If omitted, no authentication is required."),
|
|
67
67
|
dict(opt="stdout_log", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をConsole logに出力します。",
|
|
69
|
+
description_en="Available only in GUI mode. Outputs standard output during command execution to Console log."),
|
|
70
70
|
dict(opt="capture_stdout", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をキャプチャーし、実行結果画面に表示します。",
|
|
72
|
+
description_en="Available only in GUI mode. Captures standard output during command execution and displays it on the execution result screen."),
|
|
73
73
|
dict(opt="capture_maxsize", type=Options.T_INT, default=self.DEFAULT_CAPTURE_MAXSIZE, required=False, multi=False, hide=True, choice=None,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力の最大キャプチャーサイズを指定します。",
|
|
75
|
+
description_en="Available only in GUI mode. Specifies the maximum capture size of standard output when executing commands."),
|
|
76
76
|
]
|
|
77
77
|
)
|
|
78
78
|
|
|
@@ -34,39 +34,39 @@ class WebGroupList(feature.OneshotResultEdgeFeature):
|
|
|
34
34
|
"""
|
|
35
35
|
return dict(
|
|
36
36
|
use_redis=self.USE_REDIS_MEIGHT, nouse_webmode=False,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
description_ja="Webモードのグループー一覧を取得します。",
|
|
38
|
+
description_en="Get a list of users in Web mode.",
|
|
39
39
|
choice=[
|
|
40
40
|
dict(opt="host", type=Options.T_STR, default=self.default_host, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
description_ja="Redisサーバーのサービスホストを指定します。",
|
|
42
|
+
description_en="Specify the service host of the Redis server."),
|
|
43
43
|
dict(opt="port", type=Options.T_INT, default=self.default_port, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
description_ja="Redisサーバーのサービスポートを指定します。",
|
|
45
|
+
description_en="Specify the service port of the Redis server."),
|
|
46
46
|
dict(opt="password", type=Options.T_STR, default=self.default_pass, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
description_ja="Redisサーバーのアクセスパスワード(任意)を指定します。省略時は `password` を使用します。",
|
|
48
|
+
description_en="Specify the access password of the Redis server (optional). If omitted, `password` is used."),
|
|
49
49
|
dict(opt="svname", type=Options.T_STR, default=self.default_svname, required=True, multi=False, hide=True, choice=None, web="readonly",
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
description_ja="サーバーのサービス名を指定します。省略時は `server` を使用します。",
|
|
51
|
+
description_en="Specify the service name of the inference server. If omitted, `server` is used."),
|
|
52
52
|
dict(opt="data", type=Options.T_FILE, default=self.default_data, required=False, multi=False, hide=False, choice=None,
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
description_ja=f"省略した時は `$HONE/.{self.ver.__appid__}` を使用します。",
|
|
54
|
+
description_en=f"When omitted, `$HONE/.{self.ver.__appid__}` is used."),
|
|
55
55
|
dict(opt="group_name", type=Options.T_STR, default=None, required=False, multi=False, hide=False, choice=None,
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
description_ja="グループ名を指定して取得します。省略した時は全てのグループを取得します。",
|
|
57
|
+
description_en="Retrieved by specifying a group name. If omitted, all groups are retrieved."),
|
|
58
58
|
dict(opt="signin_file", type=Options.T_FILE, default=f".{self.ver.__appid__}/user_list.yml", required=True, multi=False, hide=False, choice=None,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
description_ja="サインイン可能なユーザーとパスワードを記載したファイルを指定します。省略した時は認証を要求しません。",
|
|
60
|
+
description_en="Specify a file containing users and passwords with which they can signin. If omitted, no authentication is required."),
|
|
61
61
|
dict(opt="stdout_log", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をConsole logに出力します。",
|
|
63
|
+
description_en="Available only in GUI mode. Outputs standard output during command execution to Console log."),
|
|
64
64
|
dict(opt="capture_stdout", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をキャプチャーし、実行結果画面に表示します。",
|
|
66
|
+
description_en="Available only in GUI mode. Captures standard output during command execution and displays it on the execution result screen."),
|
|
67
67
|
dict(opt="capture_maxsize", type=Options.T_INT, default=self.DEFAULT_CAPTURE_MAXSIZE, required=False, multi=False, hide=True, choice=None,
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力の最大キャプチャーサイズを指定します。",
|
|
69
|
+
description_en="Available only in GUI mode. Specifies the maximum capture size of standard output when executing commands."),
|
|
70
70
|
]
|
|
71
71
|
)
|
|
72
72
|
|
|
@@ -38,102 +38,102 @@ class WebStart(feature.UnsupportEdgeFeature, agent_base.AgentBase):
|
|
|
38
38
|
opt = super().get_option()
|
|
39
39
|
opt['use_redis'] = self.USE_REDIS_MEIGHT
|
|
40
40
|
opt['nouse_webmode'] = True
|
|
41
|
-
opt['
|
|
42
|
-
opt['
|
|
41
|
+
opt['description_ja'] = "Webモードを起動します。"
|
|
42
|
+
opt['description_en'] = "Start Web mode."
|
|
43
43
|
opt['choice'] += [
|
|
44
44
|
dict(opt="host", type=Options.T_STR, default=self.default_host, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
description_ja="Redisサーバーのサービスホストを指定します。",
|
|
46
|
+
description_en="Specify the service host of the Redis server."),
|
|
47
47
|
dict(opt="port", type=Options.T_INT, default=self.default_port, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
description_ja="Redisサーバーのサービスポートを指定します。",
|
|
49
|
+
description_en="Specify the service port of the Redis server."),
|
|
50
50
|
dict(opt="password", type=Options.T_STR, default=self.default_pass, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
description_ja="Redisサーバーのアクセスパスワード(任意)を指定します。省略時は `password` を使用します。",
|
|
52
|
+
description_en="Specify the access password of the Redis server (optional). If omitted, `password` is used."),
|
|
53
53
|
dict(opt="svname", type=Options.T_STR, default=self.default_svname, required=True, multi=False, hide=True, choice=None, web="readonly",
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
description_ja="サーバーのサービス名を指定します。省略時は `server` を使用します。",
|
|
55
|
+
description_en="Specify the service name of the inference server. If omitted, `server` is used."),
|
|
56
56
|
dict(opt="data", type=Options.T_FILE, default=self.default_data, required=False, multi=False, hide=False, choice=None,
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
description_ja=f"省略した時は `$HONE/.{self.ver.__appid__}` を使用します。",
|
|
58
|
+
description_en=f"When omitted, `$HONE/.{self.ver.__appid__}` is used."),
|
|
59
59
|
dict(opt="allow_host", type=Options.T_STR, default="0.0.0.0", required=False, multi=False, hide=False, choice=None,
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
description_ja="省略した時は `0.0.0.0` を使用します。",
|
|
61
|
+
description_en="If omitted, `0.0.0.0` is used."),
|
|
62
62
|
dict(opt="listen_port", type=Options.T_INT, default="8081", required=False, multi=False, hide=False, choice=None,
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
description_ja="省略した時は `8081` を使用します。",
|
|
64
|
+
description_en="If omitted, `8081` is used."),
|
|
65
65
|
dict(opt="ssl_listen_port", type=Options.T_INT, default="8443", required=False, multi=False, hide=False, choice=None,
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
description_ja="省略した時は `8443` を使用します。",
|
|
67
|
+
description_en="If omitted, `8443` is used."),
|
|
68
68
|
dict(opt="ssl_cert", type=Options.T_FILE, default=None, required=False, multi=False, hide=True, choice=None,
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
description_ja="SSLサーバー証明書ファイルを指定します。",
|
|
70
|
+
description_en="Specify the SSL server certificate file."),
|
|
71
71
|
dict(opt="ssl_key", type=Options.T_FILE, default=None, required=False, multi=False, hide=True, choice=None,
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
description_ja="SSLサーバー秘密鍵ファイルを指定します。",
|
|
73
|
+
description_en="Specify the SSL server private key file."),
|
|
74
74
|
dict(opt="ssl_keypass", type=Options.T_STR, default=None, required=False, multi=False, hide=True, choice=None,
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
description_ja="SSLサーバー秘密鍵ファイルの複合化パスワードを指定します。",
|
|
76
|
+
description_en="Specify the composite password for the SSL server private key file."),
|
|
77
77
|
dict(opt="ssl_ca_certs", type=Options.T_FILE, default=None, required=False, multi=False, hide=True, choice=None,
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
description_ja="SSLサーバーCA証明書ファイルを指定します。",
|
|
79
|
+
description_en="Specify the SSL server CA certificate file."),
|
|
80
80
|
dict(opt="signin_file", type=Options.T_FILE, default=None, required=False, multi=False, hide=True, choice=None,
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
description_ja="サインイン可能なユーザーとパスワードを記載したファイルを指定します。省略した時は認証を要求しません。",
|
|
82
|
+
description_en="Specify a file containing users and passwords with which they can signin. If omitted, no authentication is required."),
|
|
83
83
|
dict(opt="session_domain", type=Options.T_STR, default=None, required=False, multi=False, hide=True, choice=None,
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
description_ja="サインインしたユーザーのセッションが有効なドメインを指定します。",
|
|
85
|
+
description_en="Specify the domain for which the signed-in user's session is valid."),
|
|
86
86
|
dict(opt="session_path", type=Options.T_STR, default="/", required=False, multi=False, hide=True, choice=None,
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
description_ja="サインインしたユーザーのセッションが有効なパスを指定します。",
|
|
88
|
+
description_en="Specify the session timeout in seconds for signed-in users."),
|
|
89
89
|
dict(opt="session_secure", type=Options.T_BOOL, default=False, required=False, multi=False, hide=True, choice=[True, False],
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
description_ja="サインインしたユーザーのセッションにSecureフラグを設定します。",
|
|
91
|
+
description_en="Set the Secure flag for the signed-in user's session."),
|
|
92
92
|
dict(opt="session_timeout", type=Options.T_INT, default="900", required=False, multi=False, hide=True, choice=None,
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
description_ja="サインインしたユーザーのセッションタイムアウトの時間を秒で指定します。",
|
|
94
|
+
description_en="Specify the session timeout in seconds for signed-in users."),
|
|
95
95
|
dict(opt="guvicorn_workers", type=Options.T_INT, default=multiprocessing.cpu_count()*2, required=False, multi=False, hide=True, choice=None,
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
description_ja="guvicornワーカー数を指定します。Linux環境でのみ有効です。-1又は未指定の場合はCPU数の2倍を使用します。",
|
|
97
|
+
description_en="Specifies the number of guvicorn workers, valid only in Linux environment. If -1 or unspecified, twice the number of CPUs is used."),
|
|
98
98
|
dict(opt="guvicorn_timeout", type=Options.T_INT, default=30, required=False, multi=False, hide=True, choice=None,
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
description_ja="guvicornワーカーのタイムアウトの時間を秒で指定します。",
|
|
100
|
+
description_en="Specify the timeout duration of the guvicorn worker in seconds."),
|
|
101
101
|
dict(opt="client_only", type=Options.T_BOOL, default=False, required=False, multi=False, hide=True, choice=[True, False],
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
description_ja="サーバーへの接続を行わないようにします。",
|
|
103
|
+
description_en="Do not make connections to the server."),
|
|
104
104
|
dict(opt="outputs_key", type=Options.T_STR, default=None, required=False, multi=True, hide=False, choice=None,
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
description_ja="showimg及びwebcap画面で表示する項目を指定します。省略した場合は全ての項目を表示します。",
|
|
106
|
+
description_en="Specify items to be displayed on the showimg and webcap screens. If omitted, all items are displayed."),
|
|
107
107
|
dict(opt="doc_root", type=Options.T_DIR, default=None, required=False, multi=False, hide=False, choice=None,
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
description_ja="カスタムファイルのドキュメントルート. フォルダ指定のカスタムファイルのパスから、doc_rootのパスを除去したパスでURLマッピングします。",
|
|
109
|
+
description_en="Document root for custom files. URL mapping from the path of a folder-specified custom file with the path of doc_root removed."),
|
|
110
110
|
dict(opt="gui_html", type=Options.T_FILE, default=None, required=False, multi=False, hide=False, choice=None,
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
description_ja="`gui.html` を指定します。省略時はcmdbox内蔵のHTMLファイルを使用します。",
|
|
112
|
+
description_en="Specify `gui.html`. If omitted, the cmdbox built-in HTML file is used."),
|
|
113
113
|
dict(opt="filer_html", type=Options.T_FILE, default=None, required=False, multi=False, hide=False, choice=None,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
description_ja="`filer.html` を指定します。省略時はcmdbox内蔵のHTMLファイルを使用します。",
|
|
115
|
+
description_en="Specify `filer.html`. If omitted, the cmdbox built-in HTML file is used."),
|
|
116
116
|
dict(opt="result_html", type=Options.T_FILE, default=None, required=False, multi=False, hide=False, choice=None,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
description_ja="`result.html` を指定します。省略時はcmdbox内蔵のHTMLファイルを使用します。",
|
|
118
|
+
description_en="Specify `result.html`. If omitted, the cmdbox built-in HTML file is used."),
|
|
119
119
|
dict(opt="users_html", type=Options.T_FILE, default=None, required=False, multi=False, hide=False, choice=None,
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
description_ja="`users.html` を指定します。省略時はcmdbox内蔵のHTMLファイルを使用します。",
|
|
121
|
+
description_en="Specify `users.html`. If omitted, the cmdbox built-in HTML file is used."),
|
|
122
122
|
dict(opt="assets", type=Options.T_FILE, default=None, required=False, multi=True, hide=False, choice=None,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
description_ja="htmlファイルを使用する場合に必要なアセットファイルを指定します。",
|
|
124
|
+
description_en="Specify the asset file required when using html files."),
|
|
125
125
|
dict(opt="signin_html", type=Options.T_FILE, default=None, required=False, multi=False, hide=False, choice=None,
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
description_ja="`signin.html` を指定します。省略時はcmdbox内蔵のHTMLファイルを使用します。",
|
|
127
|
+
description_en="Specify `signin.html`. If omitted, the cmdbox built-in HTML file is used."),
|
|
128
128
|
dict(opt="stdout_log", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をConsole logに出力します。",
|
|
130
|
+
description_en="Available only in GUI mode. Outputs standard output during command execution to Console log."),
|
|
131
131
|
dict(opt="capture_stdout", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をキャプチャーし、実行結果画面に表示します。",
|
|
133
|
+
description_en="Available only in GUI mode. Captures standard output during command execution and displays it on the execution result screen."),
|
|
134
134
|
dict(opt="capture_maxsize", type=Options.T_INT, default=self.DEFAULT_CAPTURE_MAXSIZE, required=False, multi=False, hide=True, choice=None,
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力の最大キャプチャーサイズを指定します。",
|
|
136
|
+
description_en="Available only in GUI mode. Specifies the maximum capture size of standard output when executing commands."),
|
|
137
137
|
]
|
|
138
138
|
return opt
|
|
139
139
|
|
|
@@ -208,12 +208,12 @@ class WebStart(feature.UnsupportEdgeFeature, agent_base.AgentBase):
|
|
|
208
208
|
from cmdbox.app import mcp
|
|
209
209
|
self.mcp = mcp.Mcp(logger, args.data, w.signin, self.appcls, self.ver)
|
|
210
210
|
if args.agent_session_store == 'sqlite':
|
|
211
|
-
args.agent_session_dburl = "sqlite
|
|
211
|
+
args.agent_session_dburl = "sqlite:" + pathname2url(str(w.agent_path / 'session.db'))
|
|
212
212
|
elif args.agent_session_store == 'postgresql':
|
|
213
213
|
args.agent_session_dburl = f"postgresql+psycopg://{args.agent_pg_user}:{args.agent_pg_password}@{args.agent_pg_host}:{args.agent_pg_port}/{args.agent_pg_dbname}"
|
|
214
214
|
else:
|
|
215
215
|
args.agent_session_dburl = None
|
|
216
|
-
return self.mcp.init_agent_runner(logger, args)
|
|
216
|
+
return self.mcp.init_agent_runner(logger, args, w)
|
|
217
217
|
return None, None
|
|
218
218
|
|
|
219
219
|
def start(self, w:web.Web, agent_runner, mcp, logger:logging.Logger, args:argparse.Namespace) -> None:
|
|
@@ -34,21 +34,21 @@ class WebStop(feature.UnsupportEdgeFeature):
|
|
|
34
34
|
"""
|
|
35
35
|
return dict(
|
|
36
36
|
use_redis=self.USE_REDIS_MEIGHT, nouse_webmode=True,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
description_ja="Webモードを停止します。",
|
|
38
|
+
description_en="Stop Web mode.",
|
|
39
39
|
choice=[
|
|
40
40
|
dict(opt="data", type=Options.T_FILE, default=self.default_data, required=False, multi=False, hide=False, choice=None,
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
description_ja=f"省略した時は `$HONE/.{self.ver.__appid__}` を使用します。",
|
|
42
|
+
description_en=f"When omitted, `$HONE/.{self.ver.__appid__}` is used."),
|
|
43
43
|
dict(opt="stdout_log", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をConsole logに出力します。",
|
|
45
|
+
description_en="Available only in GUI mode. Outputs standard output during command execution to Console log."),
|
|
46
46
|
dict(opt="capture_stdout", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をキャプチャーし、実行結果画面に表示します。",
|
|
48
|
+
description_en="Available only in GUI mode. Captures standard output during command execution and displays it on the execution result screen."),
|
|
49
49
|
dict(opt="capture_maxsize", type=Options.T_INT, default=self.DEFAULT_CAPTURE_MAXSIZE, required=False, multi=False, hide=True, choice=None,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力の最大キャプチャーサイズを指定します。",
|
|
51
|
+
description_en="Available only in GUI mode. Specifies the maximum capture size of standard output when executing commands."),
|
|
52
52
|
]
|
|
53
53
|
)
|
|
54
54
|
|
|
@@ -34,54 +34,54 @@ class WebUserAdd(feature.UnsupportEdgeFeature):
|
|
|
34
34
|
"""
|
|
35
35
|
return dict(
|
|
36
36
|
use_redis=self.USE_REDIS_MEIGHT, nouse_webmode=False,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
description_ja="Webモードのユーザーを追加します。",
|
|
38
|
+
description_en="Add a user in Web mode.",
|
|
39
39
|
choice=[
|
|
40
40
|
dict(opt="host", type=Options.T_STR, default=self.default_host, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
description_ja="Redisサーバーのサービスホストを指定します。",
|
|
42
|
+
description_en="Specify the service host of the Redis server."),
|
|
43
43
|
dict(opt="port", type=Options.T_INT, default=self.default_port, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
description_ja="Redisサーバーのサービスポートを指定します。",
|
|
45
|
+
description_en="Specify the service port of the Redis server."),
|
|
46
46
|
dict(opt="password", type=Options.T_STR, default=self.default_pass, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
description_ja="Redisサーバーのアクセスパスワード(任意)を指定します。省略時は `password` を使用します。",
|
|
48
|
+
description_en="Specify the access password of the Redis server (optional). If omitted, `password` is used."),
|
|
49
49
|
dict(opt="svname", type=Options.T_STR, default=self.default_svname, required=True, multi=False, hide=True, choice=None, web="readonly",
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
description_ja="サーバーのサービス名を指定します。省略時は `server` を使用します。",
|
|
51
|
+
description_en="Specify the service name of the inference server. If omitted, `server` is used."),
|
|
52
52
|
dict(opt="data", type=Options.T_FILE, default=self.default_data, required=False, multi=False, hide=False, choice=None,
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
description_ja=f"省略した時は `$HONE/.{self.ver.__appid__}` を使用します。",
|
|
54
|
+
description_en=f"When omitted, `$HONE/.{self.ver.__appid__}` is used."),
|
|
55
55
|
dict(opt="user_id", type=Options.T_INT, default=None, required=True, multi=False, hide=False, choice=None,
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
description_ja="ユーザーIDを指定します。他のユーザーと重複しないようにしてください。",
|
|
57
|
+
description_en="Specify the user ID. Do not duplicate other users."),
|
|
58
58
|
dict(opt="user_name", type=Options.T_STR, default=None, required=True, multi=False, hide=False, choice=None,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
description_ja="ユーザー名を指定します。他のユーザーと重複しないようにしてください。",
|
|
60
|
+
description_en="Specify a user name. Do not duplicate other users."),
|
|
61
61
|
dict(opt="user_pass", type=Options.T_STR, default=None, required=False, multi=False, hide=False, choice=None,
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
description_ja="ユーザーパスワードを指定します。",
|
|
63
|
+
description_en="Specify the user password."),
|
|
64
64
|
dict(opt="user_pass_hash", type=Options.T_STR, default='sha1', required=False, multi=False, hide=False, choice=['oauth2', 'saml', 'plain', 'md5', 'sha1', 'sha256'],
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
description_ja="ユーザーパスワードのハッシュアルゴリズムを指定します。",
|
|
66
|
+
description_en="Specifies the hash algorithm for user passwords."),
|
|
67
67
|
dict(opt="user_email", type=Options.T_STR, default=None, required=False, multi=False, hide=False, choice=None,
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
description_ja="ユーザーメールアドレスを指定します。 `user_pass_hash` が `oauth2` 又は `saml` の時は必須です。",
|
|
69
|
+
description_en="Specify the user email. Required when `user_pass_hash` is `oauth2` or `saml`."),
|
|
70
70
|
dict(opt="user_group", type=Options.T_STR, default=None, required=True, multi=True, hide=False, choice=None,
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
description_ja="ユーザーが所属するグループを指定します。",
|
|
72
|
+
description_en="Specifies the groups to which the user belongs."),
|
|
73
73
|
dict(opt="signin_file", type=Options.T_FILE, default=f".{self.ver.__appid__}/user_list.yml", required=True, multi=False, hide=False, choice=None,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
description_ja="サインイン可能なユーザーとパスワードを記載したファイルを指定します。省略した時は認証を要求しません。",
|
|
75
|
+
description_en="Specify a file containing users and passwords with which they can signin. If omitted, no authentication is required."),
|
|
76
76
|
dict(opt="stdout_log", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をConsole logに出力します。",
|
|
78
|
+
description_en="Available only in GUI mode. Outputs standard output during command execution to Console log."),
|
|
79
79
|
dict(opt="capture_stdout", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をキャプチャーし、実行結果画面に表示します。",
|
|
81
|
+
description_en="Available only in GUI mode. Captures standard output during command execution and displays it on the execution result screen."),
|
|
82
82
|
dict(opt="capture_maxsize", type=Options.T_INT, default=self.DEFAULT_CAPTURE_MAXSIZE, required=False, multi=False, hide=True, choice=None,
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力の最大キャプチャーサイズを指定します。",
|
|
84
|
+
description_en="Available only in GUI mode. Specifies the maximum capture size of standard output when executing commands."),
|
|
85
85
|
]
|
|
86
86
|
)
|
|
87
87
|
|
|
@@ -34,39 +34,39 @@ class WebUserDel(feature.UnsupportEdgeFeature):
|
|
|
34
34
|
"""
|
|
35
35
|
return dict(
|
|
36
36
|
use_redis=self.USE_REDIS_MEIGHT, nouse_webmode=False,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
description_ja="Webモードのユーザーを削除します。",
|
|
38
|
+
description_en="Delete a user in Web mode.",
|
|
39
39
|
choice=[
|
|
40
40
|
dict(opt="host", type=Options.T_STR, default=self.default_host, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
description_ja="Redisサーバーのサービスホストを指定します。",
|
|
42
|
+
description_en="Specify the service host of the Redis server."),
|
|
43
43
|
dict(opt="port", type=Options.T_INT, default=self.default_port, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
description_ja="Redisサーバーのサービスポートを指定します。",
|
|
45
|
+
description_en="Specify the service port of the Redis server."),
|
|
46
46
|
dict(opt="password", type=Options.T_STR, default=self.default_pass, required=True, multi=False, hide=True, choice=None, web="mask",
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
description_ja="Redisサーバーのアクセスパスワード(任意)を指定します。省略時は `password` を使用します。",
|
|
48
|
+
description_en="Specify the access password of the Redis server (optional). If omitted, `password` is used."),
|
|
49
49
|
dict(opt="svname", type=Options.T_STR, default=self.default_svname, required=True, multi=False, hide=True, choice=None, web="readonly",
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
description_ja="サーバーのサービス名を指定します。省略時は `server` を使用します。",
|
|
51
|
+
description_en="Specify the service name of the inference server. If omitted, `server` is used."),
|
|
52
52
|
dict(opt="data", type=Options.T_FILE, default=self.default_data, required=False, multi=False, hide=False, choice=None,
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
description_ja=f"省略した時は `$HONE/.{self.ver.__appid__}` を使用します。",
|
|
54
|
+
description_en=f"When omitted, `$HONE/.{self.ver.__appid__}` is used."),
|
|
55
55
|
dict(opt="user_id", type=Options.T_INT, default=None, required=True, multi=False, hide=False, choice=None,
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
description_ja="ユーザーIDを指定します。",
|
|
57
|
+
description_en="Specify the user ID."),
|
|
58
58
|
dict(opt="signin_file", type=Options.T_FILE, default=f".{self.ver.__appid__}/user_list.yml", required=True, multi=False, hide=False, choice=None,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
description_ja="サインイン可能なユーザーとパスワードを記載したファイルを指定します。省略した時は認証を要求しません。",
|
|
60
|
+
description_en="Specify a file containing users and passwords with which they can signin. If omitted, no authentication is required."),
|
|
61
61
|
dict(opt="stdout_log", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をConsole logに出力します。",
|
|
63
|
+
description_en="Available only in GUI mode. Outputs standard output during command execution to Console log."),
|
|
64
64
|
dict(opt="capture_stdout", type=Options.T_BOOL, default=True, required=False, multi=False, hide=True, choice=[True, False],
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力をキャプチャーし、実行結果画面に表示します。",
|
|
66
|
+
description_en="Available only in GUI mode. Captures standard output during command execution and displays it on the execution result screen."),
|
|
67
67
|
dict(opt="capture_maxsize", type=Options.T_INT, default=self.DEFAULT_CAPTURE_MAXSIZE, required=False, multi=False, hide=True, choice=None,
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
description_ja="GUIモードでのみ使用可能です。コマンド実行時の標準出力の最大キャプチャーサイズを指定します。",
|
|
69
|
+
description_en="Available only in GUI mode. Specifies the maximum capture size of standard output when executing commands."),
|
|
70
70
|
]
|
|
71
71
|
)
|
|
72
72
|
|