@symbiosis-lab/moss-plugin-github 1.5.1

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +18 -0
  3. package/assets/icon.svg +3 -0
  4. package/assets/manifest.json +19 -0
  5. package/e2e/deploy-api.test.ts +1129 -0
  6. package/e2e/moss-cli.test.ts +478 -0
  7. package/features/auth/device-flow.feature +41 -0
  8. package/features/deploy/validation.feature +50 -0
  9. package/features/steps/auth.steps.ts +285 -0
  10. package/features/steps/deploy.steps.ts +354 -0
  11. package/package.json +51 -0
  12. package/src/__tests__/auth-flow.integration.test.ts +738 -0
  13. package/src/__tests__/auth.test.ts +147 -0
  14. package/src/__tests__/configure-domain.test.ts +263 -0
  15. package/src/__tests__/deploy.integration.test.ts +798 -0
  16. package/src/__tests__/git.test.ts +190 -0
  17. package/src/__tests__/github-api.test.ts +761 -0
  18. package/src/__tests__/github-deploy.test.ts +2411 -0
  19. package/src/__tests__/progress-timeout.test.ts +209 -0
  20. package/src/__tests__/repo-setup-progress.test.ts +367 -0
  21. package/src/__tests__/repo-setup.test.ts +370 -0
  22. package/src/__tests__/token.test.ts +152 -0
  23. package/src/__tests__/utils.test.ts +129 -0
  24. package/src/__tests__/workflow.test.ts +146 -0
  25. package/src/auth.ts +588 -0
  26. package/src/constants.ts +7 -0
  27. package/src/git.ts +60 -0
  28. package/src/github-api.ts +601 -0
  29. package/src/github-deploy.ts +593 -0
  30. package/src/main.ts +646 -0
  31. package/src/repo-setup.ts +685 -0
  32. package/src/token.ts +202 -0
  33. package/src/types.ts +91 -0
  34. package/src/utils.ts +108 -0
  35. package/src/workflow.ts +79 -0
  36. package/test-helpers/mock-github-api.ts +217 -0
  37. package/tsconfig.json +20 -0
  38. package/vitest.config.ts +50 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,30 @@
1
+ # Changelog
2
+
3
+ ## 1.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#738](https://github.com/Symbiosis-Lab/moss/pull/738) [`8539776`](https://github.com/Symbiosis-Lab/moss/commit/853977618a92b5d66853be8ca9558012b45183e5) Thanks [@guoliu](https://github.com/guoliu)! - First publish of the github and matters moss plugins to npm under the @symbiosis-lab scope. Sources consolidated into the moss monorepo; published from the changesets workflow. (The five other plugins originally listed here — douban, linkedin, substack, x, xiaohongshu — do not yet exist as packages and were removed so `changeset version` can resolve.)
8
+
9
+ All notable changes to this plugin are documented in this file.
10
+
11
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
12
+
13
+ ## [Unreleased]
14
+
15
+ - README / public-mirror documentation refresh. No behavior change (manifest remains `1.5.0`).
16
+
17
+ ## [1.5.0] - 2026-04-20
18
+
19
+ ### Changed
20
+
21
+ - Open-source release: source moved to public mirror at Symbiosis-Lab/moss-plugins.
22
+ - CI integration via `pnpm test-plugins` in the monorepo test suite.
23
+
24
+ ### Fixed
25
+
26
+ - Deploy pushes from `.moss/build/site/` (not stale `.moss/site/`).
27
+ - Deploy heartbeat re-emits last known step instead of hardcoded progress value.
28
+ - Remove `index.lock` before write-tree to handle iCloud re-locking race.
29
+ - `.moss/.gitignore` ownership moved into the moss-managed `.gitignore` (not plugin-owned).
30
+ - Resolve 240+ Dependabot security alerts in transitive dependencies.
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @symbiosis-lab/moss-plugin-github
2
+
3
+ > Publish moss sites to GitHub Pages.
4
+
5
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
6
+ [![status](https://img.shields.io/badge/status-experimental-orange)](../#stability)
7
+
8
+ > **Read-only mirror.** Source lives in the private moss monorepo. PRs cannot be merged in the mirror — see [CONTRIBUTING.md](../CONTRIBUTING.md).
9
+
10
+ A moss publishing plugin for GitHub Pages. See [moss.pub](https://mosspub.com) and the [plugin index](../README.md) for the full plugin lineup.
11
+
12
+ ## Stability
13
+
14
+ This plugin is 0.x. APIs may change between minor versions until 1.0. See [CHANGELOG.md](../CHANGELOG.md).
15
+
16
+ ## License
17
+
18
+ MIT — see [LICENSE](../LICENSE).
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
2
+ <path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/>
3
+ </svg>
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "github",
3
+ "version": "1.5.1",
4
+ "description": "Deploy to GitHub Pages via GitHub Actions",
5
+ "author": "moss team",
6
+ "entry": "main.bundle.js",
7
+ "capabilities": ["deploy"],
8
+ "domain": "github.com",
9
+ "global_name": "GithubPlugin",
10
+ "icon": "icon.svg",
11
+ "config": {
12
+ "auto_commit": true,
13
+ "video_max_size_mb": 75
14
+ },
15
+ "config_schema": {
16
+ "auto_commit": "boolean",
17
+ "video_max_size_mb": "number"
18
+ }
19
+ }