halfcycle 0.3.36 → 0.3.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halfcycle",
3
- "version": "0.3.36",
3
+ "version": "0.3.38",
4
4
  "description": "Your coding agents are the engineers. Halfcycle is the rest of the team: product owner, architect, planner and independent reviewer for Claude Code.",
5
5
  "keywords": [
6
6
  "claude",
@@ -1,41 +0,0 @@
1
- /**
2
- * Mint the board's first-visit code — the installer's second HTTP call (T-19,
3
- * #363; `client-mission-control` criterion 4, step 2).
4
- *
5
- * `POST {baseUrl}/board/enter-codes` with the engagement's own credential as a
6
- * bearer and an empty body: the engagement is resolved from the credential and
7
- * never read from the body. The control plane answers
8
- * `{ enterCode, engagementId, boardUrl, expiresAt }`. The installer prints the
9
- * address and the code; the developer pastes the code once, in a browser.
10
- *
11
- * The installer is the ONE minting site this phase builds. A standing re-mint
12
- * command belongs to the installer spec's second-run work; until it exists, an
13
- * expired or spent code is recovered by re-running the installer — which the
14
- * printed lines say rather than leave to be discovered.
15
- *
16
- * INV-001: this file imports only the global `fetch` (Node 20). It never imports
17
- * the control service — the mint is an external HTTP contract, exactly as
18
- * `create-engagement.ts` treats `POST /engagements`.
19
- */
20
- /** What `POST /board/enter-codes` returns on 201. */
21
- export interface MintedBoardCode {
22
- /** The single-use plaintext, printed once and never stored by the installer. */
23
- enterCode: string;
24
- engagementId: string;
25
- /** The first-visit address — a plain URL carrying no credential. */
26
- boardUrl: string;
27
- /** UTC ISO-8601 absolute expiry. */
28
- expiresAt: string;
29
- }
30
- /**
31
- * Mint a first-visit board code for the engagement the credential resolves to.
32
- *
33
- * @param baseUrl The platform origin (`HALFCYCLE_SERVICE_URL`).
34
- * @param sessionToken The engagement's own credential, as a bearer.
35
- * @throws on transport failure, a non-2xx status, or a body missing
36
- * any of the four fields. The caller decides what a failure
37
- * means; for the installer it means printing a recoverable
38
- * note, never failing an install that already succeeded.
39
- */
40
- export declare function mintBoardEnterCode(baseUrl: string, sessionToken: string): Promise<MintedBoardCode>;
41
- //# sourceMappingURL=mint-board-code.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mint-board-code.d.ts","sourceRoot":"","sources":["../src/mint-board-code.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,qDAAqD;AACrD,MAAM,WAAW,eAAe;IAC9B,gFAAgF;IAChF,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,eAAe,CAAC,CAwC1B"}