viveworker 0.2.1 → 0.4.0
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/README.md +55 -0
- package/package.json +16 -2
- package/scripts/a2a-cli.mjs +189 -0
- package/scripts/a2a-executor.mjs +126 -0
- package/scripts/a2a-handler.mjs +439 -0
- package/scripts/a2a-relay-client.mjs +394 -0
- package/scripts/com.viveworker.moltbook-scout.plist.sample +58 -0
- package/scripts/moltbook-api.mjs +206 -0
- package/scripts/moltbook-cli.mjs +1372 -0
- package/scripts/moltbook-scout-auto.sh +447 -0
- package/scripts/moltbook-scout-run.sh +14 -0
- package/scripts/moltbook-watcher.mjs +294 -0
- package/scripts/viveworker-bridge.mjs +814 -16
- package/scripts/viveworker-claude-hook.mjs +7 -1
- package/scripts/viveworker.mjs +314 -1
- package/web/app.css +104 -3
- package/web/app.js +445 -28
- package/web/i18n.js +90 -0
- package/web/sw.js +1 -1
package/web/i18n.js
CHANGED
|
@@ -29,6 +29,10 @@ const translations = {
|
|
|
29
29
|
"common.unavailable": "unavailable",
|
|
30
30
|
"common.yes": "Yes",
|
|
31
31
|
"common.no": "No",
|
|
32
|
+
"common.enabled": "Enabled",
|
|
33
|
+
"common.disabled": "Disabled",
|
|
34
|
+
"common.supported": "Supported",
|
|
35
|
+
"common.notSupported": "Not supported",
|
|
32
36
|
"common.none": "none",
|
|
33
37
|
"common.settings": "Settings",
|
|
34
38
|
"common.pending": "Pending",
|
|
@@ -44,6 +48,7 @@ const translations = {
|
|
|
44
48
|
"common.assistantCommentary": "Update",
|
|
45
49
|
"common.assistantFinal": "Final reply",
|
|
46
50
|
"common.item": "Item",
|
|
51
|
+
"common.sns": "SNS",
|
|
47
52
|
"common.untitledItem": "Untitled item",
|
|
48
53
|
"common.useDeviceLanguage": "Use device language",
|
|
49
54
|
"language.option.en": "English",
|
|
@@ -331,6 +336,9 @@ const translations = {
|
|
|
331
336
|
"settings.row.secureContext": "Secure context",
|
|
332
337
|
"settings.row.homeScreenApp": "Home Screen app",
|
|
333
338
|
"settings.row.notificationPermission": "Notification permission",
|
|
339
|
+
"settings.permission.granted": "granted",
|
|
340
|
+
"settings.permission.denied": "denied",
|
|
341
|
+
"settings.permission.default": "default",
|
|
334
342
|
"settings.row.browserSupport": "Browser support",
|
|
335
343
|
"settings.row.pushStatus": "Push notifications",
|
|
336
344
|
"settings.row.currentDeviceSubscribed": "This device subscribed",
|
|
@@ -339,6 +347,43 @@ const translations = {
|
|
|
339
347
|
"settings.row.currentLanguage": "Current language",
|
|
340
348
|
"settings.row.languageSource": "Language source",
|
|
341
349
|
"settings.row.defaultLanguage": "Setup default",
|
|
350
|
+
"settings.moltbook.title": "Moltbook",
|
|
351
|
+
"settings.moltbook.subtitle": "Auto-scout posting quota",
|
|
352
|
+
"settings.moltbook.copy": "View your daily auto-scout posting status and quota.",
|
|
353
|
+
"settings.moltbook.unavailable": "Moltbook is not configured.",
|
|
354
|
+
"settings.row.moltbookQuota": "Replies today",
|
|
355
|
+
"settings.row.moltbookSeenPosts": "Seen posts",
|
|
356
|
+
"settings.moltbook.batchTitle": "Current batch",
|
|
357
|
+
"settings.row.moltbookBatchCandidates": "Candidates",
|
|
358
|
+
"settings.row.moltbookBatchTopScore": "Top score",
|
|
359
|
+
"settings.row.moltbookBatchRemaining": "Time remaining",
|
|
360
|
+
"settings.row.moltbookComposed": "Original posts today",
|
|
361
|
+
"settings.row.moltbookRecentTitles": "Recent original posts",
|
|
362
|
+
"moltbook.draft.eyebrowPost": "Moltbook new post",
|
|
363
|
+
"moltbook.draft.eyebrowReply": "Moltbook draft",
|
|
364
|
+
"moltbook.draft.intent": "Intent",
|
|
365
|
+
"moltbook.draft.titleLabel": "Title",
|
|
366
|
+
"moltbook.draft.approvePost": "Approve & publish",
|
|
367
|
+
"moltbook.draft.approveReply": "Approve & post",
|
|
368
|
+
"moltbook.draft.editHint": "Edit if needed, then approve to publish or deny to skip.",
|
|
369
|
+
"moltbook.draft.resolved": "This draft has already been resolved.",
|
|
370
|
+
"moltbook.draft.greetMorning": "Good morning! Share yesterday's highlights?",
|
|
371
|
+
"moltbook.draft.greetNoon": "Nice progress! Ready to share your morning work?",
|
|
372
|
+
"moltbook.draft.greetEvening": "Great work today! Let's share what you built.",
|
|
373
|
+
"moltbook.draft.greetFallback": "New post ready for review",
|
|
374
|
+
"a2a.task.eyebrow": "A2A Task Request",
|
|
375
|
+
"a2a.task.from": "From",
|
|
376
|
+
"a2a.task.instruction": "Task",
|
|
377
|
+
"a2a.task.approve": "Approve & Execute",
|
|
378
|
+
"a2a.task.deny": "Deny",
|
|
379
|
+
"a2a.task.editHint": "Review the task request, then approve to execute or deny to reject.",
|
|
380
|
+
"a2a.task.resolved": "This task has already been resolved.",
|
|
381
|
+
"a2a.task.statusSubmitted": "Awaiting your decision",
|
|
382
|
+
"a2a.task.statusWorking": "Executing...",
|
|
383
|
+
"a2a.task.statusCompleted": "Completed",
|
|
384
|
+
"a2a.task.statusFailed": "Failed",
|
|
385
|
+
"a2a.task.statusCanceled": "Canceled",
|
|
386
|
+
"a2a.task.statusRejected": "Rejected",
|
|
342
387
|
"notice.notificationsEnabled": "Notifications are enabled on this device.",
|
|
343
388
|
"notice.notificationsDisabled": "Notifications are disabled on this device.",
|
|
344
389
|
"notice.testNotificationSent": "Test notification sent.",
|
|
@@ -575,6 +620,10 @@ const translations = {
|
|
|
575
620
|
"common.unavailable": "利用不可",
|
|
576
621
|
"common.yes": "はい",
|
|
577
622
|
"common.no": "いいえ",
|
|
623
|
+
"common.enabled": "有効",
|
|
624
|
+
"common.disabled": "無効",
|
|
625
|
+
"common.supported": "対応",
|
|
626
|
+
"common.notSupported": "非対応",
|
|
578
627
|
"common.none": "なし",
|
|
579
628
|
"common.settings": "設定",
|
|
580
629
|
"common.pending": "未対応",
|
|
@@ -590,6 +639,7 @@ const translations = {
|
|
|
590
639
|
"common.assistantCommentary": "途中経過",
|
|
591
640
|
"common.assistantFinal": "最終回答",
|
|
592
641
|
"common.item": "項目",
|
|
642
|
+
"common.sns": "SNS",
|
|
593
643
|
"common.untitledItem": "無題の項目",
|
|
594
644
|
"common.useDeviceLanguage": "端末の言語を使う",
|
|
595
645
|
"language.option.en": "English",
|
|
@@ -873,6 +923,9 @@ const translations = {
|
|
|
873
923
|
"settings.row.secureContext": "Secure context",
|
|
874
924
|
"settings.row.homeScreenApp": "ホーム画面アプリ",
|
|
875
925
|
"settings.row.notificationPermission": "通知権限",
|
|
926
|
+
"settings.permission.granted": "付与済",
|
|
927
|
+
"settings.permission.denied": "拒否",
|
|
928
|
+
"settings.permission.default": "未設定",
|
|
876
929
|
"settings.row.browserSupport": "ブラウザ対応",
|
|
877
930
|
"settings.row.pushStatus": "Push 通知",
|
|
878
931
|
"settings.row.currentDeviceSubscribed": "この端末の購読状態",
|
|
@@ -881,6 +934,43 @@ const translations = {
|
|
|
881
934
|
"settings.row.currentLanguage": "現在の言語",
|
|
882
935
|
"settings.row.languageSource": "言語ソース",
|
|
883
936
|
"settings.row.defaultLanguage": "setup 時の既定値",
|
|
937
|
+
"settings.moltbook.title": "Moltbook",
|
|
938
|
+
"settings.moltbook.subtitle": "自動スカウトの投稿枠",
|
|
939
|
+
"settings.moltbook.copy": "本日の自動スカウト投稿状況と上限を確認できます。",
|
|
940
|
+
"settings.moltbook.unavailable": "Moltbook が設定されていません。",
|
|
941
|
+
"settings.row.moltbookQuota": "本日の返信数",
|
|
942
|
+
"settings.row.moltbookSeenPosts": "巡回済み投稿数",
|
|
943
|
+
"settings.moltbook.batchTitle": "現在のバッチ",
|
|
944
|
+
"settings.row.moltbookBatchCandidates": "候補数",
|
|
945
|
+
"settings.row.moltbookBatchTopScore": "最高スコア",
|
|
946
|
+
"settings.row.moltbookBatchRemaining": "残り時間",
|
|
947
|
+
"settings.row.moltbookComposed": "本日の新規投稿数",
|
|
948
|
+
"settings.row.moltbookRecentTitles": "最近の新規投稿タイトル",
|
|
949
|
+
"moltbook.draft.eyebrowPost": "Moltbook 新規投稿",
|
|
950
|
+
"moltbook.draft.eyebrowReply": "Moltbook ドラフト",
|
|
951
|
+
"moltbook.draft.intent": "意図",
|
|
952
|
+
"moltbook.draft.titleLabel": "タイトル",
|
|
953
|
+
"moltbook.draft.approvePost": "承認して投稿",
|
|
954
|
+
"moltbook.draft.approveReply": "承認して返信",
|
|
955
|
+
"moltbook.draft.editHint": "必要に応じて編集し、承認して投稿するか、拒否してスキップします。",
|
|
956
|
+
"moltbook.draft.resolved": "このドラフトは既に処理済みです。",
|
|
957
|
+
"moltbook.draft.greetMorning": "おはようございます!昨日の成果をシェアしませんか?",
|
|
958
|
+
"moltbook.draft.greetNoon": "午前中お疲れ様でした!進捗をシェアしませんか?",
|
|
959
|
+
"moltbook.draft.greetEvening": "今日もお疲れ様でした!成果をシェアしませんか?",
|
|
960
|
+
"moltbook.draft.greetFallback": "投稿ドラフトができました",
|
|
961
|
+
"a2a.task.eyebrow": "A2A タスクリクエスト",
|
|
962
|
+
"a2a.task.from": "送信元",
|
|
963
|
+
"a2a.task.instruction": "タスク内容",
|
|
964
|
+
"a2a.task.approve": "承認して実行",
|
|
965
|
+
"a2a.task.deny": "拒否",
|
|
966
|
+
"a2a.task.editHint": "タスクリクエストを確認し、承認して実行するか拒否してください。",
|
|
967
|
+
"a2a.task.resolved": "このタスクは既に処理済みです。",
|
|
968
|
+
"a2a.task.statusSubmitted": "承認待ち",
|
|
969
|
+
"a2a.task.statusWorking": "実行中...",
|
|
970
|
+
"a2a.task.statusCompleted": "完了",
|
|
971
|
+
"a2a.task.statusFailed": "失敗",
|
|
972
|
+
"a2a.task.statusCanceled": "キャンセル",
|
|
973
|
+
"a2a.task.statusRejected": "拒否済み",
|
|
884
974
|
"notice.notificationsEnabled": "この端末で通知を有効にしました。",
|
|
885
975
|
"notice.notificationsDisabled": "この端末の通知を無効にしました。",
|
|
886
976
|
"notice.testNotificationSent": "テスト通知を送信しました。",
|
package/web/sw.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const CACHE_NAME = "viveworker-
|
|
1
|
+
const CACHE_NAME = "viveworker-v25";
|
|
2
2
|
const NOTIFICATION_INTENT_CACHE = "viveworker-notification-intent-v1";
|
|
3
3
|
const NOTIFICATION_INTENT_PATH = "/__viveworker_notification_intent__";
|
|
4
4
|
const APP_ASSETS = ["/app.css", "/app.js", "/i18n.js"];
|