opencode-ship 1.1.5 → 1.1.8
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 +53 -0
- package/README.md +12 -12
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/assets/agents/ship-controller.md +9 -6
- package/assets/commands/ship-deliver.md +13 -28
- package/assets/skills/delivery-workflow/SKILL.md +19 -26
- package/dist/cli.js +20 -15
- package/dist/core.d.ts +601 -1
- package/dist/core.js +471 -36
- package/dist/plugin.js +1145 -549
- package/package.json +2 -1
- package/tests/plugin/expected-tools.mjs +6 -4
- package/tests/plugin/plugin-load.test.mjs +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-ship",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "npm-distributed OpenCode installer that materializes the delivery plugin, reviewer/verifier agents, skills, ship config and lock into any consumer repository.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"import": "./dist/plugin.js"
|
|
33
33
|
},
|
|
34
34
|
"./core": {
|
|
35
|
+
"types": "./dist/core.d.ts",
|
|
35
36
|
"import": "./dist/core.js"
|
|
36
37
|
},
|
|
37
38
|
"./schema/project-adapter.schema.json": "./schema/project-adapter.schema.json",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Canonical opencode-ship tool set.
|
|
3
3
|
*
|
|
4
|
-
* The bundled plugin registers exactly
|
|
5
|
-
* delivery +
|
|
4
|
+
* The bundled plugin registers exactly 34 typed tools (17
|
|
5
|
+
* delivery + 17 ship). This module is the
|
|
6
6
|
* single source of truth for the expected set so:
|
|
7
7
|
*
|
|
8
8
|
* - the in-process plugin-load test asserts the contract at the
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
export const EXPECTED_OPENCODE_SHIP_TOOLS = Object.freeze([
|
|
20
|
-
//
|
|
20
|
+
// 17 delivery tools
|
|
21
|
+
"delivery_abandon",
|
|
21
22
|
"delivery_cleanup",
|
|
22
23
|
"delivery_github_read",
|
|
23
24
|
"delivery_inspect",
|
|
@@ -34,7 +35,8 @@ export const EXPECTED_OPENCODE_SHIP_TOOLS = Object.freeze([
|
|
|
34
35
|
"delivery_sync",
|
|
35
36
|
"delivery_verify",
|
|
36
37
|
"delivery_worktree",
|
|
37
|
-
//
|
|
38
|
+
// 17 ship tools
|
|
39
|
+
"ship_deliver",
|
|
38
40
|
"ship_final_review",
|
|
39
41
|
"ship_plan_approve",
|
|
40
42
|
"ship_plan_start",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* runtime types without booting OpenCode. It verifies:
|
|
6
6
|
* - the bundled plugin is the default-exported function
|
|
7
7
|
* - calling it returns an object with a `tool` key
|
|
8
|
-
* - the `tool` object exposes exactly the
|
|
9
|
-
* definitions (
|
|
8
|
+
* - the `tool` object exposes exactly the 34 named tool
|
|
9
|
+
* definitions (17 delivery + 17 workflow)
|
|
10
10
|
*
|
|
11
|
-
* The canonical
|
|
11
|
+
* The canonical 34-tool set is imported from
|
|
12
12
|
* `tests/plugin/expected-tools.mjs`, the single source of truth
|
|
13
13
|
* shared with the opencode-discovery smoke test.
|
|
14
14
|
*/
|
|
@@ -34,7 +34,7 @@ test("plugin: bundle exports only plugin entry functions", async () => {
|
|
|
34
34
|
assert.deepEqual(Object.keys(mod).sort(), ["ShipPlugin", "default"]);
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
test("plugin: registers exactly
|
|
37
|
+
test("plugin: registers exactly 34 tools", async () => {
|
|
38
38
|
const mod = await import(pluginPath);
|
|
39
39
|
const fakeCtx = {
|
|
40
40
|
worktree: process.cwd(),
|