halfcycle 0.3.23 → 0.3.25

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.
@@ -49,23 +49,23 @@
49
49
  * developer out of a credential the server was perfectly happy with, and would be a
50
50
  * second home for a lifetime nobody could then change in one place.
51
51
  *
52
- * INV-001: Node builtins only.
52
+ * ---------------------------------------------------------------------------
53
+ * THE FORMAT MOVED TO `packages/core`; THE I/O DID NOT (T-01,
54
+ * `engagement-token-silent-refresh`). The store's SHAPE, its parser over raw text
55
+ * (`parseAccountStoreText`) and the origin key's normalisation (`normaliseOrigin`)
56
+ * are defined once in `@halfcycle/core` and re-exported here. `readStoredCredential`
57
+ * became a file read over that parser. Every `readFileSync`/`writeFileSync`/
58
+ * `chmodSync`/`homedir()` line STAYS here: core holds no `node:` import at all,
59
+ * which is what lets a browser bundle and a guard hook share one definition.
60
+ *
61
+ * INV-001: Node builtins, `@halfcycle/core` and this package's own modules only.
53
62
  */
63
+ import { type StoredAccountCredential } from '@halfcycle/core';
64
+ export { ACCOUNT_STORE_FILENAME, HALFCYCLE_DIR_NAME, normaliseOrigin, parseAccountStoreText, type AccountStore, type StoredAccountCredential, } from '@halfcycle/core';
54
65
  /** The per-user Halfcycle directory. One home for the path shape. */
55
66
  export declare function halfcycleHome(home?: string): string;
56
67
  /** The account-credential store's absolute path. */
57
68
  export declare function accountStorePath(home?: string): string;
58
- /** One stored credential — what the poll handed back, plus when it was stored. */
59
- export interface StoredAccountCredential {
60
- /** The account the credential speaks for, as control reported it. */
61
- accountId: string;
62
- /** The plaintext credential. Presented as `Authorization: Bearer`. */
63
- credential: string;
64
- /** Control's issue-time expiry, UTC ISO-8601. Information only — see the header. */
65
- expiresAt: string;
66
- /** When this machine stored it, UTC ISO-8601. For the human, not for a check. */
67
- signedInAt: string;
68
- }
69
69
  /** The credential stored for a control origin, if this machine has signed in to it. */
70
70
  export declare function readStoredCredential(serviceUrl: string, home?: string): StoredAccountCredential | undefined;
71
71
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"account-credential.d.ts","sourceRoot":"","sources":["../src/account-credential.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAMH,qEAAqE;AACrE,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,oDAAoD;AACpD,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,kFAAkF;AAClF,MAAM,WAAW,uBAAuB;IACtC,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,SAAS,EAAE,MAAM,CAAC;IAClB,iFAAiF;IACjF,UAAU,EAAE,MAAM,CAAC;CACpB;AAsED,uFAAuF;AACvF,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,GACZ,uBAAuB,GAAG,SAAS,CAMrC;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,YAAY,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,EAC5E,IAAI,CAAC,EAAE,MAAM,GACZ,IAAI,CASN;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAOjF"}
1
+ {"version":3,"file":"account-credential.d.ts","sourceRoot":"","sources":["../src/account-credential.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAKH,OAAO,EAML,KAAK,uBAAuB,EAC7B,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,KAAK,YAAY,EACjB,KAAK,uBAAuB,GAC7B,MAAM,iBAAiB,CAAC;AAEzB,qEAAqE;AACrE,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,oDAAoD;AACpD,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEtD;AAwCD,uFAAuF;AACvF,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,GACZ,uBAAuB,GAAG,SAAS,CAMrC;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,YAAY,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,EAC5E,IAAI,CAAC,EAAE,MAAM,GACZ,IAAI,CASN;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAOjF"}
@@ -72,6 +72,15 @@ export declare const REAL_PROBES: FactProbes;
72
72
  * `projectDir` is the directory the command is about to act on — the install target, which
73
73
  * is the current directory in the bare form and an argument otherwise. The banner names
74
74
  * what the run will touch, not where the shell happens to be.
75
+ *
76
+ * **THE ADDRESS ROW IS LABELLED `Website`, NEVER `Plane` (W-3, #868).** "Control plane"
77
+ * is our internal word for it; the developer reading this banner has never heard it, and
78
+ * raw internal vocabulary reaching a client surface is a recorded finding class in this
79
+ * product. The row answers *which Halfcycle is this*, and an address is the answer they
80
+ * recognise. That reasoning sits HERE, in a leading docblock, and not beside the `fact`
81
+ * call it governs: esbuild drops a leading docblock and keeps a comment attached to a
82
+ * property, so an issue number written beside that line lands in the published entry —
83
+ * measured, and the reason `published-entry-vocabulary.test.ts` exists.
75
84
  */
76
85
  export declare function openingBannerContent(projectDir: string, env?: NodeJS.ProcessEnv, probes?: FactProbes): BannerContent;
77
86
  //# sourceMappingURL=banner-facts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"banner-facts.d.ts","sourceRoot":"","sources":["../src/banner-facts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AASH,OAAO,EAAkB,KAAK,aAAa,EAAmB,MAAM,aAAa,CAAC;AAElF;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,iBAAiB,CAAC;AAExC;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,EAAE,SAAS,MAAM,EAGpC,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAI3C,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,aAAa,IAAI,MAAM,GAAG,SAAS,CAOlD;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,GAAG,SAAS,CAWtD;AAED;0CAC0C;AAC1C,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,aAAa,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,iBAAiB,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IACrD,QAAQ,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC1D,QAAQ,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IACrD,QAAQ,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC/D,4EAA4E;IAC5E,QAAQ,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,KAAK,MAAM,GAAG,SAAS,CAAC;CACtE;AAED,2FAA2F;AAC3F,eAAO,MAAM,W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F;AAC3F,eAAO,MAAM,WAAW,EAAE,UAqCzB,CAAC;AAQF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAClB,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,MAAM,GAAE,UAAwB,GAC/B,aAAa,CAsCf"}
package/dist/bin.d.ts CHANGED
@@ -11,6 +11,8 @@
11
11
  * halfcycle build-record <phase> — assemble the phase Build Record (D1)
12
12
  * halfcycle open-phase <phase> — open a phase, with its entry decision
13
13
  * halfcycle close-phase <phase> — record a phase's acceptance and close it
14
+ * halfcycle ci bind <owner>/<repo> — trust that repository's CI for this engagement
15
+ * halfcycle ci unbind <owner>/<repo> — withdraw that trust
14
16
  *
15
17
  * EVERY NON-INSTALL SUBCOMMAND MUST BE NAMED IN `bareTarget` BELOW. The bare form
16
18
  * (`npx halfcycle` / `npx halfcycle ./repo`) treats the first positional as an
package/dist/bin.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG"}
1
+ {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG"}