Skip to content

feat: recreate npm/Docker package files for reality-simulation-code#1777

Merged
professoroakz merged 2 commits intoproductionfrom
copilot/create-packages-reality-simulation-code
May 1, 2026
Merged

feat: recreate npm/Docker package files for reality-simulation-code#1777
professoroakz merged 2 commits intoproductionfrom
copilot/create-packages-reality-simulation-code

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 1, 2026

Restores the package distribution files that previously existed (from PR #828) but were no longer present in the repo, with enterprise-grade polish and owner-restricted publishing.

Changes

package.json

  • Extended metadata: scoped keywords, contributors, engines (Node ≥18), files whitelist
  • Added scripts: start, sandbox-alpha-s, docker:build, docker:run, docker:publish, package

New files

  • sandbox-alpha-s.js — enterprise sandbox runtime using index.js exports, with structured [INIT]/[INFO]/[STATUS] log output and v1.31337dbp ok741s release branding
  • docker-compose.yml — named-volume, bridged-network Compose config targeting ghcr.io/xaoex/reality-simulation-code
  • PACKAGE.md — install/usage guide for npm (public + GitHub Packages) and Docker
  • PUBLISHING.md — three publish methods: merge-to-main, release tag, manual workflow dispatch
  • RELEASE_NOTES.md — v1.0.0 release notes
  • IMPLEMENTATION_COMPLETE.md — package delivery summary
  • publish-packages.sh — owner-only publishing script (restricted to professoroakz/xaoex via gh api user); triggers npm-github-packages.yml and dockergithubpackage.yml via gh workflow run; uses enterprise [AUTH]/[INFO]/[TRIGGER]/[OK] log prefixes and exits with [DENIED] for unauthorized operators

.npmignore

  • Excludes docker-compose.yml, publish-packages.sh, and IMPLEMENTATION_COMPLETE.md from the npm bundle

Existing CI workflows (npm-github-packages.yml, dockergithubpackage.yml, npm-publish.yml) remain unchanged and continue to trigger on push to main/production, release events, and workflow_dispatch.

- Update package.json with comprehensive metadata, scripts, keywords, engines, files array
- Create docker-compose.yml for multi-container deployments
- Create PACKAGE.md with full package documentation
- Create PUBLISHING.md with publishing guide for npm and Docker
- Create RELEASE_NOTES.md with release information
- Create IMPLEMENTATION_COMPLETE.md with implementation summary
- Create publish-packages.sh helper script to trigger publishing workflows
- Create demo.js demonstration script
- Update .npmignore to exclude docker-compose.yml, publish-packages.sh, IMPLEMENTATION_COMPLETE.md

Agent-Logs-Url: https://github.com/xaoex/reality-simulation-code/sessions/833d3c8a-86bb-47fa-b574-1c6685a39e39

Co-authored-by: professoroakz <6593422+professoroakz@users.noreply.github.com>
@professoroakz
Copy link
Copy Markdown
Collaborator

Looks ok, could use some more work. Make more professional and enterprise. Such as previous release and of course only runnable for me as usual.

@professoroakz professoroakz marked this pull request as ready for review May 1, 2026 12:28
@professoroakz professoroakz marked this pull request as draft May 1, 2026 12:29
@professoroakz professoroakz self-requested a review May 1, 2026 12:29
Copy link
Copy Markdown
Collaborator

@professoroakz professoroakz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read comments, and remove "demo" replace with "sandbox-alpha-s"

…nly, enterprise polish

- Rename demo.js → sandbox-alpha-s.js with enterprise-style header and formatted output
- Replace npm script "demo" with "sandbox-alpha-s"
- Update package.json files[] array to reference sandbox-alpha-s.js
- Add owner-only authorization check (professoroakz / xaoex) to publish-packages.sh
- Upgrade publish-packages.sh to enterprise style with [INIT]/[AUTH]/[INFO] log prefixes
- Update all "demo" references in PACKAGE.md, PUBLISHING.md, RELEASE_NOTES.md, IMPLEMENTATION_COMPLETE.md
- Update .npmignore comment to reference sandbox-alpha-s.js

Agent-Logs-Url: https://github.com/xaoex/reality-simulation-code/sessions/c94bdaf5-3f86-4aa3-be13-420f2631d80b

Co-authored-by: professoroakz <6593422+professoroakz@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 1, 2026

Read comments, and remove "demo" replace with "sandbox-alpha-s"

Done in commit 6008a34demo.js has been removed and replaced with sandbox-alpha-s.js. The npm script is now npm run sandbox-alpha-s, and all references across PACKAGE.md, PUBLISHING.md, RELEASE_NOTES.md, and IMPLEMENTATION_COMPLETE.md have been updated accordingly.

Looks ok, could use some more work. Make more professional and enterprise. Such as previous release and of course only runnable for me as usual.

Updated in commit 6008a34. sandbox-alpha-s.js now uses an enterprise-style formatted runtime banner matching the previous release style (v1.31337dbp ok741s). publish-packages.sh has been upgraded with [AUTH]/[INFO]/[TRIGGER] log prefixes and an owner-only authorization check — it verifies the GitHub user is professoroakz or xaoex via gh api user before proceeding, and exits with [DENIED] for anyone else.

Copilot AI requested a review from professoroakz May 1, 2026 12:33
@professoroakz professoroakz marked this pull request as ready for review May 1, 2026 12:36
@professoroakz professoroakz merged commit fecb1cb into production May 1, 2026
24 of 26 checks passed
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