ofiere-openclaw-plugin 4.50.0-probe.1 → 4.50.0-probe.2

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/dist/src/tools.js CHANGED
@@ -9,6 +9,9 @@
9
9
  //
10
10
  // This pattern keeps the tool count low (1 tool per domain)
11
11
  // while supporting unlimited operations within each domain.
12
+ import * as fs from "node:fs";
13
+ import * as path from "node:path";
14
+ import { spawnSync } from "node:child_process";
12
15
  import { resolveAgentId } from "./agent-resolver.js";
13
16
  import { handleProposeAttach, handleCommitAttach, registerAttachmentContextHook, } from "./attachments.js";
14
17
  import { invalidateAgentTier } from "./agent-tier.js";
@@ -3059,10 +3062,8 @@ function registerPromptOps(api, supabase, userId) {
3059
3062
  // META-TOOL 10: OFIERE_CONSTELLATION_OPS — Agent Architecture Builder
3060
3063
  // ═══════════════════════════════════════════════════════════════════════════════
3061
3064
  function registerConstellationOps(api, supabase, userId) {
3062
- // Resolve the OpenClaw data directory the plugin runs inside the gateway process
3063
- const fs = require("fs");
3064
- const path = require("path");
3065
- const { spawnSync } = require("child_process");
3065
+ // fs/path/spawnSync now imported at module scope (ESM `require` is undefined
3066
+ // when the plugin is loaded as compiled ESM dist/index.js under gateway 2026.5.x).
3066
3067
  // OpenClaw stores data at /data/.openclaw/ inside the Docker container
3067
3068
  // Fallback: check HOME/.openclaw/ for local dev
3068
3069
  const OPENCLAW_ROOT = fs.existsSync("/data/.openclaw") ? "/data/.openclaw"
@@ -31,6 +31,29 @@
31
31
  "hooks": {
32
32
  "allowConversationAccess": true
33
33
  },
34
+ "contracts": {
35
+ "tools": [
36
+ "OFIERE_TASK_OPS",
37
+ "OFIERE_AGENT_OPS",
38
+ "OFIERE_PROJECT_OPS",
39
+ "OFIERE_SCHEDULE_OPS",
40
+ "OFIERE_KNOWLEDGE_OPS",
41
+ "OFIERE_WORKFLOW_OPS",
42
+ "OFIERE_NOTIFY_OPS",
43
+ "OFIERE_MEMORY_OPS",
44
+ "OFIERE_PROMPT_OPS",
45
+ "OFIERE_CONSTELLATION_OPS",
46
+ "OFIERE_FILE_OPS",
47
+ "OFIERE_PLAN_OPS",
48
+ "OFIERE_SOP_OPS",
49
+ "OFIERE_FRAMEWORK_OPS",
50
+ "OFIERE_BRAIN_OPS",
51
+ "OFIERE_TALENT_OPS"
52
+ ]
53
+ },
54
+ "activation": {
55
+ "onStartup": true
56
+ },
34
57
  "uiHints": {
35
58
  "enabled": {
36
59
  "label": "Enable Ofiere PM",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ofiere-openclaw-plugin",
3
- "version": "4.50.0-probe.1",
3
+ "version": "4.50.0-probe.2",
4
4
  "type": "module",
5
5
  "description": "OpenClaw plugin for Ofiere PM - 16 meta-tools covering tasks, agents, projects, scheduling, knowledge, workflows, notifications, memory, prompts, constellation, space file management, execution plan builder, SOP management, agent brain, talent management, and corporate frameworks",
6
6
  "keywords": ["openclaw", "ofiere", "project-management", "agents", "plugin"],
package/src/tools.ts CHANGED
@@ -11,6 +11,9 @@
11
11
  // while supporting unlimited operations within each domain.
12
12
 
13
13
  import type { SupabaseClient } from "@supabase/supabase-js";
14
+ import * as fs from "node:fs";
15
+ import * as path from "node:path";
16
+ import { spawnSync } from "node:child_process";
14
17
  import type { OfiereConfig } from "./types.js";
15
18
  import { resolveAgentId } from "./agent-resolver.js";
16
19
  import {
@@ -3246,10 +3249,8 @@ function registerConstellationOps(
3246
3249
  supabase: SupabaseClient,
3247
3250
  userId: string,
3248
3251
  ): void {
3249
- // Resolve the OpenClaw data directory the plugin runs inside the gateway process
3250
- const fs = require("fs");
3251
- const path = require("path");
3252
- const { spawnSync } = require("child_process");
3252
+ // fs/path/spawnSync now imported at module scope (ESM `require` is undefined
3253
+ // when the plugin is loaded as compiled ESM dist/index.js under gateway 2026.5.x).
3253
3254
 
3254
3255
  // OpenClaw stores data at /data/.openclaw/ inside the Docker container
3255
3256
  // Fallback: check HOME/.openclaw/ for local dev