@aerovato/operator-helper 1.3.2 → 1.5.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/README.md +4 -0
- package/dist/index.js +51 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,9 @@ operator-helper install opencode
|
|
|
30
30
|
# Pi
|
|
31
31
|
operator-helper install pi
|
|
32
32
|
|
|
33
|
+
# DeepSeek Harness
|
|
34
|
+
operator-helper install deepseek
|
|
35
|
+
|
|
33
36
|
# Code Puppy
|
|
34
37
|
operator-helper install code-puppy
|
|
35
38
|
```
|
|
@@ -48,6 +51,7 @@ The direct user-facing Helper operation is adapter installation:
|
|
|
48
51
|
operator-helper install opencode
|
|
49
52
|
operator-helper install opencode-v2
|
|
50
53
|
operator-helper install pi
|
|
54
|
+
operator-helper install deepseek
|
|
51
55
|
operator-helper install code-puppy
|
|
52
56
|
```
|
|
53
57
|
|
package/dist/index.js
CHANGED
|
@@ -17998,7 +17998,7 @@ var Uint8Array2 = /* @__PURE__ */ instanceOf(globalThis.Uint8Array, {
|
|
|
17998
17998
|
// package.json
|
|
17999
17999
|
var package_default = {
|
|
18000
18000
|
name: "@aerovato/operator-helper",
|
|
18001
|
-
version: "1.
|
|
18001
|
+
version: "1.5.0",
|
|
18002
18002
|
description: "Installation and setup CLI for Operator Memory",
|
|
18003
18003
|
license: "BSD-3-Clause",
|
|
18004
18004
|
author: "Aerovato Research",
|
|
@@ -18365,9 +18365,15 @@ operator-helper install opencode
|
|
|
18365
18365
|
# Install OpenCode V2 plugin
|
|
18366
18366
|
operator-helper install opencode-v2
|
|
18367
18367
|
|
|
18368
|
+
# Install Codex plugin
|
|
18369
|
+
operator-helper install codex
|
|
18370
|
+
|
|
18368
18371
|
# Install Pi plugin
|
|
18369
18372
|
operator-helper install pi
|
|
18370
18373
|
|
|
18374
|
+
# Install DeepSeek Harness plugin
|
|
18375
|
+
operator-helper install deepseek
|
|
18376
|
+
|
|
18371
18377
|
# Install Code Puppy plugin
|
|
18372
18378
|
operator-helper install code-puppy
|
|
18373
18379
|
\`\`\`
|
|
@@ -18378,7 +18384,7 @@ var PROJECT_SETUP_TEMPLATE = `# Project Setup
|
|
|
18378
18384
|
|
|
18379
18385
|
You are helping the user configure the Operator Project Brain across the private \`.operator/\` partition and shared \`.operator-shared/\` partition.
|
|
18380
18386
|
|
|
18381
|
-
Project indexing is
|
|
18387
|
+
Project indexing is excluded from the setup phases; you offer it as the final step in Phase 7.
|
|
18382
18388
|
|
|
18383
18389
|
**Document syntax:** Index and catalog structure, entry syntax, and examples are defined in the fixed preamble (Project Index and Partition Catalog sections). **You must follow that preamble document syntax** when creating or filling indexes and catalogs. Do not invent layouts. \`operator-helper project init\` seeds Private core files with the canonical syntax; fill or rewrite from the preamble. Operator Instructions and Shared README seeds are in the Canonical Seeds section below.
|
|
18384
18390
|
|
|
@@ -18518,22 +18524,18 @@ Ask whether anything is incorrect, missing, too strict, too permissive, improper
|
|
|
18518
18524
|
|
|
18519
18525
|
Apply approved corrections and finish only after the user confirms the setup. Do not end the session in this phase.
|
|
18520
18526
|
|
|
18521
|
-
## Phase 7:
|
|
18522
|
-
|
|
18523
|
-
Skip this phase when project shape is greenfield and no code exists. If the project is a bare template: Scaffold a quick index for the user, then skip.
|
|
18527
|
+
## Phase 7: Offer Indexing
|
|
18524
18528
|
|
|
18525
|
-
|
|
18529
|
+
After the user has confirmed Project Setup: Notice that the index has not been populated yet, then offer to index.
|
|
18526
18530
|
|
|
18527
|
-
|
|
18531
|
+
Offer the user two choices:
|
|
18528
18532
|
|
|
18529
|
-
Project Index
|
|
18533
|
+
1. Index now, in this conversation. You run \`operator-helper index status\` and \`operator-helper index guide\` yourself and follow the Project Index Setup guide immediately. Helper output is working context; do not reproduce it for the user.
|
|
18534
|
+
2. Start a new conversation and run \`/operator:index\` in their harness to build or refresh the Project Index.
|
|
18530
18535
|
|
|
18531
|
-
|
|
18536
|
+
Recommendation: for a small or medium codebase, including greenfield, recommend indexing now — it is fast and the setup context is still loaded. For a large codebase, recommend a new conversation so the indexing agent starts with clean context, while still offering to index here.
|
|
18532
18537
|
|
|
18533
|
-
|
|
18534
|
-
2. They should start a new conversation and run \`/operator:index\` in their harness to build or refresh the Project Index.
|
|
18535
|
-
|
|
18536
|
-
Stop after delivering this handoff unless the user asks something else about setup.
|
|
18538
|
+
If the user declines, tell them \`/operator:index\` is available anytime later. Stop after this phase unless the user asks something else about setup.
|
|
18537
18539
|
|
|
18538
18540
|
## Canonical Seeds
|
|
18539
18541
|
|
|
@@ -19344,6 +19346,38 @@ function commandFailure(result, fallback) {
|
|
|
19344
19346
|
return result.exitCode === 0 ? null : { exitCode: result.exitCode, output: result.output || fallback };
|
|
19345
19347
|
}
|
|
19346
19348
|
|
|
19349
|
+
// src/commands/install/deepseek.ts
|
|
19350
|
+
var DEEPSEEK_PLUGIN = "@aerovato/operator-deepseek";
|
|
19351
|
+
var MANUAL_INSTALL_HINT = `To install a profile manually, run:
|
|
19352
|
+
|
|
19353
|
+
dsh plugin --profile <profile-name> add ${DEEPSEEK_PLUGIN}
|
|
19354
|
+
|
|
19355
|
+
If the desktop profile was not installed, quit the desktop application and install manually.`;
|
|
19356
|
+
var installDeepSeek = fn2("installDeepSeek")(function* (context) {
|
|
19357
|
+
const web = yield* installProfile("web", context.cwd);
|
|
19358
|
+
const desktop = yield* installProfile("desktop", context.cwd);
|
|
19359
|
+
return {
|
|
19360
|
+
exitCode: web.exitCode === 0 && desktop.exitCode === 0 ? 0 : 1,
|
|
19361
|
+
output: [web.output, desktop.output, "", MANUAL_INSTALL_HINT].join(`
|
|
19362
|
+
`)
|
|
19363
|
+
};
|
|
19364
|
+
});
|
|
19365
|
+
function installProfile(profile, cwd) {
|
|
19366
|
+
return runProcess("dsh", ["plugin", "--profile", profile, "add", DEEPSEEK_PLUGIN], cwd, null).pipe(map5((result) => profileResult(profile, result)));
|
|
19367
|
+
}
|
|
19368
|
+
function profileResult(profile, result) {
|
|
19369
|
+
const label = profile === "web" ? "Web" : "Desktop";
|
|
19370
|
+
if (!result.ok)
|
|
19371
|
+
return { exitCode: 1, output: `✗ ${label}: Could not run dsh: ${result.error}` };
|
|
19372
|
+
if (result.exitCode !== 0) {
|
|
19373
|
+
return {
|
|
19374
|
+
exitCode: result.exitCode,
|
|
19375
|
+
output: `✗ ${label}: ${result.output || "Plugin installation failed"}`
|
|
19376
|
+
};
|
|
19377
|
+
}
|
|
19378
|
+
return { exitCode: 0, output: `✓ ${label}: ${result.output || "Plugin installed"}` };
|
|
19379
|
+
}
|
|
19380
|
+
|
|
19347
19381
|
// src/commands/install/opencode.ts
|
|
19348
19382
|
var OPENCODE_PLUGIN = "@aerovato/operator-opencode@latest";
|
|
19349
19383
|
var installOpenCode = fn2("installOpenCode")(function* (context) {
|
|
@@ -20603,6 +20637,7 @@ ${renderTable([
|
|
|
20603
20637
|
["operator-helper install codex", "Install or update the Codex plugin"],
|
|
20604
20638
|
["operator-helper install opencode", "Install or update the OpenCode plugin"],
|
|
20605
20639
|
["operator-helper install opencode-v2", "Install or update the OpenCode V2 plugin"],
|
|
20640
|
+
["operator-helper install deepseek", "Install or update the DeepSeek Harness plugin"],
|
|
20606
20641
|
["operator-helper install pi", "Install or update the Pi plugin"],
|
|
20607
20642
|
["operator-helper install code-puppy", "Install or update the Code Puppy plugin"]
|
|
20608
20643
|
])}
|
|
@@ -20670,6 +20705,8 @@ function runCli(arguments_, context) {
|
|
|
20670
20705
|
return yield* installOpenCode(context);
|
|
20671
20706
|
case "install opencode-v2":
|
|
20672
20707
|
return yield* installOpenCodeV2(context);
|
|
20708
|
+
case "install deepseek":
|
|
20709
|
+
return yield* installDeepSeek(context);
|
|
20673
20710
|
case "install pi":
|
|
20674
20711
|
return yield* installPi(context);
|
|
20675
20712
|
case "install code-puppy":
|
|
@@ -20727,4 +20764,4 @@ var main = gen2(function* () {
|
|
|
20727
20764
|
}).pipe(provide4(LiveLayers));
|
|
20728
20765
|
runMain2(main);
|
|
20729
20766
|
|
|
20730
|
-
//# debugId=
|
|
20767
|
+
//# debugId=370B29D7514D6EDE64756E2164756E21
|