Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

style(view): one import name per line for the release note [N26]

Corey Olson71fcf4af25aa
diff --git a/src/cockpit.js b/src/cockpit.js
index 3f457b9e..495432cb 100644
--- a/src/cockpit.js
+++ b/src/cockpit.js
@@ -1,10 +1,14 @@
-import { hostedReleaseDistance, shippedReleaseVersions } from './view/hosted-release.js';
+import {
+ HOSTED_RELEASE,
+ hostedReleaseDistance,
+ shippedReleaseVersions,
+} from './view/hosted-release.js';
import {
effectiveGuards,
IN_STATE,
MACHINE,
} from './machine.js';
-import { commandPhrases, VERSION } from './help.js';
+import { commandPhrases } from './help.js';
import { personNeeds } from './needs.js';
/** The CLI's default phrases, ordered by depth for the existing prose inventory guard. */
@@ -51,7 +55,7 @@ function lifecycle() {
* @param {{snapshot?: boolean, readOnly?: boolean, requests?: boolean, transportModule?: string|null, apiBase?: string, apiHeaders?: Record<string, string>, stylesheet?: string, paths?: boolean, hostedLocal?: boolean, relaySession?: boolean, signIn?: string|null, hostedReleaseVersion?: string, hostedReleaseVersions?: string[]|null}} [options] - Served connection and assets, optional person requests over a read-only transport, host routes, a static page with event replay, or the hosted page that reads this machine's view first.
* @returns {string}
*/
-export function cockpitPage(key = '', { snapshot = false, readOnly = false, requests = false, transportModule = null, apiBase = '', apiHeaders = { 'x-pullboard-key': key }, stylesheet = null, paths = false, hostedLocal = false, relaySession = false, signIn = null, hostedReleaseVersion = VERSION, hostedReleaseVersions: suppliedReleaseVersions = null } = {}) {
+export function cockpitPage(key = '', { snapshot = false, readOnly = false, requests = false, transportModule = null, apiBase = '', apiHeaders = { 'x-pullboard-key': key }, stylesheet = null, paths = false, hostedLocal = false, relaySession = false, signIn = null, hostedReleaseVersion = HOSTED_RELEASE, hostedReleaseVersions: suppliedReleaseVersions = null } = {}) {
// Derive the current CLI inventory for every served, relay or exported page.
const COMMAND_SOURCE = 'pullboard (?:' + commandPhrases().join('|') + ')(?![\\w-])(?: (?:--?[\\w-]+|\\d+|#\\d+|"[^"\\n]*"|[A-Z][A-Z0-9_]*|[\\w-]*[\\/.:@][^\\s"]*|[a-z]+-\\d+)(?![\\w-]))*';
diff --git a/src/view/hosted-release.js b/src/view/hosted-release.js
index 9f743124..a4653304 100644
--- a/src/view/hosted-release.js
+++ b/src/view/hosted-release.js
@@ -6,6 +6,9 @@
import { readFileSync } from 'node:fs';
import { VERSION } from '../help.js';
+/** The release this hosted page was built from: the package's own version, so learning it fetches nothing. */
+export const HOSTED_RELEASE = VERSION;
+
let shipped;
/**