opencode-pixel-office 1.0.0 → 1.0.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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Pixel Office is an OpenCode plugin that visualizes agent activity (LLM thoughts, tool usage, file modifications) in a live, retro-style office scene.
4
4
  <img width="1455" height="824" alt="Screenshot 2026-02-04 at 7 03 58 PM" src="https://github.com/user-attachments/assets/e20e2e68-a032-4747-a027-aacca0f274e5" />
5
+ https://www.npmjs.com/package/opencode-pixel-office
6
+
5
7
  ## Overview
6
8
 
7
9
  The system consists of three main parts:
@@ -62,6 +62,27 @@ const copyRecursiveSync = (src, dest) => {
62
62
  }
63
63
  };
64
64
 
65
+ const updateConfig = async () => {
66
+ if (skipJson) {
67
+ return;
68
+ }
69
+ if (!fs.existsSync(DEFAULT_CONFIG_PATH)) {
70
+ return;
71
+ }
72
+ try {
73
+ const raw = fs.readFileSync(DEFAULT_CONFIG_PATH, "utf8");
74
+ const data = JSON.parse(raw);
75
+ const list = Array.isArray(data.plugin) ? data.plugin : [];
76
+ if (!list.includes(PLUGIN_ID)) {
77
+ data.plugin = [...list, PLUGIN_ID];
78
+ fs.writeFileSync(DEFAULT_CONFIG_PATH, `${JSON.stringify(data, null, 2)}\n`, "utf8");
79
+ console.log(`✓ Added ${PLUGIN_ID} to opencode.json`);
80
+ }
81
+ } catch (error) {
82
+ console.warn(`Failed to update ${DEFAULT_CONFIG_PATH}:`, error);
83
+ }
84
+ };
85
+
65
86
  const run = async () => {
66
87
  if (!shouldInstall) {
67
88
  printHelp();
@@ -152,23 +173,5 @@ run().catch((error) => {
152
173
  process.exit(1);
153
174
  });
154
175
 
155
- const updateConfig = async () => {
156
- if (skipJson) {
157
- return;
158
- }
159
- if (!fs.existsSync(DEFAULT_CONFIG_PATH)) {
160
- return;
161
- }
162
- try {
163
- const raw = fs.readFileSync(DEFAULT_CONFIG_PATH, "utf8");
164
- const data = JSON.parse(raw);
165
- const list = Array.isArray(data.plugin) ? data.plugin : [];
166
- if (!list.includes(PLUGIN_ID)) {
167
- data.plugin = [...list, PLUGIN_ID];
168
- fs.writeFileSync(DEFAULT_CONFIG_PATH, `${JSON.stringify(data, null, 2)}\n`, "utf8");
169
- console.log(`✓ Added ${PLUGIN_ID} to opencode.json`);
170
- }
171
- } catch (error) {
172
- console.warn(`Failed to update ${DEFAULT_CONFIG_PATH}:`, error);
173
- }
174
- };
176
+
177
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-pixel-office",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "bin",