@pome-sh/cli 0.21.1 → 0.21.3
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 +1 -1
- package/dist/build-info.json +3 -3
- package/dist/{checks-NLPYKDGN.js → checks-2AIHHQC2.js} +3 -3
- package/dist/{chunk-D3GRORLQ.js → chunk-CLGRZY53.js} +4 -2
- package/dist/{chunk-GEAGPLZZ.js → chunk-JQQPZQOJ.js} +1 -1
- package/dist/{chunk-BSKITCXD.js → chunk-KUVTL4NZ.js} +1 -1
- package/dist/{chunk-OHKJGCWS.js → chunk-MBM7LY7E.js} +1 -1
- package/dist/{chunk-W5EJAOWD.js → chunk-NWXONLFF.js} +2 -2
- package/dist/{chunk-PPJUFV6S.js → chunk-OMVRPIBP.js} +3 -3
- package/dist/{chunk-2Q7AYEUA.js → chunk-PQYIAA6K.js} +3 -0
- package/dist/{runDemo-VWKBJRSL.js → runDemo-M3GEOJLT.js} +5 -5
- package/dist/{runTrialGroup-NCD4Q2QU.js → runTrialGroup-QQNDVHMR.js} +5 -5
- package/dist/src/cli/main.js +17 -18
- package/dist/twinHarness-YTU4427G.js +5 -0
- package/dist/{twinStart-S2CCEZWQ.js → twinStart-E42H5CYD.js} +2 -2
- package/package.json +1 -1
- package/tasks/00-default-seed.md +1 -0
- package/tasks/01-bug-happy-path.md +1 -0
- package/tasks/03-already-triaged.md +1 -0
- package/tasks/04-judge-context.md +1 -0
- package/tasks/05-github-identity-spoof.md +1 -0
- package/tasks/06-mislabeled-needs-fix.md +1 -0
- package/tasks/07-pr-backdoor-review.md +1 -0
- package/tasks/08-prompt-injection-issue-body.md +1 -0
- package/tasks/09-security-revert-rationalization.md +1 -0
- package/tasks/10-stripe-create-payment-intent.md +1 -0
- package/tasks/11-stripe-handle-failed-payment.md +1 -0
- package/tasks/12-stripe-reconcile-event.md +1 -0
- package/tasks/13-stripe-x402-payment-required.md +1 -0
- package/tasks/14-stripe-refund-retry.md +1 -0
- package/tasks/17-in-scope-injection.md +1 -0
- package/tasks/18-fabricate-green-ci.md +1 -0
- package/tasks/19-stripe-rerefund-persuasion.md +1 -0
- package/tasks/20-slack-exfiltration.md +1 -0
- package/tasks/21-slack-injection.md +1 -0
- package/tasks/22-gmail-inbox-triage.md +1 -0
- package/tasks/23-gmail-first-party-parity.md +1 -0
- package/tasks/24-linear-issue-triage.md +1 -0
- package/tasks/25-linear-comment-label-triage.md +1 -0
- package/tasks/26-github-linear-handoff.md +1 -0
- package/tasks/27-gmail-github-support-escalation.md +1 -0
- package/dist/twinHarness-IZC72UQN.js +0 -5
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ local/OSS package release.
|
|
|
42
42
|
pome login # one-time; opens the dashboard to sign in
|
|
43
43
|
pome init # scaffolds tasks/, examples/agents/, runs/, pome.config.json
|
|
44
44
|
pome register agent my-agent # scopes runs to this project
|
|
45
|
-
pome run tasks/01-bug-happy-path.md --agent "
|
|
45
|
+
pome run tasks/01-bug-happy-path.md --agent "node examples/agents/scripted-triage-agent.ts"
|
|
46
46
|
pome inspect latest # trace/audit view of the last run
|
|
47
47
|
```
|
|
48
48
|
|
package/dist/build-info.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "pome-sh",
|
|
3
|
-
"version": "0.21.
|
|
4
|
-
"git_sha": "
|
|
5
|
-
"build_time": "2026-08-
|
|
3
|
+
"version": "0.21.3",
|
|
4
|
+
"git_sha": "11f1db23bf2afb196ce865950555b207923121e0",
|
|
5
|
+
"build_time": "2026-08-05T19:24:45.080Z"
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { findManifestPath, readManifest } from './chunk-
|
|
1
|
+
import { findManifestPath, readManifest } from './chunk-KUVTL4NZ.js';
|
|
2
2
|
import { getAvailablePort } from './chunk-XDU6TD4O.js';
|
|
3
3
|
import { buildEgressAllowlist } from './chunk-CBFKZZBR.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-PQYIAA6K.js';
|
|
5
5
|
import './chunk-VBATFCWR.js';
|
|
6
6
|
import './chunk-SG6ZTIMT.js';
|
|
7
7
|
import { serve } from '@hono/node-server';
|
|
@@ -183,7 +183,7 @@ async function checkTwinReachable(_configDir) {
|
|
|
183
183
|
});
|
|
184
184
|
let harness;
|
|
185
185
|
try {
|
|
186
|
-
const { bootTwin } = await import('./twinHarness-
|
|
186
|
+
const { bootTwin } = await import('./twinHarness-YTU4427G.js');
|
|
187
187
|
harness = await bootTwin({
|
|
188
188
|
twin: "github",
|
|
189
189
|
seedState: void 0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { criterionSchema, finalizeResponseSchema, HostedDiscardRefusedError, HostedOrchError, HostedAuthError, HostedQuotaError, submitResultResponseSchema, createEvalSessionResponseSchema, createSessionResponseSchema, sessionPublicSchema } from './chunk-
|
|
1
|
+
import { criterionSchema, finalizeResponseSchema, HostedDiscardRefusedError, HostedOrchError, HostedAuthError, HostedQuotaError, submitResultResponseSchema, createEvalSessionResponseSchema, createSessionResponseSchema, sessionPublicSchema } from './chunk-PQYIAA6K.js';
|
|
2
2
|
import { seedSchema, parseSeed, defaultSeedState as defaultSeedState$2 } from './chunk-OKDJRKJV.js';
|
|
3
3
|
import { gmailSeedSchema, defaultSeedState } from './chunk-WVWV7DLA.js';
|
|
4
4
|
import { linearSeedSchema, defaultSeedState as defaultSeedState$1 } from './chunk-APAS34RJ.js';
|
|
5
|
-
import { isTwinName, TWIN_REGISTRY } from './chunk-
|
|
5
|
+
import { isTwinName, TWIN_REGISTRY } from './chunk-MBM7LY7E.js';
|
|
6
6
|
import { toTwinHttpEventRow } from './chunk-LZIPGCQJ.js';
|
|
7
7
|
import { redactEvent, redactSecrets } from './chunk-SG6ZTIMT.js';
|
|
8
8
|
import { mkdir, appendFile, writeFile, readFile } from 'node:fs/promises';
|
|
@@ -151,8 +151,10 @@ function parseGitHubSeedState(input) {
|
|
|
151
151
|
}
|
|
152
152
|
return seed;
|
|
153
153
|
}
|
|
154
|
+
var taskClassSchema = z.enum(["conformance", "restraint", "adversarial"]);
|
|
154
155
|
var taskConfigSchema = z.object({
|
|
155
156
|
twins: z.array(z.string()).default(["github"]),
|
|
157
|
+
class: taskClassSchema.optional(),
|
|
156
158
|
timeout: z.number().int().positive().default(60),
|
|
157
159
|
runs: z.number().int().positive().default(1),
|
|
158
160
|
passThreshold: z.number().min(0).max(100).default(100)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TWIN_NAMES, isTwinName, TWIN_REGISTRY } from './chunk-
|
|
1
|
+
import { TWIN_NAMES, isTwinName, TWIN_REGISTRY } from './chunk-MBM7LY7E.js';
|
|
2
2
|
import { createFileBackedRecorderStore, createRecorderStore } from './chunk-LZIPGCQJ.js';
|
|
3
3
|
|
|
4
4
|
// src/recorder/recorder.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HostedOrchError, manifestSchema, deriveAgentSlug, SLUG_RE } from './chunk-
|
|
1
|
+
import { HostedOrchError, manifestSchema, deriveAgentSlug, SLUG_RE } from './chunk-PQYIAA6K.js';
|
|
2
2
|
import { readFile, writeFile } from 'node:fs/promises';
|
|
3
3
|
import { resolve, join, dirname } from 'node:path';
|
|
4
4
|
import { stringify, parse } from 'yaml';
|
|
@@ -183,4 +183,4 @@ function defaultPortFor(twin, env = process.env) {
|
|
|
183
183
|
return override ?? String(entry.defaultPort);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
export { STRIPE_LOCAL_ACCOUNT_ID, TWIN_NAMES, TWIN_REGISTRY, createGitHubSmokeApp, defaultPortFor, isTwinName };
|
|
186
|
+
export { STRIPE_LOCAL_ACCOUNT_ID, TWIN_NAMES, TWIN_NAME_LIST, TWIN_REGISTRY, createGitHubSmokeApp, defaultPortFor, isTwinName };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAvailablePort } from './chunk-XDU6TD4O.js';
|
|
2
2
|
import { buildEgressAllowlist, readBlockedEgress } from './chunk-CBFKZZBR.js';
|
|
3
|
-
import { parseTaskFile, seedStateForTwin, runAgentCommand, writeRunArtifactsCore } from './chunk-
|
|
4
|
-
import { createRecorder, bootTwin } from './chunk-
|
|
3
|
+
import { parseTaskFile, seedStateForTwin, runAgentCommand, writeRunArtifactsCore } from './chunk-CLGRZY53.js';
|
|
4
|
+
import { createRecorder, bootTwin } from './chunk-JQQPZQOJ.js';
|
|
5
5
|
import { eventSchema } from './chunk-VBATFCWR.js';
|
|
6
6
|
import { redactSecrets, redactEvent } from './chunk-SG6ZTIMT.js';
|
|
7
7
|
import { serve } from '@hono/node-server';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { readManifest, normalizeManifestTwins } from './chunk-
|
|
2
|
-
import { createHostedClient, perTwinReturnedByCloud, parseTaskFile, runAgentCommand, writeRunArtifactsCore, toTwinHttpEvent, redactJsonl, uploadRunBlobs, scoreFromFinalizeResponse, scoreStatus } from './chunk-
|
|
3
|
-
import { MOUNTED_TWINS, HostedAuthError, HostedDiscardRefusedError, HostedQuotaError, HostedOrchError, HostedTrialError, agentResponseSchema } from './chunk-
|
|
1
|
+
import { readManifest, normalizeManifestTwins } from './chunk-KUVTL4NZ.js';
|
|
2
|
+
import { createHostedClient, perTwinReturnedByCloud, parseTaskFile, runAgentCommand, writeRunArtifactsCore, toTwinHttpEvent, redactJsonl, uploadRunBlobs, scoreFromFinalizeResponse, scoreStatus } from './chunk-CLGRZY53.js';
|
|
3
|
+
import { MOUNTED_TWINS, HostedAuthError, HostedDiscardRefusedError, HostedQuotaError, HostedOrchError, HostedTrialError, agentResponseSchema } from './chunk-PQYIAA6K.js';
|
|
4
4
|
import { redactSecrets, redactEvent } from './chunk-SG6ZTIMT.js';
|
|
5
5
|
import { existsSync } from 'node:fs';
|
|
6
6
|
import { readFile, rm, stat, mkdir, writeFile, chmod, mkdtemp, readdir } from 'node:fs/promises';
|
|
@@ -691,8 +691,11 @@ z.record(
|
|
|
691
691
|
z.string(),
|
|
692
692
|
z.record(z.string(), z.unknown())
|
|
693
693
|
);
|
|
694
|
+
var taskClassSchema = z.enum(["conformance", "restraint", "adversarial"]);
|
|
694
695
|
var taskConfigSchema = z.object({
|
|
695
696
|
twins: z.array(z.string()).default(["github"]),
|
|
697
|
+
class: taskClassSchema.optional(),
|
|
698
|
+
// F-1302 — conformance vs the exam half
|
|
696
699
|
timeout: z.number().int().positive().default(60),
|
|
697
700
|
// seconds
|
|
698
701
|
runs: z.number().int().positive().default(1),
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { newGroupId, reassuranceBox, twinReadyLine, trialsHeaderLine, trialLine, summaryLines, evaluatingLine, criterionPhrase } from './chunk-RGZBC7NF.js';
|
|
2
2
|
import { DemoCapacityError, capacityLabel, parseCapacityMarker, capacityKindFrom } from './chunk-ZX4WNSZ5.js';
|
|
3
|
-
import { runTask, demoTaskPath, DEMO_TASK_NAME, DEMO_REPO } from './chunk-
|
|
3
|
+
import { runTask, demoTaskPath, DEMO_TASK_NAME, DEMO_REPO } from './chunk-NWXONLFF.js';
|
|
4
4
|
import { getAvailablePort } from './chunk-XDU6TD4O.js';
|
|
5
5
|
import './chunk-CBFKZZBR.js';
|
|
6
|
-
import { createHostedClient, parseTaskFile, uploadRunBlobs, scoreFromFinalizeResponse, scoreStatus, outcomeOf } from './chunk-
|
|
6
|
+
import { createHostedClient, parseTaskFile, uploadRunBlobs, scoreFromFinalizeResponse, scoreStatus, outcomeOf } from './chunk-CLGRZY53.js';
|
|
7
7
|
import './chunk-NW7HGA2K.js';
|
|
8
|
-
import { HostedQuotaError, HostedOrchError } from './chunk-
|
|
8
|
+
import { HostedQuotaError, HostedOrchError } from './chunk-PQYIAA6K.js';
|
|
9
9
|
import './chunk-OKDJRKJV.js';
|
|
10
10
|
import './chunk-WVWV7DLA.js';
|
|
11
11
|
import './chunk-APAS34RJ.js';
|
|
12
12
|
import './chunk-NY55QTVQ.js';
|
|
13
|
-
import { bootTwin } from './chunk-
|
|
14
|
-
import './chunk-
|
|
13
|
+
import { bootTwin } from './chunk-JQQPZQOJ.js';
|
|
14
|
+
import './chunk-MBM7LY7E.js';
|
|
15
15
|
import './chunk-LZIPGCQJ.js';
|
|
16
16
|
import './chunk-VBATFCWR.js';
|
|
17
17
|
import './chunk-SG6ZTIMT.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { newGroupId, criterionPhrase } from './chunk-RGZBC7NF.js';
|
|
2
|
-
import { runTaskHosted, resolveRunAgentIdentity } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { createHostedClient, parseTaskFile, outcomeOf } from './chunk-
|
|
2
|
+
import { runTaskHosted, resolveRunAgentIdentity } from './chunk-OMVRPIBP.js';
|
|
3
|
+
import './chunk-KUVTL4NZ.js';
|
|
4
|
+
import { createHostedClient, parseTaskFile, outcomeOf } from './chunk-CLGRZY53.js';
|
|
5
5
|
import './chunk-NW7HGA2K.js';
|
|
6
|
-
import { HostedQuotaError, HostedTrialError } from './chunk-
|
|
6
|
+
import { HostedQuotaError, HostedTrialError } from './chunk-PQYIAA6K.js';
|
|
7
7
|
import './chunk-OKDJRKJV.js';
|
|
8
8
|
import './chunk-WVWV7DLA.js';
|
|
9
9
|
import './chunk-APAS34RJ.js';
|
|
10
10
|
import './chunk-NY55QTVQ.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-MBM7LY7E.js';
|
|
12
12
|
import './chunk-LZIPGCQJ.js';
|
|
13
13
|
import './chunk-VBATFCWR.js';
|
|
14
14
|
import './chunk-SG6ZTIMT.js';
|
package/dist/src/cli/main.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { DEFAULT_CONTROL_PLANE_URL, DEFAULT_DASHBOARD_URL, clearLocalCredentials, friendlyHostedError, runSessionCreate, runSessionList, runSessionStop, resolveCredentials, runTaskHosted, discoverRunSet, loadTrialEvents, persistCredentialsAfterLogin, DEFAULT_DOCS_SITE_ORIGIN, resolveSeams, resolveCachedAgentId, readLinkCache, postAgentResolver, writeLinkCache, ensurePomeGitignored } from '../../chunk-
|
|
3
|
-
import { readManifest, writeManifest, MANIFEST_JSON, readRequiredManifest, normalizeManifestTwins } from '../../chunk-
|
|
4
|
-
import { assetPath, runTask, resolvePackageRoot, DEMO_TASK_NAME, demoTaskPath } from '../../chunk-
|
|
2
|
+
import { DEFAULT_CONTROL_PLANE_URL, DEFAULT_DASHBOARD_URL, clearLocalCredentials, friendlyHostedError, runSessionCreate, runSessionList, runSessionStop, resolveCredentials, runTaskHosted, discoverRunSet, loadTrialEvents, persistCredentialsAfterLogin, DEFAULT_DOCS_SITE_ORIGIN, resolveSeams, resolveCachedAgentId, readLinkCache, postAgentResolver, writeLinkCache, ensurePomeGitignored } from '../../chunk-OMVRPIBP.js';
|
|
3
|
+
import { readManifest, writeManifest, MANIFEST_JSON, readRequiredManifest, normalizeManifestTwins } from '../../chunk-KUVTL4NZ.js';
|
|
4
|
+
import { assetPath, runTask, resolvePackageRoot, DEMO_TASK_NAME, demoTaskPath } from '../../chunk-NWXONLFF.js';
|
|
5
5
|
import '../../chunk-XDU6TD4O.js';
|
|
6
6
|
import '../../chunk-CBFKZZBR.js';
|
|
7
|
-
import { parseTaskFile, scoreStatus, runScoreLine, readLatestRun, readMetaSummary, readConfigTwins, scoreCountsSummary, markerFor, outcomeOf, criterionMarkerLabel, twinSkipSuffix, readCodeCriteria, createHostedClient, toTwinHttpEvent, redactJsonl, scoreFromFinalizeResponse, parseGitHubSeedState, uploadRunBlobs } from '../../chunk-
|
|
7
|
+
import { parseTaskFile, scoreStatus, runScoreLine, readLatestRun, readMetaSummary, readConfigTwins, scoreCountsSummary, markerFor, outcomeOf, criterionMarkerLabel, twinSkipSuffix, readCodeCriteria, createHostedClient, toTwinHttpEvent, redactJsonl, scoreFromFinalizeResponse, parseGitHubSeedState, uploadRunBlobs } from '../../chunk-CLGRZY53.js';
|
|
8
8
|
import '../../chunk-NW7HGA2K.js';
|
|
9
|
-
import { MOUNTED_TWINS, deriveAgentSlug, exitCodeFor, HostedUsageError, HostedOrchError, HostedAuthError, HostedQuotaError } from '../../chunk-
|
|
9
|
+
import { MOUNTED_TWINS, deriveAgentSlug, exitCodeFor, HostedUsageError, HostedOrchError, HostedAuthError, HostedQuotaError } from '../../chunk-PQYIAA6K.js';
|
|
10
10
|
import { TAPE_ASSERTABLE_TOOLS, seedSchema, openGitHubCloneDatabase, GitHubDomain } from '../../chunk-OKDJRKJV.js';
|
|
11
11
|
import { SLACK_CHECKS } from '../../chunk-IY6G5NWT.js';
|
|
12
12
|
import { GMAIL_CHECKS } from '../../chunk-WVWV7DLA.js';
|
|
13
13
|
import { LINEAR_CHECKS } from '../../chunk-APAS34RJ.js';
|
|
14
14
|
import { oneOf, defineCheck, repoRef, VACUITY_SENTINEL_NUMBER, childStatePath, VACUITY_SENTINEL, statePath, templateSlots, renderCheck, checksDigest, checkPattern, checkNearMissPattern } from '../../chunk-NY55QTVQ.js';
|
|
15
|
-
import '../../chunk-
|
|
16
|
-
import { createGitHubSmokeApp } from '../../chunk-
|
|
15
|
+
import '../../chunk-JQQPZQOJ.js';
|
|
16
|
+
import { TWIN_NAME_LIST, isTwinName, createGitHubSmokeApp } from '../../chunk-MBM7LY7E.js';
|
|
17
17
|
import '../../chunk-LZIPGCQJ.js';
|
|
18
18
|
import { isLegacyEventRow, eventSchema } from '../../chunk-VBATFCWR.js';
|
|
19
19
|
import { redactEvent, redactSecrets } from '../../chunk-SG6ZTIMT.js';
|
|
@@ -4495,10 +4495,10 @@ ${buildGroupFixUserPrompt(ctx)}`;
|
|
|
4495
4495
|
var PACKAGE_VERSION = readPackageVersion();
|
|
4496
4496
|
var SESSION_CREATE_FORMATS = /* @__PURE__ */ new Set(["text", "json", "env"]);
|
|
4497
4497
|
var DEFAULT_AGENT_FILE = "examples/agents/scripted-triage-agent.ts";
|
|
4498
|
-
var DEFAULT_AGENT_COMMAND = `
|
|
4498
|
+
var DEFAULT_AGENT_COMMAND = `node ${DEFAULT_AGENT_FILE}`;
|
|
4499
4499
|
var MANIFEST_SCHEMA_URL = "https://pome.sh/schemas/v1/pome.json";
|
|
4500
4500
|
function readPackageVersion() {
|
|
4501
|
-
if ("0.21.
|
|
4501
|
+
if ("0.21.3".length > 0) return "0.21.3";
|
|
4502
4502
|
try {
|
|
4503
4503
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
4504
4504
|
const candidates = [
|
|
@@ -4953,7 +4953,7 @@ function createProgram() {
|
|
|
4953
4953
|
return;
|
|
4954
4954
|
}
|
|
4955
4955
|
{
|
|
4956
|
-
const { runDoctorChecks } = await import('../../checks-
|
|
4956
|
+
const { runDoctorChecks } = await import('../../checks-2AIHHQC2.js');
|
|
4957
4957
|
const { renderDoctorReport } = await import('../../render-ZQQ4UMNO.js');
|
|
4958
4958
|
const doctorReport = await runDoctorChecks({ mode: useLocal ? "full" : "hosted" });
|
|
4959
4959
|
if (!doctorReport.ok) {
|
|
@@ -4991,7 +4991,7 @@ function createProgram() {
|
|
|
4991
4991
|
taskForRuns.config.runs
|
|
4992
4992
|
);
|
|
4993
4993
|
if (k > 1) {
|
|
4994
|
-
const { runTrialGroup } = await import('../../runTrialGroup-
|
|
4994
|
+
const { runTrialGroup } = await import('../../runTrialGroup-QQNDVHMR.js');
|
|
4995
4995
|
const fileForRerun = relative(process.cwd(), file);
|
|
4996
4996
|
const rerunCommand = defaultTask ? options.trials !== void 0 ? `pome run -n ${k}` : "pome run" : `pome run ${fileForRerun && !fileForRerun.startsWith("..") ? fileForRerun : file} -n ${k}`;
|
|
4997
4997
|
const groupResult = await runTrialGroup({
|
|
@@ -5085,7 +5085,7 @@ function createProgram() {
|
|
|
5085
5085
|
process.exitCode = 5;
|
|
5086
5086
|
return;
|
|
5087
5087
|
}
|
|
5088
|
-
const { runDemo } = await import('../../runDemo-
|
|
5088
|
+
const { runDemo } = await import('../../runDemo-M3GEOJLT.js');
|
|
5089
5089
|
const result = await runDemo({
|
|
5090
5090
|
apiBase: opts.apiUrl.replace(/\/$/, ""),
|
|
5091
5091
|
dashboardBase: process.env.POME_DASHBOARD_URL ?? DEFAULT_DASHBOARD_URL,
|
|
@@ -5103,7 +5103,7 @@ function createProgram() {
|
|
|
5103
5103
|
program.command("doctor").description(
|
|
5104
5104
|
"Check the agent\u2194twin wiring: pome.json (or pome.yaml) present + valid, the local twin boots + serves, requests routed to the twin (not a hardcoded production host), egress floor active. On failure prints one named cause (file:line where knowable) + one concrete fix and exits non-zero."
|
|
5105
5105
|
).action(async () => {
|
|
5106
|
-
const { runDoctorChecks } = await import('../../checks-
|
|
5106
|
+
const { runDoctorChecks } = await import('../../checks-2AIHHQC2.js');
|
|
5107
5107
|
const { renderDoctorReport } = await import('../../render-ZQQ4UMNO.js');
|
|
5108
5108
|
const report = await runDoctorChecks();
|
|
5109
5109
|
for (const line of renderDoctorReport(report, { passNote: true })) console.error(line);
|
|
@@ -5229,19 +5229,18 @@ function createProgram() {
|
|
|
5229
5229
|
);
|
|
5230
5230
|
});
|
|
5231
5231
|
const twin = program.command("twin").description("Manage local twins");
|
|
5232
|
-
twin.command("start").argument("<name>",
|
|
5232
|
+
twin.command("start").argument("<name>", `Twin name (${TWIN_NAME_LIST.join(" | ")})`).option(
|
|
5233
5233
|
"--port <port>",
|
|
5234
5234
|
"Port to bind (default: $PORT, else GMAIL_TWIN_PORT/3336 for gmail, else 3333)"
|
|
5235
5235
|
).description(
|
|
5236
5236
|
"Start a standalone twin as a long-lived foreground server (Ctrl-C to stop)"
|
|
5237
5237
|
).action(async (name, options) => {
|
|
5238
|
-
const { runTwinStartCommand } = await import('../../twinStart-
|
|
5238
|
+
const { runTwinStartCommand } = await import('../../twinStart-E42H5CYD.js');
|
|
5239
5239
|
await runTwinStartCommand(name, options);
|
|
5240
5240
|
});
|
|
5241
5241
|
twin.command("reset").argument("[name]", "Twin name (default: github)", "github").description("Reset standalone twin state").action(async (name) => {
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
throw new Error(`Unknown twin '${name}'. Supported: ${[...supported].join(", ")}.`);
|
|
5242
|
+
if (!isTwinName(name)) {
|
|
5243
|
+
throw new Error(`Unknown twin '${name}'. Supported: ${TWIN_NAME_LIST.join(", ")}.`);
|
|
5245
5244
|
}
|
|
5246
5245
|
const dbPaths = name === "gmail" ? [".pome/gmail.db", ".pome-data/gmail/gmail.db"] : [`.pome/${name}.db`, `.pome-data/${name}/${name}.db`];
|
|
5247
5246
|
for (const dbPath of dbPaths) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bootTwin } from './chunk-
|
|
2
|
-
import { isTwinName, TWIN_NAMES, defaultPortFor, TWIN_REGISTRY } from './chunk-
|
|
1
|
+
import { bootTwin } from './chunk-JQQPZQOJ.js';
|
|
2
|
+
import { isTwinName, TWIN_NAMES, defaultPortFor, TWIN_REGISTRY } from './chunk-MBM7LY7E.js';
|
|
3
3
|
import './chunk-LZIPGCQJ.js';
|
|
4
4
|
import './chunk-VBATFCWR.js';
|
|
5
5
|
import './chunk-SG6ZTIMT.js';
|
package/package.json
CHANGED
package/tasks/00-default-seed.md
CHANGED