omp-superagent 0.1.6 → 0.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/DESIGN.md +36 -20
- package/README.ko.md +140 -33
- package/README.md +165 -41
- package/THIRD_PARTY_NOTICES.md +9 -7
- package/config.example.json +3 -1
- package/docs/OPERATIONS.md +395 -157
- package/docs/design/execution.md +156 -22
- package/docs/design/messaging.md +258 -52
- package/docs/discord-voice.md +8 -4
- package/docs/releases/0.1.7.md +25 -0
- package/docs/releases/0.1.8.md +21 -0
- package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
- package/gateway/bin/omp-gateway-darwin-x64 +0 -0
- package/gateway/bin/omp-gateway-linux-arm64 +0 -0
- package/gateway/bin/omp-gateway-linux-x64 +0 -0
- package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
- package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
- package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
- package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
- package/package.json +9 -9
- package/scripts/ci.ts +4 -4
- package/scripts/test-omp.sh +2 -1
- package/skills/head/SKILL.md +26 -5
- package/skills/head/references/routing.md +68 -33
- package/skills/head/references/supervision.md +20 -4
- package/skills/lane/references/workflow.md +16 -7
- package/src/board.ts +5 -3
- package/src/cli.ts +161 -19
- package/src/config.ts +21 -1
- package/src/contracts.ts +63 -8
- package/src/cron-jobs.ts +443 -19
- package/src/cron-pr-intake.ts +257 -0
- package/src/discord-markdown.ts +350 -123
- package/src/extension.ts +78 -13
- package/src/gateway-client.ts +8 -2
- package/src/head-quota.ts +80 -0
- package/src/head-recovery.ts +40 -1
- package/src/host-extension.ts +122 -4
- package/src/host-inventory-manifest.ts +2 -2
- package/src/host-protocol.ts +11 -0
- package/src/host-sdk-helper.ts +121 -12
- package/src/host.ts +175 -57
- package/src/installed-omp.ts +116 -4
- package/src/lane-rows.ts +44 -4
- package/src/lane-watch.ts +339 -0
- package/src/managed-memory-helper.ts +13 -10
- package/src/managed-memory.ts +62 -27
- package/src/managed-ulw-probe.ts +75 -20
- package/src/managed-ulw.ts +174 -21
- package/src/messenger-command-catalog.json +2 -2
- package/src/native-launch-profile.ts +4 -2
- package/src/native-presets.ts +32 -5
- package/src/native-sessions.ts +3 -1
- package/src/native-settings.ts +47 -9
- package/src/observation-request.ts +23 -0
- package/src/omp-usage.ts +254 -36
- package/src/pr-github-schema.ts +5 -1
- package/src/pr-github.ts +68 -19
- package/src/pr-intake-automation.ts +316 -0
- package/src/pr-intake-comment.ts +226 -0
- package/src/pr-intake-fix.ts +233 -0
- package/src/pr-intake-github.ts +480 -0
- package/src/pr-intake-material.ts +230 -0
- package/src/pr-intake-mode.ts +59 -0
- package/src/pr-intake-review.ts +397 -0
- package/src/pr-intake-tree.ts +69 -0
- package/src/pr-intake-work.ts +29 -0
- package/src/pr-watch.ts +91 -32
- package/src/runtime.ts +2702 -391
- package/src/setup-judge.ts +1 -1
- package/src/setup.ts +12 -16
- package/src/store.ts +429 -86
- package/src/topic-history.ts +243 -47
- package/src/worker-checkout.ts +106 -0
- package/src/worker-destination.ts +10 -0
- package/src/worker-doctor.ts +66 -0
- package/src/worker-enrollment.ts +165 -0
- package/src/worker-host.ts +180 -0
- package/src/worker-ledger.ts +188 -0
- package/src/worker-placement.ts +78 -0
- package/src/worker-profile.ts +274 -0
- package/src/worker-registration.ts +288 -0
- package/src/worker-repository.ts +233 -0
- package/src/worker-request.ts +74 -0
- package/src/worker-service.ts +230 -0
- package/src/worker-stdio.ts +61 -0
- package/src/worker-trust.ts +36 -0
- package/src/worker-wire.ts +204 -0
- package/src/workflow.ts +81 -32
- package/src/setup-memory.ts +0 -21
package/src/setup-judge.ts
CHANGED
|
@@ -7,7 +7,7 @@ type JudgeConfiguration =
|
|
|
7
7
|
/** Read configuration only, after a new setup has successfully published. */
|
|
8
8
|
export async function inspectNativeJudge(cwd: string): Promise<JudgeConfiguration> {
|
|
9
9
|
try {
|
|
10
|
-
//
|
|
10
|
+
// Keep even native dotenv/config imports behind setup's
|
|
11
11
|
// credential acquisition and publication. Never resolve a model or open auth.
|
|
12
12
|
const { Settings } = await import("@oh-my-pi/pi-coding-agent/config/settings");
|
|
13
13
|
const settings = await Settings.loadReadOnly({ cwd });
|
package/src/setup.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
assertCredentialsUnchanged, readCredentialFile, serializeCredentials, stagePrivateFile,
|
|
13
13
|
validateCredential, writeCredentials,
|
|
14
14
|
} from "./credentials";
|
|
15
|
-
import { applyConsentedMnemopi, canEnableGlobalMemory,
|
|
15
|
+
import { applyConsentedMnemopi, canEnableGlobalMemory, inspectManagedMemory, memoryBlockReason } from "./managed-memory";
|
|
16
16
|
import { inspectNativeJudge } from "./setup-judge";
|
|
17
17
|
|
|
18
18
|
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
@@ -206,26 +206,22 @@ export async function setup(configPath: string): Promise<void> {
|
|
|
206
206
|
}
|
|
207
207
|
serializeCredentials(values); // Prove lossless encoding before any persistent write.
|
|
208
208
|
if (replacing) await terminal.confirm("Replace existing credential values?");
|
|
209
|
-
const initialMemory = await
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
console.log(`
|
|
209
|
+
const initialMemory = await inspectManagedMemory(config);
|
|
210
|
+
const memoryPlan = canEnableGlobalMemory(initialMemory) ? initialMemory : undefined;
|
|
211
|
+
console.log(`Configuration: ${path}\nPrivate credentials: ${path}.env`);
|
|
212
|
+
if (memoryPlan) {
|
|
213
|
+
console.log(`After saving, set memory.backend=mnemopi in the global settings for the selected OMP profile: ${memoryPlan.agentDir}`);
|
|
214
|
+
console.log("Mnemopi persists across conversations (project-scoped by default). Existing memory options and model settings stay unchanged.");
|
|
214
215
|
console.log("Depending on existing native settings, later memory use may process conversations with models and download models.");
|
|
215
216
|
console.log("Setup does not start memory or OMP; it activates on later OMP startup. Running OMP instances may apply native settings reloads.");
|
|
216
|
-
if (/^y(es)?$/i.test((await terminal.ask("Enable native Mnemopi memory after saving setup? [y/N]: ")).trim())) {
|
|
217
|
-
memoryConsent = initialMemory;
|
|
218
|
-
} else {
|
|
219
|
-
console.log("Native memory settings will not be changed.");
|
|
220
|
-
}
|
|
221
217
|
}
|
|
222
|
-
console.log(`Configuration: ${path}\nPrivate credentials: ${path}.env`);
|
|
223
218
|
const profilePlatforms = (["discord", "telegram"] as const).filter(platform => config[platform]);
|
|
224
219
|
if (profilePlatforms.length) {
|
|
225
220
|
console.log(`After saving, replace the configured ${profilePlatforms.join("/")} bot profile pictures with the repository mascot: ${join(root, "assets", "superagent-avatar.jpg")}`);
|
|
226
221
|
console.log("This uses profile REST APIs only; no Gateway, polling, messages, or native model session is started.");
|
|
227
222
|
}
|
|
228
|
-
await terminal.confirm("Write configuration/credentials?"
|
|
223
|
+
await terminal.confirm(memoryPlan ? "Write configuration/credentials and enable native Mnemopi memory?"
|
|
224
|
+
: "Write configuration/credentials?");
|
|
229
225
|
// Snapshot the same environment-over-file precedence used by start before
|
|
230
226
|
// native settings imports can populate unrelated dotenv values.
|
|
231
227
|
const profileCredentials = Object.fromEntries(credentialEnvNames(config).map(name => [name, process.env[name] || values[name]!]));
|
|
@@ -253,12 +249,12 @@ export async function setup(configPath: string): Promise<void> {
|
|
|
253
249
|
terminal.saved = true;
|
|
254
250
|
console.log(`Saved configuration: ${path}\nPrivate credentials: ${path}.env (0600)`);
|
|
255
251
|
terminal.check();
|
|
256
|
-
const { memory, updated } =
|
|
257
|
-
: { memory: await
|
|
252
|
+
const { memory, updated } = memoryPlan ? await applyConsentedMnemopi(config, memoryPlan)
|
|
253
|
+
: { memory: await inspectManagedMemory(config), updated: false };
|
|
258
254
|
terminal.check();
|
|
259
255
|
if (updated) console.log("Saved native memory.backend=mnemopi in OMP agent settings.");
|
|
260
256
|
if (memory.status === "enabled") {
|
|
261
|
-
console.log(`
|
|
257
|
+
console.log(`Native OMP memory.backend=${memory.backend} is configured for the head workspace (${memory.source} settings); no service was started by setup.`);
|
|
262
258
|
} else {
|
|
263
259
|
console.log(`Setup saved but is incomplete. ${memoryBlockReason(memory)} No service was started by setup.`);
|
|
264
260
|
process.exitCode = 1;
|