discoclaw 0.5.3 → 0.5.4

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.
@@ -97,7 +97,8 @@ export async function handleUpdateCommand(cmd, opts = {}) {
97
97
  }
98
98
  if (npmMode) {
99
99
  progress('Installing latest version from npm...');
100
- const install = await run('npm', ['install', '-g', 'discoclaw@latest', '--loglevel=error'], { timeout: 120_000 });
100
+ const npmEnv = { ...process.env, CFLAGS: '-Wno-incompatible-pointer-types' };
101
+ const install = await run('npm', ['install', '-g', 'discoclaw@latest', '--loglevel=error'], { timeout: 120_000, env: npmEnv });
101
102
  if (install.exitCode !== 0) {
102
103
  const detail = (install.stderr || install.stdout).trim().slice(0, 500);
103
104
  return { reply: `\`npm install -g discoclaw@latest\` failed:\n\`\`\`\n${detail}\n\`\`\`` };
@@ -50,6 +50,7 @@ export async function npmGlobalUpgrade() {
50
50
  try {
51
51
  const result = await execa('npm', ['install', '-g', 'discoclaw', '--loglevel=error'], {
52
52
  timeout: 120_000,
53
+ env: { ...process.env, CFLAGS: '-Wno-incompatible-pointer-types' },
53
54
  });
54
55
  return {
55
56
  exitCode: result.exitCode ?? 0,
@@ -83,6 +83,7 @@ describe('npmGlobalUpgrade', () => {
83
83
  expect(result.stderr).toBe('');
84
84
  expect(mockExeca).toHaveBeenCalledWith('npm', ['install', '-g', 'discoclaw', '--loglevel=error'], {
85
85
  timeout: 120_000,
86
+ env: expect.objectContaining({ CFLAGS: '-Wno-incompatible-pointer-types' }),
86
87
  });
87
88
  });
88
89
  it('returns a non-zero exitCode and stderr when npm install fails', async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discoclaw",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Minimal Discord bridge routing messages to AI runtimes",
5
5
  "license": "MIT",
6
6
  "repository": {