@wildo-ai/wildo-cli 1.1.15 → 1.1.16
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/src/commands/context/journey.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.js +12 -0
- package/dist/src/commands/context/journey.command.js.map +1 -1
- package/dist/src/commands/creation/drive.command.d.ts.map +1 -1
- package/dist/src/commands/creation/drive.command.js +2 -1
- package/dist/src/commands/creation/drive.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +44 -0
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +74 -3
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/providers/grant-export.command.d.ts +16 -0
- package/dist/src/commands/providers/grant-export.command.d.ts.map +1 -0
- package/dist/src/commands/providers/grant-export.command.js +78 -0
- package/dist/src/commands/providers/grant-export.command.js.map +1 -0
- package/dist/src/commands/providers/grant-import.command.d.ts +15 -0
- package/dist/src/commands/providers/grant-import.command.d.ts.map +1 -0
- package/dist/src/commands/providers/grant-import.command.js +78 -0
- package/dist/src/commands/providers/grant-import.command.js.map +1 -0
- package/dist/src/kernel/command-runner.d.ts.map +1 -1
- package/dist/src/kernel/command-runner.js +4 -6
- package/dist/src/kernel/command-runner.js.map +1 -1
- package/dist/src/kernel/hooks.d.ts.map +1 -1
- package/dist/src/kernel/hooks.js +2 -1
- package/dist/src/kernel/hooks.js.map +1 -1
- package/dist/src/kernel/json-document-output.d.ts +7 -0
- package/dist/src/kernel/json-document-output.d.ts.map +1 -1
- package/dist/src/kernel/json-document-output.js +8 -0
- package/dist/src/kernel/json-document-output.js.map +1 -1
- package/dist/src/kernel/types.d.ts +8 -0
- package/dist/src/kernel/types.d.ts.map +1 -1
- package/dist/src/kernel/types.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +24 -6
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +46 -13
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.js +7 -1
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts +13 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.js +32 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/environment-provider-configurations.service.d.ts +7 -0
- package/dist/src/services/application/environment-provider-configurations.service.d.ts.map +1 -1
- package/dist/src/services/application/environment-provider-configurations.service.js +1 -1
- package/dist/src/services/application/environment-provider-configurations.service.js.map +1 -1
- package/dist/src/services/application/local-tunnel.service.d.ts.map +1 -1
- package/dist/src/services/application/local-tunnel.service.js +2 -1
- package/dist/src/services/application/local-tunnel.service.js.map +1 -1
- package/dist/src/services/companion/companion-client.service.d.ts +17 -0
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client.service.js +21 -0
- package/dist/src/services/companion/companion-client.service.js.map +1 -1
- package/dist/src/services/companion/creation-drive.service.d.ts +18 -0
- package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-drive.service.js +70 -1
- package/dist/src/services/companion/creation-drive.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +10 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +24 -10
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.js +5 -0
- package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -1
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts +43 -4
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js +116 -9
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts +4 -3
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js +4 -3
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/framework/package-install.service.d.ts +7 -0
- package/dist/src/services/framework/package-install.service.d.ts.map +1 -1
- package/dist/src/services/framework/package-install.service.js +8 -1
- package/dist/src/services/framework/package-install.service.js.map +1 -1
- package/dist/src/services/registry/application-provider-connection.service.d.ts +16 -1
- package/dist/src/services/registry/application-provider-connection.service.d.ts.map +1 -1
- package/dist/src/services/registry/application-provider-connection.service.js +23 -0
- package/dist/src/services/registry/application-provider-connection.service.js.map +1 -1
- package/dist/src/services/registry/provider-grant-transfer.service.d.ts +48 -0
- package/dist/src/services/registry/provider-grant-transfer.service.d.ts.map +1 -0
- package/dist/src/services/registry/provider-grant-transfer.service.js +144 -0
- package/dist/src/services/registry/provider-grant-transfer.service.js.map +1 -0
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.js +10 -3
- package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +19 -19
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +2 -0
- package/templates/saas/i18n/email/system/remote-agent-task-updated/labels.en.ts +11 -0
- package/templates/saas/i18n/email/system/remote-agent-task-updated/template.tsx +56 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.ts +61 -0
- package/templates/saas/i18n/engine/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.ts +61 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +5 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +1 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/substitute-api-origin.mjs +97 -32
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +7 -6
- package/wildo-framework.info.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drive.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/creation/drive.command.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"drive.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/creation/drive.command.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAe1F,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,sDAAsD,CAAC;AAM9D;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,WAAW;IAC3D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAcxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAsDvD;AAED,mGAAmG;AACnG,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,EAAE,CASjF"}
|
|
@@ -4,7 +4,7 @@ import { CommandCategory } from '../../kernel/types.js';
|
|
|
4
4
|
import { ensureSaasAppScope } from '../../kernel/command-scope-utils.js';
|
|
5
5
|
import { writeJsonDocument } from '../../kernel/json-document-output.js';
|
|
6
6
|
import { ErrorUtils } from '../../infrastructure/errors/error.utils.js';
|
|
7
|
-
import { CompanionClient, CompanionRefusalError, CompanionRequestTimeoutError, companionFailureExitCode, readCompanionProviderAccountRefusal, } from '../../services/companion/companion-client.service.js';
|
|
7
|
+
import { CompanionClient, CompanionRefusalError, CompanionRequestTimeoutError, companionFailureExitCode, isCompanionConnectionClosedBeforeAnswer, readCompanionProviderAccountRefusal, } from '../../services/companion/companion-client.service.js';
|
|
8
8
|
import { resolveCompanionClientOptionsFromContext } from '../../services/companion/companion-client-options.utils.js';
|
|
9
9
|
import { CreationConsoleClient } from '../../services/companion/creation-console.service.js';
|
|
10
10
|
import { CONSOLE_READ_TIMEOUT_MS, CONSOLE_WRITE_TIMEOUT_MS } from '../../services/companion/console-verb.utils.js';
|
|
@@ -72,6 +72,7 @@ export default class CreationDriveCommand extends BaseCommand {
|
|
|
72
72
|
isCompanionUnreachable: (error) => companionFailureExitCode(error) === 2,
|
|
73
73
|
isClientTimeout: (error) => error instanceof CompanionRequestTimeoutError,
|
|
74
74
|
isNotReadyYet: (error) => error instanceof CompanionRefusalError && error.status === 503,
|
|
75
|
+
isConnectionClosedBeforeAnswer: isCompanionConnectionClosedBeforeAnswer,
|
|
75
76
|
isAlreadyRunning: (error) => error instanceof CompanionRefusalError && error.status === 409,
|
|
76
77
|
readProviderAccountRefusal: readCompanionProviderAccountRefusal,
|
|
77
78
|
now: () => Date.now(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drive.command.js","sourceRoot":"","sources":["../../../../src/commands/creation/drive.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC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M,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,GAAG;QACzI,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,mFAAmF,CAAC,CAAC;QACtH,sFAAsF;KACvF,CAAC;AACJ,CAAC","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\nimport type { CreationConsole_Feed, CreationDrive_AcceptOutcome, CreationDrive_RequirementsStanding, CreationDrive_Status } from '@wildo-ai/platform-core-shared';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ensureSaasAppScope } from '~wildo-cli/kernel/command-scope-utils';\nimport { writeJsonDocument } from '~wildo-cli/kernel/json-document-output';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport {\n CompanionClient,\n CompanionRefusalError,\n CompanionRequestTimeoutError,\n companionFailureExitCode,\n readCompanionProviderAccountRefusal,\n} from '~wildo-cli/services/companion/companion-client.service';\nimport { resolveCompanionClientOptionsFromContext } from '~wildo-cli/services/companion/companion-client-options.utils';\nimport { CreationConsoleClient } from '~wildo-cli/services/companion/creation-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, CONSOLE_WRITE_TIMEOUT_MS } from '~wildo-cli/services/companion/console-verb.utils';\nimport {\n CreationDriveStopRule,\n CreationDriveUntil,\n runCreationDrive,\n type CreationDriveResult,\n} from '~wildo-cli/services/companion/creation-drive.service';\nimport { SKIP_PREFLIGHT_FLAG, admitCreationRunAfterPreflight } from '~wildo-cli/services/application/creation-preflight.service';\n\n/** The longest one loop request is waited on. A loop may run a build lane for hours; past this the drive reads the state again. */\nconst CREATION_DRIVE_LOOP_REQUEST_TIMEOUT_MS = 6 * 60 * 60 * 1000;\n\n/**\n * `wildo creation drive --goal \"<goal>\" --until stuck --max-hours <h> --max-usd <n>` — run a creation unattended until a\n * stop rule fires (#2233): loops of rounds and the build they choose, accepted under the autonomy posture, through\n * companion restarts, usage-limit pauses and network losses, stopping on the first thing that needs the creator and\n * naming it. See `creation-drive.service.ts` for the rules.\n *\n * Both ceilings are REQUIRED and the person's, as `loop`'s iteration ceiling is: an unattended drive over the\n * application's source stops where the person said, never where this command guessed.\n */\nexport default class CreationDriveCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'creation drive',\n description: 'Drive the creation unattended until a stop rule fires: rounds, the build, acceptance, restarts.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: {\n goal: { type: 'string', description: 'What the creation should achieve, in a sentence' },\n until: { type: 'string', description: 'When to stop: `stuck` (the first stop rule that fires)', default: CreationDriveUntil.STUCK },\n 'max-hours': { type: 'string', description: 'The wall-clock ceiling, in hours (required)' },\n 'max-usd': { type: 'string', description: 'The spend ceiling, in US dollars of measured spend (required)' },\n 'fan-out': { type: 'string', description: 'The most playbooks one round may run at once, 1 to 5' },\n json: { type: 'boolean', description: 'Emit the drive\\'s result document.', default: false },\n [SKIP_PREFLIGHT_FLAG]: { type: 'boolean', description: 'Start even when `wildo creation preflight` reports a FAIL.', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const goal = typeof ctx.flags.goal === 'string' ? ctx.flags.goal.trim() : '';\n const until = String(ctx.flags.until ?? CreationDriveUntil.STUCK);\n const maximumHours = Number(ctx.flags['max-hours']);\n const maximumUsd = Number(ctx.flags['max-usd']);\n const fanOut = ctx.flags['fan-out'] === undefined ? undefined : Number(ctx.flags['fan-out']);\n if (goal.length === 0 || !(Object.values(CreationDriveUntil) as string[]).includes(until)\n || !(maximumHours > 0) || !(maximumUsd > 0) || (fanOut !== undefined && !(Number.isSafeInteger(fanOut) && fanOut >= 1 && fanOut <= 5))) {\n ctx.log.error('Usage: wildo creation drive --goal \"<what the creation should achieve>\" --until stuck --max-hours <h> --max-usd <n> [--fan-out <1-5>]');\n return { success: false };\n }\n if (!ensureSaasAppScope(ctx)) return { success: false };\n // Once, before the first round (#2229); every loop request is checked again by the companion.\n if (!await admitCreationRunAfterPreflight(ctx, 'wildo creation drive')) {\n if (ctx.flags.json === true) writeJsonDocument({ stoppedBy: CreationDriveStopRule.PREFLIGHT_FAILED, waitingFor: 'wildo creation preflight' });\n return { success: false };\n }\n const options = await resolveCompanionClientOptionsFromContext(ctx, CONSOLE_READ_TIMEOUT_MS);\n const loopOptions = { ...options, timeoutMs: CREATION_DRIVE_LOOP_REQUEST_TIMEOUT_MS };\n let result: CreationDriveResult;\n try {\n result = await runCreationDrive({\n readFeed: () => CreationConsoleClient.readFeed(options) as Promise<CreationConsole_Feed>,\n readStatus: () => CompanionClient.get<CreationDrive_Status>('/api/companion/creation/drive/status', options),\n // Derives the maturity reading (the landing probe, the follow-ups), so it gets the console's write deadline (#3701).\n readRequirementsStanding: () => CompanionClient.get<CreationDrive_RequirementsStanding>('/api/companion/creation/requirements/standing', { ...options, timeoutMs: CONSOLE_WRITE_TIMEOUT_MS }),\n readSpentUsd: async () => (await CreationConsoleClient.report(options)).spend.total.cost['USD'],\n runLoop: (request) => CreationConsoleClient.loop(loopOptions, request),\n // The accept waits for the worktree lock (up to about ten minutes), so it gets the console's write deadline.\n accept: () => CompanionClient.post<CreationDrive_AcceptOutcome>('/api/companion/creation/drive/accept', {}, { ...options, timeoutMs: CONSOLE_WRITE_TIMEOUT_MS }),\n isCompanionUnreachable: (error) => companionFailureExitCode(error) === 2,\n isClientTimeout: (error) => error instanceof CompanionRequestTimeoutError,\n isNotReadyYet: (error) => error instanceof CompanionRefusalError && error.status === 503,\n isAlreadyRunning: (error) => error instanceof CompanionRefusalError && error.status === 409,\n readProviderAccountRefusal: readCompanionProviderAccountRefusal,\n now: () => Date.now(),\n sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms)),\n progress: (line) => { if (ctx.flags.json !== true) ctx.log.info(line); },\n }, {\n goal,\n maximumMs: maximumHours * 3_600_000,\n maximumUsd,\n ...(fanOut !== undefined ? { fanOut } : {}),\n ...(ctx.flags[SKIP_PREFLIGHT_FLAG] === true ? { skipPreflight: true } : {}),\n });\n } catch (error) {\n ctx.log.error(`The creation drive stopped on an error: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false, exitCode: companionFailureExitCode(error) };\n }\n if (ctx.flags.json === true) writeJsonDocument(result);\n else for (const line of describeCreationDriveResult(result)) ctx.log.info(line);\n return { success: true };\n }\n}\n\n/** The drive's end, for a person: the rule that stopped it, what it waits for, and what it did. */\nexport function describeCreationDriveResult(result: CreationDriveResult): string[] {\n return [\n `The drive stopped: ${result.stoppedBy}.`,\n ` Waiting for: ${result.waitingFor}`,\n ` ${result.loops} loop(s), ${result.rounds} round(s), ${result.accepted} playbook run(s) accepted, ${result.companionRestarts} companion restart(s) seen, `\n + `${Math.round(result.elapsedMs / 60_000)} min${result.spentUsd === undefined ? '' : `, USD ${result.spentUsd.toFixed(2)} measured`}.`,\n ...(result.spendMeasured ? [] : [' The spend ceiling was not applied: the run report stated no measured USD spend.']),\n ' What a person did along the way, and the independence score: wildo creation report',\n ];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"drive.command.js","sourceRoot":"","sources":["../../../../src/commands/creation/drive.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EACL,eAAe,EACf,qB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AC,CAAC,CAAC,mFAAmF,CAAC,CAAC;QACtH,sFAAsF;KACvF,CAAC;AACJ,CAAC","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\nimport type { CreationConsole_Feed, CreationDrive_AcceptOutcome, CreationDrive_RequirementsStanding, CreationDrive_Status } from '@wildo-ai/platform-core-shared';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ensureSaasAppScope } from '~wildo-cli/kernel/command-scope-utils';\nimport { writeJsonDocument } from '~wildo-cli/kernel/json-document-output';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport {\n CompanionClient,\n CompanionRefusalError,\n CompanionRequestTimeoutError,\n companionFailureExitCode,\n isCompanionConnectionClosedBeforeAnswer,\n readCompanionProviderAccountRefusal,\n} from '~wildo-cli/services/companion/companion-client.service';\nimport { resolveCompanionClientOptionsFromContext } from '~wildo-cli/services/companion/companion-client-options.utils';\nimport { CreationConsoleClient } from '~wildo-cli/services/companion/creation-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, CONSOLE_WRITE_TIMEOUT_MS } from '~wildo-cli/services/companion/console-verb.utils';\nimport {\n CreationDriveStopRule,\n CreationDriveUntil,\n runCreationDrive,\n type CreationDriveResult,\n} from '~wildo-cli/services/companion/creation-drive.service';\nimport { SKIP_PREFLIGHT_FLAG, admitCreationRunAfterPreflight } from '~wildo-cli/services/application/creation-preflight.service';\n\n/** The longest one loop request is waited on. A loop may run a build lane for hours; past this the drive reads the state again. */\nconst CREATION_DRIVE_LOOP_REQUEST_TIMEOUT_MS = 6 * 60 * 60 * 1000;\n\n/**\n * `wildo creation drive --goal \"<goal>\" --until stuck --max-hours <h> --max-usd <n>` — run a creation unattended until a\n * stop rule fires (#2233): loops of rounds and the build they choose, accepted under the autonomy posture, through\n * companion restarts, usage-limit pauses and network losses, stopping on the first thing that needs the creator and\n * naming it. See `creation-drive.service.ts` for the rules.\n *\n * Both ceilings are REQUIRED and the person's, as `loop`'s iteration ceiling is: an unattended drive over the\n * application's source stops where the person said, never where this command guessed.\n */\nexport default class CreationDriveCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'creation drive',\n description: 'Drive the creation unattended until a stop rule fires: rounds, the build, acceptance, restarts.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: {\n goal: { type: 'string', description: 'What the creation should achieve, in a sentence' },\n until: { type: 'string', description: 'When to stop: `stuck` (the first stop rule that fires)', default: CreationDriveUntil.STUCK },\n 'max-hours': { type: 'string', description: 'The wall-clock ceiling, in hours (required)' },\n 'max-usd': { type: 'string', description: 'The spend ceiling, in US dollars of measured spend (required)' },\n 'fan-out': { type: 'string', description: 'The most playbooks one round may run at once, 1 to 5' },\n json: { type: 'boolean', description: 'Emit the drive\\'s result document.', default: false },\n [SKIP_PREFLIGHT_FLAG]: { type: 'boolean', description: 'Start even when `wildo creation preflight` reports a FAIL.', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const goal = typeof ctx.flags.goal === 'string' ? ctx.flags.goal.trim() : '';\n const until = String(ctx.flags.until ?? CreationDriveUntil.STUCK);\n const maximumHours = Number(ctx.flags['max-hours']);\n const maximumUsd = Number(ctx.flags['max-usd']);\n const fanOut = ctx.flags['fan-out'] === undefined ? undefined : Number(ctx.flags['fan-out']);\n if (goal.length === 0 || !(Object.values(CreationDriveUntil) as string[]).includes(until)\n || !(maximumHours > 0) || !(maximumUsd > 0) || (fanOut !== undefined && !(Number.isSafeInteger(fanOut) && fanOut >= 1 && fanOut <= 5))) {\n ctx.log.error('Usage: wildo creation drive --goal \"<what the creation should achieve>\" --until stuck --max-hours <h> --max-usd <n> [--fan-out <1-5>]');\n return { success: false };\n }\n if (!ensureSaasAppScope(ctx)) return { success: false };\n // Once, before the first round (#2229); every loop request is checked again by the companion.\n if (!await admitCreationRunAfterPreflight(ctx, 'wildo creation drive')) {\n if (ctx.flags.json === true) writeJsonDocument({ stoppedBy: CreationDriveStopRule.PREFLIGHT_FAILED, waitingFor: 'wildo creation preflight' });\n return { success: false };\n }\n const options = await resolveCompanionClientOptionsFromContext(ctx, CONSOLE_READ_TIMEOUT_MS);\n const loopOptions = { ...options, timeoutMs: CREATION_DRIVE_LOOP_REQUEST_TIMEOUT_MS };\n let result: CreationDriveResult;\n try {\n result = await runCreationDrive({\n readFeed: () => CreationConsoleClient.readFeed(options) as Promise<CreationConsole_Feed>,\n readStatus: () => CompanionClient.get<CreationDrive_Status>('/api/companion/creation/drive/status', options),\n // Derives the maturity reading (the landing probe, the follow-ups), so it gets the console's write deadline (#3701).\n readRequirementsStanding: () => CompanionClient.get<CreationDrive_RequirementsStanding>('/api/companion/creation/requirements/standing', { ...options, timeoutMs: CONSOLE_WRITE_TIMEOUT_MS }),\n readSpentUsd: async () => (await CreationConsoleClient.report(options)).spend.total.cost['USD'],\n runLoop: (request) => CreationConsoleClient.loop(loopOptions, request),\n // The accept waits for the worktree lock (up to about ten minutes), so it gets the console's write deadline.\n accept: () => CompanionClient.post<CreationDrive_AcceptOutcome>('/api/companion/creation/drive/accept', {}, { ...options, timeoutMs: CONSOLE_WRITE_TIMEOUT_MS }),\n isCompanionUnreachable: (error) => companionFailureExitCode(error) === 2,\n isClientTimeout: (error) => error instanceof CompanionRequestTimeoutError,\n isNotReadyYet: (error) => error instanceof CompanionRefusalError && error.status === 503,\n isConnectionClosedBeforeAnswer: isCompanionConnectionClosedBeforeAnswer,\n isAlreadyRunning: (error) => error instanceof CompanionRefusalError && error.status === 409,\n readProviderAccountRefusal: readCompanionProviderAccountRefusal,\n now: () => Date.now(),\n sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms)),\n progress: (line) => { if (ctx.flags.json !== true) ctx.log.info(line); },\n }, {\n goal,\n maximumMs: maximumHours * 3_600_000,\n maximumUsd,\n ...(fanOut !== undefined ? { fanOut } : {}),\n ...(ctx.flags[SKIP_PREFLIGHT_FLAG] === true ? { skipPreflight: true } : {}),\n });\n } catch (error) {\n ctx.log.error(`The creation drive stopped on an error: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false, exitCode: companionFailureExitCode(error) };\n }\n if (ctx.flags.json === true) writeJsonDocument(result);\n else for (const line of describeCreationDriveResult(result)) ctx.log.info(line);\n return { success: true };\n }\n}\n\n/** The drive's end, for a person: the rule that stopped it, what it waits for, and what it did. */\nexport function describeCreationDriveResult(result: CreationDriveResult): string[] {\n return [\n `The drive stopped: ${result.stoppedBy}.`,\n ` Waiting for: ${result.waitingFor}`,\n ` ${result.loops} loop(s), ${result.rounds} round(s), ${result.accepted} playbook run(s) accepted, ${result.companionRestarts} companion restart(s) seen, `\n + `${Math.round(result.elapsedMs / 60_000)} min${result.spentUsd === undefined ? '' : `, USD ${result.spentUsd.toFixed(2)} measured`}.`,\n ...(result.spendMeasured ? [] : [' The spend ceiling was not applied: the run report stated no measured USD spend.']),\n ' What a person did along the way, and the independence score: wildo creation report',\n ];\n}\n"]}
|
|
@@ -72,6 +72,18 @@
|
|
|
72
72
|
* It is what the live-stack e2e lanes boot after CI has built every dist: on a 2-vCPU hosted runner the development
|
|
73
73
|
* fleet ran it out of memory, and on the QA VM it spent the first minutes recompiling what CI had just built.
|
|
74
74
|
*
|
|
75
|
+
* # `--built-framework`: the application in development, the framework from its dists (#3961)
|
|
76
|
+
*
|
|
77
|
+
* Between the two: the application tree runs exactly as a developer's does (its watchers, companion, dev servers), and
|
|
78
|
+
* the framework tree starts no compiler. The root `pnpm dev` still runs, and its compile-status writer
|
|
79
|
+
* (`scripts/dev-orchestrator/dev-compile-status.mjs`) publishes every framework package from a validation of its BUILT
|
|
80
|
+
* dist, with the same file, lease and heartbeat, so the application runtimes' readiness gate keeps its meaning instead
|
|
81
|
+
* of being switched off. A dist that is missing, behind its source or unfinalized is published as not ready, and the
|
|
82
|
+
* runtimes that need it stay paused. The switch reaches both writers a stack can start, the root tree's and the one an
|
|
83
|
+
* application's `sync-engine.sh` starts when none is live (a hosted application), through one environment variable.
|
|
84
|
+
* For a run that uses the framework without editing it, after a full build: the finalization verifier, where the
|
|
85
|
+
* framework's thirty compilers held most of the QA VM's memory.
|
|
86
|
+
*
|
|
75
87
|
* # Output
|
|
76
88
|
*
|
|
77
89
|
* All combined stdout/stderr is tee'd to
|
|
@@ -142,6 +154,38 @@ export declare function servedTreeCommand(input: {
|
|
|
142
154
|
readonly appRoot?: string;
|
|
143
155
|
readonly frontendPaths?: readonly string[];
|
|
144
156
|
}): LocalDevTreeCommand;
|
|
157
|
+
/**
|
|
158
|
+
* How the framework tree's compile status is produced. The values are `dev-compile-status.mjs`'s `--compile-mode`
|
|
159
|
+
* vocabulary (`FrameworkCompileMode` in `scripts/dev-orchestrator/dist-backed-compile-status.mjs`); a test holds the
|
|
160
|
+
* two to the same members.
|
|
161
|
+
*/
|
|
162
|
+
export declare enum FrameworkCompileMode {
|
|
163
|
+
/** The default: one `tsc --watch` per framework package. */
|
|
164
|
+
WATCH = "watch",
|
|
165
|
+
/** No compiler: each framework package published from a validation of its built dist (`--built-framework`, #3961). */
|
|
166
|
+
DIST_BACKED = "dist-backed"
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* The environment variable that carries the mode to every compile-status writer the stack starts — the root `pnpm dev`
|
|
170
|
+
* tree's and the one an application's `sync-engine.sh` starts. A copy of `FRAMEWORK_COMPILE_MODE_ENV` in the script
|
|
171
|
+
* module; the same test pins it.
|
|
172
|
+
*/
|
|
173
|
+
export declare const FRAMEWORK_COMPILE_MODE_ENV_VAR = "WILDO_DEV_FRAMEWORK_COMPILE_MODE";
|
|
174
|
+
/** The module that owns the mode vocabulary, relative to the framework checkout. */
|
|
175
|
+
export declare const DIST_BACKED_COMPILE_STATUS_SCRIPT_PATH = "scripts/dev-orchestrator/dist-backed-compile-status.mjs";
|
|
176
|
+
/**
|
|
177
|
+
* Why a `--built-framework` request cannot be honoured, or `null` when it can.
|
|
178
|
+
*
|
|
179
|
+
* Framework-developer mode only: an application creator's engine is the published packages and its platform the
|
|
180
|
+
* published containers, so there is no framework compile fleet to leave out. And not with `--serve-built`, which
|
|
181
|
+
* already starts no compiler in either tree.
|
|
182
|
+
*/
|
|
183
|
+
export declare function refuseBuiltFrameworkRequest(input: {
|
|
184
|
+
readonly builtFramework: boolean;
|
|
185
|
+
readonly serveBuilt: boolean;
|
|
186
|
+
readonly frameworkPath: string | null | undefined;
|
|
187
|
+
readonly isFrameworkDeveloper: boolean;
|
|
188
|
+
}): string | null;
|
|
145
189
|
/**
|
|
146
190
|
* Why a `--serve-built` / `--serve-frontend` request cannot be honoured, or `null` when it can.
|
|
147
191
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/local/dev.command.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dev.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/local/dev.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HG;AAMH,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG7D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA4E1F,uGAAuG;AACvG,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAED,8GAA8G;AAC9G,eAAO,MAAM,wBAAwB,EAAE,mBAAwD,CAAC;AAEhG;;;GAGG;AACH,oBAAY,cAAc;IACxB,wEAAwE;IACxE,QAAQ,aAAa;IACrB,6HA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,WAAW;IACtD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAyCxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IA6sBtD;;;;;;;;;;;OAWG;YACW,8BAA8B;IAsB5C;;;;;;;;;;;;;;;;;;;;OAoBG;YACW,wBAAwB;IAqCtC;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,0BAA0B;IAqClC;;;OAGG;YACW,wBAAwB;IAOtC,OAAO,CAAC,SAAS;IAyBjB;;;;OAIG;IACH,OAAO,CAAC,wBAAwB;IAehC,OAAO,CAAC,wBAAwB;IA0BhC;;;;;OAKG;YACW,yBAAyB;IAqEvC;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAyBxB,OAAO,CAAC,YAAY;IA+EpB,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,oBAAoB;CAqB7B"}
|
|
@@ -72,6 +72,18 @@
|
|
|
72
72
|
* It is what the live-stack e2e lanes boot after CI has built every dist: on a 2-vCPU hosted runner the development
|
|
73
73
|
* fleet ran it out of memory, and on the QA VM it spent the first minutes recompiling what CI had just built.
|
|
74
74
|
*
|
|
75
|
+
* # `--built-framework`: the application in development, the framework from its dists (#3961)
|
|
76
|
+
*
|
|
77
|
+
* Between the two: the application tree runs exactly as a developer's does (its watchers, companion, dev servers), and
|
|
78
|
+
* the framework tree starts no compiler. The root `pnpm dev` still runs, and its compile-status writer
|
|
79
|
+
* (`scripts/dev-orchestrator/dev-compile-status.mjs`) publishes every framework package from a validation of its BUILT
|
|
80
|
+
* dist, with the same file, lease and heartbeat, so the application runtimes' readiness gate keeps its meaning instead
|
|
81
|
+
* of being switched off. A dist that is missing, behind its source or unfinalized is published as not ready, and the
|
|
82
|
+
* runtimes that need it stay paused. The switch reaches both writers a stack can start, the root tree's and the one an
|
|
83
|
+
* application's `sync-engine.sh` starts when none is live (a hosted application), through one environment variable.
|
|
84
|
+
* For a run that uses the framework without editing it, after a full build: the finalization verifier, where the
|
|
85
|
+
* framework's thirty compilers held most of the QA VM's memory.
|
|
86
|
+
*
|
|
75
87
|
* # Output
|
|
76
88
|
*
|
|
77
89
|
* All combined stdout/stderr is tee'd to
|
|
@@ -180,6 +192,45 @@ export function servedTreeCommand(input) {
|
|
|
180
192
|
}
|
|
181
193
|
return { command: process.execPath, args };
|
|
182
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
* How the framework tree's compile status is produced. The values are `dev-compile-status.mjs`'s `--compile-mode`
|
|
197
|
+
* vocabulary (`FrameworkCompileMode` in `scripts/dev-orchestrator/dist-backed-compile-status.mjs`); a test holds the
|
|
198
|
+
* two to the same members.
|
|
199
|
+
*/
|
|
200
|
+
export var FrameworkCompileMode;
|
|
201
|
+
(function (FrameworkCompileMode) {
|
|
202
|
+
/** The default: one `tsc --watch` per framework package. */
|
|
203
|
+
FrameworkCompileMode["WATCH"] = "watch";
|
|
204
|
+
/** No compiler: each framework package published from a validation of its built dist (`--built-framework`, #3961). */
|
|
205
|
+
FrameworkCompileMode["DIST_BACKED"] = "dist-backed";
|
|
206
|
+
})(FrameworkCompileMode || (FrameworkCompileMode = {}));
|
|
207
|
+
/**
|
|
208
|
+
* The environment variable that carries the mode to every compile-status writer the stack starts — the root `pnpm dev`
|
|
209
|
+
* tree's and the one an application's `sync-engine.sh` starts. A copy of `FRAMEWORK_COMPILE_MODE_ENV` in the script
|
|
210
|
+
* module; the same test pins it.
|
|
211
|
+
*/
|
|
212
|
+
export const FRAMEWORK_COMPILE_MODE_ENV_VAR = 'WILDO_DEV_FRAMEWORK_COMPILE_MODE';
|
|
213
|
+
/** The module that owns the mode vocabulary, relative to the framework checkout. */
|
|
214
|
+
export const DIST_BACKED_COMPILE_STATUS_SCRIPT_PATH = 'scripts/dev-orchestrator/dist-backed-compile-status.mjs';
|
|
215
|
+
/**
|
|
216
|
+
* Why a `--built-framework` request cannot be honoured, or `null` when it can.
|
|
217
|
+
*
|
|
218
|
+
* Framework-developer mode only: an application creator's engine is the published packages and its platform the
|
|
219
|
+
* published containers, so there is no framework compile fleet to leave out. And not with `--serve-built`, which
|
|
220
|
+
* already starts no compiler in either tree.
|
|
221
|
+
*/
|
|
222
|
+
export function refuseBuiltFrameworkRequest(input) {
|
|
223
|
+
if (!input.builtFramework)
|
|
224
|
+
return null;
|
|
225
|
+
if (input.serveBuilt) {
|
|
226
|
+
return '--built-framework does not combine with --serve-built: --serve-built already runs both trees from their dists, with no compiler at all.';
|
|
227
|
+
}
|
|
228
|
+
if (!input.frameworkPath || !input.isFrameworkDeveloper) {
|
|
229
|
+
return ('--built-framework needs a framework checkout in framework-developer mode: it publishes the checkout\'s framework packages ' +
|
|
230
|
+
'from their built dists instead of compiling them. An application-creator stack compiles no framework package to begin with.');
|
|
231
|
+
}
|
|
232
|
+
return null;
|
|
233
|
+
}
|
|
183
234
|
/**
|
|
184
235
|
* Why a `--serve-built` / `--serve-frontend` request cannot be honoured, or `null` when it can.
|
|
185
236
|
*
|
|
@@ -231,6 +282,11 @@ export default class LocalDevCommand extends BaseCommand {
|
|
|
231
282
|
description: 'With --serve-built, also run the interactive frontend\'s Vite server, for scenarios that drive the browser.',
|
|
232
283
|
default: false,
|
|
233
284
|
},
|
|
285
|
+
'built-framework': {
|
|
286
|
+
type: 'boolean',
|
|
287
|
+
description: 'Run the application in development against the BUILT framework: no framework compile watcher starts, and each framework package is published as compiled only once its dist is validated (present, current, finalized). For a run that does not edit the framework, after a full build (framework-dev mode only).',
|
|
288
|
+
default: false,
|
|
289
|
+
},
|
|
234
290
|
},
|
|
235
291
|
};
|
|
236
292
|
async run(ctx) {
|
|
@@ -282,6 +338,18 @@ export default class LocalDevCommand extends BaseCommand {
|
|
|
282
338
|
ctx.log.error(` ${servedStackRefusal}`);
|
|
283
339
|
return { success: false };
|
|
284
340
|
}
|
|
341
|
+
const builtFramework = ctx.flags.builtFramework === true || ctx.flags['built-framework'] === true;
|
|
342
|
+
const builtFrameworkRefusal = refuseBuiltFrameworkRequest({ builtFramework, serveBuilt, frameworkPath, isFrameworkDeveloper });
|
|
343
|
+
if (builtFrameworkRefusal) {
|
|
344
|
+
ctx.log.error(` ${builtFrameworkRefusal}`);
|
|
345
|
+
return { success: false };
|
|
346
|
+
}
|
|
347
|
+
/*
|
|
348
|
+
* The flag decides the mode for every compile-status writer this stack starts, in either tree, so it is written
|
|
349
|
+
* either way: a value left in the operator's shell must not turn a plain `wildo local dev` into one with no
|
|
350
|
+
* framework compiler (or the reverse).
|
|
351
|
+
*/
|
|
352
|
+
process.env[FRAMEWORK_COMPILE_MODE_ENV_VAR] = builtFramework ? FrameworkCompileMode.DIST_BACKED : FrameworkCompileMode.WATCH;
|
|
285
353
|
/*
|
|
286
354
|
* Whose infrastructure is this? Read from the AUTHORED descriptor, before any generated artifact is
|
|
287
355
|
* reconciled — a hosted application must never start the platform or converge the shared containers,
|
|
@@ -578,7 +646,9 @@ export default class LocalDevCommand extends BaseCommand {
|
|
|
578
646
|
}
|
|
579
647
|
ctx.log.info(chalk.cyan(serveBuilt
|
|
580
648
|
? ' Serving the built platform services (no compile watchers)...\n'
|
|
581
|
-
:
|
|
649
|
+
: builtFramework
|
|
650
|
+
? ' Starting platform stack against the built framework (no framework compile watchers; each dist validated)...\n'
|
|
651
|
+
: ' Starting platform stack (apps-manager + crontabs-batches-manager + module-registry)...\n'));
|
|
582
652
|
children.push(this.spawnTree('platform', frameworkPath, serveBuilt ? servedTreeCommand({ frameworkRoot: frameworkPath, tree: ServedTreeKind.PLATFORM }) : DEVELOPMENT_TREE_COMMAND, logStream, chalk.blue, consoleRendering));
|
|
583
653
|
}
|
|
584
654
|
else if (frameworkPath && isFrameworkDeveloper) {
|
|
@@ -860,8 +930,9 @@ export default class LocalDevCommand extends BaseCommand {
|
|
|
860
930
|
});
|
|
861
931
|
},
|
|
862
932
|
isStopping: () => shuttingDown,
|
|
863
|
-
reportRegenerationFailure: (error) => ctx.log.warn(` Could not regenerate the runtimes' env files: ${ErrorUtils.extractErrorMessage(error)}.
|
|
864
|
-
+ '
|
|
933
|
+
reportRegenerationFailure: (error) => ctx.log.warn(` Could not regenerate the runtimes' env files: ${ErrorUtils.extractErrorMessage(error)}. A runtime that joined starts once `
|
|
934
|
+
+ 'they are (a provider package or library does not wait); retrying in a minute, or as soon as a member that joined has '
|
|
935
|
+
+ 'compiled. Restarting `wildo local dev` also regenerates them.'),
|
|
865
936
|
initial: { declaration: await initialDeclarationState(saasRoot), members: initialLateWorkspaceMemberState(saasRoot) },
|
|
866
937
|
});
|
|
867
938
|
const reconcileWorkspace = async () => {
|