grix-connector 3.1.13 → 3.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +241 -241
  2. package/dist/default-skills/grix-access-control/SKILL.md +31 -31
  3. package/dist/default-skills/grix-admin/SKILL.md +35 -35
  4. package/dist/default-skills/grix-agent-dispatch/SKILL.md +89 -89
  5. package/dist/default-skills/grix-chat-state/SKILL.md +56 -56
  6. package/dist/default-skills/grix-egg/SKILL.md +90 -90
  7. package/dist/default-skills/grix-group/SKILL.md +35 -35
  8. package/dist/default-skills/grix-owner-relay/SKILL.md +66 -66
  9. package/dist/default-skills/grix-query/SKILL.md +38 -38
  10. package/dist/default-skills/message-send/SKILL.md +36 -36
  11. package/dist/default-skills/message-unsend/SKILL.md +27 -27
  12. package/dist/default-skills/tailnet-file-share/SKILL.md +65 -65
  13. package/dist/grix.js +0 -0
  14. package/dist/service/platform-adapter.js +59 -16
  15. package/openclaw-plugin/skills/grix-admin/SKILL.md +202 -202
  16. package/openclaw-plugin/skills/grix-admin/references/api-contract.md +210 -210
  17. package/openclaw-plugin/skills/grix-egg/SKILL.md +81 -81
  18. package/openclaw-plugin/skills/grix-egg/references/api-contract.md +40 -40
  19. package/openclaw-plugin/skills/grix-group/SKILL.md +164 -164
  20. package/openclaw-plugin/skills/grix-group/references/api-contract.md +97 -97
  21. package/openclaw-plugin/skills/grix-query/SKILL.md +247 -247
  22. package/openclaw-plugin/skills/grix-register/SKILL.md +86 -86
  23. package/openclaw-plugin/skills/grix-register/references/api-contract.md +76 -76
  24. package/openclaw-plugin/skills/grix-register/references/grix-concepts.md +26 -26
  25. package/openclaw-plugin/skills/grix-register/references/handoff-contract.md +24 -24
  26. package/openclaw-plugin/skills/grix-register/references/openclaw-setup.md +6 -6
  27. package/openclaw-plugin/skills/grix-register/references/user-replies.md +25 -25
  28. package/openclaw-plugin/skills/grix-update/SKILL.md +310 -310
  29. package/openclaw-plugin/skills/grix-update/references/cron-setup.md +56 -56
  30. package/openclaw-plugin/skills/grix-update/references/update-contract.md +149 -149
  31. package/openclaw-plugin/skills/message-send/SKILL.md +197 -197
  32. package/openclaw-plugin/skills/message-unsend/SKILL.md +186 -186
  33. package/openclaw-plugin/skills/message-unsend/flowchart.mermaid +27 -27
  34. package/openclaw-plugin/skills/openclaw-memory-setup/SKILL.md +282 -282
  35. package/openclaw-plugin/skills/openclaw-memory-setup/references/case-study-macpro.md +52 -52
  36. package/openclaw-plugin/skills/openclaw-memory-setup/references/host-readiness.md +147 -147
  37. package/openclaw.plugin.json +24 -24
  38. package/package.json +121 -121
  39. package/scripts/install-guardian.mjs +27 -27
  40. package/scripts/install-guardian.sh +25 -25
  41. package/scripts/upgrade-guardian.sh +104 -104
  42. package/dist/adapter/claude/claude-bridge-server.js +0 -1
  43. package/dist/adapter/claude/claude-tools.js +0 -1
  44. package/dist/adapter/claude/claude-worker-client.js +0 -1
  45. package/dist/adapter/claude/mcp-http-launcher.js +0 -2
  46. package/dist/adapter/claude/result-timeout.js +0 -1
  47. package/dist/adapter/deepseek/deepseek-adapter.js +0 -6
  48. package/dist/adapter/deepseek/index.js +0 -1
  49. package/dist/adapter/qwen/index.js +0 -1
  50. package/dist/adapter/qwen/qwen-adapter.js +0 -4
  51. package/dist/aibot/client.js +0 -1
  52. package/dist/aibot/index.js +0 -1
  53. package/dist/aibot/types.js +0 -0
  54. package/dist/core/file-ops/handler.js +0 -1
  55. package/dist/core/file-ops/list-files.js +0 -1
  56. package/dist/core/file-ops/types.js +0 -0
  57. package/dist/default-skills/grix-task-status/SKILL.md +0 -36
  58. package/dist/log.js +0 -3
  59. package/dist/main.js +0 -31
  60. package/dist/mcp/stream-http/config.js +0 -1
  61. package/dist/mcp/stream-http/connection-binding.js +0 -1
  62. package/dist/mcp/stream-http/event-tool-executor.js +0 -1
  63. package/dist/mcp/stream-http/gateway.js +0 -1
  64. package/dist/mcp/stream-http/index.js +0 -1
  65. package/dist/mcp/stream-http/security.js +0 -1
  66. package/dist/mcp/stream-http/session-manager.js +0 -1
  67. package/dist/mcp/stream-http/tool-executor.js +0 -1
  68. package/dist/mcp/stream-http/tool-registry.js +0 -1
  69. package/dist/mcp/stream-http/tool-schemas.js +0 -1
  70. package/dist/session/index.js +0 -1
  71. package/dist/session/manager.js +0 -1
  72. package/dist/transport/index.js +0 -1
  73. package/dist/transport/json-rpc.js +0 -3
@@ -1,56 +1,56 @@
1
- # Grix Update Cron Setup
2
-
3
- This document defines the automatic maintenance integration after plugin installation is complete.
4
-
5
- ## Recommended Goal
6
-
7
- After installation is complete, there should be a scheduled cron task that periodically executes `grix-update`.
8
-
9
- Recommended requirements:
10
-
11
- 1. Use `isolated` session
12
- 2. Execute silently by default
13
- 3. Executed by the main agent responsible for maintaining this machine
14
- 4. Run once every 6 hours by default
15
-
16
- ## Recommended Create Command
17
-
18
- ```bash
19
- openclaw cron add \
20
- --name "grix auto update" \
21
- --every "6h" \
22
- --agent <main_agent> \
23
- --session isolated \
24
- --light-context \
25
- --no-deliver \
26
- --message 'Use the grix-update skill with {"mode":"check-and-apply","plugin_id":"grix","notify_on":"never","allow_restart":true}. If there is no update or the update succeeds, reply exactly NO_REPLY. If the install is unsupported or any step fails, return one short failure summary.'
27
- ```
28
-
29
- ## Handling Duplicate Installations
30
-
31
- If a task with the same name already exists, do not create a duplicate; use `edit` instead:
32
-
33
- ```bash
34
- openclaw cron edit <job_id> \
35
- --every "6h" \
36
- --agent <main_agent> \
37
- --session isolated \
38
- --light-context \
39
- --no-deliver \
40
- --message 'Use the grix-update skill with {"mode":"check-and-apply","plugin_id":"grix","notify_on":"never","allow_restart":true}. If there is no update or the update succeeds, reply exactly NO_REPLY. If the install is unsupported or any step fails, return one short failure summary.'
41
- ```
42
-
43
- ## Verification Commands
44
-
45
- ```bash
46
- openclaw cron list
47
- openclaw cron status
48
- openclaw cron runs --id <job_id> --limit 20
49
- ```
50
-
51
- ## Notes
52
-
53
- 1. `--session isolated`: Avoid updates and gateway restarts interrupting the current main chat.
54
- 2. `--no-deliver`: Do not send messages externally on success.
55
- 3. `notify_on=never`: In cron scenarios, do not let the skill send notifications on its own; let the cron run records handle convergence uniformly.
56
- 4. If failure alerting is needed later, it should be handled in the upper-level cron rules; do not embed notification logic back into the skill.
1
+ # Grix Update Cron Setup
2
+
3
+ This document defines the automatic maintenance integration after plugin installation is complete.
4
+
5
+ ## Recommended Goal
6
+
7
+ After installation is complete, there should be a scheduled cron task that periodically executes `grix-update`.
8
+
9
+ Recommended requirements:
10
+
11
+ 1. Use `isolated` session
12
+ 2. Execute silently by default
13
+ 3. Executed by the main agent responsible for maintaining this machine
14
+ 4. Run once every 6 hours by default
15
+
16
+ ## Recommended Create Command
17
+
18
+ ```bash
19
+ openclaw cron add \
20
+ --name "grix auto update" \
21
+ --every "6h" \
22
+ --agent <main_agent> \
23
+ --session isolated \
24
+ --light-context \
25
+ --no-deliver \
26
+ --message 'Use the grix-update skill with {"mode":"check-and-apply","plugin_id":"grix","notify_on":"never","allow_restart":true}. If there is no update or the update succeeds, reply exactly NO_REPLY. If the install is unsupported or any step fails, return one short failure summary.'
27
+ ```
28
+
29
+ ## Handling Duplicate Installations
30
+
31
+ If a task with the same name already exists, do not create a duplicate; use `edit` instead:
32
+
33
+ ```bash
34
+ openclaw cron edit <job_id> \
35
+ --every "6h" \
36
+ --agent <main_agent> \
37
+ --session isolated \
38
+ --light-context \
39
+ --no-deliver \
40
+ --message 'Use the grix-update skill with {"mode":"check-and-apply","plugin_id":"grix","notify_on":"never","allow_restart":true}. If there is no update or the update succeeds, reply exactly NO_REPLY. If the install is unsupported or any step fails, return one short failure summary.'
41
+ ```
42
+
43
+ ## Verification Commands
44
+
45
+ ```bash
46
+ openclaw cron list
47
+ openclaw cron status
48
+ openclaw cron runs --id <job_id> --limit 20
49
+ ```
50
+
51
+ ## Notes
52
+
53
+ 1. `--session isolated`: Avoid updates and gateway restarts interrupting the current main chat.
54
+ 2. `--no-deliver`: Do not send messages externally on success.
55
+ 3. `notify_on=never`: In cron scenarios, do not let the skill send notifications on its own; let the cron run records handle convergence uniformly.
56
+ 4. If failure alerting is needed later, it should be handled in the upper-level cron rules; do not embed notification logic back into the skill.
@@ -1,149 +1,149 @@
1
- # Grix Update Contract
2
-
3
- This document defines the minimal execution contract for `grix-update`, ensuring consistency when integrating with scheduled tasks, heartbeat reminders, or other maintenance flows.
4
-
5
- ## Goal
6
-
7
- `grix-update` only does these 5 things:
8
-
9
- 1. Confirm whether the plugin exists
10
- 2. Confirm whether the current installation method supports automatic updates
11
- 3. Check whether a new version is available
12
- 4. Execute the upgrade when needed
13
- 5. Complete validation, restart, and result notification after upgrade
14
-
15
- ## Command Ladder
16
-
17
- Use these official commands in order:
18
-
19
- ```bash
20
- openclaw plugins info grix --json
21
- openclaw plugins update grix --dry-run
22
- openclaw plugins update grix
23
- openclaw plugins doctor
24
- openclaw gateway restart
25
- openclaw health
26
- ```
27
-
28
- Rules:
29
-
30
- 1. Run `info` first, then `dry-run`; do not skip steps.
31
- 2. If `dry-run` does not show an available update, do not execute the actual upgrade.
32
- 3. After the actual upgrade, do not skip `doctor`.
33
- 4. When restart is allowed, `doctor` must be followed by `gateway restart` and `health`.
34
-
35
- ## Mode Definitions
36
-
37
- ### `check-only`
38
-
39
- Purpose: Only check, do not upgrade.
40
-
41
- Convergence:
42
-
43
- 1. No new version: `no_update`
44
- 2. New version available: `update_available`
45
- 3. Plugin does not exist or installation method not supported: `failed` / `unsupported`
46
-
47
- ### `apply-update`
48
-
49
- Purpose: Execute the upgrade directly.
50
-
51
- Convergence:
52
-
53
- 1. Upgrade and acceptance successful: `updated`
54
- 2. Any step fails: `failed`
55
-
56
- ### `check-and-apply`
57
-
58
- Purpose: Default mode for automation.
59
-
60
- Convergence:
61
-
62
- 1. No new version: `no_update`
63
- 2. New version available and upgrade successful: `updated`
64
- 3. Any step fails: `failed`
65
- 4. Installation method not supported: `unsupported`
66
-
67
- ## Return Value Semantics
68
-
69
- The results should be understood as these business states:
70
-
71
- 1. `no_update`
72
- - Checked, no upgradable version available
73
- 2. `update_available`
74
- - Checked, found an upgradable version, but did not execute the upgrade this time
75
- 3. `updated`
76
- - Upgrade completed, and post-upgrade checks passed
77
- 4. `failed`
78
- - Failed at some step during check, upgrade, restart, or acceptance
79
- 5. `unsupported`
80
- - Current installation method does not support automatic updates
81
-
82
- ## Failure Point Naming
83
-
84
- When failed, the failure point should be fixed to these steps:
85
-
86
- 1. `plugins_info`
87
- 2. `plugins_update_dry_run`
88
- 3. `plugins_update`
89
- 4. `plugins_doctor`
90
- 5. `gateway_restart`
91
- 6. `health`
92
-
93
- This makes it easier to do statistics and alerting when integrating with automation later.
94
-
95
- ## Notification Contract
96
-
97
- `notify_on` only allows these 3 values:
98
-
99
- 1. `never`
100
- 2. `failure`
101
- 3. `always`
102
-
103
- Default: `failure`
104
-
105
- Supplementary notes:
106
-
107
- 1. `main_agent` is primarily used to select which local agent is responsible for executing maintenance tasks, e.g., `--agent <main_agent>` in cron.
108
- 2. `main_agent` itself is not a directly deliverable Grix message target; if there is no explicit notification session, just return the result and let the upper-level task or cron records handle notification.
109
- 3. Cron defaults to `notify_on=never`; do not guess an additional notification path inside the skill.
110
-
111
- Recommended notification copy should be kept to one sentence:
112
-
113
- 1. Success: `Grix plugin upgrade completed, current checks are normal.`
114
- 2. No update: `Grix plugin checked, no new version available.`
115
- 3. Failure: `Grix plugin auto-update failed, stuck at <step>.`
116
- 4. Not supported: `Grix is not installed in an auto-updatable way; switch to npm install before enabling auto-update.`
117
-
118
- ## Automation Recommendations
119
-
120
- Recommended for scheduled tasks to use directly:
121
-
122
- ```json
123
- {
124
- "mode": "check-and-apply",
125
- "plugin_id": "grix",
126
- "notify_on": "never",
127
- "main_agent": "main",
128
- "allow_restart": true
129
- }
130
- ```
131
-
132
- Recommended frequency:
133
-
134
- 1. Once per day
135
- 2. Or once every 6 hours
136
-
137
- Default behavior:
138
-
139
- 1. No update: silently end
140
- 2. Update successful: silently end
141
- 3. Update failed: retain the failure result in cron run records for the maintainer or upper-level task to handle uniformly
142
-
143
- ## Prohibited Actions
144
-
145
- 1. Do not trigger upgrades during egg install private chats
146
- 2. Do not directly modify the plugin directory
147
- 3. Do not manually overwrite npm package files
148
- 4. Do not write bypass logic to accommodate old installation methods
149
- 5. Do not perform consecutive retries after a single failure
1
+ # Grix Update Contract
2
+
3
+ This document defines the minimal execution contract for `grix-update`, ensuring consistency when integrating with scheduled tasks, heartbeat reminders, or other maintenance flows.
4
+
5
+ ## Goal
6
+
7
+ `grix-update` only does these 5 things:
8
+
9
+ 1. Confirm whether the plugin exists
10
+ 2. Confirm whether the current installation method supports automatic updates
11
+ 3. Check whether a new version is available
12
+ 4. Execute the upgrade when needed
13
+ 5. Complete validation, restart, and result notification after upgrade
14
+
15
+ ## Command Ladder
16
+
17
+ Use these official commands in order:
18
+
19
+ ```bash
20
+ openclaw plugins info grix --json
21
+ openclaw plugins update grix --dry-run
22
+ openclaw plugins update grix
23
+ openclaw plugins doctor
24
+ openclaw gateway restart
25
+ openclaw health
26
+ ```
27
+
28
+ Rules:
29
+
30
+ 1. Run `info` first, then `dry-run`; do not skip steps.
31
+ 2. If `dry-run` does not show an available update, do not execute the actual upgrade.
32
+ 3. After the actual upgrade, do not skip `doctor`.
33
+ 4. When restart is allowed, `doctor` must be followed by `gateway restart` and `health`.
34
+
35
+ ## Mode Definitions
36
+
37
+ ### `check-only`
38
+
39
+ Purpose: Only check, do not upgrade.
40
+
41
+ Convergence:
42
+
43
+ 1. No new version: `no_update`
44
+ 2. New version available: `update_available`
45
+ 3. Plugin does not exist or installation method not supported: `failed` / `unsupported`
46
+
47
+ ### `apply-update`
48
+
49
+ Purpose: Execute the upgrade directly.
50
+
51
+ Convergence:
52
+
53
+ 1. Upgrade and acceptance successful: `updated`
54
+ 2. Any step fails: `failed`
55
+
56
+ ### `check-and-apply`
57
+
58
+ Purpose: Default mode for automation.
59
+
60
+ Convergence:
61
+
62
+ 1. No new version: `no_update`
63
+ 2. New version available and upgrade successful: `updated`
64
+ 3. Any step fails: `failed`
65
+ 4. Installation method not supported: `unsupported`
66
+
67
+ ## Return Value Semantics
68
+
69
+ The results should be understood as these business states:
70
+
71
+ 1. `no_update`
72
+ - Checked, no upgradable version available
73
+ 2. `update_available`
74
+ - Checked, found an upgradable version, but did not execute the upgrade this time
75
+ 3. `updated`
76
+ - Upgrade completed, and post-upgrade checks passed
77
+ 4. `failed`
78
+ - Failed at some step during check, upgrade, restart, or acceptance
79
+ 5. `unsupported`
80
+ - Current installation method does not support automatic updates
81
+
82
+ ## Failure Point Naming
83
+
84
+ When failed, the failure point should be fixed to these steps:
85
+
86
+ 1. `plugins_info`
87
+ 2. `plugins_update_dry_run`
88
+ 3. `plugins_update`
89
+ 4. `plugins_doctor`
90
+ 5. `gateway_restart`
91
+ 6. `health`
92
+
93
+ This makes it easier to do statistics and alerting when integrating with automation later.
94
+
95
+ ## Notification Contract
96
+
97
+ `notify_on` only allows these 3 values:
98
+
99
+ 1. `never`
100
+ 2. `failure`
101
+ 3. `always`
102
+
103
+ Default: `failure`
104
+
105
+ Supplementary notes:
106
+
107
+ 1. `main_agent` is primarily used to select which local agent is responsible for executing maintenance tasks, e.g., `--agent <main_agent>` in cron.
108
+ 2. `main_agent` itself is not a directly deliverable Grix message target; if there is no explicit notification session, just return the result and let the upper-level task or cron records handle notification.
109
+ 3. Cron defaults to `notify_on=never`; do not guess an additional notification path inside the skill.
110
+
111
+ Recommended notification copy should be kept to one sentence:
112
+
113
+ 1. Success: `Grix plugin upgrade completed, current checks are normal.`
114
+ 2. No update: `Grix plugin checked, no new version available.`
115
+ 3. Failure: `Grix plugin auto-update failed, stuck at <step>.`
116
+ 4. Not supported: `Grix is not installed in an auto-updatable way; switch to npm install before enabling auto-update.`
117
+
118
+ ## Automation Recommendations
119
+
120
+ Recommended for scheduled tasks to use directly:
121
+
122
+ ```json
123
+ {
124
+ "mode": "check-and-apply",
125
+ "plugin_id": "grix",
126
+ "notify_on": "never",
127
+ "main_agent": "main",
128
+ "allow_restart": true
129
+ }
130
+ ```
131
+
132
+ Recommended frequency:
133
+
134
+ 1. Once per day
135
+ 2. Or once every 6 hours
136
+
137
+ Default behavior:
138
+
139
+ 1. No update: silently end
140
+ 2. Update successful: silently end
141
+ 3. Update failed: retain the failure result in cron run records for the maintainer or upper-level task to handle uniformly
142
+
143
+ ## Prohibited Actions
144
+
145
+ 1. Do not trigger upgrades during egg install private chats
146
+ 2. Do not directly modify the plugin directory
147
+ 3. Do not manually overwrite npm package files
148
+ 4. Do not write bypass logic to accommodate old installation methods
149
+ 5. Do not perform consecutive retries after a single failure