gsd-for-omp 0.0.0-stage → 1.1.0
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/CHANGELOG.md +94 -0
- package/CONTRIBUTING.md +78 -0
- package/LICENSE +23 -0
- package/README.md +84 -2
- package/README.zh-CN.md +85 -0
- package/bin/gsd-for-omp.cjs +492 -0
- package/docs/ARCHITECTURE.md +188 -0
- package/docs/CONFIGURATION.md +239 -0
- package/docs/DEVELOPMENT.md +128 -0
- package/docs/GETTING-STARTED.md +211 -0
- package/docs/TESTING.md +143 -0
- package/package.json +66 -4
- package/src/eos.cjs +70 -0
- package/src/extension/cli-bridge.cjs +169 -0
- package/src/extension/commands.cjs +441 -0
- package/src/extension/continuation.cjs +416 -0
- package/src/extension/engine.cjs +130 -0
- package/src/extension/goal-mode.cjs +156 -0
- package/src/extension/graphify.cjs +185 -0
- package/src/extension/hooks.cjs +157 -0
- package/src/extension/lifecycle.cjs +218 -0
- package/src/extension/localize.cjs +56 -0
- package/src/extension/native-launchers.cjs +721 -0
- package/src/extension/native-prompts.cjs +769 -0
- package/src/extension/native-tasks.cjs +335 -0
- package/src/extension/native-ui.cjs +199 -0
- package/src/extension/onboarding.cjs +83 -0
- package/src/extension/phase-guard.cjs +81 -0
- package/src/extension/phases.cjs +263 -0
- package/src/extension/planning-store.cjs +161 -0
- package/src/extension/planning.cjs +164 -0
- package/src/extension/projected-skills.cjs +164 -0
- package/src/extension/session-controls.cjs +211 -0
- package/src/extension/state.cjs +59 -0
- package/src/extension/status.cjs +314 -0
- package/src/extension/task-results.cjs +212 -0
- package/src/extension/util.cjs +44 -0
- package/src/extension.cjs +111 -0
- package/src/gsd-graphify-worker.cjs +80 -0
- package/src/locale.cjs +72 -0
- package/src/locales/en.cjs +22 -0
- package/src/locales/zh-CN.cjs +22 -0
- package/src/projection.cjs +168 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `gsd-for-omp` are recorded here in [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) style. The canonical changelog filename is **CHANGELOG.md**. See the [README](README.md) for the current installation and usage documentation. Entries up to 1.0.25 were released as `gsd-omp` from [tchivs/gsd-omp](https://github.com/tchivs/gsd-omp).
|
|
4
|
+
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [1.1.0] - 2026-10-19
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Published to npm as `gsd-for-omp` through GitHub Actions trusted publishing (OIDC, with provenance). Install with `npm install --global gsd-for-omp`, then `gsd-for-omp install`; GitHub release tarball URLs are no longer used.
|
|
12
|
+
- `gsd-for-omp update` now queries the npm registry (`npm view gsd-for-omp version`) and installs the newer version with `npm install --global gsd-for-omp@<version>` before re-projecting. It no longer calls the GitHub API, so `GITHUB_TOKEN`/`GH_TOKEN` are not used.
|
|
13
|
+
- The README and docs were reorganized: the README is a short project overview, the command catalog moved to Getting Started, and the EoS contract table and model-routing explanation moved to Architecture and Configuration. The documentation also no longer claims that GSD Core's model catalog ships an empty `omp` tier map.
|
|
14
|
+
- Release builds roll the `## [Unreleased]` entries of this changelog into a dated version section automatically.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- The documented and enforced GSD Core minimum is now 1.12.0, read from `engines.gsd` in `package.json`; it was incorrectly reported as 1.11.0.
|
|
19
|
+
- `npm run lint` now syntax-checks every `.cjs` file under `bin/`, `src/`, `scripts/`, and `test/`, not a fixed list.
|
|
20
|
+
|
|
21
|
+
## [1.0.27] - 2026-10-19
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- Updated the bundled `@opengsd/gsd-core` dependency to `^1.17.0` (from `^1.12.0`).
|
|
26
|
+
|
|
27
|
+
## [1.0.26] - 2026-10-19
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- Continued the project as `gsd-for-omp`, a fork of `tchivs/gsd-omp`. The npm package, CLI (`gsd-for-omp`), projected extension (`extensions/gsd-for-omp.ts`), ownership manifest (`.gsd-for-omp-manifest.json`), and locale override (`GSD_FOR_OMP_LOCALE`) are renamed accordingly. Remove an existing `gsd-omp` install (`gsd-omp uninstall && npm uninstall --global gsd-omp`) before installing `gsd-for-omp`: both register the same `/gsd-*` commands and agent names.
|
|
32
|
+
- Every `main` commit that passes CI is now released automatically.
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- `/gsd-execute-phase` asks the orchestrator to track the run with OMP's native `todo` tool: one item per wave plus the post-wave gates. Contributed by Andrii Panasiuk ([tchivs/gsd-omp#73](https://github.com/tchivs/gsd-omp/pull/73)).
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- The projected `gsd-execute-phase` skill carries the same OMP executor dispatch contract as the `/gsd-execute-phase` command, so a skill-driven run no longer stops on GSD Core's `runtime 'omp' declares no executor-isolation primitive` gate. Contributed by Andrii Panasiuk ([tchivs/gsd-omp#74](https://github.com/tchivs/gsd-omp/pull/74)).
|
|
41
|
+
- Stopped projecting GSD Core `agents/*.compact.md` variants into the OMP agents directory. Each variant shares its base agent's `name`, and OMP registered the compact file in place of the full agent, so most GSD subagents ran with the compact prompt even when `workflow.compact_content` was off. This matches GSD Core's own installer (`hostBehaviors.skipCompactAgents`). `gsd-for-omp update` removes previously projected compact files; with `workflow.compact_content` enabled, GSD Core falls back to the full agent prompt under OMP ([tchivs/gsd-omp#75](https://github.com/tchivs/gsd-omp/pull/75)).
|
|
42
|
+
|
|
43
|
+
## [1.0.20] - 2026-08-29
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
|
|
47
|
+
- Integrated OMP Goal Mode through the optional `goal_updated` event. When the host provides that event, the plugin mirrors the goal objective, status, and token budget in `/gsd-status`, the footer, the widget, and the live status overlay.
|
|
48
|
+
- Restored the latest Goal Mode state from the OMP session journal when a session starts or reloads.
|
|
49
|
+
|
|
50
|
+
### Changed
|
|
51
|
+
|
|
52
|
+
- Added a continuation guard: while an active Goal Mode objective is running, GSD continuation prompts remain pending so the Goal Mode and GSD continuation loops do not compete. Pause or drop the goal before running `/gsd-next`.
|
|
53
|
+
- Kept Goal Mode host-owned and optional. Hosts without `goal_updated`, including OMP 17, retain the rest of the GSD integration and simply omit this optional status surface.
|
|
54
|
+
|
|
55
|
+
Related: [PR #57](https://github.com/tchivs/gsd-omp/pull/57), [release PR #58](https://github.com/tchivs/gsd-omp/pull/58).
|
|
56
|
+
|
|
57
|
+
## [1.0.19] - 2026-08-29
|
|
58
|
+
|
|
59
|
+
### Added
|
|
60
|
+
|
|
61
|
+
- Deepened native OMP integration around `/gsd-status`, including native controls for context compaction, stopping the current turn, branching and navigating the session tree, switching sessions, and reloading runtime state.
|
|
62
|
+
- Added OMP argument completion and session naming where projected skills expose stable parameter contracts.
|
|
63
|
+
|
|
64
|
+
### Changed
|
|
65
|
+
|
|
66
|
+
- Unified native task execution, context usage, compaction, retry, and asynchronous job state under the `/gsd-status` status surface, widget, footer, and overlay while keeping native task tracking internal.
|
|
67
|
+
|
|
68
|
+
Related: [PR #55](https://github.com/tchivs/gsd-omp/pull/55), [release PR #56](https://github.com/tchivs/gsd-omp/pull/56).
|
|
69
|
+
|
|
70
|
+
## [1.0.18] - 2026-08-29
|
|
71
|
+
|
|
72
|
+
### Changed
|
|
73
|
+
|
|
74
|
+
- Refined the OMP status widget layout with visual progress bars and clearer blocker and concern indicators.
|
|
75
|
+
|
|
76
|
+
Related: [PR #53](https://github.com/tchivs/gsd-omp/pull/53), [release PR #54](https://github.com/tchivs/gsd-omp/pull/54).
|
|
77
|
+
|
|
78
|
+
## [1.0.17] - 2026-08-29
|
|
79
|
+
|
|
80
|
+
### Changed
|
|
81
|
+
|
|
82
|
+
- Kept native task execution internal to the extension and removed the public `/omp-native` command.
|
|
83
|
+
- Directed native execution status and continuation guidance to `/gsd-status`; host smoke coverage verifies that `/omp-native` is not exposed.
|
|
84
|
+
|
|
85
|
+
Related: [PR #51](https://github.com/tchivs/gsd-omp/pull/51), [release PR #52](https://github.com/tchivs/gsd-omp/pull/52).
|
|
86
|
+
|
|
87
|
+
[Unreleased]: https://github.com/GManzato/gsd-for-omp/compare/v1.1.0...HEAD
|
|
88
|
+
[1.1.0]: https://github.com/GManzato/gsd-for-omp/compare/v1.0.27...v1.1.0
|
|
89
|
+
[1.0.27]: https://github.com/GManzato/gsd-for-omp/compare/v1.0.26...v1.0.27
|
|
90
|
+
[1.0.26]: https://github.com/GManzato/gsd-for-omp/compare/v1.0.25...v1.0.26
|
|
91
|
+
[1.0.20]: https://github.com/tchivs/gsd-omp/releases/tag/v1.0.20
|
|
92
|
+
[1.0.19]: https://github.com/tchivs/gsd-omp/releases/tag/v1.0.19
|
|
93
|
+
[1.0.18]: https://github.com/tchivs/gsd-omp/releases/tag/v1.0.18
|
|
94
|
+
[1.0.17]: https://github.com/tchivs/gsd-omp/releases/tag/v1.0.17
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Contributing to gsd-for-omp
|
|
2
|
+
|
|
3
|
+
Thank you for contributing to `gsd-for-omp`, an MIT-licensed, independently maintained Oh My Pi host plugin for the GSD Embeddable Orchestration System. See [LICENSE](LICENSE) for the full license text.
|
|
4
|
+
|
|
5
|
+
## Development environment
|
|
6
|
+
|
|
7
|
+
- Node.js `>=24.0.0` is required.
|
|
8
|
+
- The package is CommonJS and depends on `@opengsd/gsd-core`; the minimum supported GSD Core version is `engines.gsd` in `package.json` (`>=1.12.0`).
|
|
9
|
+
- Oh My Pi with native ExtensionAPI support is needed for host integration work and the host smoke test.
|
|
10
|
+
|
|
11
|
+
Clone the repository and install its development dependency:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
git clone https://github.com/GManzato/gsd-for-omp.git
|
|
15
|
+
cd gsd-for-omp
|
|
16
|
+
npm install
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Required checks
|
|
20
|
+
|
|
21
|
+
Run all required local checks before opening a pull request:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm run lint # node --check on every .cjs file under bin/, src/, scripts/, and test/
|
|
25
|
+
npm test
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Run the host smoke test against both OMP versions exercised by CI (`17.0.3` and `latest`). The following reproduces the CI setup for a local checkout without writing to the normal OMP profile:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
package_tarball="$(npm pack --silent --ignore-scripts)"
|
|
32
|
+
npm install --global "@oh-my-pi/pi-coding-agent@17.0.3"
|
|
33
|
+
npm install --global "./${package_tarball}"
|
|
34
|
+
OMP_VERSION=17.0.3 GSD_FOR_OMP_BIN=gsd-for-omp node scripts/host-smoke.cjs
|
|
35
|
+
|
|
36
|
+
npm install --global "@oh-my-pi/pi-coding-agent@latest"
|
|
37
|
+
OMP_VERSION=latest GSD_FOR_OMP_BIN=gsd-for-omp node scripts/host-smoke.cjs
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The smoke script creates and removes its own temporary `PI_CODING_AGENT_DIR`. `npm pack` produces a local tarball; do not commit that file.
|
|
41
|
+
|
|
42
|
+
## Branches and pull requests
|
|
43
|
+
|
|
44
|
+
- Branch from `main`, which is the repository's integration branch.
|
|
45
|
+
- No formal branch-name policy is documented. Existing branches use short descriptive prefixes such as `feat/`, `fix/`, `docs/`, and `chore/`; follow that pattern where it makes the purpose clear.
|
|
46
|
+
- Keep each pull request focused. Describe the behavior or contract that changed, identify any compatibility considerations, and include the commands you ran and their results.
|
|
47
|
+
- Run `npm run lint`, `npm test`, and the applicable OMP host smoke checks before requesting review. Do not report a check as passing unless it was run.
|
|
48
|
+
- Update the relevant documentation when commands, installation, configuration, supported hosts, or user-visible behavior changes. Link related issues or pull requests when one exists.
|
|
49
|
+
- There is no repository-published reviewer, approval-count, or commit-message policy. Use the GitHub pull request process and respond to the feedback recorded on the pull request.
|
|
50
|
+
|
|
51
|
+
## Code style and repository hygiene
|
|
52
|
+
|
|
53
|
+
- Keep the project CommonJS: use `require(...)`, `module.exports`, and the existing `.cjs` module layout.
|
|
54
|
+
- When importing a Node.js built-in in new code, use the `node:` prefix (for example, `require('node:fs')` or `require('node:path')`).
|
|
55
|
+
- Follow the surrounding style: two-space indentation, semicolons, single-quoted JavaScript strings, and trailing commas where the surrounding code uses them.
|
|
56
|
+
- Preserve the OMP ExtensionAPI and GSD Host-Integration SDK contracts. Prefer the existing interfaces and patterns over introducing a second integration path.
|
|
57
|
+
- Do not commit generated or local dependency artifacts, including `node_modules/`, `*.tgz`, or coverage output. These paths are ignored by the repository.
|
|
58
|
+
|
|
59
|
+
## Documentation
|
|
60
|
+
|
|
61
|
+
Keep the English and Chinese project entry points aligned when a user-visible change affects installation or usage:
|
|
62
|
+
|
|
63
|
+
- [README.md](README.md) for the English overview and quick start.
|
|
64
|
+
- [README.zh-CN.md](README.zh-CN.md) for the Chinese overview; keep it structurally identical to the English README.
|
|
65
|
+
- The linked guides under [`docs/`](docs/) for development, testing, architecture, configuration, the command catalog, and getting-started details.
|
|
66
|
+
- [CHANGELOG.md](CHANGELOG.md), the canonical release history. Add user-visible changes under `## [Unreleased]` in your pull request; do not create version sections or edit compare links by hand.
|
|
67
|
+
|
|
68
|
+
Examples, commands, version requirements, environment-variable names, and links in documentation must match the current source and workflows.
|
|
69
|
+
|
|
70
|
+
## Releases
|
|
71
|
+
|
|
72
|
+
Maintainers do not publish by hand. Every commit that lands on `main` and passes CI is released by `.github/workflows/release.yml`: it bumps the patch version with `scripts/bump-version.cjs` (which also rolls the `## [Unreleased]` changelog entries into a dated version section), tags `v<version>`, creates the GitHub release, and publishes `gsd-for-omp` to npm with trusted publishing (OIDC, with provenance). See [Development](docs/DEVELOPMENT.md#release-workflow) for details.
|
|
73
|
+
|
|
74
|
+
## Security issues
|
|
75
|
+
|
|
76
|
+
Do not disclose vulnerability details, credentials, or an exploit proof in a public issue or pull request. This repository does not currently contain a `SECURITY.md` file or document a private reporting endpoint. Check the repository's GitHub **Security** tab for a private vulnerability-reporting option and use it only if the repository currently offers one. If no private route is available, contact the maintainer through a private contact route shown by the repository or owner at the time; do not publish sensitive details while waiting for instructions.
|
|
77
|
+
|
|
78
|
+
A private report should include the affected version or commit, impact, reproduction steps or a minimal proof of concept, relevant Node.js/OMP versions, and any suggested mitigation. Remove secrets and personal data before sending it.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Open GSD
|
|
4
|
+
Copyright (c) 2026 tchivs
|
|
5
|
+
Copyright (c) 2026 Gilles Manzato
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,85 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GSD for Oh My Pi
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/GManzato/gsd-for-omp/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/gsd-for-omp)
|
|
5
|
+
[](./LICENSE)
|
|
6
|
+
[](https://nodejs.org)
|
|
7
|
+
|
|
8
|
+
**English** · [简体中文](./README.zh-CN.md)
|
|
9
|
+
|
|
10
|
+
`gsd-for-omp` is an Oh My Pi (OMP) host plugin for the [GSD Embeddable Orchestration System](https://github.com/open-gsd/gsd-core/blob/next/docs/explanation/embeddable-orchestration-system.md). It binds OMP's native extension, command, event, task, and filesystem surfaces to GSD through protocol version 1 of the public Host-Integration SDK. On hosts that expose Goal Mode, it mirrors optional goal state in the GSD status surfaces without taking ownership of OMP's GoalRuntime.
|
|
11
|
+
|
|
12
|
+
This project is third-party software. It is not endorsed, reviewed, or maintained by OpenGSD. It is a fork of [tchivs/gsd-omp](https://github.com/tchivs/gsd-omp), continued as an independent project.
|
|
13
|
+
|
|
14
|
+
## Requirements
|
|
15
|
+
|
|
16
|
+
- Node.js 24 or newer
|
|
17
|
+
- Oh My Pi with native ExtensionAPI support
|
|
18
|
+
- GSD Core 1.12.0 or newer, installed automatically as a dependency of this package
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install --global gsd-for-omp
|
|
24
|
+
gsd-for-omp install
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`gsd-for-omp install` projects the managed extension, agents, and skills into OMP (`~/.omp/agent`, or `PI_CODING_AGENT_DIR` when set). Restart OMP afterwards, then check the install:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
gsd-for-omp doctor
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
A healthy install reports `"ok": true`, EoS profile `programmatic-cli`, and protocol version `1`.
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
In an OMP session, inside a project:
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
/gsd-next # show or prepare the next GSD action
|
|
41
|
+
/gsd-status # project summary, context budget, native job state
|
|
42
|
+
/gsd-progress # show progress or advance the gated next step
|
|
43
|
+
/gsd-plan-phase 1 # plan a phase
|
|
44
|
+
/gsd-execute-phase 1 # execute a phase through OMP native task waves
|
|
45
|
+
/gsd <family> <subcommand> [args] # call the public gsd-tools CLI directly
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The `gsd_invoke` tool gives agents structured access to the same `gsd-tools` CLI. Every `/gsd-*` command appears in OMP's command list; the full catalog is in [Getting Started](docs/GETTING-STARTED.md#commands).
|
|
49
|
+
|
|
50
|
+
## OMP integration
|
|
51
|
+
|
|
52
|
+
- **Status overlay** — `Ctrl+Shift+G` opens a live GSD status overlay (also available at startup with the `--gsd-status` flag); a widget and footer show the same state.
|
|
53
|
+
- **Native controls** — `/gsd-status` accepts `--compact`, `--stop`, `--branch`, `--tree`, `--switch`, and `--reload` for OMP's native session controls.
|
|
54
|
+
- **Goal Mode** — when the host emits `goal_updated`, the objective, status, and token budget are mirrored in `/gsd-status`; pause or drop the goal (`/goal pause`, `/goal drop`) before `/gsd-next`. Hosts without it, such as OMP 17, keep everything else.
|
|
55
|
+
- **Models** — OMP owns the model. Switch with OMP's `/model`; the GSD `model_profile` setting has no effect under OMP. See [Configuration](docs/CONFIGURATION.md#model-routing).
|
|
56
|
+
|
|
57
|
+
## Update and uninstall
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
gsd-for-omp update # installs the newest version from npm and re-projects; restart OMP afterwards
|
|
61
|
+
gsd-for-omp uninstall # remove managed OMP artifacts
|
|
62
|
+
npm uninstall --global gsd-for-omp
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The installer refuses to overwrite unmanaged or locally modified files; see [Configuration](docs/CONFIGURATION.md#manifest-ownership-and---force) before using `--force`. Shell output is localized through `GSD_FOR_OMP_LOCALE`, `LC_ALL`, `LC_MESSAGES`, and `LANG` (English and Simplified Chinese); see [Configuration](docs/CONFIGURATION.md#environment-variables).
|
|
66
|
+
|
|
67
|
+
## Documentation
|
|
68
|
+
|
|
69
|
+
| Guide | Purpose |
|
|
70
|
+
|---|---|
|
|
71
|
+
| [Getting Started](docs/GETTING-STARTED.md) | Install, verify, use, upgrade, and troubleshoot; command catalog |
|
|
72
|
+
| [Architecture](docs/ARCHITECTURE.md) | Runtime boundaries, EoS contract, data flow, projection, and OMP integration |
|
|
73
|
+
| [Configuration](docs/CONFIGURATION.md) | Environment variables, CLI flags, model routing, manifest ownership, and Goal Mode coordination |
|
|
74
|
+
| [Development](docs/DEVELOPMENT.md) | Local development, packaging, host smoke tests, and release workflow |
|
|
75
|
+
| [Testing](docs/TESTING.md) | Unit-test and OMP host-validation guidance |
|
|
76
|
+
| [Contributing](./CONTRIBUTING.md) | Contribution, pull-request, and documentation guidelines |
|
|
77
|
+
| [CHANGELOG](./CHANGELOG.md) | Versioned release history |
|
|
78
|
+
|
|
79
|
+
## Attribution
|
|
80
|
+
|
|
81
|
+
The OMP extension began from the MIT-licensed pi reference host in `open-gsd/gsd-core` and was adapted into this independently maintained EoS plugin. The upstream Open GSD copyright notice is retained in `LICENSE`.
|
|
82
|
+
|
|
83
|
+
## License
|
|
84
|
+
|
|
85
|
+
MIT
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# GSD for Oh My Pi
|
|
2
|
+
|
|
3
|
+
[](https://github.com/GManzato/gsd-for-omp/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/gsd-for-omp)
|
|
5
|
+
[](./LICENSE)
|
|
6
|
+
[](https://nodejs.org)
|
|
7
|
+
|
|
8
|
+
[English](./README.md) · **简体中文**
|
|
9
|
+
|
|
10
|
+
`gsd-for-omp` 是面向 [GSD 嵌入式编排系统](https://github.com/open-gsd/gsd-core/blob/next/docs/explanation/embeddable-orchestration-system.md)的 Oh My Pi(OMP)宿主插件。它通过公共 Host-Integration SDK 的协议版本 1,将 OMP 原生的扩展、命令、事件、任务与文件系统接口绑定到 GSD。在提供 Goal Mode 的主机上,它会把可选的目标状态同步到 GSD 状态界面,但不会接管 OMP 的 GoalRuntime。
|
|
11
|
+
|
|
12
|
+
本项目为第三方软件,未由 OpenGSD 背书、审查或维护。它派生自 [tchivs/gsd-omp](https://github.com/tchivs/gsd-omp),现作为独立项目继续维护。
|
|
13
|
+
|
|
14
|
+
## 环境要求
|
|
15
|
+
|
|
16
|
+
- Node.js 24 或更高版本
|
|
17
|
+
- 启用原生 ExtensionAPI 的 Oh My Pi
|
|
18
|
+
- GSD Core 1.12.0 或更高版本,作为本包的依赖自动安装
|
|
19
|
+
|
|
20
|
+
## 安装
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install --global gsd-for-omp
|
|
24
|
+
gsd-for-omp install
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`gsd-for-omp install` 会把托管的扩展、agents 与 skills 投影到 OMP(`~/.omp/agent`,设置了 `PI_CODING_AGENT_DIR` 时则为该目录)。随后重启 OMP,并校验安装:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
gsd-for-omp doctor
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
健康的安装会报告 `"ok": true`、EoS profile 为 `programmatic-cli`、协议版本为 `1`。
|
|
34
|
+
|
|
35
|
+
## 使用
|
|
36
|
+
|
|
37
|
+
在 OMP 会话中、项目目录下:
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
/gsd-next # 显示或准备下一个 GSD 动作
|
|
41
|
+
/gsd-status # 项目摘要、上下文预算、原生任务状态
|
|
42
|
+
/gsd-progress # 显示进度,或推进带门控的下一步
|
|
43
|
+
/gsd-plan-phase 1 # 规划一个阶段
|
|
44
|
+
/gsd-execute-phase 1 # 通过 OMP 原生任务波次执行一个阶段
|
|
45
|
+
/gsd <family> <subcommand> [args] # 直接调用公共 gsd-tools CLI
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`gsd_invoke` 工具让 agent 以结构化方式访问同一个 `gsd-tools` CLI。所有 `/gsd-*` 命令都会出现在 OMP 的命令列表中;完整目录见[入门指南](docs/GETTING-STARTED.md#commands)。
|
|
49
|
+
|
|
50
|
+
## OMP 集成
|
|
51
|
+
|
|
52
|
+
- **状态 overlay** —— `Ctrl+Shift+G` 打开实时 GSD 状态 overlay(也可在启动时用 `--gsd-status` flag 打开);widget 与 footer 显示同样的状态。
|
|
53
|
+
- **原生控制** —— `/gsd-status` 接受 `--compact`、`--stop`、`--branch`、`--tree`、`--switch`、`--reload`,对应 OMP 的原生会话控制。
|
|
54
|
+
- **Goal Mode** —— 当主机提供 `goal_updated` 事件时,目标、状态与 token 预算会同步到 `/gsd-status`;运行 `/gsd-next` 前请先暂停或放弃目标(`/goal pause`、`/goal drop`)。没有该事件的主机(如 OMP 17)仍可使用其余全部功能。
|
|
55
|
+
- **模型** —— 模型由 OMP 掌管。请使用 OMP 的 `/model` 切换;GSD 的 `model_profile` 设置在 OMP 下不起作用。详见[配置参考](docs/CONFIGURATION.md#model-routing)。
|
|
56
|
+
|
|
57
|
+
## 更新与卸载
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
gsd-for-omp update # 从 npm 安装最新版本并重新投影;之后重启 OMP
|
|
61
|
+
gsd-for-omp uninstall # 移除托管的 OMP 产物
|
|
62
|
+
npm uninstall --global gsd-for-omp
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
安装器会拒绝覆盖未托管或已被本地修改的文件;使用 `--force` 之前请阅读[配置参考](docs/CONFIGURATION.md#manifest-ownership-and---force)。Shell 输出通过 `GSD_FOR_OMP_LOCALE`、`LC_ALL`、`LC_MESSAGES`、`LANG` 本地化(英文与简体中文),详见[配置参考](docs/CONFIGURATION.md#environment-variables)。
|
|
66
|
+
|
|
67
|
+
## 文档
|
|
68
|
+
|
|
69
|
+
| 文档 | 用途 |
|
|
70
|
+
|---|---|
|
|
71
|
+
| [入门指南](docs/GETTING-STARTED.md) | 安装、校验、使用、升级与故障排查;命令目录 |
|
|
72
|
+
| [架构说明](docs/ARCHITECTURE.md) | 运行时边界、EoS 契约、数据流、投影和 OMP 集成 |
|
|
73
|
+
| [配置参考](docs/CONFIGURATION.md) | 环境变量、CLI 参数、模型路由、清单所有权与 Goal Mode 协调 |
|
|
74
|
+
| [开发指南](docs/DEVELOPMENT.md) | 本地开发、打包、host smoke 与发布流程 |
|
|
75
|
+
| [测试指南](docs/TESTING.md) | 单元测试和 OMP 宿主验证说明 |
|
|
76
|
+
| [贡献指南](./CONTRIBUTING.md) | 贡献、Pull Request 与文档规范 |
|
|
77
|
+
| [CHANGELOG](./CHANGELOG.md) | 按版本整理的发布历史 |
|
|
78
|
+
|
|
79
|
+
## 致谢
|
|
80
|
+
|
|
81
|
+
OMP 扩展最初基于 `open-gsd/gsd-core` 中以 MIT 许可发布的 pi 参考宿主,后被改造为这个独立维护的 EoS 插件。上游 Open GSD 的版权声明保留在 `LICENSE` 中。
|
|
82
|
+
|
|
83
|
+
## 许可证
|
|
84
|
+
|
|
85
|
+
MIT
|