@fro.bot/systematic 3.3.1 → 3.4.1
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/ATTRIBUTIONS.md +219 -0
- package/README.md +2 -2
- package/dist/index.js +108 -17
- package/dist/lib/receipt-readback.d.ts +10 -0
- package/package.json +7 -4
- package/skills/agent-browser/SKILL.md +28 -665
- package/skills/agent-browser/references/authentication.md +0 -303
- package/skills/agent-browser/references/commands.md +0 -266
- package/skills/agent-browser/references/profiling.md +0 -120
- package/skills/agent-browser/references/proxy-support.md +0 -194
- package/skills/agent-browser/references/session-management.md +0 -193
- package/skills/agent-browser/references/snapshot-refs.md +0 -194
- package/skills/agent-browser/references/video-recording.md +0 -173
- package/skills/agent-browser/templates/authenticated-session.sh +0 -105
- package/skills/agent-browser/templates/capture-workflow.sh +0 -69
- package/skills/agent-browser/templates/form-automation.sh +0 -62
package/ATTRIBUTIONS.md
CHANGED
|
@@ -269,6 +269,225 @@ The following is the full Apache License, Version 2.0 text, reproduced here in c
|
|
|
269
269
|
END OF TERMS AND CONDITIONS
|
|
270
270
|
```
|
|
271
271
|
|
|
272
|
+
## vercel-labs/agent-browser — Apache-2.0
|
|
273
|
+
|
|
274
|
+
**Source repository:** [`vercel-labs/agent-browser`](https://github.com/vercel-labs/agent-browser)
|
|
275
|
+
**Pinned version:** `v0.33.0` (npm `agent-browser@0.33.0`)
|
|
276
|
+
**License:** Apache-2.0
|
|
277
|
+
**Copyright:** Copyright 2025 Vercel Inc.
|
|
278
|
+
|
|
279
|
+
### Files derived
|
|
280
|
+
|
|
281
|
+
- `skills/agent-browser/SKILL.md`
|
|
282
|
+
|
|
283
|
+
### Adaptation notes
|
|
284
|
+
|
|
285
|
+
Vendored verbatim from the pinned npm package (`node_modules/agent-browser/skills/agent-browser/SKILL.md`) except for one deterministic transform: upstream's `hidden: true` frontmatter line is stripped. Upstream uses `hidden: true` to suppress the skill in its own discovery-install model; Systematic ships it as a visible catalog skill. Content is a thin discovery stub that points agents to the `agent-browser` CLI for runtime instructions (`agent-browser skills get core`). No other modifications are made.
|
|
286
|
+
|
|
287
|
+
### Refresh discipline
|
|
288
|
+
|
|
289
|
+
Refresh is **automated** via the pinned `devDependency` + `agent-browser:build` regeneration + `agent-browser:drift` CI gate:
|
|
290
|
+
|
|
291
|
+
1. Renovate opens a version-bump PR when upstream releases a new `agent-browser` version.
|
|
292
|
+
2. The `postUpgradeTasks` in `renovate.json5` runs `bun run agent-browser:build`, which regenerates `skills/agent-browser/SKILL.md` from the newly pinned version and lands the updated stub in the same PR.
|
|
293
|
+
3. The CI `agent-browser:drift` step verifies the committed file matches the pinned package and fails the PR if it does not.
|
|
294
|
+
|
|
295
|
+
This is fully automated — no human adaptation pass is required, in contrast to `obra/superpowers` which is manually refreshed because its content is hand-adapted on each bump.
|
|
296
|
+
|
|
297
|
+
### Upstream Apache-2.0 license text
|
|
298
|
+
|
|
299
|
+
The following is the full Apache License, Version 2.0 text from `agent-browser@0.33.0`, reproduced here in compliance with the license's notice requirements:
|
|
300
|
+
|
|
301
|
+
```
|
|
302
|
+
Apache License
|
|
303
|
+
Version 2.0, January 2004
|
|
304
|
+
http://www.apache.org/licenses/
|
|
305
|
+
|
|
306
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
307
|
+
|
|
308
|
+
1. Definitions.
|
|
309
|
+
|
|
310
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
311
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
312
|
+
|
|
313
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
314
|
+
the copyright owner that is granting the License.
|
|
315
|
+
|
|
316
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
317
|
+
other entities that control, are controlled by, or are under common
|
|
318
|
+
control with that entity. For the purposes of this definition,
|
|
319
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
320
|
+
direction or management of such entity, whether by contract or
|
|
321
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
322
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
323
|
+
|
|
324
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
325
|
+
exercising permissions granted by this License.
|
|
326
|
+
|
|
327
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
328
|
+
including but not limited to software source code, documentation
|
|
329
|
+
source, and configuration files.
|
|
330
|
+
|
|
331
|
+
"Object" form shall mean any form resulting from mechanical
|
|
332
|
+
transformation or translation of a Source form, including but
|
|
333
|
+
not limited to compiled object code, generated documentation,
|
|
334
|
+
and conversions to other media types.
|
|
335
|
+
|
|
336
|
+
"Work" shall mean the work of authorship, whether in Source or Object
|
|
337
|
+
form, made available under the License, as indicated by a copyright
|
|
338
|
+
notice that is included in or attached to the work (an example is
|
|
339
|
+
provided in the Appendix below).
|
|
340
|
+
|
|
341
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
342
|
+
form, that is based on (or derived from) the Work and for which the
|
|
343
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
344
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
345
|
+
of this License, Derivative Works shall not include works that remain
|
|
346
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
347
|
+
the Work and Derivative Works thereof.
|
|
348
|
+
|
|
349
|
+
"Contribution" shall mean any work of authorship, including the
|
|
350
|
+
original version of the Work and any modifications or additions to
|
|
351
|
+
that Work or Derivative Works thereof, that is intentionally submitted
|
|
352
|
+
to Licensor for inclusion in the Work by the copyright owner or by an
|
|
353
|
+
individual or Legal Entity authorized to submit on behalf of the
|
|
354
|
+
copyright owner. For the purposes of this definition, "submitted"
|
|
355
|
+
means any form of electronic, verbal, or written communication sent to
|
|
356
|
+
the Licensor or its representatives, including but not limited to
|
|
357
|
+
communication on electronic mailing lists, source code control systems,
|
|
358
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
359
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
360
|
+
excluding communication that is conspicuously marked or otherwise
|
|
361
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
362
|
+
|
|
363
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
364
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
365
|
+
subsequently incorporated within the Work.
|
|
366
|
+
|
|
367
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
368
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
369
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
370
|
+
copyright license to reproduce, prepare Derivative Works of, publicly
|
|
371
|
+
display, publicly perform, sublicense, and distribute the Work and
|
|
372
|
+
such Derivative Works in Source or Object form.
|
|
373
|
+
|
|
374
|
+
3. Grant of Patent License. Subject to the terms and conditions of this
|
|
375
|
+
License, each Contributor hereby grants to You a perpetual, worldwide,
|
|
376
|
+
non-exclusive, no-charge, royalty-free, irrevocable (except as stated
|
|
377
|
+
in this section) patent license to make, have made, use, offer to
|
|
378
|
+
sell, sell, import, and otherwise transfer the Work, where such
|
|
379
|
+
license applies only to those patent claims licensable by such
|
|
380
|
+
Contributor that are necessarily infringed by their Contribution(s)
|
|
381
|
+
alone or by combination of their Contribution(s) with the Work to
|
|
382
|
+
which such Contribution(s) was submitted. If You institute patent
|
|
383
|
+
litigation against any entity (including a cross-claim or counterclaim
|
|
384
|
+
in a lawsuit) alleging that the Work or a Contribution incorporated
|
|
385
|
+
within the Work constitutes direct or contributory patent infringement,
|
|
386
|
+
then any patent licenses granted to You under this License for that
|
|
387
|
+
Work shall terminate as of the date such litigation is filed.
|
|
388
|
+
|
|
389
|
+
4. Redistribution. You may reproduce and distribute copies of the Work
|
|
390
|
+
or Derivative Works thereof in any medium, with or without
|
|
391
|
+
modifications, and in Source or Object form, provided that You meet
|
|
392
|
+
the following conditions:
|
|
393
|
+
|
|
394
|
+
(a) You must give any other recipients of the Work or Derivative Works
|
|
395
|
+
a copy of this License; and
|
|
396
|
+
|
|
397
|
+
(b) You must cause any modified files to carry prominent notices
|
|
398
|
+
stating that You changed the files; and
|
|
399
|
+
|
|
400
|
+
(c) You must retain, in the Source form of any Derivative Works that
|
|
401
|
+
You distribute, all copyright, patent, trademark, and attribution
|
|
402
|
+
notices from the Source form of the Work, excluding those notices that
|
|
403
|
+
do not pertain to any part of the Derivative Works; and
|
|
404
|
+
|
|
405
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
406
|
+
distribution, then any Derivative Works that You distribute must
|
|
407
|
+
include a readable copy of the attribution notices contained within
|
|
408
|
+
such NOTICE file, excluding any notices that do not pertain to any
|
|
409
|
+
part of the Derivative Works, in at least one of the following places:
|
|
410
|
+
within a NOTICE text file distributed as part of the Derivative Works;
|
|
411
|
+
within the Source form or documentation, if provided along with the
|
|
412
|
+
Derivative Works; or, within a display generated by the Derivative
|
|
413
|
+
Works, if and wherever such third-party notices normally appear. The
|
|
414
|
+
contents of the NOTICE file are for informational purposes only and do
|
|
415
|
+
not modify the License. You may add Your own attribution notices
|
|
416
|
+
within Derivative Works that You distribute, alongside or as an
|
|
417
|
+
addendum to the NOTICE text from the Work, provided that such
|
|
418
|
+
additional attribution notices cannot be construed as modifying the
|
|
419
|
+
License.
|
|
420
|
+
|
|
421
|
+
You may add Your own copyright statement to Your modifications and may
|
|
422
|
+
provide additional or different license terms and conditions for use,
|
|
423
|
+
reproduction, or distribution of Your modifications, or for any such
|
|
424
|
+
Derivative Works as a whole, provided Your use, reproduction, and
|
|
425
|
+
distribution of the Work otherwise complies with the conditions stated
|
|
426
|
+
in this License.
|
|
427
|
+
|
|
428
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
429
|
+
any Contribution intentionally submitted for inclusion in the Work by
|
|
430
|
+
You to the Licensor shall be under the terms and conditions of this
|
|
431
|
+
License, without any additional terms or conditions. Notwithstanding
|
|
432
|
+
the above, nothing herein shall supersede or modify the terms of any
|
|
433
|
+
separate license agreement you may have executed with Licensor
|
|
434
|
+
regarding such Contributions.
|
|
435
|
+
|
|
436
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
437
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
438
|
+
except as required for reasonable and customary use in describing the
|
|
439
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
440
|
+
|
|
441
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed
|
|
442
|
+
to in writing, Licensor provides the Work (and each Contributor
|
|
443
|
+
provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES
|
|
444
|
+
OR CONDITIONS OF ANY KIND, either express or implied, including,
|
|
445
|
+
without limitation, any warranties or conditions of TITLE,
|
|
446
|
+
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
|
|
447
|
+
PURPOSE. You are solely responsible for determining the
|
|
448
|
+
appropriateness of using or redistributing the Work and assume any
|
|
449
|
+
risks associated with Your exercise of permissions under this License.
|
|
450
|
+
|
|
451
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
452
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
453
|
+
unless required by applicable law (such as deliberate and grossly
|
|
454
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
455
|
+
liable to You for damages, including any direct, indirect, special,
|
|
456
|
+
incidental, or exemplary, or consequential damages of any character
|
|
457
|
+
arising as a result of this License or out of the use or inability
|
|
458
|
+
to use the Work (including but not limited to damages for loss of
|
|
459
|
+
goodwill, work stoppage, computer failure or malfunction, or all
|
|
460
|
+
other commercial damages or losses), even if such Contributor has
|
|
461
|
+
been advised of the possibility of such damages.
|
|
462
|
+
|
|
463
|
+
9. Accepting Warranty or Additional Liability. While redistributing the
|
|
464
|
+
Work or Derivative Works thereof, You may choose to offer, and charge
|
|
465
|
+
a fee for, acceptance of support, warranty, indemnity, or other
|
|
466
|
+
liability obligations and/or rights consistent with this License.
|
|
467
|
+
However, in accepting such obligations, You may act only on Your own
|
|
468
|
+
behalf and on Your sole responsibility, not on behalf of any other
|
|
469
|
+
Contributor, and only if You agree to indemnify, defend, and hold
|
|
470
|
+
each Contributor harmless for any liability incurred by, or claims
|
|
471
|
+
asserted against, such Contributor by reason of your accepting any
|
|
472
|
+
such warranty or additional liability.
|
|
473
|
+
|
|
474
|
+
END OF TERMS AND CONDITIONS
|
|
475
|
+
|
|
476
|
+
Copyright 2025 Vercel Inc.
|
|
477
|
+
|
|
478
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
479
|
+
you may not use this file except in compliance with the License.
|
|
480
|
+
You may obtain a copy of the License at
|
|
481
|
+
|
|
482
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
483
|
+
|
|
484
|
+
Unless required by applicable law or agreed to in writing, software
|
|
485
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
486
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
487
|
+
See the License for the specific language governing permissions and
|
|
488
|
+
limitations under the License.
|
|
489
|
+
```
|
|
490
|
+
|
|
272
491
|
## Anthropic — CC-BY-4.0
|
|
273
492
|
|
|
274
493
|
**Source page:** [Skill authoring best practices](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/best-practices)
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<picture>
|
|
4
4
|
<source media="(prefers-color-scheme: dark)" srcset="./assets/banner.svg">
|
|
5
5
|
<source media="(prefers-color-scheme: light)" srcset="./assets/banner.svg">
|
|
6
|
-
<img alt="Systematic — Compound-Engineering
|
|
6
|
+
<img alt="Systematic — Compound-Engineering Loops for OpenCode, Pi, and Claude Code" src="./assets/banner.svg" width="100%">
|
|
7
7
|
</picture>
|
|
8
8
|
|
|
9
9
|
<br><br>
|
|
@@ -29,7 +29,7 @@ You want AI that follows your process, not just your prompts. You want repeatabl
|
|
|
29
29
|
|
|
30
30
|
## What You Get
|
|
31
31
|
|
|
32
|
-
Systematic is a compound-engineering
|
|
32
|
+
Systematic is a compound-engineering loop: brainstorm, plan, work, review — each phase a structured skill that guides the AI through requirements exploration, implementation planning, execution, and code review, capturing what was learned along the way. It ships 31 bundled skills and 37 specialized agents for architecture, security, performance, design, and code review.
|
|
33
33
|
|
|
34
34
|
The workflow runs on three harnesses from one source: [OpenCode](https://opencode.ai/), [Pi](https://github.com/earendil-works/pi-coding-agent), and Claude Code. Each gets a native install path; skill and agent content is identical across all three.
|
|
35
35
|
|
package/dist/index.js
CHANGED
|
@@ -2890,6 +2890,19 @@ function seedFromMarker(marker) {
|
|
|
2890
2890
|
capabilityFlags: marker.capabilityFlags
|
|
2891
2891
|
};
|
|
2892
2892
|
}
|
|
2893
|
+
function registrationDigestFromMarker(marker) {
|
|
2894
|
+
if (marker.kind === "mint")
|
|
2895
|
+
return marker.envelope.registrationDigest;
|
|
2896
|
+
return marker.registrationDigest;
|
|
2897
|
+
}
|
|
2898
|
+
function filterMarkersByRegistration(markers, ownRegistrationDigest) {
|
|
2899
|
+
return markers.filter((input) => {
|
|
2900
|
+
const validation = validateReceiptMarker(input);
|
|
2901
|
+
if (validation.status !== "valid")
|
|
2902
|
+
return true;
|
|
2903
|
+
return registrationDigestFromMarker(validation.marker) === ownRegistrationDigest;
|
|
2904
|
+
});
|
|
2905
|
+
}
|
|
2893
2906
|
function extractReceiptReadbackSeed(inputs) {
|
|
2894
2907
|
if (inputs.length === 0)
|
|
2895
2908
|
return { status: "empty" };
|
|
@@ -10400,6 +10413,11 @@ var statusToolSchema = exports_external.object(statusToolShape).strict();
|
|
|
10400
10413
|
function isRecord7(value) {
|
|
10401
10414
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
10402
10415
|
}
|
|
10416
|
+
function decodeSessionSaltBytes(hex) {
|
|
10417
|
+
if (typeof hex !== "string" || hex.length !== 64 || !/^[0-9a-f]+$/.test(hex))
|
|
10418
|
+
return;
|
|
10419
|
+
return Uint8Array.from(Buffer.from(hex, "hex"));
|
|
10420
|
+
}
|
|
10403
10421
|
function boundedString(value, maxLength) {
|
|
10404
10422
|
return typeof value === "string" && value.length > 0 && value.length <= maxLength;
|
|
10405
10423
|
}
|
|
@@ -10979,6 +10997,46 @@ function createSessionRuntime(options) {
|
|
|
10979
10997
|
function seedAgrees(nextLedger, seed) {
|
|
10980
10998
|
return nextLedger.metadata.registrationDigest === seed.registrationDigest && JSON.stringify(nextLedger.metadata.capabilityFlags) === JSON.stringify(["workflow-guard"]);
|
|
10981
10999
|
}
|
|
11000
|
+
function candidateSeedFromMarker(input) {
|
|
11001
|
+
const validation = validateReceiptMarker(input);
|
|
11002
|
+
if (validation.status !== "valid")
|
|
11003
|
+
return;
|
|
11004
|
+
const marker = validation.marker;
|
|
11005
|
+
if (marker.kind === "mint") {
|
|
11006
|
+
const salt = decodeSessionSaltBytes(marker.sessionSalt);
|
|
11007
|
+
return salt ? { salt, digest: marker.envelope.registrationDigest } : undefined;
|
|
11008
|
+
}
|
|
11009
|
+
if (marker.kind === "control" && marker.control === "progression") {
|
|
11010
|
+
const salt = decodeSessionSaltBytes(marker.sessionSalt);
|
|
11011
|
+
return salt ? { salt, digest: marker.registrationDigest } : undefined;
|
|
11012
|
+
}
|
|
11013
|
+
return;
|
|
11014
|
+
}
|
|
11015
|
+
function candidateAgreesWithOwnIdentity(salt, digest2) {
|
|
11016
|
+
try {
|
|
11017
|
+
const probe = createReceiptLedger({
|
|
11018
|
+
capabilityFlags: ["workflow-guard"],
|
|
11019
|
+
registrationIdentity: options.registrationIdentity,
|
|
11020
|
+
sessionSalt: salt
|
|
11021
|
+
});
|
|
11022
|
+
return probe.metadata.registrationDigest === digest2;
|
|
11023
|
+
} catch {
|
|
11024
|
+
return false;
|
|
11025
|
+
}
|
|
11026
|
+
}
|
|
11027
|
+
function resolveOwnRegistrationDigest(markers) {
|
|
11028
|
+
const seenDigests = new Set;
|
|
11029
|
+
for (const input of markers) {
|
|
11030
|
+
const candidate = candidateSeedFromMarker(input);
|
|
11031
|
+
if (!candidate || seenDigests.has(candidate.digest))
|
|
11032
|
+
continue;
|
|
11033
|
+
seenDigests.add(candidate.digest);
|
|
11034
|
+
if (candidateAgreesWithOwnIdentity(candidate.salt, candidate.digest)) {
|
|
11035
|
+
return candidate.digest;
|
|
11036
|
+
}
|
|
11037
|
+
}
|
|
11038
|
+
return;
|
|
11039
|
+
}
|
|
10982
11040
|
function recoverPersistedMarkers(markers) {
|
|
10983
11041
|
const seed = extractReceiptReadbackSeed(markers);
|
|
10984
11042
|
if (seed.status !== "ready")
|
|
@@ -11017,6 +11075,39 @@ function createSessionRuntime(options) {
|
|
|
11017
11075
|
initialized = true;
|
|
11018
11076
|
return true;
|
|
11019
11077
|
}
|
|
11078
|
+
function classifyMarkersFromParts(parts2) {
|
|
11079
|
+
const allMarkers = [];
|
|
11080
|
+
for (const part of parts2)
|
|
11081
|
+
collectReceiptMarkers(part, allMarkers);
|
|
11082
|
+
if (allMarkers.length === 0)
|
|
11083
|
+
return { kind: "foreign-empty" };
|
|
11084
|
+
const ownDigest = resolveOwnRegistrationDigest(allMarkers);
|
|
11085
|
+
if (ownDigest !== undefined) {
|
|
11086
|
+
return {
|
|
11087
|
+
kind: "own",
|
|
11088
|
+
markers: filterMarkersByRegistration(allMarkers, ownDigest)
|
|
11089
|
+
};
|
|
11090
|
+
}
|
|
11091
|
+
for (const input of allMarkers) {
|
|
11092
|
+
const validation = validateReceiptMarker(input);
|
|
11093
|
+
if (validation.status !== "valid") {
|
|
11094
|
+
return { kind: "ambiguous" };
|
|
11095
|
+
}
|
|
11096
|
+
const candidate = candidateSeedFromMarker(input);
|
|
11097
|
+
if (candidate === undefined) {
|
|
11098
|
+
return { kind: "ambiguous" };
|
|
11099
|
+
}
|
|
11100
|
+
}
|
|
11101
|
+
return { kind: "foreign-empty" };
|
|
11102
|
+
}
|
|
11103
|
+
function publishEmptyMarkers(parts2, allowFresh) {
|
|
11104
|
+
if (allowFresh && !parts2.some((part) => containsGuardHistory(part))) {
|
|
11105
|
+
publishFresh();
|
|
11106
|
+
} else {
|
|
11107
|
+
retryableEmptyHistory = true;
|
|
11108
|
+
publishUnavailable();
|
|
11109
|
+
}
|
|
11110
|
+
}
|
|
11020
11111
|
async function initializeSession(sessionID, allowFresh) {
|
|
11021
11112
|
const reader = options.hostReadback?.readSessionParts;
|
|
11022
11113
|
if (!reader) {
|
|
@@ -11030,19 +11121,16 @@ function createSessionRuntime(options) {
|
|
|
11030
11121
|
publishUnavailable();
|
|
11031
11122
|
return;
|
|
11032
11123
|
}
|
|
11033
|
-
const
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
if (markers.length === 0) {
|
|
11037
|
-
if (allowFresh && !parts2.some((part) => containsGuardHistory(part))) {
|
|
11038
|
-
publishFresh();
|
|
11039
|
-
} else {
|
|
11040
|
-
retryableEmptyHistory = true;
|
|
11041
|
-
publishUnavailable();
|
|
11042
|
-
}
|
|
11124
|
+
const classification = classifyMarkersFromParts(parts2);
|
|
11125
|
+
if (classification.kind === "ambiguous") {
|
|
11126
|
+
publishUnavailable();
|
|
11043
11127
|
return;
|
|
11044
11128
|
}
|
|
11045
|
-
if (
|
|
11129
|
+
if (classification.kind === "foreign-empty") {
|
|
11130
|
+
publishEmptyMarkers(parts2, allowFresh);
|
|
11131
|
+
return;
|
|
11132
|
+
}
|
|
11133
|
+
if (!recoverPersistedMarkers(classification.markers))
|
|
11046
11134
|
publishUnavailable();
|
|
11047
11135
|
}
|
|
11048
11136
|
async function recoverFromHost(sessionID, allowFresh = true) {
|
|
@@ -11080,12 +11168,15 @@ function createSessionRuntime(options) {
|
|
|
11080
11168
|
markUnavailable();
|
|
11081
11169
|
return;
|
|
11082
11170
|
}
|
|
11083
|
-
const
|
|
11084
|
-
|
|
11085
|
-
collectReceiptMarkers(part, markers);
|
|
11086
|
-
if (markers.length === 0)
|
|
11171
|
+
const classification = classifyMarkersFromParts(parts2);
|
|
11172
|
+
if (classification.kind === "foreign-empty")
|
|
11087
11173
|
return;
|
|
11088
|
-
|
|
11174
|
+
if (classification.kind === "ambiguous") {
|
|
11175
|
+
markUnavailable();
|
|
11176
|
+
return;
|
|
11177
|
+
}
|
|
11178
|
+
const ownMarkers = classification.markers;
|
|
11179
|
+
const seed = extractReceiptReadbackSeed(ownMarkers);
|
|
11089
11180
|
if (seed.status !== "ready") {
|
|
11090
11181
|
markUnavailable();
|
|
11091
11182
|
return;
|
|
@@ -11099,7 +11190,7 @@ function createSessionRuntime(options) {
|
|
|
11099
11190
|
markUnavailable();
|
|
11100
11191
|
return;
|
|
11101
11192
|
}
|
|
11102
|
-
const recovered = childLedger.recoverReadback(
|
|
11193
|
+
const recovered = childLedger.recoverReadback(ownMarkers);
|
|
11103
11194
|
if (recovered.status === "rejected") {
|
|
11104
11195
|
markUnavailable();
|
|
11105
11196
|
return;
|
|
@@ -156,6 +156,16 @@ export type ReceiptReadbackSeedResult = {
|
|
|
156
156
|
};
|
|
157
157
|
export declare function digestReceiptIdentity(domain: ReceiptDigestDomain, identity: string, sessionSalt: Uint8Array): string;
|
|
158
158
|
export declare function validateReceiptMarker(input: unknown): ReceiptMarkerValidation;
|
|
159
|
+
/**
|
|
160
|
+
* Filters a raw marker array, retaining only markers that belong to the given
|
|
161
|
+
* registrationDigest. Markers that cannot be parsed (malformed, unknown schema,
|
|
162
|
+
* etc.) are retained as-is so that downstream callers can fail-closed on them.
|
|
163
|
+
*
|
|
164
|
+
* Use this before extractReceiptReadbackSeed / foldReceiptReadback when the
|
|
165
|
+
* shared metadata array may contain markers from multiple concurrent
|
|
166
|
+
* registrations (e.g. dual-registration in a single OpenCode session).
|
|
167
|
+
*/
|
|
168
|
+
export declare function filterMarkersByRegistration(markers: readonly unknown[], ownRegistrationDigest: string): unknown[];
|
|
159
169
|
export declare function extractReceiptReadbackSeed(inputs: readonly unknown[]): ReceiptReadbackSeedResult;
|
|
160
170
|
export declare function projectReceiptMintMarker(receipt: unknown, sessionSalt: Uint8Array): ReceiptMintMarker | undefined;
|
|
161
171
|
export declare function projectReceiptConsumptionMarker(receipt: unknown, transitionDigest: string, timestamp?: number): ReceiptConsumeMarker | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fro.bot/systematic",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.4.1",
|
|
4
|
+
"description": "Compound-engineering loops for OpenCode, Pi, and Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://fro.bot/systematic",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -49,6 +49,8 @@
|
|
|
49
49
|
"docs:generate": "bun docs/scripts/generate-stats.ts && bun docs/scripts/transform-content.ts && bun scripts/generate-config-schema.ts && bun docs/scripts/generate-config-reference.ts",
|
|
50
50
|
"schema:generate": "bun scripts/generate-config-schema.ts",
|
|
51
51
|
"schema:drift": "bun scripts/generate-config-schema.ts --check",
|
|
52
|
+
"agent-browser:build": "bun scripts/generate-agent-browser-skill.ts",
|
|
53
|
+
"agent-browser:drift": "bun scripts/generate-agent-browser-skill.ts --check",
|
|
52
54
|
"registry:build": "bun scripts/build-registry.ts",
|
|
53
55
|
"registry:drift": "bun scripts/generate-registry.ts --check",
|
|
54
56
|
"registry:validate": "bun scripts/build-registry.ts --validate-only",
|
|
@@ -90,12 +92,13 @@
|
|
|
90
92
|
"devDependencies": {
|
|
91
93
|
"@biomejs/biome": "2.5.5",
|
|
92
94
|
"@earendil-works/pi-coding-agent": "0.80.10",
|
|
93
|
-
"@opencode-ai/plugin": "1.18.
|
|
94
|
-
"@opencode-ai/sdk": "1.18.
|
|
95
|
+
"@opencode-ai/plugin": "1.18.5",
|
|
96
|
+
"@opencode-ai/sdk": "1.18.5",
|
|
95
97
|
"@semantic-release/exec": "7.1.0",
|
|
96
98
|
"@types/bun": "latest",
|
|
97
99
|
"@types/js-yaml": "4.0.9",
|
|
98
100
|
"@types/node": "24.13.3",
|
|
101
|
+
"agent-browser": "0.33.0",
|
|
99
102
|
"ajv": "8.20.0",
|
|
100
103
|
"ajv-formats": "3.0.1",
|
|
101
104
|
"conventional-changelog-conventionalcommits": "9.3.1",
|