@goplausible/openclaw-algorand-plugin 2.0.5 → 2.0.6
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 +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/workspace.js +1 -1
- package/index.ts +1 -1
- package/lib/workspace.ts +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
From [ClawHub](https://clawhub.ai):
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
clawhub install @goplausible/
|
|
26
|
+
clawhub install @goplausible/algorand-plugin
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
Or from a local path (source code):
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
openclaw plugins install ./path/to/
|
|
32
|
+
openclaw plugins install ./path/to/algorand-plugin
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## Configuration
|
|
@@ -56,7 +56,7 @@ The plugin performs only **declarative file writes** — no shell scripts, no sy
|
|
|
56
56
|
| `~/.mcporter/mcporter.json` | First load + `setup` | Idempotently adds an `algorand-mcp` entry pointing at the bundled binary. Existing entries for other servers are preserved. |
|
|
57
57
|
| `<agent-workspace>/memory/algorand-plugin.md` | First load + `setup` | Writes the plugin's Algorand routing guide for the agent. |
|
|
58
58
|
| `<agent-workspace>/MEMORY.md` | First load + `setup` | Adds a `## NEVER FORGET` block (or updates its subsections) if not already present. Existing content is preserved. |
|
|
59
|
-
| `<agent-workspace>/.openclaw/
|
|
59
|
+
| `<agent-workspace>/.openclaw/algorand-plugin.initialized` | First load | Marker file so first-load init is skipped on subsequent gateway starts. |
|
|
60
60
|
| `~/.openclaw/openclaw.json` | When you run `openclaw algorand-plugin setup` and confirm | Persists the plugin config (`enableX402`). |
|
|
61
61
|
|
|
62
62
|
The plugin does **not**:
|
|
@@ -103,14 +103,14 @@ When `enableX402` is enabled (default), the plugin registers the `x402_fetch` to
|
|
|
103
103
|
|
|
104
104
|
## Plugin Config
|
|
105
105
|
|
|
106
|
-
Config lives in `~/.openclaw/openclaw.json` under `plugins.entries.
|
|
106
|
+
Config lives in `~/.openclaw/openclaw.json` under `plugins.entries.algorand-plugin.config`:
|
|
107
107
|
|
|
108
108
|
```json
|
|
109
109
|
{
|
|
110
110
|
"plugins": {
|
|
111
|
-
"allow": ["
|
|
111
|
+
"allow": ["algorand-plugin"],
|
|
112
112
|
"entries": {
|
|
113
|
-
"
|
|
113
|
+
"algorand-plugin": {
|
|
114
114
|
"config": {
|
|
115
115
|
"enableX402": true
|
|
116
116
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ declare const _default: {
|
|
|
6
6
|
register: (api: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginApi) => void;
|
|
7
7
|
} & Pick<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition, "kind" | "reload" | "nodeHostCommands" | "securityAuditCollectors">;
|
|
8
8
|
export default _default;
|
|
9
|
-
export declare const id = "
|
|
9
|
+
export declare const id = "\u00DFalgorand-plugin";
|
|
10
10
|
export declare const name = "Algorand Integration";
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { x402Fetch } from "./lib/x402-fetch.js";
|
|
|
7
7
|
import { getMcpBinaryPath, isMcpBinaryBundled, isMcporterConfigured, mcporterConfigPath, upsertMcporterConfig, } from "./lib/mcporter.js";
|
|
8
8
|
import { ensureWorkspaceMemoryIndex, resolveWorkspaceDir, runFirstLoadInit, writeMemoryFile, writePluginConfig, } from "./lib/workspace.js";
|
|
9
9
|
const PLUGIN_ROOT = dirname(fileURLToPath(import.meta.url));
|
|
10
|
-
const PLUGIN_ID = "
|
|
10
|
+
const PLUGIN_ID = "ßalgorand-plugin";
|
|
11
11
|
function register(api) {
|
|
12
12
|
const pluginConfig = api.pluginConfig ?? {};
|
|
13
13
|
const workspacePath = resolveWorkspaceDir(api);
|
package/dist/lib/workspace.js
CHANGED
|
@@ -2,7 +2,7 @@ import { readFileSync, writeFileSync, existsSync, mkdirSync } from "node:fs";
|
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { upsertMcporterConfig } from "./mcporter.js";
|
|
5
|
-
const PLUGIN_ID = "
|
|
5
|
+
const PLUGIN_ID = "algorand-plugin";
|
|
6
6
|
export function resolveWorkspaceDir(api) {
|
|
7
7
|
const rt = api.runtime?.agent;
|
|
8
8
|
if (rt?.resolveAgentWorkspaceDir) {
|
package/index.ts
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./lib/workspace.js";
|
|
23
23
|
|
|
24
24
|
const PLUGIN_ROOT = dirname(fileURLToPath(import.meta.url));
|
|
25
|
-
const PLUGIN_ID = "
|
|
25
|
+
const PLUGIN_ID = "ßalgorand-plugin";
|
|
26
26
|
|
|
27
27
|
type OpenClawPluginApi = WorkspaceApi & {
|
|
28
28
|
id: string;
|
package/lib/workspace.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { homedir } from "node:os";
|
|
|
4
4
|
|
|
5
5
|
import { upsertMcporterConfig } from "./mcporter.js";
|
|
6
6
|
|
|
7
|
-
const PLUGIN_ID = "
|
|
7
|
+
const PLUGIN_ID = "algorand-plugin";
|
|
8
8
|
|
|
9
9
|
export type WorkspaceApi = {
|
|
10
10
|
logger: { info: (m: string) => void; warn: (m: string) => void; error: (m: string) => void };
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goplausible/openclaw-algorand-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"retag": "git tag -d \"v$npm_package_version\" 2>/dev/null; git push origin \":refs/tags/v$npm_package_version\" 2>/dev/null; git tag -a \"v$npm_package_version\" -m \"v$npm_package_version\" && git push origin \"v$npm_package_version\"",
|
|
30
30
|
"prepublishOnly": "npm run build",
|
|
31
31
|
"publish:npm": "npm publish --access public",
|
|
32
|
-
"publish:clawhub": "npm run build && clawhub package publish . --family code-plugin --name @goplausible/
|
|
32
|
+
"publish:clawhub": "npm run build && clawhub package publish . --family code-plugin --name @goplausible/algorand-plugin --display-name 'Algorand Plugin' --version \"$npm_package_version\" --tags latest --source-repo GoPlausible/openclaw-algorand-plugin --source-commit \"$(git rev-parse \"v$npm_package_version\")\" --source-ref \"v$npm_package_version\""
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"index.ts",
|