@kitman-sh/go-to-market 0.10.82 → 0.10.83
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/bundle.js +48 -10
- package/dist/declarations.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -18937,6 +18937,7 @@ var PipelineStatus = Struct({
|
|
|
18937
18937
|
runnerChecks: optionalKey2(ArraySchema(String5)),
|
|
18938
18938
|
approved: optionalKey2(String5),
|
|
18939
18939
|
repository: optionalKey2(String5),
|
|
18940
|
+
targetBranch: optionalKey2(String5),
|
|
18940
18941
|
conflicts: optionalKey2(Boolean3),
|
|
18941
18942
|
needsRebase: optionalKey2(Boolean3),
|
|
18942
18943
|
target: optionalKey2(Struct({ branch: String5, head: String5, jobs: ArraySchema(PipelineJob) }))
|
|
@@ -19522,6 +19523,12 @@ var MeasureEvidence = Struct({
|
|
|
19522
19523
|
head: MeasureSamples,
|
|
19523
19524
|
baseAgain: optionalKey2(MeasureSamples)
|
|
19524
19525
|
});
|
|
19526
|
+
var ResolveSpec = Struct({
|
|
19527
|
+
revisions: ArraySchema(String5.check(isMinLength(1), isMaxLength(240))).check(isMinLength(1), isMaxLength(10))
|
|
19528
|
+
});
|
|
19529
|
+
var ResolvedRevisions = Struct({
|
|
19530
|
+
commits: ArraySchema(String5.check(isPattern2(new RegExp("^[0-9a-f]{40}([0-9a-f]{24})?$", "u"))))
|
|
19531
|
+
});
|
|
19525
19532
|
var VerificationWorkUnit = Struct({
|
|
19526
19533
|
kind: Literal2("verification"),
|
|
19527
19534
|
id: Id,
|
|
@@ -19534,6 +19541,7 @@ var VerificationWorkUnit = Struct({
|
|
|
19534
19541
|
baseline: optionalKey2(String5.check(isMinLength(1), isMaxLength(300))),
|
|
19535
19542
|
checks: ArraySchema(RepositoryCheck).check(isMaxLength(50)),
|
|
19536
19543
|
measure: optionalKey2(MeasureSpec),
|
|
19544
|
+
resolve: optionalKey2(ResolveSpec),
|
|
19537
19545
|
hosts: optionalKey2(ArraySchema(NetworkHost)),
|
|
19538
19546
|
storageOrigin: StorageOrigin
|
|
19539
19547
|
});
|
|
@@ -19582,7 +19590,8 @@ var TreeEvidence = Struct({
|
|
|
19582
19590
|
var VerificationEvidence = Struct({
|
|
19583
19591
|
head: TreeEvidence,
|
|
19584
19592
|
baseline: optionalKey2(TreeEvidence),
|
|
19585
|
-
measurement: optionalKey2(MeasureEvidence)
|
|
19593
|
+
measurement: optionalKey2(MeasureEvidence),
|
|
19594
|
+
resolved: optionalKey2(ResolvedRevisions)
|
|
19586
19595
|
});
|
|
19587
19596
|
var BoundaryChange = Struct({
|
|
19588
19597
|
kind: Literal2("change"),
|
|
@@ -19625,6 +19634,7 @@ var WorkUnitOutcome = Struct({
|
|
|
19625
19634
|
evidence: optionalKey2(VerificationEvidence),
|
|
19626
19635
|
boundary: optionalKey2(BoundaryChange),
|
|
19627
19636
|
catchUp: optionalKey2(CatchUp),
|
|
19637
|
+
syncedTarget: optionalKey2(Revision),
|
|
19628
19638
|
harnessHold: optionalKey2(HarnessHold),
|
|
19629
19639
|
restart: optionalKey2(StepRestart),
|
|
19630
19640
|
failureSummary: optionalKey2(String5.check(isMinLength(1), isMaxLength(4000)))
|
|
@@ -19664,6 +19674,9 @@ var Measurement = Struct({
|
|
|
19664
19674
|
var measureDeferred = (step) => make14(`measure/${step}`, { success: MeasureEvidence, error: StepFailed });
|
|
19665
19675
|
var floors = new WeakMap;
|
|
19666
19676
|
|
|
19677
|
+
// ../../packages/sdk/src/loop/resolve.ts
|
|
19678
|
+
var resolveDeferred = (step) => make14(`resolve/${step}`, { success: ResolvedRevisions, error: StepFailed });
|
|
19679
|
+
|
|
19667
19680
|
// ../../packages/sdk/src/loop/test-loop.ts
|
|
19668
19681
|
var LoopJournal = Struct({
|
|
19669
19682
|
activities: Record(String5, Json2),
|
|
@@ -19708,7 +19721,7 @@ var defaultActivities = {
|
|
|
19708
19721
|
},
|
|
19709
19722
|
transcripts: { run: () => succeed7({ runs: [] }) },
|
|
19710
19723
|
changeRequestRead: {
|
|
19711
|
-
pipeline: () => succeed7({ head: "head", status: "success", source: "forge", jobs: [] }),
|
|
19724
|
+
pipeline: () => succeed7({ head: "head", status: "success", source: "forge", jobs: [], targetBranch: "main" }),
|
|
19712
19725
|
reviewThreads: () => succeed7({ threads: [] }),
|
|
19713
19726
|
opened: () => succeed7({ changeRequests: [] }),
|
|
19714
19727
|
own: () => succeed7({ changeRequests: [] })
|
|
@@ -19786,6 +19799,14 @@ var scriptedHost = (script, engine, agentLaunches, childLaunches, waits, verifyL
|
|
|
19786
19799
|
claimResource: (launch) => flatMap3(script.claimed?.({ step: launch.step, resource: launch.resource, action: launch.action }) ?? undefined_2, (settled) => launch.action === "let_go" ? resolve(letGoDeferred(launch.step), launch.token, succeed4(null)) : resolve(claimDeferred(launch.step), launch.token, succeed4(settled ?? script.claims?.[launch.step] ?? { status: "granted", resource: launch.resource }))),
|
|
19787
19800
|
startVerification: (launch) => {
|
|
19788
19801
|
const scripted = script.verifications?.[launch.step];
|
|
19802
|
+
if (launch.resolve !== undefined) {
|
|
19803
|
+
const commits = launch.resolve.revisions.map((revision) => {
|
|
19804
|
+
const scriptedCommit = script.commits?.[revision];
|
|
19805
|
+
return scriptedCommit === undefined ? madeUpCommit(revision) : scriptedCommit;
|
|
19806
|
+
});
|
|
19807
|
+
const unnamed = launch.resolve.revisions.filter((_, index) => commits[index] === null);
|
|
19808
|
+
return resolve(resolveDeferred(launch.step), launch.token, unnamed.length > 0 ? fail5(new StepFailed({ step: launch.step, reason: `No commit named ${unnamed.join(", ")}` })) : succeed4({ commits: commits.filter((commit) => commit !== null) }));
|
|
19809
|
+
}
|
|
19789
19810
|
if (launch.measure === undefined)
|
|
19790
19811
|
verifyLaunches.push({
|
|
19791
19812
|
step: launch.step,
|
|
@@ -19815,6 +19836,18 @@ var scriptedHost = (script, engine, agentLaunches, childLaunches, waits, verifyL
|
|
|
19815
19836
|
}
|
|
19816
19837
|
};
|
|
19817
19838
|
};
|
|
19839
|
+
var fullSha = /^[0-9a-f]{40}$/u;
|
|
19840
|
+
var madeUpCommit = (revision) => {
|
|
19841
|
+
if (fullSha.test(revision))
|
|
19842
|
+
return revision;
|
|
19843
|
+
const word = (seed) => {
|
|
19844
|
+
let hash = seed;
|
|
19845
|
+
for (const char of revision)
|
|
19846
|
+
hash = Math.imul(hash ^ char.charCodeAt(0), 16777619) >>> 0;
|
|
19847
|
+
return hash.toString(16).padStart(8, "0");
|
|
19848
|
+
};
|
|
19849
|
+
return [2166136261, 16777619, 1540483477, 668265263, 374761393].map(word).join("");
|
|
19850
|
+
};
|
|
19818
19851
|
var loopWorkflow = (loop) => make13(`kitman-loop/${loop.id}`, {
|
|
19819
19852
|
payload: { input: Json2 },
|
|
19820
19853
|
idempotencyKey: () => loop.id,
|
|
@@ -19965,10 +19998,11 @@ var merged = {
|
|
|
19965
19998
|
settled: ArraySchema(String5)
|
|
19966
19999
|
};
|
|
19967
20000
|
var SyncAnswer = Union2([UpToDate, Struct(merged), Conflict]);
|
|
20001
|
+
var reported = { base: optionalKey2(String5) };
|
|
19968
20002
|
var BaseSync = Union2([
|
|
19969
|
-
UpToDate,
|
|
19970
|
-
Struct({ ...merged, catchUp: optionalKey2(CatchUp) }),
|
|
19971
|
-
Conflict
|
|
20003
|
+
Struct({ ...UpToDate.fields, ...reported }),
|
|
20004
|
+
Struct({ ...merged, catchUp: optionalKey2(CatchUp), ...reported }),
|
|
20005
|
+
Struct({ ...Conflict.fields, ...reported })
|
|
19972
20006
|
]);
|
|
19973
20007
|
// ../../packages/sdk/src/loop/continuing.ts
|
|
19974
20008
|
var Continuing = Struct({
|
|
@@ -21948,7 +21982,8 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
21948
21982
|
plan: MeasurePlan,
|
|
21949
21983
|
samples: Int,
|
|
21950
21984
|
calibrate: Boolean3
|
|
21951
|
-
}))
|
|
21985
|
+
})),
|
|
21986
|
+
resolve: optionalKey2(ResolveSpec)
|
|
21952
21987
|
},
|
|
21953
21988
|
success: Struct({ verificationId: String5 }),
|
|
21954
21989
|
error: RunnerRpcError
|
|
@@ -22089,6 +22124,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22089
22124
|
runnerChecks: optionalKey2(ArraySchema(String5)),
|
|
22090
22125
|
approved: optionalKey2(String5),
|
|
22091
22126
|
repository: optionalKey2(String5),
|
|
22127
|
+
targetBranch: optionalKey2(String5),
|
|
22092
22128
|
conflicts: optionalKey2(Boolean3),
|
|
22093
22129
|
needsRebase: optionalKey2(Boolean3),
|
|
22094
22130
|
target: optionalKey2(Struct({
|
|
@@ -22447,12 +22483,13 @@ var runnerHost = (capabilities) => ({
|
|
|
22447
22483
|
})).pipe(asVoid2),
|
|
22448
22484
|
startVerification: (launch) => requested(launch.step, capabilities.startVerification({
|
|
22449
22485
|
step: launch.step,
|
|
22450
|
-
deferredName: (launch.measure === undefined ? verifyDeferred : measureDeferred)(launch.step).name,
|
|
22486
|
+
deferredName: (launch.resolve !== undefined ? resolveDeferred : launch.measure === undefined ? verifyDeferred : measureDeferred)(launch.step).name,
|
|
22451
22487
|
...launch.revision === undefined ? undefined : { revision: launch.revision },
|
|
22452
22488
|
...launch.checks === undefined ? undefined : { checks: launch.checks },
|
|
22453
22489
|
...launch.suggested === undefined ? undefined : { suggested: launch.suggested },
|
|
22454
22490
|
...launch.rerunFailed === undefined ? undefined : { rerunFailed: launch.rerunFailed },
|
|
22455
|
-
...launch.measure === undefined ? undefined : { measure: launch.measure }
|
|
22491
|
+
...launch.measure === undefined ? undefined : { measure: launch.measure },
|
|
22492
|
+
...launch.resolve === undefined ? undefined : { resolve: launch.resolve }
|
|
22456
22493
|
})).pipe(asVoid2),
|
|
22457
22494
|
startAgentWork: (launch) => requested(launch.step, capabilities.startAgentStep({
|
|
22458
22495
|
step: launch.step,
|
|
@@ -22678,7 +22715,8 @@ var rpcProgramPorts = (rpc, work) => {
|
|
|
22678
22715
|
...verification.checks === undefined ? undefined : { checks: [...verification.checks] },
|
|
22679
22716
|
...verification.suggested === undefined ? undefined : { suggested: [...verification.suggested] },
|
|
22680
22717
|
...verification.rerunFailed === undefined ? undefined : { rerunFailed: verification.rerunFailed },
|
|
22681
|
-
...verification.measure === undefined ? undefined : { measure: verification.measure }
|
|
22718
|
+
...verification.measure === undefined ? undefined : { measure: verification.measure },
|
|
22719
|
+
...verification.resolve === undefined ? undefined : { resolve: { revisions: [...verification.resolve.revisions] } }
|
|
22682
22720
|
}),
|
|
22683
22721
|
startAgentStep: ({ secrets, ...step }) => rpc.startAgentStep({ lease, ...step, ...secrets === undefined ? undefined : { secrets: [...secrets] } }),
|
|
22684
22722
|
awaitEvent: (wait) => rpc.awaitEvent({ lease, ...wait }),
|
|
@@ -24974,4 +25012,4 @@ var runKit = (config, identity, packages) => {
|
|
|
24974
25012
|
runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
|
|
24975
25013
|
};
|
|
24976
25014
|
// .kitman-build-entry.ts
|
|
24977
|
-
runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.10.
|
|
25015
|
+
runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.10.83" }, []);
|
package/dist/declarations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/go-to-market",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.83",
|
|
4
4
|
"description": "Copywriting, marketing psychology and SEO audits.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"kitman.config.ts"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@kitman-sh/sdk": "0.10.
|
|
17
|
+
"@kitman-sh/sdk": "0.10.83"
|
|
18
18
|
},
|
|
19
19
|
"kitman": {
|
|
20
20
|
"bundle": "dist/bundle.js",
|
|
21
|
-
"digest": "
|
|
21
|
+
"digest": "dcb75b695c469eb7ccfb08c0cdff7ca9b391a48ae99764dcb423f72d9ea47313",
|
|
22
22
|
"protocolVersion": 5,
|
|
23
23
|
"declarations": "dist/declarations.json",
|
|
24
24
|
"setup": {
|