@pome-sh/cli 0.26.2 → 0.26.4
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/dist/build-info.json +3 -3
- package/dist/{checks-Z5MTHXAR.js → checks-LKGNPTOL.js} +1 -1
- package/dist/{chunk-UXVJK7PY.js → chunk-4AY5VHQK.js} +1 -1
- package/dist/{chunk-XKHPVCY2.js → chunk-IBB4I5PM.js} +1 -1
- package/dist/{chunk-K3GCCNF2.js → chunk-K37RXI3K.js} +2 -2
- package/dist/{chunk-JGYNRD5T.js → chunk-NSFNITIC.js} +2 -2
- package/dist/{chunk-T5CSXPYC.js → chunk-VDHVVSUJ.js} +1 -1
- package/dist/{runDemo-VGD564FP.js → runDemo-NQV256MB.js} +4 -4
- package/dist/{runTrialGroup-M3UUDGPI.js → runTrialGroup-S7CRQPIM.js} +3 -3
- package/dist/src/cli/main.js +12 -12
- package/dist/{src-MXILWGJE.js → src-ZGAM3HXJ.js} +16 -4
- package/dist/twinHarness-AJHGWE5B.js +5 -0
- package/dist/{twinStart-BYWIDQLI.js → twinStart-QXSCA577.js} +2 -2
- package/package.json +1 -1
- package/dist/twinHarness-DYAP5HKG.js +0 -5
package/dist/build-info.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "pome-sh",
|
|
3
|
-
"version": "0.26.
|
|
4
|
-
"git_sha": "
|
|
5
|
-
"build_time": "2026-08-
|
|
3
|
+
"version": "0.26.4",
|
|
4
|
+
"git_sha": "8e396fcfae65745a93a57f64ca4faaec941816b7",
|
|
5
|
+
"build_time": "2026-08-22T03:12:21.394Z"
|
|
6
6
|
}
|
|
@@ -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-AJHGWE5B.js');
|
|
187
187
|
harness = await bootTwin({
|
|
188
188
|
twin: "github",
|
|
189
189
|
seedState: void 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TWIN_NAMES, isTwinName, TWIN_REGISTRY } from './chunk-
|
|
1
|
+
import { TWIN_NAMES, isTwinName, TWIN_REGISTRY } from './chunk-K37RXI3K.js';
|
|
2
2
|
import { createFileBackedRecorderStore, createRecorderStore } from './chunk-WEKJIGUD.js';
|
|
3
3
|
|
|
4
4
|
// src/recorder/recorder.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readManifest, normalizeManifestTwins } from './chunk-LA6BHJ5H.js';
|
|
2
|
-
import { createHostedClient, perTwinReturnedByCloud, parseTaskFile, runAgentCommand, writeRunArtifactsCore, toTwinHttpEvent, redactJsonl, uploadRunBlobs, scoreFromFinalizeResponse, scoreStatus, evaluationCounts } from './chunk-
|
|
2
|
+
import { createHostedClient, perTwinReturnedByCloud, parseTaskFile, runAgentCommand, writeRunArtifactsCore, toTwinHttpEvent, redactJsonl, uploadRunBlobs, scoreFromFinalizeResponse, scoreStatus, evaluationCounts } from './chunk-VDHVVSUJ.js';
|
|
3
3
|
import { MOUNTED_TWINS, HostedAuthError, HostedDiscardRefusedError, HostedQuotaError, HostedOrchError, HostedTrialError, agentResponseSchema } from './chunk-QYCUNR2V.js';
|
|
4
4
|
import { redactSecrets, redactEvent } from './chunk-SG6ZTIMT.js';
|
|
5
5
|
import { randomUUID, createHash } from 'node:crypto';
|
|
@@ -39,7 +39,7 @@ var TWIN_REGISTRY = {
|
|
|
39
39
|
defaultSeedState,
|
|
40
40
|
GitHubDomain,
|
|
41
41
|
openGitHubCloneDatabase
|
|
42
|
-
} = await import('./src-
|
|
42
|
+
} = await import('./src-ZGAM3HXJ.js');
|
|
43
43
|
const db = openGitHubCloneDatabase();
|
|
44
44
|
const domain = new GitHubDomain(db);
|
|
45
45
|
domain.seed(seedState === void 0 ? defaultSeedState() : seedState);
|
|
@@ -173,7 +173,7 @@ var TWIN_REGISTRY = {
|
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
async function createGitHubSmokeApp() {
|
|
176
|
-
const { createGitHubCloneApp } = await import('./src-
|
|
176
|
+
const { createGitHubCloneApp } = await import('./src-ZGAM3HXJ.js');
|
|
177
177
|
return createGitHubCloneApp();
|
|
178
178
|
}
|
|
179
179
|
function defaultPortFor(twin, env = process.env) {
|
|
@@ -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-VDHVVSUJ.js';
|
|
4
|
+
import { createRecorder, bootTwin } from './chunk-4AY5VHQK.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';
|
|
@@ -2,7 +2,7 @@ import { criterionSchema, finalizeResponseSchema, HostedDiscardRefusedError, Hos
|
|
|
2
2
|
import { seedSchema, parseSeed, defaultSeedState as defaultSeedState$2 } from './chunk-B22TYIEM.js';
|
|
3
3
|
import { gmailSeedSchema, defaultSeedState } from './chunk-NJ246QPJ.js';
|
|
4
4
|
import { linearSeedSchema, defaultSeedState as defaultSeedState$1 } from './chunk-IZIZC7ZW.js';
|
|
5
|
-
import { isTwinName, TWIN_REGISTRY } from './chunk-
|
|
5
|
+
import { isTwinName, TWIN_REGISTRY } from './chunk-K37RXI3K.js';
|
|
6
6
|
import { toTwinHttpEventRow } from './chunk-WEKJIGUD.js';
|
|
7
7
|
import { redactEvent, redactSecrets } from './chunk-SG6ZTIMT.js';
|
|
8
8
|
import { mkdir, appendFile, writeFile, readFile } from 'node:fs/promises';
|
|
@@ -1,16 +1,16 @@
|
|
|
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-NSFNITIC.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-VDHVVSUJ.js';
|
|
7
7
|
import './chunk-NW7HGA2K.js';
|
|
8
8
|
import { HostedQuotaError, HostedOrchError } from './chunk-QYCUNR2V.js';
|
|
9
9
|
import './chunk-B22TYIEM.js';
|
|
10
10
|
import './chunk-NJ246QPJ.js';
|
|
11
11
|
import './chunk-IZIZC7ZW.js';
|
|
12
|
-
import { bootTwin } from './chunk-
|
|
13
|
-
import './chunk-
|
|
12
|
+
import { bootTwin } from './chunk-4AY5VHQK.js';
|
|
13
|
+
import './chunk-K37RXI3K.js';
|
|
14
14
|
import './chunk-WEKJIGUD.js';
|
|
15
15
|
import './chunk-VBATFCWR.js';
|
|
16
16
|
import './chunk-SG6ZTIMT.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { newGroupId, criterionPhrase } from './chunk-RGZBC7NF.js';
|
|
2
|
-
import { runTaskHosted, resolveRunAgentIdentity } from './chunk-
|
|
2
|
+
import { runTaskHosted, resolveRunAgentIdentity } from './chunk-IBB4I5PM.js';
|
|
3
3
|
import './chunk-LA6BHJ5H.js';
|
|
4
|
-
import { createHostedClient, parseTaskFile, outcomeOf } from './chunk-
|
|
4
|
+
import { createHostedClient, parseTaskFile, outcomeOf } from './chunk-VDHVVSUJ.js';
|
|
5
5
|
import './chunk-NW7HGA2K.js';
|
|
6
6
|
import { HostedQuotaError, HostedTrialError } from './chunk-QYCUNR2V.js';
|
|
7
7
|
import './chunk-B22TYIEM.js';
|
|
8
8
|
import './chunk-NJ246QPJ.js';
|
|
9
9
|
import './chunk-IZIZC7ZW.js';
|
|
10
|
-
import './chunk-
|
|
10
|
+
import './chunk-K37RXI3K.js';
|
|
11
11
|
import './chunk-WEKJIGUD.js';
|
|
12
12
|
import './chunk-VBATFCWR.js';
|
|
13
13
|
import './chunk-SG6ZTIMT.js';
|
package/dist/src/cli/main.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { DEFAULT_CONTROL_PLANE_URL, DEFAULT_DASHBOARD_URL, clearLocalCredentials, friendlyHostedError, runSessionCreate, runSessionList, runSessionStop, resolveCredentials, runTaskHosted, discoverRunSet, VERDICT_ARTIFACT_VERSION, persistCredentialsAfterLogin, DEFAULT_DOCS_SITE_ORIGIN, resolveSeams, resolveCachedAgentId, readLinkCache, postAgentResolver, writeLinkCache, ensurePomeGitignored } from '../../chunk-
|
|
2
|
+
import { DEFAULT_CONTROL_PLANE_URL, DEFAULT_DASHBOARD_URL, clearLocalCredentials, friendlyHostedError, runSessionCreate, runSessionList, runSessionStop, resolveCredentials, runTaskHosted, discoverRunSet, VERDICT_ARTIFACT_VERSION, persistCredentialsAfterLogin, DEFAULT_DOCS_SITE_ORIGIN, resolveSeams, resolveCachedAgentId, readLinkCache, postAgentResolver, writeLinkCache, ensurePomeGitignored } from '../../chunk-IBB4I5PM.js';
|
|
3
3
|
import { readManifest, writeManifest, MANIFEST_JSON, readRequiredManifest, normalizeManifestTwins } from '../../chunk-LA6BHJ5H.js';
|
|
4
|
-
import { assetPath, runTask, resolvePackageRoot, DEMO_TASK_NAME, demoTaskPath } from '../../chunk-
|
|
4
|
+
import { assetPath, runTask, resolvePackageRoot, DEMO_TASK_NAME, demoTaskPath } from '../../chunk-NSFNITIC.js';
|
|
5
5
|
import '../../chunk-XDU6TD4O.js';
|
|
6
6
|
import '../../chunk-CBFKZZBR.js';
|
|
7
|
-
import { parseTaskFile, scoreStatus, runScoreLine, readLatestRun, readMetaSummary, outcomeOf, readConfigTwins, scoreCountsSummary, markerFor, criterionMarkerLabel, twinSkipSuffix, readCodeCriteria, createHostedClient, toTwinHttpEvent, redactJsonl, scoreFromFinalizeResponse, parseGitHubSeedState, uploadRunBlobs, isPreSatisfied } from '../../chunk-
|
|
7
|
+
import { parseTaskFile, scoreStatus, runScoreLine, readLatestRun, readMetaSummary, outcomeOf, readConfigTwins, scoreCountsSummary, markerFor, criterionMarkerLabel, twinSkipSuffix, readCodeCriteria, createHostedClient, toTwinHttpEvent, redactJsonl, scoreFromFinalizeResponse, parseGitHubSeedState, uploadRunBlobs, isPreSatisfied } from '../../chunk-VDHVVSUJ.js';
|
|
8
8
|
import '../../chunk-NW7HGA2K.js';
|
|
9
9
|
import { MOUNTED_TWINS, deriveAgentSlug, exitCodeFor, HostedUsageError, HostedOrchError, HostedAuthError, HostedQuotaError } from '../../chunk-QYCUNR2V.js';
|
|
10
10
|
import { TAPE_ASSERTABLE_TOOLS } from '../../chunk-C4BVTUA3.js';
|
|
@@ -15,8 +15,8 @@ import '../../chunk-NJ246QPJ.js';
|
|
|
15
15
|
import { LINEAR_CHECKS } from '../../chunk-XBT6ZLBG.js';
|
|
16
16
|
import '../../chunk-IZIZC7ZW.js';
|
|
17
17
|
import { oneOf, defineCheck, repoRef, VACUITY_SENTINEL_NUMBER, childStatePath, VACUITY_SENTINEL, statePath, templateSlots, renderCheck, checksDigest, checkPattern, checkNearMissPattern } from '../../chunk-JWJYNAWI.js';
|
|
18
|
-
import '../../chunk-
|
|
19
|
-
import { TWIN_NAME_LIST, isTwinName, createGitHubSmokeApp } from '../../chunk-
|
|
18
|
+
import '../../chunk-4AY5VHQK.js';
|
|
19
|
+
import { TWIN_NAME_LIST, isTwinName, createGitHubSmokeApp } from '../../chunk-K37RXI3K.js';
|
|
20
20
|
import '../../chunk-WEKJIGUD.js';
|
|
21
21
|
import { isLegacyEventRow, eventSchema } from '../../chunk-VBATFCWR.js';
|
|
22
22
|
import { redactEvent, redactSecrets } from '../../chunk-SG6ZTIMT.js';
|
|
@@ -850,7 +850,7 @@ async function throwForStatus(res) {
|
|
|
850
850
|
|
|
851
851
|
// src/task/seed-verifier.ts
|
|
852
852
|
async function verifySeedWithTwin(seed) {
|
|
853
|
-
const { GitHubDomain, openGitHubCloneDatabase } = await import('../../src-
|
|
853
|
+
const { GitHubDomain, openGitHubCloneDatabase } = await import('../../src-ZGAM3HXJ.js');
|
|
854
854
|
const db = openGitHubCloneDatabase(":memory:");
|
|
855
855
|
try {
|
|
856
856
|
new GitHubDomain(db).seed(seed);
|
|
@@ -4651,7 +4651,7 @@ var DEFAULT_AGENT_COMMAND = `node ${DEFAULT_AGENT_FILE}`;
|
|
|
4651
4651
|
var MANIFEST_SCHEMA_URL = "https://pome.sh/schemas/v1/pome.json";
|
|
4652
4652
|
var MAX_UNREADABLE_PATHS_SHOWN = 5;
|
|
4653
4653
|
function readPackageVersion() {
|
|
4654
|
-
if ("0.26.
|
|
4654
|
+
if ("0.26.4".length > 0) return "0.26.4";
|
|
4655
4655
|
try {
|
|
4656
4656
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
4657
4657
|
const candidates = [
|
|
@@ -5096,7 +5096,7 @@ function createProgram() {
|
|
|
5096
5096
|
return;
|
|
5097
5097
|
}
|
|
5098
5098
|
{
|
|
5099
|
-
const { runDoctorChecks } = await import('../../checks-
|
|
5099
|
+
const { runDoctorChecks } = await import('../../checks-LKGNPTOL.js');
|
|
5100
5100
|
const { renderDoctorReport } = await import('../../render-ZQQ4UMNO.js');
|
|
5101
5101
|
const doctorReport = await runDoctorChecks({ mode: useLocal ? "full" : "hosted" });
|
|
5102
5102
|
if (!doctorReport.ok) {
|
|
@@ -5134,7 +5134,7 @@ function createProgram() {
|
|
|
5134
5134
|
taskForRuns.config.runs
|
|
5135
5135
|
);
|
|
5136
5136
|
if (k > 1) {
|
|
5137
|
-
const { runTrialGroup } = await import('../../runTrialGroup-
|
|
5137
|
+
const { runTrialGroup } = await import('../../runTrialGroup-S7CRQPIM.js');
|
|
5138
5138
|
const fileForRerun = relative(process.cwd(), file);
|
|
5139
5139
|
const rerunCommand = defaultTask ? options.trials !== void 0 ? `pome run -n ${k}` : "pome run" : `pome run ${fileForRerun && !fileForRerun.startsWith("..") ? fileForRerun : file} -n ${k}`;
|
|
5140
5140
|
const groupResult = await runTrialGroup({
|
|
@@ -5228,7 +5228,7 @@ function createProgram() {
|
|
|
5228
5228
|
process.exitCode = 5;
|
|
5229
5229
|
return;
|
|
5230
5230
|
}
|
|
5231
|
-
const { runDemo } = await import('../../runDemo-
|
|
5231
|
+
const { runDemo } = await import('../../runDemo-NQV256MB.js');
|
|
5232
5232
|
const result = await runDemo({
|
|
5233
5233
|
apiBase: opts.apiUrl.replace(/\/$/, ""),
|
|
5234
5234
|
dashboardBase: process.env.POME_DASHBOARD_URL ?? DEFAULT_DASHBOARD_URL,
|
|
@@ -5246,7 +5246,7 @@ function createProgram() {
|
|
|
5246
5246
|
program.command("doctor").description(
|
|
5247
5247
|
"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."
|
|
5248
5248
|
).action(async () => {
|
|
5249
|
-
const { runDoctorChecks } = await import('../../checks-
|
|
5249
|
+
const { runDoctorChecks } = await import('../../checks-LKGNPTOL.js');
|
|
5250
5250
|
const { renderDoctorReport } = await import('../../render-ZQQ4UMNO.js');
|
|
5251
5251
|
const report = await runDoctorChecks();
|
|
5252
5252
|
for (const line of renderDoctorReport(report, { passNote: true })) console.error(line);
|
|
@@ -5422,7 +5422,7 @@ function createProgram() {
|
|
|
5422
5422
|
).description(
|
|
5423
5423
|
"Start a standalone twin as a long-lived foreground server (Ctrl-C to stop)"
|
|
5424
5424
|
).action(async (name, options) => {
|
|
5425
|
-
const { runTwinStartCommand } = await import('../../twinStart-
|
|
5425
|
+
const { runTwinStartCommand } = await import('../../twinStart-QXSCA577.js');
|
|
5426
5426
|
await runTwinStartCommand(name, options);
|
|
5427
5427
|
});
|
|
5428
5428
|
twin.command("reset").argument("[name]", "Twin name (default: github)", "github").description("Reset standalone twin state").action(async (name) => {
|
|
@@ -4231,13 +4231,25 @@ function addCollaboratorAction(domain, input, onDelta) {
|
|
|
4231
4231
|
|
|
4232
4232
|
// ../packages/twin-github/dist/src/domain/search.js
|
|
4233
4233
|
var QUALIFIER = /(^|\s)(repo|user|org|state|is):(\S+)/gi;
|
|
4234
|
-
function
|
|
4235
|
-
return text.toLowerCase().split(/[^a-z0-9_]+/).filter(Boolean);
|
|
4234
|
+
function queryTerms(text) {
|
|
4235
|
+
return text.toLowerCase().split(/[^a-z0-9_-]+/).filter(Boolean);
|
|
4236
|
+
}
|
|
4237
|
+
function documentTokens(text) {
|
|
4238
|
+
const tokens = /* @__PURE__ */ new Set();
|
|
4239
|
+
for (const compound of text.toLowerCase().split(/[^a-z0-9_-]+/)) {
|
|
4240
|
+
if (!compound)
|
|
4241
|
+
continue;
|
|
4242
|
+
tokens.add(compound);
|
|
4243
|
+
for (const part of compound.split(/[_-]+/))
|
|
4244
|
+
if (part)
|
|
4245
|
+
tokens.add(part);
|
|
4246
|
+
}
|
|
4247
|
+
return tokens;
|
|
4236
4248
|
}
|
|
4237
4249
|
function matchesTerms(terms, ...document) {
|
|
4238
4250
|
if (terms.length === 0)
|
|
4239
4251
|
return true;
|
|
4240
|
-
const tokens =
|
|
4252
|
+
const tokens = documentTokens(document.join(" "));
|
|
4241
4253
|
return terms.every((term) => tokens.has(term));
|
|
4242
4254
|
}
|
|
4243
4255
|
function parseSearchQuery(raw, options = {}) {
|
|
@@ -4284,7 +4296,7 @@ function parseSearchQuery(raw, options = {}) {
|
|
|
4284
4296
|
}
|
|
4285
4297
|
});
|
|
4286
4298
|
const normalized = text.replace(/\s+/g, " ").trim().toLowerCase();
|
|
4287
|
-
return { text: normalized, terms:
|
|
4299
|
+
return { text: normalized, terms: queryTerms(normalized), owners, fullNames, state, type, unhonourable };
|
|
4288
4300
|
}
|
|
4289
4301
|
function inScope(parsed, owner, fullName) {
|
|
4290
4302
|
if (parsed.owners.length === 0 && parsed.fullNames.length === 0)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bootTwin } from './chunk-
|
|
2
|
-
import { isTwinName, TWIN_NAMES, defaultPortFor, TWIN_REGISTRY } from './chunk-
|
|
1
|
+
import { bootTwin } from './chunk-4AY5VHQK.js';
|
|
2
|
+
import { isTwinName, TWIN_NAMES, defaultPortFor, TWIN_REGISTRY } from './chunk-K37RXI3K.js';
|
|
3
3
|
import './chunk-WEKJIGUD.js';
|
|
4
4
|
import './chunk-VBATFCWR.js';
|
|
5
5
|
import './chunk-SG6ZTIMT.js';
|
package/package.json
CHANGED