Skip to content

[codex] Fix local mac run setup - #1

Merged
Register-page merged 1 commit into
Register-page:mainfrom
PeterLikesApple:fix-local-mac-run
May 23, 2026
Merged

Register-page merged 1 commit into
Register-page:mainfrom
PeterLikesApple:fix-local-mac-run

Conversation

@PeterLikesApple

Copy link
Copy Markdown
Contributor

Summary

  • Add local .env configuration and fail-fast validation for required API keys.
  • Add runnable npm scripts, Node tests, and a focused CI workflow for this Node project.
  • Fix README instructions for macOS local usage and remove unrelated publish/Deno workflows.
  • Improve summary generation behavior by adding APIMart polling limits and preserving messages that arrive while a poster is being generated.
  • Reduce dependency audit exposure with compatible npm overrides while keeping Wechaty startup intact.

Validation

  • npm ci --registry=https://registry.npmjs.org
  • npm run check
  • npm start exits clearly when required API keys are not configured.
  • npm audit --package-lock-only --json --registry=https://registry.npmjs.org

Audit note

npm audit is down from 24 vulnerabilities to 12, with critical vulnerabilities removed. The remaining findings come from the latest published wechaty@1.20.2 dependency chain, mostly open-graph, request, uuid, and related Wechaty packages. A forced uuid override broke Wechaty startup because older packages import uuid/v4, so that unsafe override was intentionally not kept.

@Register-page
Register-page marked this pull request as ready for review May 23, 2026 12:49
@Register-page
Register-page merged commit e017875 into Register-page:main May 23, 2026
2 checks passed
@PeterLikesApple

Copy link
Copy Markdown
Contributor Author

API wiring verified locally with npm run smoke:api: DeepSeek returned OK JSON, APIMart submitted task task_01KSAEAXJE9N9W6Y3R7RMKNQC8, completed successfully, and the generated image URL returned HTTP 200. Also reran npm run check successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants