yidaconnector 2026.6.11
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/LICENSE +21 -0
- package/README.md +383 -0
- package/bin/yida.js +670 -0
- package/lib/app/form-navigation.js +58 -0
- package/lib/app/get-schema.js +538 -0
- package/lib/auth/auth.js +294 -0
- package/lib/auth/cdp-browser-login.js +390 -0
- package/lib/auth/codex-login.js +71 -0
- package/lib/auth/login.js +475 -0
- package/lib/auth/org.js +363 -0
- package/lib/auth/qr-login.js +1563 -0
- package/lib/core/chalk.js +384 -0
- package/lib/core/check-update.js +82 -0
- package/lib/core/cli-error.js +39 -0
- package/lib/core/command-manifest.js +106 -0
- package/lib/core/env-cmd.js +545 -0
- package/lib/core/env-manager.js +601 -0
- package/lib/core/env.js +287 -0
- package/lib/core/i18n.js +177 -0
- package/lib/core/locales/ar.js +805 -0
- package/lib/core/locales/de.js +805 -0
- package/lib/core/locales/en.js +1623 -0
- package/lib/core/locales/es.js +805 -0
- package/lib/core/locales/fr.js +805 -0
- package/lib/core/locales/hi.js +805 -0
- package/lib/core/locales/ja.js +1197 -0
- package/lib/core/locales/ko.js +807 -0
- package/lib/core/locales/pt.js +805 -0
- package/lib/core/locales/vi.js +805 -0
- package/lib/core/locales/zh-HK.js +1233 -0
- package/lib/core/locales/zh.js +1584 -0
- package/lib/core/query-data.js +781 -0
- package/lib/core/redact.js +100 -0
- package/lib/core/utils.js +799 -0
- package/lib/core/yida-client.js +117 -0
- package/package.json +94 -0
- package/project/config.json +4 -0
- package/project/pages/src/demo-birthday-game.oyd.jsx +832 -0
- package/project/pages/src/demo-chip-insight.oyd.jsx +983 -0
- package/project/pages/src/demo-compat-smoke.oyd.jsx +58 -0
- package/project/pages/src/demo-crm-batch-entry.oyd.jsx +805 -0
- package/project/pages/src/demo-crm-dashboard.oyd.jsx +677 -0
- package/project/pages/src/demo-future-vision-2026.oyd.jsx +1102 -0
- package/project/pages/src/demo-ppt.oyd.jsx +1192 -0
- package/project/pages/src/demo-salary-calculator.oyd.jsx +904 -0
- package/project/pages/src/yidaconnector-knowledge-doc.oyd.jsx +1714 -0
- package/project/prd/demo-birthday-game.md +39 -0
- package/project/prd/demo-crm.md +463 -0
- package/project/prd/demo-dingtalk-ai-solution-center.md +425 -0
- package/project/prd/demo-future-vision-2026.md +78 -0
- package/project/prd/demo-salary-calculator.md +101 -0
- package/scripts/build-skills-package.js +406 -0
- package/scripts/check-syntax.js +59 -0
- package/scripts/demo-dws.sh +106 -0
- package/scripts/e2e-real/cleanup.js +67 -0
- package/scripts/e2e-real/fixtures/form-fields.json +18 -0
- package/scripts/e2e-real/full-runner.js +1566 -0
- package/scripts/e2e-real/runner.js +293 -0
- package/scripts/e2e-real/skill-coverage.js +115 -0
- package/scripts/generate-command-docs.js +109 -0
- package/scripts/nightly-smoke.js +134 -0
- package/scripts/postinstall.js +545 -0
- package/scripts/solution-center-runner.js +368 -0
- package/scripts/validate-ci.sh +50 -0
- package/scripts/validate-command-manifest.js +119 -0
- package/scripts/validate-package-size.js +78 -0
- package/scripts/validate-skills.js +247 -0
- package/scripts/validate-structure.js +66 -0
- package/yida-skills/SKILL.md +163 -0
- package/yida-skills/references/yida-api.md +1309 -0
- package/yida-skills/skills/large-file-write/SKILL.md +91 -0
- package/yida-skills/skills/large-file-write/references/write-patterns.md +149 -0
- package/yida-skills/skills/large-file-write/scripts/write.js +157 -0
- package/yida-skills/skills/yida-data-management/SKILL.md +252 -0
- package/yida-skills/skills/yida-data-management/references/api-matrix.md +49 -0
- package/yida-skills/skills/yida-data-management/references/data-format-guide.md +159 -0
- package/yida-skills/skills/yida-data-management/references/verified-endpoints.md +62 -0
- package/yida-skills/skills/yida-login/SKILL.md +159 -0
- package/yida-skills/skills/yida-logout/SKILL.md +67 -0
|
@@ -0,0 +1,1197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ja.js - 日本語翻訳
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
// ── 通用 ──────────────────────────────────────────
|
|
8
|
+
|
|
9
|
+
// ── bin/yida.js printHelp() ────────────────────────
|
|
10
|
+
help: {
|
|
11
|
+
subtitle: '宜搭ローコード AI 開発ツール',
|
|
12
|
+
usage: '使用方法:',
|
|
13
|
+
alias: 'エイリアス:',
|
|
14
|
+
group_auth: '環境 & 認証',
|
|
15
|
+
cmd_login: 'ログイン(キャッシュ優先、必要に応じて --browser または --agent-qr)',
|
|
16
|
+
cmd_logout: 'ログアウト / アカウント切替',
|
|
17
|
+
cmd_auth: 'ログイン状態管理',
|
|
18
|
+
cmd_org: '組織管理(一覧 / 切替)',
|
|
19
|
+
cmd_env: 'AI ツール環境とログイン状態を検出',
|
|
20
|
+
cmd_env_management: 'パブリック/プライベート環境プロファイルを管理',
|
|
21
|
+
group_app: 'アプリ管理',
|
|
22
|
+
cmd_app_list: '自分の Yida アプリ一覧を表示',
|
|
23
|
+
cmd_corp_efficiency: '企業効率の概要と明細レポートを取得',
|
|
24
|
+
cmd_create_app: '宜搭アプリを作成',
|
|
25
|
+
cmd_update_app: 'アプリ情報を更新',
|
|
26
|
+
cmd_nav_group: 'アプリのサイドバーナビゲーショングループを管理',
|
|
27
|
+
cmd_app_permission: 'アプリ主管理者、データ管理者、開発メンバーを管理',
|
|
28
|
+
cmd_i18n: 'アプリの多言語文言と言語設定を管理',
|
|
29
|
+
cmd_export: 'アプリをエクスポート(移行パッケージ生成)',
|
|
30
|
+
cmd_import: '移行パッケージをインポート、アプリを再構築',
|
|
31
|
+
group_form: 'フォーム & ページ',
|
|
32
|
+
cmd_create_form: 'フォームページを作成',
|
|
33
|
+
cmd_update_form: 'フォームページを更新',
|
|
34
|
+
cmd_list_forms: 'アプリ内のフォーム/ページを一覧表示',
|
|
35
|
+
cmd_aggregate_table: 'Manage aggregate tables (virtualView)',
|
|
36
|
+
cmd_get_schema: 'フォーム Schema を取得',
|
|
37
|
+
cmd_create_page: 'カスタム表示ページを作成',
|
|
38
|
+
cmd_generate_page: 'Generate page from curated template',
|
|
39
|
+
cmd_check_page: 'Check custom page standards',
|
|
40
|
+
cmd_compile: 'カスタムページをローカルコンパイル',
|
|
41
|
+
cmd_publish: 'カスタムページをコンパイル&公開',
|
|
42
|
+
cmd_update_form_config: 'フォーム設定を更新',
|
|
43
|
+
group_data: 'データ & 権限',
|
|
44
|
+
cmd_data: '統合データ管理(フォーム/プロセス/タスク/サブフォーム)',
|
|
45
|
+
cmd_task_center: 'グローバルタスクセンター(未処理/処理済/CC等)',
|
|
46
|
+
cmd_basic_info: '組織の基本情報、容量、クォータ、ドメイン設定を照会',
|
|
47
|
+
cmd_get_permission: 'フォーム権限設定を照会',
|
|
48
|
+
cmd_save_permission: 'フォーム権限設定を保存',
|
|
49
|
+
cmd_corp_manager: 'プラットフォーム権限を管理',
|
|
50
|
+
cmd_agent_center: 'プロセス委任と退職者代理を管理',
|
|
51
|
+
group_process: 'プロセス',
|
|
52
|
+
cmd_configure_process: 'プロセスルールを設定&公開',
|
|
53
|
+
cmd_create_process: 'プロセスフォームを作成(一体型)',
|
|
54
|
+
cmd_ai_form_setting: 'Manage process form AI approval prompts',
|
|
55
|
+
cmd_process_preview: 'プロセスインスタンスをプレビュー(フローチャート)',
|
|
56
|
+
group_share: 'ページ設定 & 共有',
|
|
57
|
+
cmd_verify_url: '短縮 URL を検証',
|
|
58
|
+
cmd_save_share: '公開アクセス / 共有設定を保存',
|
|
59
|
+
cmd_get_page_config: 'ページ公開アクセス設定を照会',
|
|
60
|
+
cmd_externalize_form: 'Plan external access-safe mirror fields',
|
|
61
|
+
group_report: 'レポート',
|
|
62
|
+
cmd_create_report: '宜搭レポートを作成',
|
|
63
|
+
cmd_append_chart: '既存レポートにチャートを追加',
|
|
64
|
+
group_connector: 'コネクタ',
|
|
65
|
+
cmd_connector_list: 'HTTP コネクタ一覧',
|
|
66
|
+
cmd_connector_create: 'コネクタを作成',
|
|
67
|
+
cmd_connector_detail: 'コネクタ詳細を表示',
|
|
68
|
+
cmd_connector_delete: 'コネクタを削除',
|
|
69
|
+
cmd_connector_add_action: 'アクションを追加',
|
|
70
|
+
cmd_connector_list_actions: 'アクション一覧を表示',
|
|
71
|
+
cmd_connector_delete_action: 'アクションを削除',
|
|
72
|
+
cmd_connector_test: 'アクションをテスト',
|
|
73
|
+
cmd_connector_list_connections: '認証アカウント一覧を表示',
|
|
74
|
+
cmd_connector_create_connection: '認証アカウントを作成',
|
|
75
|
+
cmd_connector_smart: 'スマート作成(cURL から)',
|
|
76
|
+
cmd_connector_parse_api: 'API 情報を解析',
|
|
77
|
+
cmd_connector_gen_template: 'API ドキュメントテンプレートを生成',
|
|
78
|
+
cmd_connector_more: 'その他のサブコマンドを表示',
|
|
79
|
+
group_integration: '統合 & DingTalk',
|
|
80
|
+
cmd_integration: '統合自動化フローを作成',
|
|
81
|
+
cmd_integration_list: '統合自動化フローを一覧表示',
|
|
82
|
+
cmd_integration_enable: '統合自動化フローを有効化',
|
|
83
|
+
cmd_integration_disable: '統合自動化フローを無効化',
|
|
84
|
+
cmd_integration_check: 'Check abnormal integration automation run logs',
|
|
85
|
+
cmd_dws: 'DingTalk CLI(連絡先/カレンダー/ToDo/承認等)',
|
|
86
|
+
cmd_dingtalk_link: 'DingTalk AppLink / 旧 dingtalk:// ページリンクを生成',
|
|
87
|
+
group_utility: 'ユーティリティ',
|
|
88
|
+
cmd_commands: '機械可読コマンド manifest を出力',
|
|
89
|
+
cmd_a2a: 'ローカル読み取り専用 A2A Adapter を起動、または Agent Card を出力',
|
|
90
|
+
cmd_bridge: 'YidaConnector ローカル Web ブリッジサービスを起動',
|
|
91
|
+
cmd_db_seq_fix: 'PostgreSQL Sequence ドリフトを検出・修復',
|
|
92
|
+
cmd_copy: 'project 作業ディレクトリをコピー',
|
|
93
|
+
cmd_sample: 'コードサンプル/テンプレートを出力',
|
|
94
|
+
cmd_doctor: '環境診断と自動修復',
|
|
95
|
+
cmd_update: '最新バージョンに更新',
|
|
96
|
+
cmd_export_conversation: 'AI 会話記録をエクスポート',
|
|
97
|
+
cmd_feedback: '体験フィードバックフォームとローカル通知状態を設定',
|
|
98
|
+
cmd_batch: 'YidaConnector コマンドを一括実行',
|
|
99
|
+
cmd_flash_to_prd: 'フラッシュノート/議事録を PRD prompt に変換',
|
|
100
|
+
cmd_ai: 'Yida AI text and image recognition APIs',
|
|
101
|
+
cmd_cdn: 'CDN 画像管理(設定/アップロード/リフレッシュ)',
|
|
102
|
+
cmd_cdn_config: 'CDN / OSS アップロードを設定',
|
|
103
|
+
cmd_cdn_upload: '画像を CDN にアップロード',
|
|
104
|
+
cmd_cdn_refresh: 'CDN キャッシュを更新',
|
|
105
|
+
quickstart_title: 'クイックスタート',
|
|
106
|
+
quickstart_app_name: '勤怠管理',
|
|
107
|
+
quickstart_form_name: '従業員情報',
|
|
108
|
+
docs: '📚 ドキュメント:',
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
// ── bin/yida.js ────────────────────────────────────
|
|
112
|
+
cli: {
|
|
113
|
+
help: `
|
|
114
|
+
yidaconnector - Yida CLI ツール
|
|
115
|
+
|
|
116
|
+
使用方法:
|
|
117
|
+
yidaconnector <コマンド> [引数...](エイリアス:yida)
|
|
118
|
+
|
|
119
|
+
コマンド:
|
|
120
|
+
env AI ツール環境とログイン状態を検出
|
|
121
|
+
copy [--force] project ディレクトリを現在の AI ツール環境にコピー
|
|
122
|
+
login ログイン管理(キャッシュ優先、なければ QR コードスキャン)
|
|
123
|
+
logout ログアウト / アカウント切り替え
|
|
124
|
+
create-app "<名前>" [説明] [アイコン] [色] [テーマ] [ナビ] [レイアウト] アプリを作成し appType を出力
|
|
125
|
+
create-page <appType> "<ページ名>" [--mode dashboard] カスタムページを作成し pageId を出力
|
|
126
|
+
create-form create <appType> "<フォーム名>" <フィールドJSON> [--layout <レイアウト>] [--theme <テーマ>] [--label-align <配置>] フォームページを作成
|
|
127
|
+
create-form update <appType> <formUuid> <変更JSON> フォームページを更新
|
|
128
|
+
get-schema <appType> <formUuid> フォーム Schema を取得
|
|
129
|
+
publish <ソースファイル> <appType> <formUuid> [--health-check] カスタムページをコンパイルして公開
|
|
130
|
+
verify-short-url <appType> <formUuid> <url> 短縮 URL が使用可能か確認
|
|
131
|
+
save-share-config <appType> <formUuid> <url> <isOpen> [auth] 公開アクセス / 共有設定を保存
|
|
132
|
+
get-page-config <appType> <formUuid> ページの公開アクセス / 共有設定を照会
|
|
133
|
+
update-form-config <appType> <formUuid> <isRenderNav> <title> フォーム設定を更新
|
|
134
|
+
data <action> <resource> [args] 統合データ管理(フォーム/プロセス/タスク/サブフォーム)
|
|
135
|
+
task-center <type> [--page N] [--size N] [--keyword TEXT] グローバルタスクセンター(未処理/作成済み/処理済み/CC/代理)
|
|
136
|
+
doctor [オプション] 環境チェック・診断
|
|
137
|
+
--fix / --repair 診断して自動修復
|
|
138
|
+
--production --app <appId> 本番アプリ診断
|
|
139
|
+
--monitor リアルタイム監視
|
|
140
|
+
--report <format> レポート生成(json | markdown | html)
|
|
141
|
+
--create-ticket チケット作成
|
|
142
|
+
--create-voc VOC 作成
|
|
143
|
+
--auto-submit 自動判定して提出
|
|
144
|
+
auth status ログイン状態を確認
|
|
145
|
+
auth login ログイン実行
|
|
146
|
+
auth refresh ログイン情報を更新
|
|
147
|
+
auth logout ログアウト
|
|
148
|
+
org list アクセス可能な組織を一覧表示
|
|
149
|
+
org switch --corp-id <corpId> 組織を切り替え(再ログイン不要)
|
|
150
|
+
export <appType> [output] 全フォーム Schema をエクスポート(移行パッケージ)
|
|
151
|
+
import <file> [name] 移行パッケージをインポートしてアプリを再構築
|
|
152
|
+
get-permission <appType> <formUuid> フォーム権限設定を照会
|
|
153
|
+
save-permission <appType> <formUuid> [--data-permission <json>] [--action-permission <json>] フォーム権限設定を保存
|
|
154
|
+
configure-process <appType> <formUuid> <processDefinitionFile> [processCode] プロセスを設定して公開
|
|
155
|
+
create-process <appType> <formTitle> <fieldsJsonFile> <processDefinitionFile> プロセスフォームを作成(一体化)
|
|
156
|
+
create-process <appType> --formUuid <formUuid> <processDefinitionFile> 既存フォームでプロセス作成
|
|
157
|
+
connector list [オプション] HTTP コネクター一覧
|
|
158
|
+
connector create "名前" "ドメイン" --operations <file> [オプション] コネクター作成
|
|
159
|
+
connector detail <connector-id> コネクター詳細を表示
|
|
160
|
+
connector delete <connector-id> [--force] コネクターを削除
|
|
161
|
+
connector add-action --operations <file> --connector-id <id> アクションを追加
|
|
162
|
+
connector list-actions <connector-id> アクション一覧
|
|
163
|
+
connector delete-action <connector-id> <operation-id> アクションを削除
|
|
164
|
+
connector test --connector-id <id> --action <actionId> アクションをテスト
|
|
165
|
+
connector list-connections <connector-id> 認証アカウント一覧
|
|
166
|
+
connector create-connection <connector-id> <name> [オプション] 認証アカウントを作成
|
|
167
|
+
connector smart-create --curl "curlコマンド" [オプション] cURL からコネクターをスマート作成
|
|
168
|
+
connector parse-api [オプション] API 情報を解析
|
|
169
|
+
connector gen-template [出力パス] API ドキュメントテンプレートを生成
|
|
170
|
+
integration create <appType> <formUuid> <flowName> [オプション] インテグレーション&自動化フローを作成
|
|
171
|
+
create-report <appType> "<レポート名>" <チャートJSON|ファイル> Yida レポートを作成
|
|
172
|
+
append-chart <appType> <reportId> <チャートJSON|ファイル> 既存レポートにチャートを追加
|
|
173
|
+
dws <command> [args] DingTalk CLI(連絡先/カレンダー/タスク/承認等)
|
|
174
|
+
export-conversation [オプション] AI 会話記録をエクスポート
|
|
175
|
+
--output, -o <path> 出力ファイルパスを指定
|
|
176
|
+
--input, -i <file> 入力会話ファイルを指定
|
|
177
|
+
--latest 最新の会話のみエクスポート(デフォルト)
|
|
178
|
+
--list 利用可能な会話を一覧表示
|
|
179
|
+
cdn-config [オプション] CDN 画像アップロードを設定(Alibaba Cloud OSS + CDN)
|
|
180
|
+
cdn-upload <画像パス> [オプション] CDN に画像をアップロード
|
|
181
|
+
cdn-refresh [オプション] CDN キャッシュを更新
|
|
182
|
+
|
|
183
|
+
使用例:
|
|
184
|
+
yidaconnector login
|
|
185
|
+
yidaconnector logout
|
|
186
|
+
yidaconnector create-app "勤怠管理"
|
|
187
|
+
yidaconnector create-app "勤怠管理" "従業員勤怠システム" "xian-daka" "#00B853" "deepBlue" "dark" "slide"
|
|
188
|
+
yidaconnector create-page APP_XXX "ゲームホーム"
|
|
189
|
+
yidaconnector create-form create APP_XXX "従業員情報" .cache/yidaconnector/forms/employee-fields.json
|
|
190
|
+
yidaconnector create-form update APP_XXX FORM-XXX '[{"action":"add","field":{"type":"TextField","label":"備考"}}]'
|
|
191
|
+
yidaconnector get-schema APP_XXX FORM-XXX
|
|
192
|
+
yidaconnector publish pages/src/home.oyd.jsx APP_XXX FORM-XXX
|
|
193
|
+
yidaconnector verify-short-url APP_XXX FORM-XXX /o/myapp
|
|
194
|
+
yidaconnector save-share-config APP_XXX FORM-XXX /o/myapp y n
|
|
195
|
+
yidaconnector get-page-config APP_XXX FORM-XXX
|
|
196
|
+
yidaconnector update-form-config APP_XXX FORM-XXX false "ページタイトル"
|
|
197
|
+
yidaconnector data query form APP_XXX FORM-XXX --page 1 --size 20
|
|
198
|
+
yidaconnector dws contact user search --keyword "wukong"
|
|
199
|
+
yidaconnector create-report APP_XXX "売上レポート" .cache/yidaconnector/reports/charts.json
|
|
200
|
+
yidaconnector append-chart APP_XXX REPORT-XXX .cache/yidaconnector/reports/charts.json
|
|
201
|
+
yidaconnector configure-process APP_XXX FORM-YYY .cache/yidaconnector/process/process-def.json
|
|
202
|
+
yidaconnector create-process APP_XXX "注文処理フォーム" .cache/yidaconnector/process/fields.json .cache/yidaconnector/process/process-def.json
|
|
203
|
+
yidaconnector export APP_XXX
|
|
204
|
+
yidaconnector export APP_XXX ./my-app-backup.json
|
|
205
|
+
yidaconnector import ./yida-export.json
|
|
206
|
+
yidaconnector import ./yida-export.json "品質追跡システム(本番環境)"
|
|
207
|
+
yidaconnector doctor 完全診断
|
|
208
|
+
yidaconnector doctor --fix 診断して自動修復
|
|
209
|
+
yidaconnector doctor --production --app APP_XXX 本番アプリ診断
|
|
210
|
+
yidaconnector export-conversation 現在の会話をエクスポート
|
|
211
|
+
yidaconnector export-conversation -o output.md 出力パスを指定
|
|
212
|
+
yidaconnector export-conversation --list 利用可能な会話を一覧表示
|
|
213
|
+
yidaconnector update 最新バージョンに更新
|
|
214
|
+
`,
|
|
215
|
+
unknown_command: '不明なコマンド: {0}',
|
|
216
|
+
run_help: 'yidaconnector --help を実行してヘルプを確認してください',
|
|
217
|
+
integration_help: '使用方法: yidaconnector integration <create|list|enable|disable> ...',
|
|
218
|
+
integration_unknown: '不明な integration サブコマンド: {0}',
|
|
219
|
+
integration_help_hint: '利用可能なサブコマンドは yidaconnector integration --help で確認してください',
|
|
220
|
+
integration_list_usage: '使用方法: yidaconnector integration list <appType> [--form-uuid <uuid>] [--status y|n] [--key <kw>] [--page <n>] [--size <n>] [--json]',
|
|
221
|
+
integration_list_example: '例: yidaconnector integration list APP_XXX --form-uuid FORM-XXX --json',
|
|
222
|
+
integration_enable_usage: '使用方法: yidaconnector integration enable <appType> <formUuid> <processCode>',
|
|
223
|
+
integration_enable_example: '例: yidaconnector integration enable APP_XXX FORM-XXX LPROC-XXX',
|
|
224
|
+
integration_disable_usage: '使用方法: yidaconnector integration disable <appType> <formUuid> <processCode>',
|
|
225
|
+
integration_disable_example: '例: yidaconnector integration disable APP_XXX FORM-XXX LPROC-XXX',
|
|
226
|
+
compile_usage: '使用方法: yidaconnector compile <ソースファイル>',
|
|
227
|
+
compile_example: '例: yidaconnector compile pages/src/home.oyd.jsx',
|
|
228
|
+
check_page_usage: 'Usage: yidaconnector check-page <sourceFile> [--compat] [--json]',
|
|
229
|
+
check_page_example: 'Example: yidaconnector check-page pages/src/home.oyd.jsx --json',
|
|
230
|
+
generate_page_usage: 'Usage: yidaconnector generate-page <template> --output pages/src/home.oyd.jsx [--spec .cache/yidaconnector/page-specs/home.json] [--compile]',
|
|
231
|
+
generate_page_example: 'Example: yidaconnector generate-page product-homepage --brand-name OpenKuma --brand-initials OK --output pages/src/home.oyd.jsx --compile',
|
|
232
|
+
publish_usage: '使用方法: yidaconnector publish <ソースファイル> <appType> <formUuid> [--health-check]',
|
|
233
|
+
publish_example: '例: yidaconnector publish pages/src/home.oyd.jsx APP_XXX FORM-XXX --health-check',
|
|
234
|
+
verify_usage: '使用方法: yidaconnector verify-short-url <appType> <formUuid> <url>',
|
|
235
|
+
verify_example: '例: yidaconnector verify-short-url APP_XXX FORM-XXX /o/myapp',
|
|
236
|
+
share_usage: '使用方法: yidaconnector save-share-config <appType> <formUuid> <url> <isOpen> [openAuth]',
|
|
237
|
+
share_example: '例: yidaconnector save-share-config APP_XXX FORM-XXX /o/myapp y n',
|
|
238
|
+
page_config_usage: '使用方法: yidaconnector get-page-config <appType> <formUuid>',
|
|
239
|
+
page_config_example: '例: yidaconnector get-page-config APP_XXX FORM-XXX',
|
|
240
|
+
form_config_usage: '使用方法: yidaconnector update-form-config <appType> <formUuid> <isRenderNav> <title>',
|
|
241
|
+
form_config_example: '例: yidaconnector update-form-config APP_XXX FORM-XXX false "ページタイトル"',
|
|
242
|
+
update_app_usage: '使用方法: yidaconnector update-app <appType> --name "新しい名前" [--desc "説明"] [--icon "アイコン"]',
|
|
243
|
+
update_app_example: '例: yidaconnector update-app APP_XXX --name "新しいアプリ名" --desc "新しい説明"',
|
|
244
|
+
export_usage: '使用方法: yidaconnector export <appType> [output]',
|
|
245
|
+
export_example1: '例: yidaconnector export APP_XXX',
|
|
246
|
+
export_example2: ' yidaconnector export APP_XXX ./my-app-backup.json',
|
|
247
|
+
import_usage: '使用方法: yidaconnector import <file> [name]',
|
|
248
|
+
import_example1: '例: yidaconnector import ./yida-export.json',
|
|
249
|
+
import_example2: ' yidaconnector import ./yida-export.json "品質追跡システム(本番環境)"',
|
|
250
|
+
exec_failed: '\n❌ 実行に失敗しました: {0}',
|
|
251
|
+
auth_usage: '使用方法: yidaconnector auth <status|login|refresh|logout>',
|
|
252
|
+
auth_example: '例:\n yidaconnector auth status # ログイン状態を確認\n yidaconnector auth login # ログイン実行\n yidaconnector auth login --codex # Codex browser login\n yidaconnector auth refresh # ログイン状態を更新\n yidaconnector auth logout # ログアウト',
|
|
253
|
+
org_usage: '使用方法: yidaconnector org <list|switch>',
|
|
254
|
+
org_example: '例:\n yidaconnector org list # アクセス可能な組織一覧\n yidaconnector org switch --corp-id dingXXX # 指定組織に切り替え',
|
|
255
|
+
first_run_title: ' 🤖 YidaConnector - AI 会話モードが有効になりました! ',
|
|
256
|
+
first_run_welcome: ' {0}YidaConnector へようこそ!{1} クイックスタートガイドをご覧ください:',
|
|
257
|
+
first_run_way1_title: ' 📝 方法1:ニーズを直接説明する',
|
|
258
|
+
first_run_way1_desc: ' AI ツールのチャットで、作りたいものを直接伝えてください:',
|
|
259
|
+
first_run_prompt1: ' 「Yida で勤怠管理システムを作ってください」',
|
|
260
|
+
first_run_prompt2: ' 「CRM 顧客管理システムを作成してください」',
|
|
261
|
+
first_run_prompt3: ' 「個人給与計算アプリを構築してください」',
|
|
262
|
+
first_run_way2_title: ' 💡 方法2:詳細な要件を指定する',
|
|
263
|
+
first_run_prompt4: ' 「基本情報入力・部門承認・HR 登録を含む従業員オンボーディングフローを作成してください」',
|
|
264
|
+
first_run_examples_title: ' 📋 サンプルアプリ',
|
|
265
|
+
first_run_examples: ' 給与計算ツール • 誕生日お祝いアプリ • 企業ランディングページ',
|
|
266
|
+
first_run_tips_title: ' 🔧 はじめに',
|
|
267
|
+
first_run_tip1: ' 1. {0}yidaconnector env{1} を実行して環境とログイン状態を確認',
|
|
268
|
+
first_run_tip2: ' 2. {0}yidaconnector login{1} を実行してYida にログイン',
|
|
269
|
+
first_run_tip3: ' 3. AI ツールで作りたいアプリを説明してください 🚀',
|
|
270
|
+
first_run_footer1: ' 対応 AI ツール:Codex / Claude Code / Aone Copilot / Cursor / OpenCode',
|
|
271
|
+
first_run_footer2: ' 📚 ドキュメント:https://github.com/bunnyrui/yidaconnector',
|
|
272
|
+
first_run_footer3: ' (このガイドは初回起動時のみ表示されます。yidaconnector --help で全コマンドを確認できます)',
|
|
273
|
+
},
|
|
274
|
+
|
|
275
|
+
// ── lib/integration/integration-check.js ─────────
|
|
276
|
+
integration_check: {
|
|
277
|
+
result_sheet: 'Result',
|
|
278
|
+
header_app: 'App',
|
|
279
|
+
header_form_title: 'Form name',
|
|
280
|
+
header_form_uuid: 'Form ID',
|
|
281
|
+
header_flow_name: 'Automation name',
|
|
282
|
+
header_process_code: 'Automation ID',
|
|
283
|
+
header_flow_status: 'Automation status',
|
|
284
|
+
header_event_name: 'Trigger event',
|
|
285
|
+
header_last_action: 'Last action',
|
|
286
|
+
header_modifier: 'Modifier',
|
|
287
|
+
header_modified_time: 'Modified time',
|
|
288
|
+
header_abnormal_log_count: 'Abnormal log count',
|
|
289
|
+
header_proc_inst_id: 'Run instance ID',
|
|
290
|
+
header_form_inst_id: 'Form instance ID',
|
|
291
|
+
header_execution_status: 'Execution status',
|
|
292
|
+
header_exception: 'Exception',
|
|
293
|
+
header_diagnosis: 'Diagnosis',
|
|
294
|
+
header_recommendation: 'Recommendation',
|
|
295
|
+
header_start_time: 'Start time',
|
|
296
|
+
header_finish_time: 'Finish time',
|
|
297
|
+
header_elapsed_ms: 'Elapsed (ms)',
|
|
298
|
+
no_abnormal: 'No abnormal execution logs found',
|
|
299
|
+
app_failed: 'App check failed: {0}',
|
|
300
|
+
summary: 'Check complete: {0} apps, {1} automations, {2} with abnormal logs',
|
|
301
|
+
apps_failed: '{0} app(s) failed to check. See JSON output or error summary for details.',
|
|
302
|
+
no_logs: 'No abnormal execution logs found.',
|
|
303
|
+
usage: 'yidaconnector integration check <appType...> [--json] [--output result.xlsx] [--no-progress] [--flow-types 1,2,3,5,6] [--log-page-size 10] [--max-log-pages 1]',
|
|
304
|
+
example: 'yidaconnector integration check APP_XXX --output project/output/automation-errors.xlsx',
|
|
305
|
+
missing_app: 'Missing appType. Usage: yidaconnector integration check <appType...>',
|
|
306
|
+
banner_title: 'Check integration automation abnormal logs',
|
|
307
|
+
status_filter: 'Execution status filter: {0}',
|
|
308
|
+
checking_app: 'Checking app: {0}',
|
|
309
|
+
progress: 'Progress {0}{1}',
|
|
310
|
+
current: ', current: {0}',
|
|
311
|
+
excel_exported: 'Excel exported: {0}',
|
|
312
|
+
},
|
|
313
|
+
|
|
314
|
+
// ── lib/update.js ──────────────────────────────────
|
|
315
|
+
update: {
|
|
316
|
+
checking: '最新バージョンを確認中...',
|
|
317
|
+
fetch_failed: '最新バージョン情報を取得できませんでした。ネットワーク接続を確認してください',
|
|
318
|
+
already_latest: 'すでに最新バージョン({0})です。更新は不要です',
|
|
319
|
+
found_new_version: '新しいバージョンが見つかりました: {0}(現在: {1})',
|
|
320
|
+
installing: 'yidaconnector@latest をインストール中...',
|
|
321
|
+
success: '更新成功!現在のバージョン: {0}',
|
|
322
|
+
install_failed: '更新に失敗しました: {0}',
|
|
323
|
+
manual_hint: '手動で実行してください: npm install -g yidaconnector@latest',
|
|
324
|
+
available: '更新あり',
|
|
325
|
+
up_to_date: '最新',
|
|
326
|
+
label_install: 'Install',
|
|
327
|
+
label_channel: 'Channel',
|
|
328
|
+
label_version: 'Version',
|
|
329
|
+
label_update: 'Update',
|
|
330
|
+
done: '更新完了!',
|
|
331
|
+
done_hint: 'yidaconnector --version で新しいバージョンを確認してください',
|
|
332
|
+
},
|
|
333
|
+
|
|
334
|
+
// ── lib/env.js ─────────────────────────────────────
|
|
335
|
+
env: {
|
|
336
|
+
title: ' yidaconnector env - 環境検出',
|
|
337
|
+
system_info: '\n📋 システム情報',
|
|
338
|
+
os: ' OS: {0} ({1})',
|
|
339
|
+
node: ' Node.js: {0}',
|
|
340
|
+
home: ' ホームディレクトリ: {0}',
|
|
341
|
+
cwd: ' 作業ディレクトリ: {0}',
|
|
342
|
+
ai_tools: '\n🤖 AI ツール検出',
|
|
343
|
+
no_tools: ' ⚠️ 既知の AI ツールが検出されませんでした',
|
|
344
|
+
tool_active_ready: '← アクティブ、プロジェクト準備完了',
|
|
345
|
+
tool_active_no_project: '← アクティブ、ただし project ディレクトリなし',
|
|
346
|
+
tool_installed_has_project: '(インストール済み、プロジェクトあり、非アクティブ)',
|
|
347
|
+
tool_installed: '(インストール済み、非アクティブ)',
|
|
348
|
+
active_env: '\n🎯 現在の有効環境',
|
|
349
|
+
ai_tool_label: ' AI ツール: {0}',
|
|
350
|
+
project_root_label: ' プロジェクトルート: {0}',
|
|
351
|
+
active_no_project: ' AI ツール: {0}(アクティブ、ただし project ディレクトリなし)',
|
|
352
|
+
no_active_tool: ' AI ツール: アクティブなツールが検出されませんでした',
|
|
353
|
+
project_fallback: ' プロジェクトルート: {0}(フォールバック)',
|
|
354
|
+
login_status: '\n🔐 ログイン状態',
|
|
355
|
+
logged_in: ' 状態: ✅ ログイン済み',
|
|
356
|
+
base_url_label: ' ドメイン: {0}',
|
|
357
|
+
corp_id_label: ' 組織 ID: {0}',
|
|
358
|
+
user_id_label: ' ユーザー ID: {0}',
|
|
359
|
+
csrf_label: ' csrf_token: {0}...',
|
|
360
|
+
not_logged_in: ' 状態: ❌ 未ログイン(yidaconnector login を実行してログインしてください)',
|
|
361
|
+
unknown: '(不明)',
|
|
362
|
+
},
|
|
363
|
+
|
|
364
|
+
// ── lib/login.js ───────────────────────────────────
|
|
365
|
+
login: {
|
|
366
|
+
title: ' yidaconnector login - Yida ログインツール',
|
|
367
|
+
logout_title: ' yidaconnector logout - Yida ログアウトツール',
|
|
368
|
+
cookie_file_label: '\n Cookie ファイル: {0}',
|
|
369
|
+
logout_success: ' ✅ Cookie をクリアしました。ログインセッションが無効になりました。',
|
|
370
|
+
logout_hint: ' 次回 yidaconnector login を実行すると QR コードスキャンが開始されます。',
|
|
371
|
+
logout_no_file: ' ℹ️ Cookie ファイルが存在しません。クリア不要です。',
|
|
372
|
+
using_cache: '🔍 ローカルの Cookie が見つかりました。直接使用します...',
|
|
373
|
+
csrf_ok: ' ✅ csrf_token: {0}...',
|
|
374
|
+
corp_id_ok: ' ✅ corpId: {0}',
|
|
375
|
+
no_playwright: '\n❌ ローカルブラウザログインは Chrome/Edge/Chromium CDP を優先します。現在 CDP が利用できず、Playwright フォールバックも見つかりません。通常は yidaconnector login または yidaconnector login --qr を使用してください。ローカルブラウザログインが必要な場合のみインストールしてください:',
|
|
376
|
+
playwright_install1: ' npm install -g playwright',
|
|
377
|
+
playwright_install2: ' npx playwright install chromium',
|
|
378
|
+
browser_opening: '\n🔐 ブラウザを開いて QR コードログインを開始します...',
|
|
379
|
+
login_url_label: ' ログイン URL: {0}',
|
|
380
|
+
waiting_login: ' ログイン完了を待機中(最大 10 分)...',
|
|
381
|
+
login_timeout: ' ⏰ ログインがタイムアウトしました(10 分)。再試行してください。',
|
|
382
|
+
login_success: ' ✅ ログインに成功しました!',
|
|
383
|
+
no_csrf_in_cookie: ' ❌ ログインは成功しましたが Cookie に tianshu_csrf_token がありません。再試行してください。',
|
|
384
|
+
no_cookie_cache: ' ❌ 有効なローカル Cookie がありません。再ログインが必要です。',
|
|
385
|
+
no_csrf_in_cache: ' ❌ Cookie に tianshu_csrf_token がありません。再ログインが必要です。',
|
|
386
|
+
csrf_extracted: ' ✅ csrf_token を取得しました: {0}...',
|
|
387
|
+
trigger_login: '\n🔐 ログインセッションが期限切れです。ブラウザで QR コードログインを開始します...\n',
|
|
388
|
+
csrf_refresh: '\n🔄 csrf_token が期限切れです。Cookie から再取得中...\n',
|
|
389
|
+
},
|
|
390
|
+
|
|
391
|
+
// ── lib/auth.js ────────────────────────────────────
|
|
392
|
+
auth: {
|
|
393
|
+
status_title: ' yidaconnector auth status - ログイン状態照会',
|
|
394
|
+
not_logged_in: ' 状態: ❌ 未ログイン',
|
|
395
|
+
login_hint: ' ヒント: yidaconnector auth login を実行してログインしてください',
|
|
396
|
+
no_csrf_token: ' 状態: ❌ ログイン状態が無効(csrf_token なし)',
|
|
397
|
+
relogin_hint: ' ヒント: yidaconnector auth login で再ログインしてください',
|
|
398
|
+
logged_in: ' 状態: ✅ ログイン済み',
|
|
399
|
+
base_url_label: ' ドメイン: {0}',
|
|
400
|
+
corp_id_label: ' 組織 ID: {0}',
|
|
401
|
+
user_id_label: ' ユーザー ID: {0}',
|
|
402
|
+
csrf_label: ' csrf_token: {0}...',
|
|
403
|
+
login_type_label: ' ログイン方法: {0}',
|
|
404
|
+
login_time_label: ' ログイン時刻: {0}',
|
|
405
|
+
login_start: '\n🔐 ログイン開始(方法: {0})...',
|
|
406
|
+
login_success: '\n✅ ログイン成功!',
|
|
407
|
+
corp_id_ok: ' ✅ corpId: {0}',
|
|
408
|
+
refresh_start: '\n🔄 ログイン状態を更新中...',
|
|
409
|
+
no_cookie_cache: ' ❌ ローカル Cookie キャッシュなし、更新できません',
|
|
410
|
+
no_csrf_in_cache: ' ❌ Cookie に csrf_token なし、再ログインが必要',
|
|
411
|
+
refresh_success: ' ✅ ログイン状態を更新しました!',
|
|
412
|
+
csrf_ok: ' ✅ csrf_token: {0}...',
|
|
413
|
+
auth_config_cleared: ' ✅ 認証設定をクリアしました',
|
|
414
|
+
},
|
|
415
|
+
|
|
416
|
+
// ── lib/org.js ─────────────────────────────────────
|
|
417
|
+
org: {
|
|
418
|
+
list_title: ' yidaconnector org list - 組織一覧',
|
|
419
|
+
no_corp_id: ' ❌ 現在の組織 ID を取得できません、先にログインしてください',
|
|
420
|
+
current_org: '現在の組織',
|
|
421
|
+
current: '現在',
|
|
422
|
+
no_organizations: ' ⚠️ 組織情報がありません',
|
|
423
|
+
switch_title: ' yidaconnector org switch - 組織切り替え',
|
|
424
|
+
switch_from: ' 現在の組織: {0}',
|
|
425
|
+
switch_to: ' 切り替え先: {0}',
|
|
426
|
+
already_in_org: ' ✅ 既にターゲット組織にいます',
|
|
427
|
+
step1: '\n Step 1: 切り替えリクエストを開始...',
|
|
428
|
+
step2: ' Step 2: 切り替えを確認...',
|
|
429
|
+
step3: ' Step 3: 新しい認証情報を取得...',
|
|
430
|
+
redirect: ' Step 4: リダイレクトを追跡 ({0})...',
|
|
431
|
+
switch_failed_no_csrf: ' ❌ 切り替え失敗: 新しい csrf_token を取得できません',
|
|
432
|
+
switch_success: '\n ✅ 組織の切り替えに成功しました!',
|
|
433
|
+
new_corp_id: ' 新しい組織 ID: {0}',
|
|
434
|
+
new_csrf: ' csrf_token: {0}...',
|
|
435
|
+
switch_error: ' ❌ 切り替え失敗: {0}',
|
|
436
|
+
only_one_org: ' ⚠️ 利用可能な組織が1つしかありません',
|
|
437
|
+
select_prompt: '\n 切り替える組織を選択:',
|
|
438
|
+
use_corp_id_hint: '\n 💡 ヒント: --corp-id オプションでターゲット組織を指定',
|
|
439
|
+
no_login: '❌ 未ログイン、先に yidaconnector login を実行してください',
|
|
440
|
+
switched_org: '切り替え後の組織',
|
|
441
|
+
unknown: '不明',
|
|
442
|
+
},
|
|
443
|
+
|
|
444
|
+
// ── lib/create-app.js ──────────────────────────────
|
|
445
|
+
create_app: {
|
|
446
|
+
title: ' yidaconnector create-app - Yida アプリ作成ツール',
|
|
447
|
+
usage: 'Usage: yidaconnector create-app "<appName>" [description] [icon] [iconColor] [themeColor] または yidaconnector create-app --name "<appName>" [--desc "..."] [--theme deepBlue]',
|
|
448
|
+
example: '例: yidaconnector create-app --name "勤怠管理" --desc "従業員勤怠システム" --theme deepBlue',
|
|
449
|
+
available_icons: '\n利用可能なアイコン:',
|
|
450
|
+
icons_list: ' xian-xinwen, xian-zhengfu, xian-yingyong, xian-xueshimao, xian-qiye,\n xian-danju, xian-shichang, xian-jingli, xian-falv, xian-baogao,\n huoche, xian-shenbao, xian-diqiu, xian-qiche, xian-feiji,\n xian-diannao, xian-gongzuozheng, xian-gouwuche, xian-xinyongka,\n xian-huodong, xian-jiangbei, xian-liucheng, xian-chaxun, xian-daka',
|
|
451
|
+
available_colors: '\n利用可能な色:',
|
|
452
|
+
colors_list: ' #0089FF #00B853 #FFA200 #FF7357 #5C72FF\n #85C700 #FFC505 #FF6B7A #8F66FF #14A9FF',
|
|
453
|
+
app_name: ' アプリ名: {0}',
|
|
454
|
+
app_desc: ' 説明: {0}',
|
|
455
|
+
app_icon: ' アイコン: {0} ({1})',
|
|
456
|
+
app_theme: ' テーマ: colour={0} navTheme={1} layout={2}',
|
|
457
|
+
step_create: '\n📦 Step 2: アプリを作成\n',
|
|
458
|
+
success: ' ✅ アプリが正常に作成されました!',
|
|
459
|
+
app_type_label: ' appType: {0}',
|
|
460
|
+
corp_id_label: ' corpId: {0}',
|
|
461
|
+
url_label: ' URL: {0}',
|
|
462
|
+
failed: ' ❌ 作成に失敗しました: {0}',
|
|
463
|
+
prd_config_title: '## アプリ設定',
|
|
464
|
+
prd_config_key: '設定項目',
|
|
465
|
+
prd_config_value: '値',
|
|
466
|
+
prd_not_found: '\n ⚠️ PRD ドキュメントが見つかりません。corpId の更新をスキップします',
|
|
467
|
+
prd_updated: ' ✅ PRD ドキュメントを更新しました: {0}',
|
|
468
|
+
prd_update_failed: ' ⚠️ PRD ドキュメントの更新に失敗しました: {0}',
|
|
469
|
+
},
|
|
470
|
+
|
|
471
|
+
// ── lib/create-page.js ─────────────────────────────
|
|
472
|
+
create_page: {
|
|
473
|
+
title: ' yidaconnector create-page - Yida カスタムページ作成ツール',
|
|
474
|
+
usage: 'Usage: yidaconnector create-page <appType> "<pageName>" [--mode dashboard]',
|
|
475
|
+
example: '例: yidaconnector create-page "APP_XXX" "Dashboard" --mode dashboard',
|
|
476
|
+
app_id: ' アプリ ID: {0}',
|
|
477
|
+
page_name: ' ページ名: {0}',
|
|
478
|
+
step_create: '\n📄 Step 2: カスタムページを作成\n',
|
|
479
|
+
sending: ' saveFormSchemaInfo リクエストを送信中...',
|
|
480
|
+
success: ' ✅ ページが正常に作成されました!',
|
|
481
|
+
step_dashboard_config: '\n🖥️ Step 3: ダッシュボード全画面モードを設定',
|
|
482
|
+
dashboard_config_ok: ' ✅ ダッシュボードモードを設定しました: 上部ナビを非表示にし、chromeless custom URL を出力します',
|
|
483
|
+
dashboard_config_failed: ' ⚠️ ダッシュボードモード設定に失敗しました: {0}',
|
|
484
|
+
err_mode_invalid: 'Unsupported page mode: {0}',
|
|
485
|
+
mode_hint: 'Available modes: default, dashboard',
|
|
486
|
+
page_id_label: ' pageId: {0}',
|
|
487
|
+
url_label: ' URL: {0}',
|
|
488
|
+
failed: ' ❌ 作成に失敗しました: {0}',
|
|
489
|
+
},
|
|
490
|
+
|
|
491
|
+
// ── lib/get-schema.js ──────────────────────────────
|
|
492
|
+
get_schema: {
|
|
493
|
+
title: ' yidaconnector get-schema - Yida フォーム Schema 取得ツール',
|
|
494
|
+
usage: 'Usage: yidaconnector get-schema <appType> <formUuid>',
|
|
495
|
+
example: '例: yidaconnector get-schema "APP_XXX" "FORM-XXX"',
|
|
496
|
+
app_id: ' アプリ ID: {0}',
|
|
497
|
+
form_uuid: ' フォーム UUID: {0}',
|
|
498
|
+
step_get: '\n📄 Step 2: フォーム Schema を取得',
|
|
499
|
+
sending: ' getFormSchema リクエストを送信中...',
|
|
500
|
+
success: ' ✅ Schema の取得に成功しました!',
|
|
501
|
+
failed: ' ❌ Schema の取得に失敗しました: {0}',
|
|
502
|
+
},
|
|
503
|
+
|
|
504
|
+
// ── lib/create-form.js ─────────────────────────────
|
|
505
|
+
create_form: {
|
|
506
|
+
create_title: ' yida-create-form-page - Yida フォームページ作成ツール',
|
|
507
|
+
update_title: ' yida-create-form-page - Yida フォームページ更新ツール',
|
|
508
|
+
app_id: '\n アプリ ID: {0}',
|
|
509
|
+
form_title: ' フォーム名: {0}',
|
|
510
|
+
form_uuid: ' フォーム UUID: {0}',
|
|
511
|
+
form_uuid_input: ' フォーム UUID: {0}',
|
|
512
|
+
fields_def: ' フィールド定義: {0}',
|
|
513
|
+
changes_def: ' 変更定義: {0}',
|
|
514
|
+
step_read_fields: '\n📋 Step {0}: フィールド定義を読み込む',
|
|
515
|
+
fields_loaded: ' ✅ {0} 個のフィールド定義を読み込みました',
|
|
516
|
+
pc_columns: ' PC 列数: {0}',
|
|
517
|
+
step_fields: '\n📋 Step 2: フィールド定義を読み込む',
|
|
518
|
+
columns: ' PC 列数: {0}',
|
|
519
|
+
step_create_blank: '\n📄 Step {0}: 空白フォームを作成',
|
|
520
|
+
step_create_form: '\n📄 Step 3: 空白フォームを作成',
|
|
521
|
+
sending_create: ' saveFormSchemaInfo リクエストを送信中...',
|
|
522
|
+
blank_created: ' ✅ 空白フォームを作成しました: {0}',
|
|
523
|
+
create_blank_failed: ' ❌ 空白フォームの作成に失敗しました: {0}',
|
|
524
|
+
form_created: ' ✅ 空白フォームを作成しました: {0}',
|
|
525
|
+
create_failed: ' ❌ 空白フォームの作成に失敗しました: {0}',
|
|
526
|
+
no_corp_id_warning: ' ⚠️ 警告: corpId を取得できませんでした。SerialNumberField の formula が正常に動作しない可能性があります',
|
|
527
|
+
no_corp_id: ' ⚠️ 警告: corpId を取得できませんでした。SerialNumberField の formula が正常に動作しない可能性があります',
|
|
528
|
+
corp_id_ok: ' ✅ corpId: {0}',
|
|
529
|
+
step_save_schema: '\n📝 Step {0}: フォーム Schema を保存',
|
|
530
|
+
sending_save: ' saveFormSchema リクエストを送信中...',
|
|
531
|
+
schema_saved: ' ✅ Schema の保存に成功しました!',
|
|
532
|
+
save_success: ' ✅ Schema の保存に成功しました!',
|
|
533
|
+
current_version: ' 現在のバージョン: {0}',
|
|
534
|
+
version_label: ' 現在のバージョン: {0}',
|
|
535
|
+
save_schema_failed: '\n❌ Schema の保存に失敗しました: {0}',
|
|
536
|
+
save_failed: '\n❌ Schema の保存に失敗しました: {0}',
|
|
537
|
+
step_update_config: '\n⚙️ Step {0}: フォーム設定を更新',
|
|
538
|
+
sending_config: ' updateFormConfig リクエストを送信中...',
|
|
539
|
+
step_get_schema: '\n📄 Step {0}: 現在のフォーム Schema を取得',
|
|
540
|
+
sending_get_schema: ' getFormSchema リクエストを送信中...',
|
|
541
|
+
sending_get: ' getFormSchema リクエストを送信中...',
|
|
542
|
+
get_schema_failed: ' ❌ フォーム Schema の取得に失敗しました: {0}',
|
|
543
|
+
get_failed: ' ❌ フォーム Schema の取得に失敗しました: {0}',
|
|
544
|
+
schema_empty_init: ' ⚠️ Schema が空です。基本フォームテンプレートで初期化します',
|
|
545
|
+
schema_empty: ' ⚠️ Schema が空です。基本フォームテンプレートで初期化します',
|
|
546
|
+
schema_got_fields: ' ✅ Schema を取得しました。現在 {0} 個のフィールドがあります:',
|
|
547
|
+
schema_got_empty: ' ✅ Schema を取得しました(フィールドなし)',
|
|
548
|
+
schema_success_with_fields: ' ✅ Schema を取得しました。現在 {0} 個のフィールドがあります:',
|
|
549
|
+
schema_success_no_fields: ' ✅ Schema を取得しました(フィールドなし)',
|
|
550
|
+
step_read_changes: '\n📋 Step {0}: 変更定義を読み込む',
|
|
551
|
+
changes_loaded: ' ✅ {0} 件の変更操作を読み込みました',
|
|
552
|
+
action_add: '追加',
|
|
553
|
+
action_delete: '削除',
|
|
554
|
+
action_update: '更新',
|
|
555
|
+
step_apply_changes: '\n🔧 Step {0}: 変更を適用',
|
|
556
|
+
step_apply: '\n🔧 Step 4: 変更を適用',
|
|
557
|
+
request_timeout: ' ❌ リクエストがタイムアウトしました',
|
|
558
|
+
create_success: ' ✅ フォームが正常に作成されました!',
|
|
559
|
+
update_success: ' ✅ フォームが正常に更新されました!',
|
|
560
|
+
form_uuid_label: ' formUuid: {0}',
|
|
561
|
+
url_label: ' URL: {0}',
|
|
562
|
+
config_updated_0: ' 設定を更新しました: MINI_RESOURCE = 0',
|
|
563
|
+
config_updated: ' 設定を更新しました: MINI_RESOURCE = 0',
|
|
564
|
+
changes_applied: ' 適用した変更: {0} 件',
|
|
565
|
+
config_failed: ' ⚠️ 設定の更新に失敗しました: {0}',
|
|
566
|
+
schema_ok_config_failed: ' Schema は保存されましたが、設定の更新に失敗しました',
|
|
567
|
+
schema_saved_config_failed: ' Schema は保存されましたが、設定の更新に失敗しました',
|
|
568
|
+
error: '\n❌ エラー: {0}',
|
|
569
|
+
usage_create: '使用方法: yidaconnector create-form create <appType> <formTitle> <fieldsJsonFile>',
|
|
570
|
+
example_create: '例: yidaconnector create-form create "APP_XXX" "従業員情報" .cache/yidaconnector/forms/employee-fields.json',
|
|
571
|
+
usage_update: '使用方法: yidaconnector create-form update <appType> <formUuid> <changesJsonOrFile>',
|
|
572
|
+
example_update: '例: yidaconnector create-form update "APP_XXX" "FORM-YYY" \'[{"action":"add","field":{"type":"TextField","label":"備考"}}]\'',
|
|
573
|
+
usage_label: '使用方法:',
|
|
574
|
+
usage_create_short: ' 作成: yidaconnector create-form create <appType> <formTitle> <fieldsJsonFile>',
|
|
575
|
+
usage_update_short: ' 更新: yidaconnector create-form update <appType> <formUuid> <changesJsonOrFile>',
|
|
576
|
+
example_label: '\n例:',
|
|
577
|
+
fields_file_not_found: ' ❌ フィールド定義ファイルが見つかりません: ',
|
|
578
|
+
fields_format_invalid: 'フィールド定義の形式が正しくありません',
|
|
579
|
+
fields_must_be_array: 'フィールド定義は空でない配列である必要があります',
|
|
580
|
+
fields_parse_failed: ' ❌ フィールド定義の解析に失敗しました: ',
|
|
581
|
+
changes_file_not_found: ' ❌ 変更定義ファイルが見つかりません: ',
|
|
582
|
+
changes_must_be_array: '変更定義は空でない配列である必要があります',
|
|
583
|
+
changes_parse_failed: ' ❌ 変更定義の解析に失敗しました: ',
|
|
584
|
+
no_components_tree: ' ❌ Schema に componentsTree が見つかりません',
|
|
585
|
+
no_form_container: ' ❌ Schema に FormContainer が見つかりません',
|
|
586
|
+
add_missing_field: ' - field.type または field.label が不足しています。スキップします',
|
|
587
|
+
add_after_ok: ' - 「{0}」の後にフィールド「{1}」({2})を追加しました',
|
|
588
|
+
add_after_not_found: ' - 「{0}」が見つかりません。フィールド「{1}」を末尾に追加しました',
|
|
589
|
+
add_before_ok: ' - 「{0}」の前にフィールド「{1}」({2})を追加しました',
|
|
590
|
+
add_before_not_found: ' - 「{0}」が見つかりません。フィールド「{1}」を末尾に追加しました',
|
|
591
|
+
add_ok: ' - フィールド「{0}」({1})を追加しました',
|
|
592
|
+
delete_missing_label: ' - label が不足しています。スキップします',
|
|
593
|
+
delete_ok: ' - フィールド「{0}」を削除しました',
|
|
594
|
+
delete_not_found: ' - フィールド「{0}」が見つかりません。削除をスキップします',
|
|
595
|
+
update_missing_label: ' - label が不足しています。スキップします',
|
|
596
|
+
update_missing_changes: ' - changes が不足しています。スキップします',
|
|
597
|
+
update_table_not_found: ' - サブテーブル「{0}」が見つかりません。更新をスキップします',
|
|
598
|
+
update_not_table: ' - 「{0}」は有効なサブテーブルフィールドではありません。スキップします',
|
|
599
|
+
in_table: 'サブテーブル「{0}」内の',
|
|
600
|
+
update_ok: ' - {0}フィールド「{1}」のプロパティを更新しました: {2}',
|
|
601
|
+
update_not_found: ' - {0}フィールド「{1}」が見つかりません。更新をスキップします',
|
|
602
|
+
unknown_action: ' - 不明な操作タイプ「{0}」。スキップします',
|
|
603
|
+
filling_rule_resolved: ' 🔗 回填ルール解決: @label:{0} → {1}',
|
|
604
|
+
filling_rule_failed: ' ⚠️ 回填ルール解決失敗: ラベル「{0}」のフィールドが見つかりません。フィールド名を確認してください',
|
|
605
|
+
table_filling_rule: ' 📋 サブテーブル回填ルール処理 [{0}]: tableId={1}',
|
|
606
|
+
table_rule_resolved: ' 🔗 サブテーブルルール解決 [{0}]: @label:{1} → {2}',
|
|
607
|
+
table_rule_failed: ' ⚠️ サブテーブルルール解決失敗: ラベル「{0}」のフィールドが見つかりません。フィールド名を確認してください',
|
|
608
|
+
serial_number_formula_set: ' 🔢 SerialNumberField「{0}」formula を設定しました',
|
|
609
|
+
schema_extract_failed: ' ❌ レスポンスから Schema を抽出できません',
|
|
610
|
+
schema_response_structure: ' レスポンス構造: {0}',
|
|
611
|
+
schema_parse_failed: 'Schema 構造を解析できません',
|
|
612
|
+
action_label: '操作 {0}: {1}',
|
|
613
|
+
step_check_data: '\n🔍 ステップ {0}: フォームに既存データがあるか確認',
|
|
614
|
+
data_exists_warning: ' ⚠️ このフォームには既に {0} 件のレコードがあります!構造の変更により以下が発生する可能性があります:',
|
|
615
|
+
data_exists_impact: ' - 過去データの消失または破損\n - プロセスステータスの異常\n - データの不整合',
|
|
616
|
+
data_exists_abort: ' ❌ 変更を中止しました。続行するには --force を追加してください。',
|
|
617
|
+
data_exists_confirm_message: 'このフォームには {0} 件の既存レコードがあります。構造の変更は既存データに影響する可能性があります。確認するには --force を追加してください。',
|
|
618
|
+
data_exists_force_hint: '使用法: yidaconnector create-form update <appType> <formUuid> <changesJson> --force',
|
|
619
|
+
data_exists_force_proceed: ' ⚠️ --force モード: 確認をスキップし、{0} 件の既存レコードがあるフォーム構造を強制変更',
|
|
620
|
+
data_check_empty: ' ✅ フォームにデータがありません。安全に変更できます',
|
|
621
|
+
data_check_failed: ' ⚠️ データ確認に失敗しました。変更を続行します',
|
|
622
|
+
},
|
|
623
|
+
common: {
|
|
624
|
+
http_status: ' HTTP ステータス: {0}',
|
|
625
|
+
http_response: ' HTTP レスポンス: {0}',
|
|
626
|
+
response_body: ' レスポンス内容: {0}',
|
|
627
|
+
response_detail: ' レスポンス詳細: {0}',
|
|
628
|
+
response_not_json: 'レスポンスが JSON ではありません',
|
|
629
|
+
login_expired: ' ログインセッション期限切れ: {0}',
|
|
630
|
+
csrf_expired: ' CSRF トークン期限切れ: {0}',
|
|
631
|
+
csrf_refreshed: ' csrf_token を更新しました',
|
|
632
|
+
request_timeout: ' ❌ リクエストタイムアウト',
|
|
633
|
+
request_failed: 'リクエスト失敗',
|
|
634
|
+
request_failed_label: ' ❌ リクエスト失敗',
|
|
635
|
+
unknown_error: '不明なエラー',
|
|
636
|
+
step_login: '\n🔑 Step 1: ログイン情報を読み込む',
|
|
637
|
+
step_login_label: '\n🔑 ログイン情報を読み込む',
|
|
638
|
+
no_login_cache: ' ⚠️ ローカルのログイン情報が見つかりません。ログインを開始します...',
|
|
639
|
+
login_no_cache: ' ⚠️ ローカルのログイン情報が見つかりません。ログインを開始します...',
|
|
640
|
+
login_ready: ' ✅ ログイン情報が準備できました({0})',
|
|
641
|
+
resend: ' 🔄 リクエストを再送信中...',
|
|
642
|
+
resend_csrf: ' 🔄 リクエストを再送信中(csrf_token を更新済み)...',
|
|
643
|
+
relogin_retry: ' 🔄 再ログイン後にリクエストを再送信中...',
|
|
644
|
+
exception: '\n❌ 例外: {0}',
|
|
645
|
+
yes: 'はい',
|
|
646
|
+
no: 'いいえ',
|
|
647
|
+
empty: '(空)',
|
|
648
|
+
},
|
|
649
|
+
|
|
650
|
+
// ── lib/export-app.js ──────────────────────────────
|
|
651
|
+
export: {
|
|
652
|
+
usage: '使用方法: yidaconnector export <appType> [output]',
|
|
653
|
+
example1: '例: yidaconnector export APP_XXXXXXXXXXXXX',
|
|
654
|
+
example2: ' yidaconnector export APP_XXXXXXXXXXXXX ./my-app-backup.json',
|
|
655
|
+
title: ' yidaconnector export - Yida アプリエクスポートツール',
|
|
656
|
+
app_id: '\n アプリ ID: {0}',
|
|
657
|
+
output_file: ' 出力ファイル: {0}',
|
|
658
|
+
step_get_forms: '\n📋 Step 2: アプリのフォームリストを取得',
|
|
659
|
+
no_forms: ' ⚠️ フォームページが見つかりません。アプリ ID を確認してください。',
|
|
660
|
+
forms_found: ' ✅ {0} 個のフォームページが見つかりました',
|
|
661
|
+
step_export_schema: '\n📦 Step 3: フォーム Schema をエクスポート',
|
|
662
|
+
exporting: '\n エクスポート中: {0} ({1})',
|
|
663
|
+
export_ok: ' ✅ エクスポート成功',
|
|
664
|
+
export_failed: ' ⚠️ エクスポート失敗、スキップ',
|
|
665
|
+
step_write_file: '\n💾 Step 4: エクスポートファイルを書き込む',
|
|
666
|
+
done: ' ✅ エクスポート完了!',
|
|
667
|
+
success_count: ' 成功: {0} 個のフォーム',
|
|
668
|
+
fail_count: ' 失敗: {0} 個のフォーム(スキップ済み)',
|
|
669
|
+
fetch_forms_failed: 'フォームリストの取得に失敗しました',
|
|
670
|
+
unnamed_form: '名前のないフォーム',
|
|
671
|
+
},
|
|
672
|
+
|
|
673
|
+
// ── lib/import-app.js ──────────────────────────────
|
|
674
|
+
import: {
|
|
675
|
+
usage: '使用方法: yidaconnector import <file> [name]',
|
|
676
|
+
example1: '例: yidaconnector import ./yida-export.json',
|
|
677
|
+
example2: ' yidaconnector import ./yida-export.json "品質追跡システム(本番環境)"',
|
|
678
|
+
title: ' yidaconnector import - Yida アプリインポートツール',
|
|
679
|
+
import_file: '\n インポートファイル: {0}',
|
|
680
|
+
step_read_file: '\n📂 Step 1: エクスポートファイルを読み込む',
|
|
681
|
+
file_not_found: ' ❌ ファイルが見つかりません: {0}',
|
|
682
|
+
parse_failed: ' ❌ エクスポートファイルの解析に失敗しました: {0}',
|
|
683
|
+
invalid_format: ' ❌ エクスポートファイルの形式が無効です。yidaconnector export で生成してください。',
|
|
684
|
+
migration_suffix: '(移行済み)',
|
|
685
|
+
read_ok: ' ✅ 読み込み成功、合計 {0} 個のフォーム',
|
|
686
|
+
source_app_id: ' 移行元アプリ ID: {0}',
|
|
687
|
+
target_app_name: ' 移行先アプリ名: {0}',
|
|
688
|
+
step_create_app: '\n📦 Step 3: 新しいアプリを作成',
|
|
689
|
+
app_created: ' ✅ 新しいアプリを作成しました: {0}',
|
|
690
|
+
step_rebuild_forms: '\n🔨 Step 4: フォームページを再構築',
|
|
691
|
+
migrating: '\n 移行中: {0} ({1})',
|
|
692
|
+
blank_form_created: ' ✅ 空白フォームを作成しました: {0}',
|
|
693
|
+
create_form_failed: ' ❌ フォームの作成に失敗しました: {0}',
|
|
694
|
+
schema_empty: ' ⚠️ Schema が空です。スキップします',
|
|
695
|
+
schema_empty_msg: 'Schema が空です',
|
|
696
|
+
save_schema_failed: ' ❌ Schema の保存に失敗しました: {0}',
|
|
697
|
+
schema_saved: ' ✅ Schema を保存しました',
|
|
698
|
+
config_failed: ' ⚠️ 設定の更新に失敗しました(Schema は保存済み): {0}',
|
|
699
|
+
config_updated: ' ✅ フォーム設定を更新しました',
|
|
700
|
+
step_write_report: '\n📄 Step 5: 移行レポートを書き込む',
|
|
701
|
+
report_written: ' ✅ 移行レポートを書き込みました: {0}',
|
|
702
|
+
done: ' ✅ 移行完了!',
|
|
703
|
+
new_app_id: ' 新しいアプリ ID: {0}',
|
|
704
|
+
new_app_name: ' 新しいアプリ名: {0}',
|
|
705
|
+
app_url: ' URL: {0}',
|
|
706
|
+
success_count: ' 移行成功: {0} 個のフォーム',
|
|
707
|
+
fail_count: ' 失敗/スキップ: {0} 個のフォーム',
|
|
708
|
+
report_path: ' 移行レポート: {0}',
|
|
709
|
+
notice_label: '\n ⚠️ 注意事項:',
|
|
710
|
+
notice_association: ' - 関連フォーム(associationFormField)のクロスフォーム参照は移行レポートに基づいて手動で更新してください',
|
|
711
|
+
notice_custom_page: ' - カスタムページは yidaconnector publish を使って個別に再公開してください',
|
|
712
|
+
create_app_error: 'アプリの作成に失敗しました',
|
|
713
|
+
create_form_error: 'フォームの作成に失敗しました',
|
|
714
|
+
},
|
|
715
|
+
|
|
716
|
+
// ── lib/get-page-config.js ─────────────────────────
|
|
717
|
+
get_page_config: {
|
|
718
|
+
usage: '使用方法: yidaconnector get-page-config <appType> <formUuid>',
|
|
719
|
+
example: '例: yidaconnector get-page-config APP_XXX FORM-XXX',
|
|
720
|
+
title: ' get-page-config - Yida ページ設定照会ツール',
|
|
721
|
+
app_id: '\n アプリ ID: {0}',
|
|
722
|
+
form_uuid: ' フォーム UUID: {0}',
|
|
723
|
+
step_query: '\n🔍 Step 2: ページ設定を照会',
|
|
724
|
+
sending_request: ' getShareConfig リクエストを送信中...',
|
|
725
|
+
query_ok: ' ✅ 照会成功!',
|
|
726
|
+
open_url: ' 公開アクセス: {0}',
|
|
727
|
+
share_url: ' 組織内共有: {0}',
|
|
728
|
+
no_config: ' (公開アクセスまたは共有リンクが設定されていません)',
|
|
729
|
+
query_failed: ' ❌ 照会失敗: {0}',
|
|
730
|
+
},
|
|
731
|
+
|
|
732
|
+
// ── lib/save-share-config.js ───────────────────────
|
|
733
|
+
save_share_config: {
|
|
734
|
+
usage: '使用方法: yidaconnector save-share-config <appType> <formUuid> <openUrl> <isOpen> [openAuth]',
|
|
735
|
+
example: '例: yidaconnector save-share-config "APP_XXX" "FORM-XXX" "/o/xxx" "y" "n"',
|
|
736
|
+
is_open_hint: ' isOpen: y=公開アクセスを有効化, n=公開アクセスを無効化',
|
|
737
|
+
open_auth_hint: ' openAuth: y=認証が必要, n=認証不要(デフォルト)',
|
|
738
|
+
title: ' save-share-config - Yida 公開アクセス設定保存ツール',
|
|
739
|
+
app_id: '\n アプリ ID: {0}',
|
|
740
|
+
form_uuid: ' フォーム UUID: {0}',
|
|
741
|
+
open_url: ' 公開 URL: {0}',
|
|
742
|
+
is_open: ' 公開設定: {0}',
|
|
743
|
+
open_auth: ' 認証が必要: {0}',
|
|
744
|
+
step_validate: '\n📋 Step 0: パラメータを検証',
|
|
745
|
+
validate_ok: ' ✅ パラメータ検証通過',
|
|
746
|
+
validate_failed: ' ❌ 検証失敗: {0}',
|
|
747
|
+
step_save: '\n💾 Step 2: 公開アクセス設定を保存',
|
|
748
|
+
sending_request: ' saveShareConfig リクエストを送信中...',
|
|
749
|
+
save_ok: ' ✅ 設定の保存に成功しました!',
|
|
750
|
+
save_ok_msg: '公開アクセス設定を保存しました',
|
|
751
|
+
save_failed: ' ❌ 保存失敗: {0}',
|
|
752
|
+
save_failed_msg: '保存失敗',
|
|
753
|
+
err_is_open_invalid: 'isOpen は y または n でなければなりません。現在の値: {0}',
|
|
754
|
+
err_open_auth_invalid: 'openAuth は y または n でなければなりません。現在の値: {0}',
|
|
755
|
+
err_open_url_required: '公開アクセスを有効にする場合、openUrl は必須です',
|
|
756
|
+
err_open_url_prefix: 'openUrl は /o/ で始まる必要があります。現在の値: {0}',
|
|
757
|
+
err_open_url_chars: 'openUrl のパス部分は a-z A-Z 0-9 _ - と区切り文字 / のみ使用できます。現在の値: {0}',
|
|
758
|
+
},
|
|
759
|
+
|
|
760
|
+
// ── lib/update-form-config.js ──────────────────────
|
|
761
|
+
update_form_config: {
|
|
762
|
+
usage: '使用方法: yidaconnector update-form-config <appType> <formUuid> <isRenderNav> <title>',
|
|
763
|
+
example: '例: yidaconnector update-form-config "APP_XXX" "FORM_XXX" "false" "マイページ"',
|
|
764
|
+
params_label: 'パラメータ説明:',
|
|
765
|
+
param_is_render_nav: ' isRenderNav: true=トップナビを表示, false=トップナビを非表示',
|
|
766
|
+
param_title: ' title: ページタイトル(必須)',
|
|
767
|
+
title: ' update-form-config - Yida フォーム設定更新ツール',
|
|
768
|
+
app_id: '\n アプリ ID: {0}',
|
|
769
|
+
form_uuid: ' フォーム UUID: {0}',
|
|
770
|
+
is_render_nav: ' ナビ表示: {0}',
|
|
771
|
+
page_title: ' ページタイトル: {0}',
|
|
772
|
+
step_update: '\n💾 Step 2: フォーム設定を更新(トップナビを非表示)',
|
|
773
|
+
sending_request: ' updateFormSchemaInfo リクエストを送信中...',
|
|
774
|
+
update_ok: ' ✅ 設定の更新に成功しました!',
|
|
775
|
+
nav_shown: 'トップナビを表示しました',
|
|
776
|
+
nav_hidden: 'トップナビを非表示にしました',
|
|
777
|
+
update_failed: ' ❌ 更新失敗: {0}',
|
|
778
|
+
update_failed_msg: '更新失敗',
|
|
779
|
+
},
|
|
780
|
+
|
|
781
|
+
// ── lib/verify-short-url.js ────────────────────────
|
|
782
|
+
verify_short_url: {
|
|
783
|
+
usage: '使用方法: yidaconnector verify-short-url <appType> <formUuid> <url>',
|
|
784
|
+
example: '例: yidaconnector verify-short-url "APP_XXX" "FORM-XXX" "/o/aaa"',
|
|
785
|
+
formats_label: ' 対応フォーマット:',
|
|
786
|
+
format_open: ' /o/xxx - 公開アクセス(外部向け)',
|
|
787
|
+
format_share: ' /s/xxx - 組織内共有(内部向け)',
|
|
788
|
+
open_url_label: '公開アクセス URL',
|
|
789
|
+
share_url_label: '組織内共有 URL',
|
|
790
|
+
title: ' verify-short-url - Yida URL 検証ツール',
|
|
791
|
+
app_id: '\n アプリ ID: {0}',
|
|
792
|
+
form_uuid: ' フォーム UUID: {0}',
|
|
793
|
+
step_validate: '\n📋 Step 0: URL フォーマットを検証',
|
|
794
|
+
validate_ok: ' ✅ フォーマット検証通過',
|
|
795
|
+
validate_failed: ' ❌ 検証失敗: {0}',
|
|
796
|
+
step_verify: '\n🔍 Step 2: URL を検証',
|
|
797
|
+
sending_request: ' verifyShortUrl リクエストを送信中...',
|
|
798
|
+
url_available: ' ✅ URL は利用可能です!',
|
|
799
|
+
open_available_msg: 'この公開アクセス URL は利用可能です',
|
|
800
|
+
share_available_msg: 'この組織内共有 URL は利用可能です',
|
|
801
|
+
url_taken: ' ❌ URL は使用中です',
|
|
802
|
+
url_taken_msg: 'この短縮 URL はすでに使用されています',
|
|
803
|
+
verify_failed: ' ❌ 検証リクエスト失敗',
|
|
804
|
+
err_url_prefix: 'URL は /o/ または /s/ で始まる必要があります。現在の値: {0}',
|
|
805
|
+
err_url_chars: 'URL のパス部分は a-z A-Z 0-9 _ - と区切り文字 / のみ使用できます。現在の値: {0}',
|
|
806
|
+
err_url_empty: 'URL のパス部分が空です: {0}',
|
|
807
|
+
},
|
|
808
|
+
|
|
809
|
+
// ── lib/copy.js ────────────────────────────────────
|
|
810
|
+
copy: {
|
|
811
|
+
title: ' yidaconnector copy - Yida 作業ディレクトリを初期化',
|
|
812
|
+
package_root: '\n📦 パッケージルート: {0}',
|
|
813
|
+
dest_base: '🤖 ターゲットルート: {0}',
|
|
814
|
+
dest_root: '🤖 ターゲットルート: {0}',
|
|
815
|
+
dest_empty_flatten: '📂 ターゲットディレクトリが空のため、project/ の内容を直接コピーします(project/ サブディレクトリは作成しません)',
|
|
816
|
+
force_mode: '⚠️ --force モード:ターゲットディレクトリをクリアしてからコピーします',
|
|
817
|
+
no_package: '\n❌ yidaconnector パッケージディレクトリが見つかりません',
|
|
818
|
+
no_package_hint1: ' yidaconnector がグローバルにインストールされていることを確認してください:',
|
|
819
|
+
no_package_hint2: ' npm install -g yidaconnector',
|
|
820
|
+
no_ai_tool: '\n❌ アクティブな AI ツール環境が検出されませんでした\n 対応ツール:悟空、Codex、OpenCode、Claude Code、Aone Copilot、Cursor、Qoder\n\n 現在の検出結果:',
|
|
821
|
+
no_active_tool: '\n❌ アクティブな AI ツール環境が検出されませんでした',
|
|
822
|
+
supported_tools: ' 対応ツール:悟空、Codex、OpenCode、Claude Code、Aone Copilot、Cursor、Qoder',
|
|
823
|
+
current_result: '\n 現在の検出結果:',
|
|
824
|
+
force_hint: '\n 現在のディレクトリに強制コピーするには、次を実行してください:\n yidaconnector copy --force',
|
|
825
|
+
force_cmd: ' yidaconnector copy --force',
|
|
826
|
+
copying: ' コピー: {0}',
|
|
827
|
+
copying_label: '\n📂 {0} をコピー中...',
|
|
828
|
+
creating_symlink: '\n📂 yida-skills/ シンボリックリンクを作成中...',
|
|
829
|
+
file_copied: ' コピー: {0}',
|
|
830
|
+
cleared: ' 🗑️ クリア: {0}',
|
|
831
|
+
symlink_removed: ' 🗑️ 古いシンボリックリンクを削除: {0}',
|
|
832
|
+
old_symlink_removed: ' 🗑️ 古いシンボリックリンクを削除: {0}',
|
|
833
|
+
dir_deleted: ' 🗑️ ディレクトリを削除: {0}',
|
|
834
|
+
removed: ' 🗑️ 削除: {0}',
|
|
835
|
+
symlink_created: ' 🔗 シンボリックリンク: {0} -> {1}',
|
|
836
|
+
symlink_label: 'シンボリックリンク',
|
|
837
|
+
done: '✅ 完了!',
|
|
838
|
+
files_copied: ' コピーしたファイル: {0} 個',
|
|
839
|
+
files_count: '{0} ファイル',
|
|
840
|
+
symlinks_created: ' 作成したシンボリックリンク: {0} 個',
|
|
841
|
+
wukong_skills_cleanup: '\n🗑️ 悟空環境:yida-skills/ シンボリックリンクを削除中(悟空はスキルを手動アップロードするため、シンボリックリンク不要)...',
|
|
842
|
+
wukong_skills_cleaned: '削除済み',
|
|
843
|
+
wukong_skills_not_found: ' ℹ️ yida-skills/ シンボリックリンクまたはディレクトリが見つかりません: {0}',
|
|
844
|
+
remove_failed: ' ❌ 削除失敗: {0} ({1})',
|
|
845
|
+
symlink_fallback_copy: ' ⚠️ Windows でシンボリックリンク作成失敗(管理者権限が必要)、ディレクトリコピーにフォールバック: {0}',
|
|
846
|
+
symlink_failed: ' ❌ シンボリックリンク作成失敗: {0} ({1})',
|
|
847
|
+
result_symlink: ' {0} → {1}(シンボリックリンク)',
|
|
848
|
+
result_copy: ' {0} → {1}({2} ファイル)',
|
|
849
|
+
},
|
|
850
|
+
|
|
851
|
+
// ── lib/publish.js ─────────────────────────────────
|
|
852
|
+
generate_page: {
|
|
853
|
+
spec_not_found: 'Spec file not found: {0}',
|
|
854
|
+
spec_invalid: 'Failed to parse spec JSON: {0}',
|
|
855
|
+
unknown_template: 'Unknown page template: {0}',
|
|
856
|
+
available_templates: 'Available templates: {0}',
|
|
857
|
+
template_not_found: 'Template file not found: {0}',
|
|
858
|
+
done: 'Page generated: {0}',
|
|
859
|
+
hint: 'Next run yidaconnector compile <file>, or pass --compile to compile immediately.',
|
|
860
|
+
success: 'Page generation complete',
|
|
861
|
+
},
|
|
862
|
+
page_size: {
|
|
863
|
+
large_source: '大きなページソースを検出しました: {0} ({1}, 約 {2} 行)',
|
|
864
|
+
long_line_hint: '非常に長い 1 行を検出しました(約 {0} 文字)。minified vendor コードまたは base64 の可能性があります。外部化してください。',
|
|
865
|
+
base64_hint: '長い inline base64 を検出しました。CDN/OSS にアップロードして URL 参照にしてください。',
|
|
866
|
+
memory_hint: 'publish/compile は source、build 出力、minify 出力、schema のコピーをメモリに保持します。vendor/base64 は分割するか this.utils.loadScript で読み込んでください。',
|
|
867
|
+
windows_hint: 'Windows で大きな JSX を書くときは PowerShell Get-Content -Raw + ConvertTo-Json を使わず、Node fs.writeFileSync/appendFileSync で分割書き込みしてください。',
|
|
868
|
+
},
|
|
869
|
+
publish: {
|
|
870
|
+
title: ' yida-publish - Yida ページ公開ツール',
|
|
871
|
+
platform: ' プラットフォーム: {0}',
|
|
872
|
+
base_url: '\n プラットフォーム: {0}',
|
|
873
|
+
app_type: ' アプリ ID: {0}',
|
|
874
|
+
app_id: ' アプリ ID: {0}',
|
|
875
|
+
form_uuid: ' フォーム ID: {0}',
|
|
876
|
+
source_file: ' ソースファイル: {0}',
|
|
877
|
+
compiled_file: ' コンパイル結果: {0}',
|
|
878
|
+
output_dir: ' 出力ディレクトリ: pages/dist/',
|
|
879
|
+
step_lint: '\n🔍 Step 0: 宜搭コーディング規約プレチェック\n',
|
|
880
|
+
lint_title: '⚠️ Yida page code check:',
|
|
881
|
+
lint_error_line: ' ❌ {0} 行目: {1}',
|
|
882
|
+
lint_warning_line: ' ⚠️ {0} 行目: {1}',
|
|
883
|
+
lint_event_function: 'イベントバインディングに function を使用しています。アロー関数 (e) => { this.xxx() } を使用してください',
|
|
884
|
+
lint_missing_render_jsx: 'Missing export function renderJsx(); Yida custom pages must export renderJsx',
|
|
885
|
+
lint_import_require: 'Found import/require. Yida custom pages cannot import modules; load third-party scripts with this.utils.loadScript',
|
|
886
|
+
lint_react_hooks: 'Found React Hooks. Yida runtime uses React 16 class-component style and does not support useState/useEffect hooks',
|
|
887
|
+
lint_export_default: 'Found export default. Yida needs named exports such as export function renderJsx/didMount',
|
|
888
|
+
lint_jsx_extension: 'This .js file contains JSX; prefer .jsx for source files. The compiled output is still .js',
|
|
889
|
+
lint_event_direct_method: 'Event binding passes this.xxx directly and will lose this; use (e) => { this.xxx(e); }',
|
|
890
|
+
lint_event_bind_this: 'Event binding uses .bind(this); use (e) => { this.xxx(e); } instead',
|
|
891
|
+
lint_lifecycle_case: 'Detected lifecycle export {0}; Yida only recognizes {1} (case-sensitive)',
|
|
892
|
+
lint_react_lifecycle_method: 'Detected React lifecycle {0}; export {1} for Yida custom pages',
|
|
893
|
+
lint_event_lowercase: 'Detected lowercase event prop {0}; React/Yida will not bind it. Use {1}',
|
|
894
|
+
lint_event_call_result: 'Event binding invokes a function or is not an expression handler; use (e) => { self.xxx(e); }',
|
|
895
|
+
lint_event_noop_arrow: 'Event arrow function references a handler without calling it; use (e) => { self.xxx(e); }',
|
|
896
|
+
lint_button_missing_handler: 'Visible <button> has no onClick/onMouseDown/onKeyDown or disabled state; bind an event handler or use span/div for static labels',
|
|
897
|
+
lint_array_callback_function: '.{0}(function ...) may lose this in callbacks; use .{0}((item) => ...) instead',
|
|
898
|
+
lint_foreach_callback_function: '.forEach(function ...) may lose this in callbacks; prefer .forEach((item) => ...)',
|
|
899
|
+
lint_controlled_input: 'input uses controlled value mode. Yida pages should use defaultValue + onChange to update _customState',
|
|
900
|
+
lint_native_select_ui: 'Found a native select. User-facing custom page dropdowns should use a Tailwind-styled custom dropdown component for consistent visual quality',
|
|
901
|
+
lint_iframe_self_navigation: 'Yida custom pages run in an iframe. Use target="_top"/target="_blank" or window.top.location for Yida page navigation to avoid nested pages.',
|
|
902
|
+
lint_page_size_limit: 'pageSize={0} exceeds the Yida API limit of 100; use 100 or less',
|
|
903
|
+
lint_yida_api_catch: 'this.utils.yida API call has no detected .catch(); add error handling and toast the user',
|
|
904
|
+
lint_echarts_legacy_map_china: 'ECharts 5 no longer supports echarts/map/js/china.js. Load DataV GeoJSON and call echarts.registerMap("china", geoJson) instead',
|
|
905
|
+
lint_echarts_rich_label_formatter: 'ECharts label.formatter returning rich text templates is unstable in Yida custom pages; prefer plain formatter strings or precomputed label text',
|
|
906
|
+
lint_const_let: 'const/let 宣言を使用しています。var に変更することをお勧めします(宜搭ランタイム互換性)',
|
|
907
|
+
lint_computed_property: 'ES6 計算プロパティ名 { [key]: value } を使用しています。宜搭 JS エンジンはこの構文をサポートしておらず、サイレント失敗を引き起こします。var obj = {}; obj[key] = value; に変更してください',
|
|
908
|
+
lint_pad_method: 'String.{0}() を使用しています。宜搭 JS エンジンはこのメソッドをサポートしておらず、Promise コールバックがサイレント中断します。三項演算子で代替してください(例:x < 10 ? "0" + x : "" + x)',
|
|
909
|
+
lint_large_then_callback: 'Promise .then() コールバックのコード量が多すぎます({0} 行、推奨上限 {1} 行)。サイレント切り捨てが発生する可能性があります。ロジックを独立した export function に抽出してください',
|
|
910
|
+
lint_fix_errors: '❌ 公開前に上記のエラーを修正してください',
|
|
911
|
+
lint_skip_hint: '💡 チェックをスキップするには --skip-lint パラメータを追加してください',
|
|
912
|
+
lint_passed: ' ✅ コードチェック合格\n',
|
|
913
|
+
lint_skipped: '\n⏭️ コードプレチェックをスキップしました(--skip-lint)\n',
|
|
914
|
+
duplicate_source_mismatch: ' ⚠️ Found another copy with the same file name but different content. Publishing: {0}; other copy: {1}',
|
|
915
|
+
data_source_fetching: ' Reading existing page data sources...',
|
|
916
|
+
data_source_preserved: ' ✅ Preserved existing page data sources: {0}',
|
|
917
|
+
data_source_none: ' No custom page data sources to preserve',
|
|
918
|
+
data_source_fetch_failed: 'Could not read the existing page Schema, so publishing stopped to avoid clearing existing data sources: {0}',
|
|
919
|
+
target_checking: ' Checking publish target type...',
|
|
920
|
+
target_check_forced: ' ⚠️ Skipped publish target type check (--force)',
|
|
921
|
+
target_check_ok: ' ✅ Publish target confirmed: {0} ({1})',
|
|
922
|
+
target_check_failed: 'Could not verify publish target: {0}',
|
|
923
|
+
target_not_found: 'Publish target was not found in app navigation: {0}',
|
|
924
|
+
target_type_invalid: 'Publish target is not a custom display page: {0} current type is {1}',
|
|
925
|
+
target_type_hint: 'The current target "{0}" does not look like a custom page (type: {1}). Do not publish JSX to data forms or process forms.',
|
|
926
|
+
target_list_hint: 'Run yidaconnector list-forms {0} --keyword <page name>, then choose a custom page formUuid with formType=display.',
|
|
927
|
+
target_force_hint: 'Append --force only when you intentionally bypass this guard; it overwrites the target Schema and should be used only for a known custom page.',
|
|
928
|
+
step_compile: '\n📦 Step 1: ソースをコンパイルして Schema を構築\n',
|
|
929
|
+
reading_source: '[1/4] {0} のソースを読み込み中...',
|
|
930
|
+
compiling: '[2/4] Babel で {0} をコンパイル中...',
|
|
931
|
+
compile_failed: ' ❌ コンパイルに失敗しました:{0}',
|
|
932
|
+
compile_location: '\n 位置: {0} 行目, {1} 列目',
|
|
933
|
+
compile_error_loc: ' 位置: {0} 行目, {1} 列目',
|
|
934
|
+
compile_error_code: ' エラーコード: {0}',
|
|
935
|
+
minifying: '[3/4] UglifyJS で {0} を圧縮中...',
|
|
936
|
+
minify_failed: ' 圧縮に失敗しました:{0}',
|
|
937
|
+
uglifying: '[3/4] UglifyJS で {0} を圧縮中...',
|
|
938
|
+
uglify_failed: ' 圧縮に失敗しました:{0}',
|
|
939
|
+
compile_done: ' ✅ コンパイル・圧縮が完了しました:{0}',
|
|
940
|
+
building_schema: '[4/4] Schema を構築中...',
|
|
941
|
+
schema_built: ' ✅ Schema の構築が完了しました!',
|
|
942
|
+
step_login: '\n🔑 Step 2: ログイン情報を読み込む',
|
|
943
|
+
step_publish: '\n📤 Step 3: Schema を公開\n',
|
|
944
|
+
resend_save_csrf: ' 🔄 saveFormSchema リクエストを再送信中(csrf_token を更新済み)...',
|
|
945
|
+
resend_save: ' 🔄 再ログイン後に saveFormSchema リクエストを再送信中...',
|
|
946
|
+
csrf_retry: ' 🔄 saveFormSchema リクエストを再送信中(csrf_token を更新済み)...',
|
|
947
|
+
relogin_retry: ' 🔄 再ログイン後に saveFormSchema リクエストを再送信中...',
|
|
948
|
+
publish_failed: '\n❌ 公開に失敗しました: {0}',
|
|
949
|
+
schema_published: ' ✅ Schema の公開に成功しました!',
|
|
950
|
+
schema_success: ' ✅ Schema の公開に成功しました!',
|
|
951
|
+
form_uuid_label: ' formUuid: {0}',
|
|
952
|
+
version_label: ' version: {0}',
|
|
953
|
+
step_config: '\n⚙️ Step 4: フォーム設定を更新\n',
|
|
954
|
+
sending_config: ' updateFormConfig リクエストを送信中...',
|
|
955
|
+
resend_config_csrf: ' 🔄 updateFormConfig リクエストを再送信中(csrf_token を更新済み)...',
|
|
956
|
+
resend_config: ' 🔄 再ログイン後に updateFormConfig リクエストを再送信中...',
|
|
957
|
+
config_csrf_retry: ' 🔄 updateFormConfig リクエストを再送信中(csrf_token を更新済み)...',
|
|
958
|
+
config_relogin_retry: ' 🔄 再ログイン後に updateFormConfig リクエストを再送信中...',
|
|
959
|
+
success: ' ✅ 公開に成功しました!',
|
|
960
|
+
publish_success: ' ✅ 公開に成功しました!',
|
|
961
|
+
config_updated: ' 設定を更新しました: MINI_RESOURCE = 8',
|
|
962
|
+
config_failed: ' ⚠️ 設定の更新に失敗しました: {0}',
|
|
963
|
+
schema_ok_config_failed: ' Schema は公開されましたが、設定の更新に失敗しました',
|
|
964
|
+
schema_published_config_failed: ' Schema は公開されましたが、設定の更新に失敗しました',
|
|
965
|
+
step_health_check: '\n🩺 Step 5: 公開ページをヘルスチェック\n',
|
|
966
|
+
health_check_ok: ' ✅ Health check passed: HTTP {0}',
|
|
967
|
+
health_check_failed: ' ⚠️ Health check failed: HTTP {0} {1}',
|
|
968
|
+
exception: '\n❌ 公開エラー: {0}',
|
|
969
|
+
error: '\n❌ 公開エラー: {0}',
|
|
970
|
+
source_not_found: '❌ ソースファイルが見つかりません:{0}',
|
|
971
|
+
usage: '使用方法: yidaconnector publish <ソースファイル> <appType> <formUuid> [--health-check]',
|
|
972
|
+
example: '例: yidaconnector publish pages/src/xxx.js APP_XXX FORM-XXX --health-check',
|
|
973
|
+
},
|
|
974
|
+
|
|
975
|
+
// ── lib/qr-login.js ────────────────────────────────
|
|
976
|
+
qr_login: {
|
|
977
|
+
title: '🔐 宜搭 ターミナル QR コードログイン',
|
|
978
|
+
step_init: ' Step 1: セッションを初期化中...',
|
|
979
|
+
step_get_qr: ' Step 2: QR コードを取得中...',
|
|
980
|
+
scan_hint: ' 📱 DingTalk で以下の QR コードをスキャンしてください:',
|
|
981
|
+
qr_url_label: ' QR コード URL: {0}',
|
|
982
|
+
waiting_scan: ' ⏳ スキャン待機中(最大 2 分)...',
|
|
983
|
+
scanned_confirm: ' ✅ スキャン完了!スマートフォンでログインを確認してください...',
|
|
984
|
+
scan_success: ' ✅ スキャン確認完了!',
|
|
985
|
+
step_exchange: ' Step 4: ログイン認証情報を取得中...',
|
|
986
|
+
step_get_corps: ' Step 5: 組織リストを取得中...',
|
|
987
|
+
step_switch_corp: ' Step 7: 選択した組織に切り替え中...',
|
|
988
|
+
only_one_corp: ' ✅ 組織が 1 つ検出されました:{0}、自動選択',
|
|
989
|
+
select_corp_prompt: ' 🏢 複数の組織が見つかりました。選択してください:',
|
|
990
|
+
select_corp_input: ' 番号を入力してください (1-{0}): ',
|
|
991
|
+
select_corp_invalid: ' ❌ 無効な入力です。1 から {0} の数字を入力してください',
|
|
992
|
+
target_corp_not_found: '指定された corpId はアクセス可能な組織に見つかりません:{0}',
|
|
993
|
+
corp_selected: ' ✅ 組織を選択しました:{0}',
|
|
994
|
+
login_success: '✅ ログイン成功!',
|
|
995
|
+
qrcode_fallback: ' ⚠️ qrcode パッケージがインストールされていません。以下の URL を手動で開いてください:',
|
|
996
|
+
qrcode_render_failed: ' ⚠️ QR コードのレンダリングに失敗しました({0})。以下の URL を開いてください:',
|
|
997
|
+
get_qr_failed: 'QR コードレスポンスの解析に失敗しました: {0}',
|
|
998
|
+
get_qr_api_failed: 'QR コード API が失敗しました: {0}',
|
|
999
|
+
get_qr_error: 'QR コードの取得に失敗しました: {0}',
|
|
1000
|
+
qr_expired: 'QR コードの有効期限が切れました。再度ログインしてください',
|
|
1001
|
+
poll_timeout: 'スキャンタイムアウト(2 分)。再度ログインしてください',
|
|
1002
|
+
poll_error: 'スキャン状態のポーリングに失敗しました: {0}',
|
|
1003
|
+
exchange_failed: '認証コード交換レスポンスの解析に失敗しました: {0}',
|
|
1004
|
+
exchange_api_failed: '認証コード交換 API が失敗しました: {0}',
|
|
1005
|
+
exchange_error: '認証コードの交換に失敗しました: {0}',
|
|
1006
|
+
get_corp_list_failed: '組織リストレスポンスの解析に失敗しました: {0}',
|
|
1007
|
+
get_corp_list_api_failed: '組織リスト API が失敗しました: {0}',
|
|
1008
|
+
get_corps_warn: ' ⚠️ 組織リストの取得に失敗しました({0})。デフォルト組織を使用します',
|
|
1009
|
+
switch_corp_failed: '組織の切り替えに失敗しました: {0}',
|
|
1010
|
+
switch_corp_warn: ' ⚠️ 組織の切り替えに失敗しました({0})。現在の組織を使用します',
|
|
1011
|
+
select_corp_warn: ' ⚠️ 組織の選択に失敗しました({0})。デフォルト組織を使用します',
|
|
1012
|
+
no_corp_available: 'アクセス可能な組織が見つかりません',
|
|
1013
|
+
no_csrf_in_cookie: 'ログインは成功しましたが csrf_token が見つかりません。再試行してください',
|
|
1014
|
+
stdin_closed: '入力ストリームが閉じられました。組織を選択できません',
|
|
1015
|
+
},
|
|
1016
|
+
|
|
1017
|
+
// ── scripts/postinstall.js ─────────────────────────
|
|
1018
|
+
postinstall: {
|
|
1019
|
+
welcome_title: ' 🎉 YidaConnector へようこそ! ',
|
|
1020
|
+
install_success: ' ✅ インストール完了!{0} Yida AI 開発ツールが使用可能になりました。',
|
|
1021
|
+
update_success: ' ✅ 更新完了!{0} YidaConnector が最新バージョンにアップグレードされました。',
|
|
1022
|
+
ai_mode_title: ' 🚀 AI 会話モードを開始',
|
|
1023
|
+
ai_mode_desc: ' Codex / Claude Code / Aone Copilot / Cursor などの AI ツールで直接チャット:',
|
|
1024
|
+
prompt1: ' 📋 「Yida で勤怠管理システムを作ってください」',
|
|
1025
|
+
prompt2: ' 💰 「個人給与計算アプリを構築してください」',
|
|
1026
|
+
prompt3: ' 🏢 「CRM 顧客管理システムを作成してください」',
|
|
1027
|
+
prompt4: ' 🎂 「誕生日お祝いミニアプリを作ってください」',
|
|
1028
|
+
steps_title: ' 📖 基本的な使い方',
|
|
1029
|
+
step1: ' {0}Step 1{1} AI コーディングツールを開く(Codex / Claude Code / Cursor など)',
|
|
1030
|
+
step2: ' {0}Step 2{1} 作りたいアプリを自然言語で説明する',
|
|
1031
|
+
step3: ' {0}Step 3{1} AI が自動的に yidaconnector コマンドを実行してアプリを作成・公開',
|
|
1032
|
+
step4: ' {0}Step 4{1} Yida アプリのリンクを取得 🎉',
|
|
1033
|
+
commands_title: ' ⚡ クイックコマンド',
|
|
1034
|
+
cmd_env: ' {0}yidaconnector env{1} {2}# AI ツール環境とログイン状態を検出{3}',
|
|
1035
|
+
cmd_login: ' {0}yidaconnector login{1} {2}# Yida にログイン{3}',
|
|
1036
|
+
cmd_help: ' {0}yidaconnector --help{1} {2}# 全コマンドを表示{3}',
|
|
1037
|
+
footer1: ' 📚 ドキュメント:https://github.com/bunnyrui/yidaconnector',
|
|
1038
|
+
footer2: ' 💬 コミュニティ:DingTalk で YidaConnector コミュニティに参加',
|
|
1039
|
+
},
|
|
1040
|
+
|
|
1041
|
+
// ── src/flash-note/flash-to-prd.ts ──────────────
|
|
1042
|
+
flashNote: {
|
|
1043
|
+
toPrd: {
|
|
1044
|
+
title: '📋 DingTalk フラッシュノートを PRD に変換',
|
|
1045
|
+
help_usage: '使用法:yidaconnector flash-to-prd --file <パス> [--name <プロジェクト名>]',
|
|
1046
|
+
help_usage2: ' yidaconnector flash-to-prd --name <プロジェクト名>(標準入力から読み取り)',
|
|
1047
|
+
help_args_title: '引数:',
|
|
1048
|
+
help_arg_file: ' --file, -f <パス> フラッシュノートファイルパス(.txt / .md)',
|
|
1049
|
+
help_arg_name: ' --name, -n <名前> プロジェクト名(省略可、内容から自動抽出)',
|
|
1050
|
+
help_arg_max_tokens: ' --max-tokens <数> AI 最大出力トークン数(デフォルト 8000)',
|
|
1051
|
+
help_examples_title: '例:',
|
|
1052
|
+
help_example1: ' yidaconnector flash-to-prd --file ./meeting-notes.txt --name "設備点検システム"',
|
|
1053
|
+
help_example2: ' cat meeting.txt | yidaconnector flash-to-prd --name "設備点検システム"',
|
|
1054
|
+
step_read: '[Step 1] フラッシュノートを読み込み中...',
|
|
1055
|
+
file_not_found: 'ファイルが見つかりません:{0}',
|
|
1056
|
+
no_input: 'フラッシュノートが提供されていません。--file でファイルを指定するか、パイプで入力してください。',
|
|
1057
|
+
stdin_empty: '標準入力が空です',
|
|
1058
|
+
read_success: '✅ 読み込み成功、{0} 文字',
|
|
1059
|
+
step_load_module: '[Step 2] プロンプトビルダーモジュールを読み込み中...',
|
|
1060
|
+
module_loaded_builtin: '✅ 内蔵プロンプトモジュールを読み込みました',
|
|
1061
|
+
module_loaded_local: '✅ ローカルプロンプトモジュールを読み込みました:{0}',
|
|
1062
|
+
module_not_found: '❌ build-flash-note-prompt.js モジュールが見つかりません',
|
|
1063
|
+
module_path_tried: ' 試行パス {0}:{1}',
|
|
1064
|
+
step_preprocess: '[Step 3] 前処理 + 会議認識...',
|
|
1065
|
+
preprocess_result: ' 前処理:{0} 文字 → {1} 文字',
|
|
1066
|
+
meeting_meta: ' 会議メタ情報:{0} 項目{1}',
|
|
1067
|
+
a1_sections: ' A1 要約セクション:{0} 件{1}',
|
|
1068
|
+
speakers: ' 発言者識別:{0} 名{1}',
|
|
1069
|
+
speakers_with_role: '(役割注釈 {0} 名を含む)',
|
|
1070
|
+
step_login: '[Step 4] ログイン状態を確認中...',
|
|
1071
|
+
no_login: ' ログインセッションが見つかりません、ログインを開始...',
|
|
1072
|
+
login_ready: '✅ ログイン準備完了({0})',
|
|
1073
|
+
step_ai: '[Step 5] AI で PRD を生成中...',
|
|
1074
|
+
single_segment: ' 単一セグメントモード、プロンプト長:{0} 文字',
|
|
1075
|
+
multi_segment: ' マルチセグメントモード、合計 {0} セグメント',
|
|
1076
|
+
extracting_segment: ' セグメント {0}/{1} を抽出中({2} 文字)...',
|
|
1077
|
+
merging_segments: ' セグメント結果を統合中...',
|
|
1078
|
+
ai_success: '✅ PRD 生成成功',
|
|
1079
|
+
ai_error: 'AI API 呼び出し失敗:{0}',
|
|
1080
|
+
done: '✅ フラッシュノートから PRD への変換完了',
|
|
1081
|
+
done_project: ' プロジェクト名:{0}',
|
|
1082
|
+
done_file: ' 出力ファイル:{0}',
|
|
1083
|
+
done_size: ' ファイルサイズ:{0} 文字',
|
|
1084
|
+
done_meeting: ' 会議認識:メタ情報 {0} 項目、A1 要約 {1} セクション、発言者 {2} 名',
|
|
1085
|
+
},
|
|
1086
|
+
},
|
|
1087
|
+
update_app: {
|
|
1088
|
+
layout_notice: 'Note: layoutDirection is consumed by the Yida app shell during creation/refresh. If the top action bar does not recover immediately after a backend switch, reopen the workbench or recreate the app with the target layout.',
|
|
1089
|
+
},
|
|
1090
|
+
aggregate_table: {
|
|
1091
|
+
usage: 'Usage: yidaconnector aggregate-table <list|create-empty|inspect|preview|save|publish|status> <appType> ...',
|
|
1092
|
+
commands_title: 'Subcommands:',
|
|
1093
|
+
cmd_list: 'list <appType> [--keyword <text>] [--json] List aggregate tables in an app',
|
|
1094
|
+
cmd_create_empty: 'create-empty <appType> "<name>" [--open|--no-open] Create a blank aggregate table and return the designer URL',
|
|
1095
|
+
cmd_inspect: 'inspect <appType> <formUuid> [--json] Read aggregate table design config',
|
|
1096
|
+
cmd_preview: 'preview <appType> <formUuid> <design.json> [--json] Preview config without saving',
|
|
1097
|
+
cmd_save: 'save <appType> <formUuid> <design.json> [--json] Save an aggregate table draft',
|
|
1098
|
+
cmd_publish: 'publish <appType> <formUuid> <design.json> [--json] Publish aggregate table config',
|
|
1099
|
+
cmd_status: 'status <appType> <formUuid> [--json] Query aggregate table build status',
|
|
1100
|
+
examples_title: 'Examples:',
|
|
1101
|
+
example_list: 'yidaconnector aggregate-table list APP_XXX',
|
|
1102
|
+
example_create_empty: 'yidaconnector aggregate-table create-empty APP_XXX "Customer Contract Aggregate" --open',
|
|
1103
|
+
example_inspect: 'yidaconnector aggregate-table inspect APP_XXX FORM_XXX --json',
|
|
1104
|
+
example_preview: 'yidaconnector aggregate-table preview APP_XXX FORM_XXX .cache/yidaconnector/aggregate/design.json',
|
|
1105
|
+
example_save: 'yidaconnector aggregate-table save APP_XXX FORM_XXX .cache/yidaconnector/aggregate/design.json',
|
|
1106
|
+
example_publish: 'yidaconnector aggregate-table publish APP_XXX FORM_XXX .cache/yidaconnector/aggregate/design.json',
|
|
1107
|
+
example_status: 'yidaconnector aggregate-table status APP_XXX FORM_XXX',
|
|
1108
|
+
list_usage: 'Usage: yidaconnector aggregate-table list <appType> [--keyword <text>] [--json]',
|
|
1109
|
+
create_empty_usage: 'Usage: yidaconnector aggregate-table create-empty <appType> "<name>" [--locale zh_CN|en_US|ja_JP] [--open|--no-open]',
|
|
1110
|
+
inspect_usage: 'Usage: yidaconnector aggregate-table inspect <appType> <formUuid> [--json]',
|
|
1111
|
+
preview_usage: 'Usage: yidaconnector aggregate-table preview <appType> <formUuid> <design.json> [--json]',
|
|
1112
|
+
save_usage: 'Usage: yidaconnector aggregate-table save <appType> <formUuid> <design.json> [--json]',
|
|
1113
|
+
publish_usage: 'Usage: yidaconnector aggregate-table publish <appType> <formUuid> <design.json> [--json]',
|
|
1114
|
+
status_usage: 'Usage: yidaconnector aggregate-table status <appType> <formUuid> [--json]',
|
|
1115
|
+
no_login: 'No login state found. Run yidaconnector login first.',
|
|
1116
|
+
unsupported_locale: 'Unsupported locale: {0}',
|
|
1117
|
+
unknown_subcommand: 'Unknown aggregate-table subcommand: {0}',
|
|
1118
|
+
design_required: 'Missing aggregate table design JSON or file path',
|
|
1119
|
+
invalid_json: 'Aggregate table design config is not valid JSON: {0}',
|
|
1120
|
+
design_object_required: 'Aggregate table design config must be a JSON object',
|
|
1121
|
+
check_feature: 'Check aggregate table capability',
|
|
1122
|
+
feature_disabled: 'Aggregate table is not enabled for this app/org, or the edition quota has been reached',
|
|
1123
|
+
create_empty: 'Create blank aggregate table',
|
|
1124
|
+
inspect: 'Read aggregate table config',
|
|
1125
|
+
preview: 'Preview aggregate table config',
|
|
1126
|
+
save: 'Save aggregate table draft',
|
|
1127
|
+
publish: 'Publish aggregate table config',
|
|
1128
|
+
status: 'Query aggregate table build status',
|
|
1129
|
+
publish_requires_source: 'Publishing requires at least one data source. Configure relationForms first.',
|
|
1130
|
+
list_success: 'Aggregate table list',
|
|
1131
|
+
create_empty_success: 'Aggregate table created',
|
|
1132
|
+
inspect_success: 'Aggregate table config loaded',
|
|
1133
|
+
preview_success: 'Aggregate table preview succeeded',
|
|
1134
|
+
save_success: 'Aggregate table draft saved',
|
|
1135
|
+
publish_success: 'Aggregate table published',
|
|
1136
|
+
status_success: 'Aggregate table status loaded',
|
|
1137
|
+
},
|
|
1138
|
+
ai_form_setting: {
|
|
1139
|
+
usage: 'Usage: yidaconnector ai-form-setting <get|fields|models|enable|disable|save> <appType> ...',
|
|
1140
|
+
commands_title: 'Subcommands:',
|
|
1141
|
+
cmd_get: 'get <appType> <formUuid> [--raw] [--json] Query AI approval prompt config',
|
|
1142
|
+
cmd_fields: 'fields <appType> <formUuid> [--type TEXT|IMAGE|ATTACHMENT] List insertable fields',
|
|
1143
|
+
cmd_models: 'models <appType> [--type TEXT|IMAGE|ATTACHMENT] List available models',
|
|
1144
|
+
cmd_enable: 'enable <appType> <formUuid> [--json] Enable AI approval prompts',
|
|
1145
|
+
cmd_disable: 'disable <appType> <formUuid> [--json] Disable AI approval prompts',
|
|
1146
|
+
cmd_save: 'save <appType> <formUuid> <config.json> [--enable] Save prompts and model config',
|
|
1147
|
+
examples_title: 'Examples:',
|
|
1148
|
+
example_get: 'yidaconnector ai-form-setting get APP_XXX FORM_XXX --json',
|
|
1149
|
+
example_fields: 'yidaconnector ai-form-setting fields APP_XXX FORM_XXX --type ATTACHMENT',
|
|
1150
|
+
example_models: 'yidaconnector ai-form-setting models APP_XXX --type IMAGE',
|
|
1151
|
+
example_enable: 'yidaconnector ai-form-setting enable APP_XXX FORM_XXX',
|
|
1152
|
+
example_save: 'yidaconnector ai-form-setting save APP_XXX FORM_XXX .cache/yidaconnector/ai-form-setting/config.json --enable',
|
|
1153
|
+
enable_disable_conflict: '--enable and --disable cannot be used together',
|
|
1154
|
+
invalid_type: 'Invalid prompt type: {0}. Valid values: {1}',
|
|
1155
|
+
invalid_status: 'Invalid AI approval prompt status: {0}',
|
|
1156
|
+
config_required: 'Missing AI approval prompt JSON config or file path',
|
|
1157
|
+
invalid_json: 'AI approval prompt config is not valid JSON: {0}',
|
|
1158
|
+
invalid_variable: 'Variable #{0} must be an object',
|
|
1159
|
+
variable_required: 'Variable #{0} must contain varName and fieldId',
|
|
1160
|
+
prompt_required: 'Prompt {0} is missing prompt/content',
|
|
1161
|
+
variables_array_required: 'variables must be an array',
|
|
1162
|
+
invalid_item: 'Prompt config #{0} must be an object',
|
|
1163
|
+
model_required: 'Prompt {0} is missing modelId',
|
|
1164
|
+
invalid_config_part: '{0} must be a JSON object or a valid JSON string',
|
|
1165
|
+
config_object_required: 'AI approval prompt config must be a JSON object or array',
|
|
1166
|
+
items_array_required: 'AI approval prompt config must contain an items array',
|
|
1167
|
+
too_many_items: 'AI approval prompts support up to {0} items',
|
|
1168
|
+
duplicate_item_id: 'Duplicate itemId: {0}',
|
|
1169
|
+
no_login: 'No login state found. Run yidaconnector login first.',
|
|
1170
|
+
get_usage: 'Usage: yidaconnector ai-form-setting get <appType> <formUuid> [--raw] [--json]',
|
|
1171
|
+
fields_usage: 'Usage: yidaconnector ai-form-setting fields <appType> <formUuid> [--type TEXT|IMAGE|ATTACHMENT] [--json]',
|
|
1172
|
+
models_usage: 'Usage: yidaconnector ai-form-setting models <appType> [--type TEXT|IMAGE|ATTACHMENT] [--json]',
|
|
1173
|
+
status_usage: 'Usage: yidaconnector ai-form-setting <enable|disable> <appType> <formUuid> [--json]',
|
|
1174
|
+
save_usage: 'Usage: yidaconnector ai-form-setting save <appType> <formUuid> <config.json> [--enable|--disable] [--json]',
|
|
1175
|
+
get_action: 'Query AI approval prompt config',
|
|
1176
|
+
fields_action: 'Query AI approval prompt fields',
|
|
1177
|
+
models_action: 'Query AI approval prompt models',
|
|
1178
|
+
status_action: 'Update AI approval prompt status',
|
|
1179
|
+
save_action: 'Save AI approval prompt config',
|
|
1180
|
+
get_success: 'AI approval prompt config',
|
|
1181
|
+
fields_success: 'AI approval prompt fields',
|
|
1182
|
+
models_success: 'AI approval prompt models',
|
|
1183
|
+
save_success: 'AI approval prompt config saved',
|
|
1184
|
+
enabled: 'AI approval prompts enabled',
|
|
1185
|
+
disabled: 'AI approval prompts disabled',
|
|
1186
|
+
unknown_subcommand: 'Unknown ai-form-setting subcommand: {0}',
|
|
1187
|
+
},
|
|
1188
|
+
codex_login: {
|
|
1189
|
+
title: ' yidaconnector login {0} - {1} Login Mode',
|
|
1190
|
+
not_codex: 'Current environment is not detected as Codex / Qoder / Wukong; returning an in-app browser login handoff only.',
|
|
1191
|
+
no_playwright: '{0} mode does not require Playwright or a separate Chromium install.',
|
|
1192
|
+
using_browser: '{0} in-app Browser is only suitable for unauthenticated page previews; use yidaconnector login --browser for Yida login cookies.',
|
|
1193
|
+
browser_handoff_hint: '{0} in-app Browser does not support authentication Cookie export. Use yidaconnector login --browser when CLI cookies are required.',
|
|
1194
|
+
handoff_message: '{0} in-app Browser cannot export Yida login cookies. Run fallback_command when CLI cookies are required.',
|
|
1195
|
+
cache_available: 'Existing CLI Cookie cache is available; no browser login needed.',
|
|
1196
|
+
},
|
|
1197
|
+
};
|