clawaxis 1.0.0 → 1.0.3

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.
@@ -10,11 +10,13 @@
10
10
  "properties": {
11
11
  "relayUrl": {
12
12
  "type": "string",
13
- "description": "ClawAxis WebSocket relay endpoint URL"
13
+ "description": "ClawAxis WebSocket relay endpoint URL",
14
+ "default": "https://fqwpwypyzcbmdeajlkzt.supabase.co/functions/v1/ws-relay"
14
15
  },
15
16
  "agentToken": {
16
17
  "type": "string",
17
- "description": "Agent authentication token (oc_tk_...)"
18
+ "description": "Agent authentication token (oc_tk_...)",
19
+ "default": "oc_tk_placeholder_replace_me"
18
20
  },
19
21
  "mediaDomain": {
20
22
  "type": "string",
@@ -75,7 +77,7 @@
75
77
  }
76
78
  }
77
79
  },
78
- "required": ["relayUrl", "agentToken"]
80
+ "required": []
79
81
  },
80
82
  "uiHints": {
81
83
  "relayUrl": { "label": "Relay URL", "placeholder": "https://your-relay.supabase.co/functions/v1/ws-relay" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawaxis",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "files": [
@@ -18,7 +18,9 @@
18
18
  "channel"
19
19
  ],
20
20
  "openclaw": {
21
- "extensions": ["./index.ts"],
21
+ "extensions": [
22
+ "./index.ts"
23
+ ],
22
24
  "channel": {
23
25
  "id": "clawaxis",
24
26
  "label": "ClawAxis",
package/src/config.ts CHANGED
@@ -57,7 +57,8 @@ export function loadConfig(apiConfig: any): ClawAxisConfig | null {
57
57
  cfg = apiConfig;
58
58
  } else {
59
59
  cfg = apiConfig?.channels?.clawaxis
60
- ?? apiConfig?.plugins?.entries?.["clawaxis-plugin"]?.config;
60
+ ?? apiConfig?.plugins?.entries?.["clawaxis-plugin"]?.config
61
+ ?? apiConfig?.plugins?.entries?.["clawaxis"]?.config;
61
62
  }
62
63
 
63
64
  if (!cfg) return null;
@@ -62,8 +62,8 @@ export async function processPendingDocs(docs: any[]): Promise<void> {
62
62
  ].filter(Boolean).join(" | ");
63
63
 
64
64
  const messageContent = isUpdate
65
- ? `[DOC_UPDATED] The user updated document "${doc.name}" (v${doc.version || 1}). ${docMeta ? docMeta + ". " : ""}File updated at: ${filePath}. Read it with the read tool if you need to review the changes. Confirm sync by calling clawaxis_confirm_doc_sync with document_id: ${doc.id}.`
66
- : `[DOC_UPLOADED] The user uploaded a new document: "${doc.name}". ${docMeta ? docMeta + ". " : ""}Saved to: ${filePath}. This file is now searchable via memory_search. Read it with the read tool if you want to review. Confirm sync by calling clawaxis_confirm_doc_sync with document_id: ${doc.id}.`;
65
+ ? `[DOC_UPDATED] The user updated document "${doc.name}" (v${doc.version || 1}). ${docMeta ? docMeta + ". " : ""}File updated at: ${filePath}. Read it with the read tool if you need to review the changes.`
66
+ : `[DOC_UPLOADED] The user uploaded a new document: "${doc.name}". ${docMeta ? docMeta + ". " : ""}Saved to: ${filePath}. This file is now searchable via memory_search. Read it with the read tool if you want to review.`;
67
67
 
68
68
  await dispatchSystemMessage(messageContent, `doc-sync-${doc.id}`, `doc-sync-${doc.id}`);
69
69