@pome-sh/cli 0.21.4 → 0.21.6
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-2AIHHQC2.js → checks-4GJB73YX.js} +1 -1
- package/dist/{chunk-CLGRZY53.js → chunk-4ILBTPO4.js} +4 -4
- package/dist/chunk-5ETJZJR6.js +590 -0
- package/dist/{chunk-MBM7LY7E.js → chunk-A3IDZXJY.js} +9 -9
- package/dist/chunk-FKZZWWYC.js +4 -0
- package/dist/{chunk-OMVRPIBP.js → chunk-JULH5ECU.js} +1 -1
- package/dist/{chunk-JQQPZQOJ.js → chunk-M3X6OT4N.js} +1 -1
- package/dist/chunk-NJ246QPJ.js +683 -0
- package/dist/chunk-SGDUD7KK.js +138 -0
- package/dist/{chunk-NWXONLFF.js → chunk-WR7KP3LE.js} +2 -2
- package/dist/chunk-XS66ZRBJ.js +537 -0
- package/dist/chunk-ZKID2HS3.js +628 -0
- package/dist/{runDemo-M3GEOJLT.js → runDemo-BCB6EDDN.js} +7 -8
- package/dist/{runTrialGroup-QQNDVHMR.js → runTrialGroup-YCSGW56C.js} +6 -7
- package/dist/src/cli/main.js +20 -16
- package/dist/{chunk-WVWV7DLA.js → src-FLTYWM6P.js} +500 -1761
- package/dist/{chunk-APAS34RJ.js → src-K3KTJTMG.js} +154 -1308
- package/dist/{chunk-OKDJRKJV.js → src-RVUEXCKN.js} +6 -135
- package/dist/twinHarness-KFZ2ZNAX.js +5 -0
- package/dist/{twinStart-E42H5CYD.js → twinStart-4OGP2GBY.js} +2 -2
- package/package.json +1 -1
- package/tasks/21-slack-injection.md +23 -3
- package/dist/src-JGOW5WYI.js +0 -5
- package/dist/src-KIHABGI5.js +0 -5
- package/dist/src-TUX5L2RC.js +0 -4
- package/dist/twinHarness-YTU4427G.js +0 -5
package/dist/src/cli/main.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
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-
|
|
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-JULH5ECU.js';
|
|
3
3
|
import { readManifest, writeManifest, MANIFEST_JSON, readRequiredManifest, normalizeManifestTwins } from '../../chunk-KUVTL4NZ.js';
|
|
4
|
-
import { assetPath, runTask, resolvePackageRoot, DEMO_TASK_NAME, demoTaskPath } from '../../chunk-
|
|
4
|
+
import { assetPath, runTask, resolvePackageRoot, DEMO_TASK_NAME, demoTaskPath } from '../../chunk-WR7KP3LE.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-4ILBTPO4.js';
|
|
8
8
|
import '../../chunk-NW7HGA2K.js';
|
|
9
9
|
import { MOUNTED_TWINS, deriveAgentSlug, exitCodeFor, HostedUsageError, HostedOrchError, HostedAuthError, HostedQuotaError } from '../../chunk-PQYIAA6K.js';
|
|
10
|
-
import { TAPE_ASSERTABLE_TOOLS
|
|
10
|
+
import { TAPE_ASSERTABLE_TOOLS } from '../../chunk-FKZZWWYC.js';
|
|
11
|
+
import { seedSchema } from '../../chunk-SGDUD7KK.js';
|
|
11
12
|
import { SLACK_CHECKS } from '../../chunk-IY6G5NWT.js';
|
|
12
|
-
import { GMAIL_CHECKS } from '../../chunk-
|
|
13
|
-
import
|
|
13
|
+
import { GMAIL_CHECKS } from '../../chunk-5ETJZJR6.js';
|
|
14
|
+
import '../../chunk-NJ246QPJ.js';
|
|
15
|
+
import { LINEAR_CHECKS } from '../../chunk-XS66ZRBJ.js';
|
|
16
|
+
import '../../chunk-ZKID2HS3.js';
|
|
14
17
|
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 { TWIN_NAME_LIST, isTwinName, createGitHubSmokeApp } from '../../chunk-
|
|
18
|
+
import '../../chunk-M3X6OT4N.js';
|
|
19
|
+
import { TWIN_NAME_LIST, isTwinName, createGitHubSmokeApp } from '../../chunk-A3IDZXJY.js';
|
|
17
20
|
import '../../chunk-LZIPGCQJ.js';
|
|
18
21
|
import { isLegacyEventRow, eventSchema } from '../../chunk-VBATFCWR.js';
|
|
19
22
|
import { redactEvent, redactSecrets } from '../../chunk-SG6ZTIMT.js';
|
|
@@ -846,7 +849,8 @@ async function throwForStatus(res) {
|
|
|
846
849
|
}
|
|
847
850
|
|
|
848
851
|
// src/task/seed-verifier.ts
|
|
849
|
-
function verifySeedWithTwin(seed) {
|
|
852
|
+
async function verifySeedWithTwin(seed) {
|
|
853
|
+
const { GitHubDomain, openGitHubCloneDatabase } = await import('../../src-RVUEXCKN.js');
|
|
850
854
|
const db = openGitHubCloneDatabase(":memory:");
|
|
851
855
|
try {
|
|
852
856
|
new GitHubDomain(db).seed(seed);
|
|
@@ -941,7 +945,7 @@ async function compileOne(taskPath, opts) {
|
|
|
941
945
|
};
|
|
942
946
|
}
|
|
943
947
|
try {
|
|
944
|
-
verifySeedWithTwin(result.seed);
|
|
948
|
+
await verifySeedWithTwin(result.seed);
|
|
945
949
|
} catch (err) {
|
|
946
950
|
return { path: taskPath, status: "error", message: err.message };
|
|
947
951
|
}
|
|
@@ -4486,7 +4490,7 @@ var DEFAULT_AGENT_FILE = "examples/agents/scripted-triage-agent.ts";
|
|
|
4486
4490
|
var DEFAULT_AGENT_COMMAND = `node ${DEFAULT_AGENT_FILE}`;
|
|
4487
4491
|
var MANIFEST_SCHEMA_URL = "https://pome.sh/schemas/v1/pome.json";
|
|
4488
4492
|
function readPackageVersion() {
|
|
4489
|
-
if ("0.21.
|
|
4493
|
+
if ("0.21.6".length > 0) return "0.21.6";
|
|
4490
4494
|
try {
|
|
4491
4495
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
4492
4496
|
const candidates = [
|
|
@@ -4941,7 +4945,7 @@ function createProgram() {
|
|
|
4941
4945
|
return;
|
|
4942
4946
|
}
|
|
4943
4947
|
{
|
|
4944
|
-
const { runDoctorChecks } = await import('../../checks-
|
|
4948
|
+
const { runDoctorChecks } = await import('../../checks-4GJB73YX.js');
|
|
4945
4949
|
const { renderDoctorReport } = await import('../../render-ZQQ4UMNO.js');
|
|
4946
4950
|
const doctorReport = await runDoctorChecks({ mode: useLocal ? "full" : "hosted" });
|
|
4947
4951
|
if (!doctorReport.ok) {
|
|
@@ -4979,7 +4983,7 @@ function createProgram() {
|
|
|
4979
4983
|
taskForRuns.config.runs
|
|
4980
4984
|
);
|
|
4981
4985
|
if (k > 1) {
|
|
4982
|
-
const { runTrialGroup } = await import('../../runTrialGroup-
|
|
4986
|
+
const { runTrialGroup } = await import('../../runTrialGroup-YCSGW56C.js');
|
|
4983
4987
|
const fileForRerun = relative(process.cwd(), file);
|
|
4984
4988
|
const rerunCommand = defaultTask ? options.trials !== void 0 ? `pome run -n ${k}` : "pome run" : `pome run ${fileForRerun && !fileForRerun.startsWith("..") ? fileForRerun : file} -n ${k}`;
|
|
4985
4989
|
const groupResult = await runTrialGroup({
|
|
@@ -5073,7 +5077,7 @@ function createProgram() {
|
|
|
5073
5077
|
process.exitCode = 5;
|
|
5074
5078
|
return;
|
|
5075
5079
|
}
|
|
5076
|
-
const { runDemo } = await import('../../runDemo-
|
|
5080
|
+
const { runDemo } = await import('../../runDemo-BCB6EDDN.js');
|
|
5077
5081
|
const result = await runDemo({
|
|
5078
5082
|
apiBase: opts.apiUrl.replace(/\/$/, ""),
|
|
5079
5083
|
dashboardBase: process.env.POME_DASHBOARD_URL ?? DEFAULT_DASHBOARD_URL,
|
|
@@ -5091,7 +5095,7 @@ function createProgram() {
|
|
|
5091
5095
|
program.command("doctor").description(
|
|
5092
5096
|
"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."
|
|
5093
5097
|
).action(async () => {
|
|
5094
|
-
const { runDoctorChecks } = await import('../../checks-
|
|
5098
|
+
const { runDoctorChecks } = await import('../../checks-4GJB73YX.js');
|
|
5095
5099
|
const { renderDoctorReport } = await import('../../render-ZQQ4UMNO.js');
|
|
5096
5100
|
const report = await runDoctorChecks();
|
|
5097
5101
|
for (const line of renderDoctorReport(report, { passNote: true })) console.error(line);
|
|
@@ -5223,7 +5227,7 @@ function createProgram() {
|
|
|
5223
5227
|
).description(
|
|
5224
5228
|
"Start a standalone twin as a long-lived foreground server (Ctrl-C to stop)"
|
|
5225
5229
|
).action(async (name, options) => {
|
|
5226
|
-
const { runTwinStartCommand } = await import('../../twinStart-
|
|
5230
|
+
const { runTwinStartCommand } = await import('../../twinStart-4OGP2GBY.js');
|
|
5227
5231
|
await runTwinStartCommand(name, options);
|
|
5228
5232
|
});
|
|
5229
5233
|
twin.command("reset").argument("[name]", "Twin name (default: github)", "github").description("Reset standalone twin state").action(async (name) => {
|