@lunora/config 1.0.0-alpha.179 → 1.0.0-alpha.180
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/index.d.mts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/DEFAULT_DEPLOY_TARGET-DpDlbJNG.mjs +1 -0
- package/dist/packem_shared/{LUNORA_CONFIG_FILE-gaSaOW1e.mjs → LUNORA_CONFIG_FILE-CJqaLqNo.mjs} +1 -1
- package/package.json +5 -5
- package/dist/packem_shared/DEFAULT_DEPLOY_TARGET-BRFEtEoC.mjs +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -470,6 +470,27 @@ declare const deployTargetIds: () => ReadonlyArray<string>;
|
|
|
470
470
|
* @throws when `target` names no registered driver — never falls back to the default.
|
|
471
471
|
*/
|
|
472
472
|
declare const resolveDeployDriver: (target?: string) => DeployDriver;
|
|
473
|
+
/**
|
|
474
|
+
* Whether `target`'s driver ships a `toolchain` — i.e. whether any tool can
|
|
475
|
+
* actually build, serve or deploy it, as opposed to merely generate for it.
|
|
476
|
+
*
|
|
477
|
+
* One predicate rather than one per caller: the CLI (`deploy`, `dev`) and the
|
|
478
|
+
* Vite plugin (`build`, `dev`) must refuse the same set, and a second copy
|
|
479
|
+
* fails silently — the tool that forgot runs the WRONG pipeline for the target
|
|
480
|
+
* instead of rejecting it.
|
|
481
|
+
* @param target A target id already resolved by `resolveTargetOrThrow`. Unknown
|
|
482
|
+
* ids answer `false` rather than throwing, so this is safe to ask about
|
|
483
|
+
* arbitrary input.
|
|
484
|
+
* @returns `true` when the target can be run.
|
|
485
|
+
*/
|
|
486
|
+
declare const isRunnableTarget: (target: string) => boolean;
|
|
487
|
+
/**
|
|
488
|
+
* The subset of {@link deployTargetIds} that {@link isRunnableTarget} accepts,
|
|
489
|
+
* in the same (alphabetical) order.
|
|
490
|
+
* @returns every target id a tool can build, serve or deploy — used to name the
|
|
491
|
+
* alternatives when one is refused.
|
|
492
|
+
*/
|
|
493
|
+
declare const runnableTargetIds: () => ReadonlyArray<string>;
|
|
473
494
|
/** Directory holding per-checkout Lunora state (gitignored by convention). */
|
|
474
495
|
declare const LINKED_PROJECT_DIR = ".lunora";
|
|
475
496
|
/** The canonical link filename, relative to the project root. */
|
|
@@ -1257,4 +1278,4 @@ declare const badgeWidth: (_spec: BadgeSpec) => number;
|
|
|
1257
1278
|
declare const paintBadge: (spec: BadgeSpec) => string;
|
|
1258
1279
|
/** Dim continuation text (a step's chosen answer, shown under the question). */
|
|
1259
1280
|
declare const paintAnswer: (text: string) => string;
|
|
1260
|
-
export { ACCENT, AGENT_MODE_ENV, AGENT_RULES_DIR, AGENT_RULES_HINT, AGENT_RULES_HINT_ENV, type AddIndexEdit, type AddOptionalColumnEdit, type AddTableEdit, type AdditiveEdit, type AgentDetection, type AgentRulesStatus, type ApplyEditResult, type ApplyFailureReason, type AugmentPlan, BADGES, BADGE_COLUMN_WIDTH, type BadgeName, type BadgeSpec, CODEGEN_ENV, type ClaimDevServerStateResult, type ContainerLogLevel, type ContainerLogLine, type ContainerLogSource, type ContainerLogStreamHandle, type ContainerLogStreamOptions, DEFAULT_DEPLOY_TARGET, DEV_BINDINGS_FILE, DEV_DAEMON_ENV, DEV_HANDOFF_ENV, DEV_LOG_FILE, DEV_LOG_FILE_ENV, DEV_STATE_DIR, DEV_STATE_FILE, DEV_VARS_EXAMPLE_FILE, DEV_VARS_FILE, DEV_VARS_KEY_PATTERN, type DeployDriver, type DestructiveEdit, type DetectedFramework, type DevSecretsFillPlan, type DevServerMode, type DevServerState, type DiscoverAgentInfoResult, type DiscoverContainerInfoResult, type DiscoverWorkflowInfoResult, type DockerLike, type EnsureDevVariablesDeps, type EnsureDevVariablesResult, type EnsureDevVariablesStatus, type FillDevSecretsResult, type FrameworkClass, type FrameworkDetection, type HookLogger, type HookSpawnDescriptor, type HookSpawner, LINKED_PROJECT_DIR, LINKED_PROJECT_FILE, LUNA_ART, LUNA_BUNNY, LUNA_NAME, LUNA_SIGNOFF, LUNORA_CONFIG_FILE, LUNORA_EVENT_SOURCE, LUNORA_IGNORED_PATHS, LUNORA_SKILL_NAMES, type LevelBadgeName, type LinkedProject, type LintIgnoreOutcome, type LintIgnoreStatus, type LintTool, type LunoraFormattedLine, type LunoraLineLevel, type LunoraProjectConfig, LunoraReporter, type MultiSelectOption, PACKAGE_SECRETS_REGISTRY, type PackageManager, type PackageManagerProbe, type ParseSchemaResult, type PostCodegenHookResult, ROOT_SKILL_NAME, type RemotePreference, STEP_BADGE_NAMES, type ScaffoldPlan, type SchemaColumn, type SchemaEdit, type SchemaIndex, type SchemaTable, type SecretEntry, type SelectOption, type StepBadgeName, addArgsFor, applyAdditiveEdit, applyLintIgnores, badgeLead, badgeWidth, buildPackageSecretsBlock, claimAgentRulesHint, claimDevServerState, classifyEdit, clearDevServerState, createConfirm, deployTargetIds, detectAgentRules, detectAiAgent, detectFramework, detectInstalledManagers, detectLintTools, detectPackageManager, discoverAgentInfo, discoverContainerInfo, discoverWorkflowInfo, ensureDevVariables, ensureDevVariablesExample as ensureDevVarsExample, escapeRegExp, execArgsFor, fillDevSecrets, formatLunoraEvent, generateSecretValue, installArgsFor, interpretRemote, isCodegenDisabled, isDevServerReady, isInteractive, isMintableSecretKey, isPlaceholderValue, isProcessAlive, isRecordedProcessCurrent, padBadge, paintAnswer, paintBadge, parseDevVariableEntries, parseSchema, planDevSecretsFill, planDevVariablesAugment, planDevVariablesScaffold, promptMultiSelect, promptSelect, promptText, promptYesNo, readDevServerState, readLinkedProject, readLiveDevServerState, readProjectDependencyNames, readProjectRemotePreference, readProjectTarget, removeDevVariableLine, requiredSecrets, resolveDeployDriver, resolveProjectTarget, resolveTargetOrThrow, runPostCodegenHook, runScriptArgsFor, runScriptCommand, secretsForPackages, streamContainerLogs, updateDevServerState, upsertDevVariableLine, writeDevServerState, writeDevVariablesFileAtomically, writeLinkedProject };
|
|
1281
|
+
export { ACCENT, AGENT_MODE_ENV, AGENT_RULES_DIR, AGENT_RULES_HINT, AGENT_RULES_HINT_ENV, type AddIndexEdit, type AddOptionalColumnEdit, type AddTableEdit, type AdditiveEdit, type AgentDetection, type AgentRulesStatus, type ApplyEditResult, type ApplyFailureReason, type AugmentPlan, BADGES, BADGE_COLUMN_WIDTH, type BadgeName, type BadgeSpec, CODEGEN_ENV, type ClaimDevServerStateResult, type ContainerLogLevel, type ContainerLogLine, type ContainerLogSource, type ContainerLogStreamHandle, type ContainerLogStreamOptions, DEFAULT_DEPLOY_TARGET, DEV_BINDINGS_FILE, DEV_DAEMON_ENV, DEV_HANDOFF_ENV, DEV_LOG_FILE, DEV_LOG_FILE_ENV, DEV_STATE_DIR, DEV_STATE_FILE, DEV_VARS_EXAMPLE_FILE, DEV_VARS_FILE, DEV_VARS_KEY_PATTERN, type DeployDriver, type DestructiveEdit, type DetectedFramework, type DevSecretsFillPlan, type DevServerMode, type DevServerState, type DiscoverAgentInfoResult, type DiscoverContainerInfoResult, type DiscoverWorkflowInfoResult, type DockerLike, type EnsureDevVariablesDeps, type EnsureDevVariablesResult, type EnsureDevVariablesStatus, type FillDevSecretsResult, type FrameworkClass, type FrameworkDetection, type HookLogger, type HookSpawnDescriptor, type HookSpawner, LINKED_PROJECT_DIR, LINKED_PROJECT_FILE, LUNA_ART, LUNA_BUNNY, LUNA_NAME, LUNA_SIGNOFF, LUNORA_CONFIG_FILE, LUNORA_EVENT_SOURCE, LUNORA_IGNORED_PATHS, LUNORA_SKILL_NAMES, type LevelBadgeName, type LinkedProject, type LintIgnoreOutcome, type LintIgnoreStatus, type LintTool, type LunoraFormattedLine, type LunoraLineLevel, type LunoraProjectConfig, LunoraReporter, type MultiSelectOption, PACKAGE_SECRETS_REGISTRY, type PackageManager, type PackageManagerProbe, type ParseSchemaResult, type PostCodegenHookResult, ROOT_SKILL_NAME, type RemotePreference, STEP_BADGE_NAMES, type ScaffoldPlan, type SchemaColumn, type SchemaEdit, type SchemaIndex, type SchemaTable, type SecretEntry, type SelectOption, type StepBadgeName, addArgsFor, applyAdditiveEdit, applyLintIgnores, badgeLead, badgeWidth, buildPackageSecretsBlock, claimAgentRulesHint, claimDevServerState, classifyEdit, clearDevServerState, createConfirm, deployTargetIds, detectAgentRules, detectAiAgent, detectFramework, detectInstalledManagers, detectLintTools, detectPackageManager, discoverAgentInfo, discoverContainerInfo, discoverWorkflowInfo, ensureDevVariables, ensureDevVariablesExample as ensureDevVarsExample, escapeRegExp, execArgsFor, fillDevSecrets, formatLunoraEvent, generateSecretValue, installArgsFor, interpretRemote, isCodegenDisabled, isDevServerReady, isInteractive, isMintableSecretKey, isPlaceholderValue, isProcessAlive, isRecordedProcessCurrent, isRunnableTarget, padBadge, paintAnswer, paintBadge, parseDevVariableEntries, parseSchema, planDevSecretsFill, planDevVariablesAugment, planDevVariablesScaffold, promptMultiSelect, promptSelect, promptText, promptYesNo, readDevServerState, readLinkedProject, readLiveDevServerState, readProjectDependencyNames, readProjectRemotePreference, readProjectTarget, removeDevVariableLine, requiredSecrets, resolveDeployDriver, resolveProjectTarget, resolveTargetOrThrow, runPostCodegenHook, runScriptArgsFor, runScriptCommand, runnableTargetIds, secretsForPackages, streamContainerLogs, updateDevServerState, upsertDevVariableLine, writeDevServerState, writeDevVariablesFileAtomically, writeLinkedProject };
|
package/dist/index.d.ts
CHANGED
|
@@ -470,6 +470,27 @@ declare const deployTargetIds: () => ReadonlyArray<string>;
|
|
|
470
470
|
* @throws when `target` names no registered driver — never falls back to the default.
|
|
471
471
|
*/
|
|
472
472
|
declare const resolveDeployDriver: (target?: string) => DeployDriver;
|
|
473
|
+
/**
|
|
474
|
+
* Whether `target`'s driver ships a `toolchain` — i.e. whether any tool can
|
|
475
|
+
* actually build, serve or deploy it, as opposed to merely generate for it.
|
|
476
|
+
*
|
|
477
|
+
* One predicate rather than one per caller: the CLI (`deploy`, `dev`) and the
|
|
478
|
+
* Vite plugin (`build`, `dev`) must refuse the same set, and a second copy
|
|
479
|
+
* fails silently — the tool that forgot runs the WRONG pipeline for the target
|
|
480
|
+
* instead of rejecting it.
|
|
481
|
+
* @param target A target id already resolved by `resolveTargetOrThrow`. Unknown
|
|
482
|
+
* ids answer `false` rather than throwing, so this is safe to ask about
|
|
483
|
+
* arbitrary input.
|
|
484
|
+
* @returns `true` when the target can be run.
|
|
485
|
+
*/
|
|
486
|
+
declare const isRunnableTarget: (target: string) => boolean;
|
|
487
|
+
/**
|
|
488
|
+
* The subset of {@link deployTargetIds} that {@link isRunnableTarget} accepts,
|
|
489
|
+
* in the same (alphabetical) order.
|
|
490
|
+
* @returns every target id a tool can build, serve or deploy — used to name the
|
|
491
|
+
* alternatives when one is refused.
|
|
492
|
+
*/
|
|
493
|
+
declare const runnableTargetIds: () => ReadonlyArray<string>;
|
|
473
494
|
/** Directory holding per-checkout Lunora state (gitignored by convention). */
|
|
474
495
|
declare const LINKED_PROJECT_DIR = ".lunora";
|
|
475
496
|
/** The canonical link filename, relative to the project root. */
|
|
@@ -1257,4 +1278,4 @@ declare const badgeWidth: (_spec: BadgeSpec) => number;
|
|
|
1257
1278
|
declare const paintBadge: (spec: BadgeSpec) => string;
|
|
1258
1279
|
/** Dim continuation text (a step's chosen answer, shown under the question). */
|
|
1259
1280
|
declare const paintAnswer: (text: string) => string;
|
|
1260
|
-
export { ACCENT, AGENT_MODE_ENV, AGENT_RULES_DIR, AGENT_RULES_HINT, AGENT_RULES_HINT_ENV, type AddIndexEdit, type AddOptionalColumnEdit, type AddTableEdit, type AdditiveEdit, type AgentDetection, type AgentRulesStatus, type ApplyEditResult, type ApplyFailureReason, type AugmentPlan, BADGES, BADGE_COLUMN_WIDTH, type BadgeName, type BadgeSpec, CODEGEN_ENV, type ClaimDevServerStateResult, type ContainerLogLevel, type ContainerLogLine, type ContainerLogSource, type ContainerLogStreamHandle, type ContainerLogStreamOptions, DEFAULT_DEPLOY_TARGET, DEV_BINDINGS_FILE, DEV_DAEMON_ENV, DEV_HANDOFF_ENV, DEV_LOG_FILE, DEV_LOG_FILE_ENV, DEV_STATE_DIR, DEV_STATE_FILE, DEV_VARS_EXAMPLE_FILE, DEV_VARS_FILE, DEV_VARS_KEY_PATTERN, type DeployDriver, type DestructiveEdit, type DetectedFramework, type DevSecretsFillPlan, type DevServerMode, type DevServerState, type DiscoverAgentInfoResult, type DiscoverContainerInfoResult, type DiscoverWorkflowInfoResult, type DockerLike, type EnsureDevVariablesDeps, type EnsureDevVariablesResult, type EnsureDevVariablesStatus, type FillDevSecretsResult, type FrameworkClass, type FrameworkDetection, type HookLogger, type HookSpawnDescriptor, type HookSpawner, LINKED_PROJECT_DIR, LINKED_PROJECT_FILE, LUNA_ART, LUNA_BUNNY, LUNA_NAME, LUNA_SIGNOFF, LUNORA_CONFIG_FILE, LUNORA_EVENT_SOURCE, LUNORA_IGNORED_PATHS, LUNORA_SKILL_NAMES, type LevelBadgeName, type LinkedProject, type LintIgnoreOutcome, type LintIgnoreStatus, type LintTool, type LunoraFormattedLine, type LunoraLineLevel, type LunoraProjectConfig, LunoraReporter, type MultiSelectOption, PACKAGE_SECRETS_REGISTRY, type PackageManager, type PackageManagerProbe, type ParseSchemaResult, type PostCodegenHookResult, ROOT_SKILL_NAME, type RemotePreference, STEP_BADGE_NAMES, type ScaffoldPlan, type SchemaColumn, type SchemaEdit, type SchemaIndex, type SchemaTable, type SecretEntry, type SelectOption, type StepBadgeName, addArgsFor, applyAdditiveEdit, applyLintIgnores, badgeLead, badgeWidth, buildPackageSecretsBlock, claimAgentRulesHint, claimDevServerState, classifyEdit, clearDevServerState, createConfirm, deployTargetIds, detectAgentRules, detectAiAgent, detectFramework, detectInstalledManagers, detectLintTools, detectPackageManager, discoverAgentInfo, discoverContainerInfo, discoverWorkflowInfo, ensureDevVariables, ensureDevVariablesExample as ensureDevVarsExample, escapeRegExp, execArgsFor, fillDevSecrets, formatLunoraEvent, generateSecretValue, installArgsFor, interpretRemote, isCodegenDisabled, isDevServerReady, isInteractive, isMintableSecretKey, isPlaceholderValue, isProcessAlive, isRecordedProcessCurrent, padBadge, paintAnswer, paintBadge, parseDevVariableEntries, parseSchema, planDevSecretsFill, planDevVariablesAugment, planDevVariablesScaffold, promptMultiSelect, promptSelect, promptText, promptYesNo, readDevServerState, readLinkedProject, readLiveDevServerState, readProjectDependencyNames, readProjectRemotePreference, readProjectTarget, removeDevVariableLine, requiredSecrets, resolveDeployDriver, resolveProjectTarget, resolveTargetOrThrow, runPostCodegenHook, runScriptArgsFor, runScriptCommand, secretsForPackages, streamContainerLogs, updateDevServerState, upsertDevVariableLine, writeDevServerState, writeDevVariablesFileAtomically, writeLinkedProject };
|
|
1281
|
+
export { ACCENT, AGENT_MODE_ENV, AGENT_RULES_DIR, AGENT_RULES_HINT, AGENT_RULES_HINT_ENV, type AddIndexEdit, type AddOptionalColumnEdit, type AddTableEdit, type AdditiveEdit, type AgentDetection, type AgentRulesStatus, type ApplyEditResult, type ApplyFailureReason, type AugmentPlan, BADGES, BADGE_COLUMN_WIDTH, type BadgeName, type BadgeSpec, CODEGEN_ENV, type ClaimDevServerStateResult, type ContainerLogLevel, type ContainerLogLine, type ContainerLogSource, type ContainerLogStreamHandle, type ContainerLogStreamOptions, DEFAULT_DEPLOY_TARGET, DEV_BINDINGS_FILE, DEV_DAEMON_ENV, DEV_HANDOFF_ENV, DEV_LOG_FILE, DEV_LOG_FILE_ENV, DEV_STATE_DIR, DEV_STATE_FILE, DEV_VARS_EXAMPLE_FILE, DEV_VARS_FILE, DEV_VARS_KEY_PATTERN, type DeployDriver, type DestructiveEdit, type DetectedFramework, type DevSecretsFillPlan, type DevServerMode, type DevServerState, type DiscoverAgentInfoResult, type DiscoverContainerInfoResult, type DiscoverWorkflowInfoResult, type DockerLike, type EnsureDevVariablesDeps, type EnsureDevVariablesResult, type EnsureDevVariablesStatus, type FillDevSecretsResult, type FrameworkClass, type FrameworkDetection, type HookLogger, type HookSpawnDescriptor, type HookSpawner, LINKED_PROJECT_DIR, LINKED_PROJECT_FILE, LUNA_ART, LUNA_BUNNY, LUNA_NAME, LUNA_SIGNOFF, LUNORA_CONFIG_FILE, LUNORA_EVENT_SOURCE, LUNORA_IGNORED_PATHS, LUNORA_SKILL_NAMES, type LevelBadgeName, type LinkedProject, type LintIgnoreOutcome, type LintIgnoreStatus, type LintTool, type LunoraFormattedLine, type LunoraLineLevel, type LunoraProjectConfig, LunoraReporter, type MultiSelectOption, PACKAGE_SECRETS_REGISTRY, type PackageManager, type PackageManagerProbe, type ParseSchemaResult, type PostCodegenHookResult, ROOT_SKILL_NAME, type RemotePreference, STEP_BADGE_NAMES, type ScaffoldPlan, type SchemaColumn, type SchemaEdit, type SchemaIndex, type SchemaTable, type SecretEntry, type SelectOption, type StepBadgeName, addArgsFor, applyAdditiveEdit, applyLintIgnores, badgeLead, badgeWidth, buildPackageSecretsBlock, claimAgentRulesHint, claimDevServerState, classifyEdit, clearDevServerState, createConfirm, deployTargetIds, detectAgentRules, detectAiAgent, detectFramework, detectInstalledManagers, detectLintTools, detectPackageManager, discoverAgentInfo, discoverContainerInfo, discoverWorkflowInfo, ensureDevVariables, ensureDevVariablesExample as ensureDevVarsExample, escapeRegExp, execArgsFor, fillDevSecrets, formatLunoraEvent, generateSecretValue, installArgsFor, interpretRemote, isCodegenDisabled, isDevServerReady, isInteractive, isMintableSecretKey, isPlaceholderValue, isProcessAlive, isRecordedProcessCurrent, isRunnableTarget, padBadge, paintAnswer, paintBadge, parseDevVariableEntries, parseSchema, planDevSecretsFill, planDevVariablesAugment, planDevVariablesScaffold, promptMultiSelect, promptSelect, promptText, promptYesNo, readDevServerState, readLinkedProject, readLiveDevServerState, readProjectDependencyNames, readProjectRemotePreference, readProjectTarget, removeDevVariableLine, requiredSecrets, resolveDeployDriver, resolveProjectTarget, resolveTargetOrThrow, runPostCodegenHook, runScriptArgsFor, runScriptCommand, runnableTargetIds, secretsForPackages, streamContainerLogs, updateDevServerState, upsertDevVariableLine, writeDevServerState, writeDevVariablesFileAtomically, writeLinkedProject };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{AGENT_MODE_ENV as
|
|
1
|
+
import{AGENT_MODE_ENV as t,detectAiAgent as o}from"./packem_shared/AGENT_MODE_ENV-D8MvSwPE.mjs";import{discoverAgentInfo as i}from"./packem_shared/discoverAgentInfo-CTdCSfYM.mjs";import{AGENT_RULES_DIR as s,AGENT_RULES_HINT as n,AGENT_RULES_HINT_ENV as p,LUNORA_SKILL_NAMES as l,ROOT_SKILL_NAME as _,claimAgentRulesHint as c,detectAgentRules as d}from"./packem_shared/AGENT_RULES_DIR-3-Sx1gHU.mjs";import{CODEGEN_ENV as A,isCodegenDisabled as D}from"./packem_shared/CODEGEN_ENV-ZsCxV1kP.mjs";import{discoverContainerInfo as f}from"./packem_shared/discoverContainerInfo-EhZtEBQs.mjs";import{streamContainerLogs as N}from"./packem_shared/streamContainerLogs-0nko1qpv.mjs";import{detectFramework as T,readProjectDependencyNames as I}from"./packem_shared/detectFramework-DOn4PtpP.mjs";import{DEV_BINDINGS_FILE as g,DEV_DAEMON_ENV as x,DEV_HANDOFF_ENV as V,DEV_LOG_FILE as P,DEV_LOG_FILE_ENV as F,DEV_STATE_DIR as u,DEV_STATE_FILE as O,claimDevServerState as C,clearDevServerState as G,isDevServerReady as U,isProcessAlive as b,isRecordedProcessCurrent as y,readDevServerState as M,readLiveDevServerState as k,updateDevServerState as B,writeDevServerState as w}from"./packem_shared/DEV_BINDINGS_FILE-pyOiNLP4.mjs";import{DEV_VARS_EXAMPLE_FILE as K,DEV_VARS_FILE as j,DEV_VARS_KEY_PATTERN as h,escapeRegExp as Y,parseDevVariableEntries as W,removeDevVariableLine as J,upsertDevVariableLine as q}from"./packem_shared/DEV_VARS_EXAMPLE_FILE-CqLorAxT.mjs";import{DEFAULT_DEPLOY_TARGET as z,deployTargetIds as Q,isRunnableTarget as Z,resolveDeployDriver as $,runnableTargetIds as ee}from"./packem_shared/DEFAULT_DEPLOY_TARGET-DpDlbJNG.mjs";import{inferLunoraBindings as te,packageNamesFromBindings as oe}from"./packem_shared/inferLunoraBindings-7kPfAt6p.mjs";import{LINKED_PROJECT_DIR as ie,LINKED_PROJECT_FILE as Ee,readLinkedProject as se,writeLinkedProject as ne}from"./packem_shared/LINKED_PROJECT_DIR-Ba5qPEwo.mjs";import{LUNORA_IGNORED_PATHS as le,applyLintIgnores as _e,detectLintTools as ce}from"./packem_shared/LUNORA_IGNORED_PATHS-BGbVUqw_.mjs";import{LUNORA_EVENT_SOURCE as me,formatLunoraEvent as Ae}from"./packem_shared/LUNORA_EVENT_SOURCE-DYdcDU9G.mjs";import{default as Se}from"./packem_shared/LunoraReporter-f277GLNT.mjs";import{addArgsFor as Le,detectInstalledManagers as Ne,detectPackageManager as ve,execArgsFor as Te,installArgsFor as Ie,runScriptArgsFor as Re,runScriptCommand as ge}from"./packem_shared/addArgsFor-B4D4zvM0.mjs";import{PACKAGE_SECRETS_REGISTRY as Ve,secretsForPackages as Pe}from"./packem_shared/PACKAGE_SECRETS_REGISTRY-BgmvEPA-.mjs";import{runPostCodegenHook as ue}from"./packem_shared/runPostCodegenHook-BF3XTBFz.mjs";import{LUNORA_CONFIG_FILE as Ce,interpretRemote as Ge,readProjectRemotePreference as Ue,readProjectTarget as be,resolveProjectTarget as ye,resolveTargetOrThrow as Me}from"./packem_shared/LUNORA_CONFIG_FILE-CJqaLqNo.mjs";import{createConfirm as Be,isInteractive as we,promptMultiSelect as He,promptSelect as Ke,promptText as je,promptYesNo as he}from"./packem_shared/createConfirm-D5mKTMHj.mjs";import{buildPackageSecretsBlock as We,ensureDevVariables as Je,ensureDevVarsExample as qe,fillDevSecrets as Xe,generateSecretValue as ze,isMintableSecretKey as Qe,isPlaceholderValue as Ze,planDevSecretsFill as $e,planDevVariablesAugment as er,planDevVariablesScaffold as rr,requiredSecrets as tr,writeDevVariablesFileAtomically as or}from"./packem_shared/buildPackageSecretsBlock-J7bP1P-6.mjs";import{applyAdditiveEdit as ir,classifyEdit as Er}from"./packem_shared/applyAdditiveEdit-DPhNZsf2.mjs";import{parseSchema as nr}from"./packem_shared/parseSchema-B4nFDPzZ.mjs";import{classifyPolicyEdit as lr,scaffoldPolicyFile as _r,wireRlsIntoProcedure as cr}from"./packem_shared/classifyPolicyEdit-BfSiVpv-.mjs";import{discoverSchemaInfo as mr}from"./packem_shared/discoverSchemaInfo-Bg2CUZXG.mjs";import{ACCENT as Dr,BADGES as Sr,BADGE_COLUMN_WIDTH as fr,LUNA_ART as Lr,LUNA_BUNNY as Nr,LUNA_NAME as vr,LUNA_SIGNOFF as Tr,STEP_BADGE_NAMES as Ir,badgeLead as Rr,badgeWidth as gr,padBadge as xr,paintAnswer as Vr,paintBadge as Pr}from"./packem_shared/ACCENT-CotPTfv7.mjs";import{discoverWorkflowInfo as ur}from"./packem_shared/discoverWorkflowInfo-BsPvlo6O.mjs";export{Dr as ACCENT,t as AGENT_MODE_ENV,s as AGENT_RULES_DIR,n as AGENT_RULES_HINT,p as AGENT_RULES_HINT_ENV,Sr as BADGES,fr as BADGE_COLUMN_WIDTH,A as CODEGEN_ENV,z as DEFAULT_DEPLOY_TARGET,g as DEV_BINDINGS_FILE,x as DEV_DAEMON_ENV,V as DEV_HANDOFF_ENV,P as DEV_LOG_FILE,F as DEV_LOG_FILE_ENV,u as DEV_STATE_DIR,O as DEV_STATE_FILE,K as DEV_VARS_EXAMPLE_FILE,j as DEV_VARS_FILE,h as DEV_VARS_KEY_PATTERN,ie as LINKED_PROJECT_DIR,Ee as LINKED_PROJECT_FILE,Lr as LUNA_ART,Nr as LUNA_BUNNY,vr as LUNA_NAME,Tr as LUNA_SIGNOFF,Ce as LUNORA_CONFIG_FILE,me as LUNORA_EVENT_SOURCE,le as LUNORA_IGNORED_PATHS,l as LUNORA_SKILL_NAMES,Se as LunoraReporter,Ve as PACKAGE_SECRETS_REGISTRY,_ as ROOT_SKILL_NAME,Ir as STEP_BADGE_NAMES,Le as addArgsFor,ir as applyAdditiveEdit,_e as applyLintIgnores,Rr as badgeLead,gr as badgeWidth,We as buildPackageSecretsBlock,c as claimAgentRulesHint,C as claimDevServerState,Er as classifyEdit,lr as classifyPolicyEdit,G as clearDevServerState,Be as createConfirm,Q as deployTargetIds,d as detectAgentRules,o as detectAiAgent,T as detectFramework,Ne as detectInstalledManagers,ce as detectLintTools,ve as detectPackageManager,i as discoverAgentInfo,f as discoverContainerInfo,mr as discoverSchemaInfo,ur as discoverWorkflowInfo,Je as ensureDevVariables,qe as ensureDevVarsExample,Y as escapeRegExp,Te as execArgsFor,Xe as fillDevSecrets,Ae as formatLunoraEvent,ze as generateSecretValue,te as inferLunoraBindings,Ie as installArgsFor,Ge as interpretRemote,D as isCodegenDisabled,U as isDevServerReady,we as isInteractive,Qe as isMintableSecretKey,Ze as isPlaceholderValue,b as isProcessAlive,y as isRecordedProcessCurrent,Z as isRunnableTarget,oe as packageNamesFromBindings,xr as padBadge,Vr as paintAnswer,Pr as paintBadge,W as parseDevVariableEntries,nr as parseSchema,$e as planDevSecretsFill,er as planDevVariablesAugment,rr as planDevVariablesScaffold,He as promptMultiSelect,Ke as promptSelect,je as promptText,he as promptYesNo,M as readDevServerState,se as readLinkedProject,k as readLiveDevServerState,I as readProjectDependencyNames,Ue as readProjectRemotePreference,be as readProjectTarget,J as removeDevVariableLine,tr as requiredSecrets,$ as resolveDeployDriver,ye as resolveProjectTarget,Me as resolveTargetOrThrow,ue as runPostCodegenHook,Re as runScriptArgsFor,ge as runScriptCommand,ee as runnableTargetIds,_r as scaffoldPolicyFile,Pe as secretsForPackages,N as streamContainerLogs,B as updateDevServerState,q as upsertDevVariableLine,cr as wireRlsIntoProcedure,w as writeDevServerState,or as writeDevVariablesFileAtomically,ne as writeLinkedProject};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as a,C as d}from"./cloudflare-driver-BRcsrarS.mjs";import{inferLunoraBindings as s}from"./inferLunoraBindings-7kPfAt6p.mjs";const l=[{detect:e=>e.containers.length>0,warning:"containers have no Node equivalent in @lunora/platform-node — ctx.containers will be unavailable"}],p={id:"node",infer:async e=>a(await s({projectRoot:e.projectRoot}),e.crons??[]),name:"Node",provision:async e=>{let n;try{n=a(await s({projectRoot:e.projectRoot}),e.crons??[])}catch(r){const i=r instanceof Error?r.message:String(r);return{added:[],changed:!1,warnings:[`requirement inference skipped: ${i}`]}}const t=l.filter(r=>r.detect(n)).map(r=>r.warning);return n.crons.length>0&&t.push(`${String(n.crons.length)} cron expression(s) declared, and NOTHING dispatches them on this target: no runtime walks the generated LUNORA_CRONS map into SchedulerHost.cron. Schedule the work explicitly (ctx.scheduler.runAfter/runAt) or deploy to a target with cron dispatch`),{added:[],changed:!1,warnings:t}}},h="cloudflare",o={cloudflare:d,node:p},c=()=>Object.keys(o).toSorted((e,n)=>e.localeCompare(n)),g=(e=h)=>{const n=o[e];if(n===void 0)throw new Error(`unknown deploy target "${e}" — available targets: ${c().join(", ")}`);return n},u=e=>Object.hasOwn(o,e)&&g(e).toolchain!==void 0,m=()=>c().filter(e=>u(e));export{h as DEFAULT_DEPLOY_TARGET,c as deployTargetIds,u as isRunnableTarget,g as resolveDeployDriver,m as runnableTargetIds};
|
package/dist/packem_shared/{LUNORA_CONFIG_FILE-gaSaOW1e.mjs → LUNORA_CONFIG_FILE-CJqaLqNo.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{existsSync as c,readFileSync as i}from"node:fs";import{readProjectTarget as s}from"@lunora/codegen";import{parse as a}from"jsonc-parser";import{DEFAULT_DEPLOY_TARGET as f,resolveDeployDriver as m}from"./DEFAULT_DEPLOY_TARGET-
|
|
1
|
+
import{existsSync as c,readFileSync as i}from"node:fs";import{readProjectTarget as s}from"@lunora/codegen";import{parse as a}from"jsonc-parser";import{DEFAULT_DEPLOY_TARGET as f,resolveDeployDriver as m}from"./DEFAULT_DEPLOY_TARGET-DpDlbJNG.mjs";import{join as p}from"node:path";const l="lunora.json",d=r=>{if(typeof r=="boolean")return r;if(r!==null&&typeof r=="object")return!0},u=r=>{const e=p(r,l);if(!c(e))return;let t;try{t=i(e,"utf8")}catch{return}const n=[],o=a(t,n,{allowTrailingComma:!0});if(!(n.length>0||o===null||typeof o!="object"))return o},h=r=>d(u(r)?.remote),g=r=>s(r),j=(r,e)=>e??g(r)??f,D=(r,e)=>{const t=j(r,e);return m(t),t};export{l as LUNORA_CONFIG_FILE,d as interpretRemote,h as readProjectRemotePreference,g as readProjectTarget,j as resolveProjectTarget,D as resolveTargetOrThrow};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/config",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.180",
|
|
4
4
|
"description": "Internal shared CLI + Vite config layer for Lunora: wrangler.jsonc validation, binding inference, and .dev.vars scaffolding",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bindings",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@lunora/codegen": "1.0.0-alpha.
|
|
58
|
-
"@lunora/container": "1.0.0-alpha.
|
|
59
|
-
"@lunora/errors": "1.0.0-alpha.
|
|
60
|
-
"@lunora/seed": "1.0.0-alpha.
|
|
57
|
+
"@lunora/codegen": "1.0.0-alpha.146",
|
|
58
|
+
"@lunora/container": "1.0.0-alpha.38",
|
|
59
|
+
"@lunora/errors": "1.0.0-alpha.27",
|
|
60
|
+
"@lunora/seed": "1.0.0-alpha.97",
|
|
61
61
|
"@visulima/colorize": "2.1.1",
|
|
62
62
|
"@visulima/find-ai-runner": "1.0.1",
|
|
63
63
|
"@visulima/package": "5.0.12",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t,C as c}from"./cloudflare-driver-BRcsrarS.mjs";import{inferLunoraBindings as a}from"./inferLunoraBindings-7kPfAt6p.mjs";const l=[{detect:e=>e.containers.length>0,warning:"containers have no Node equivalent in @lunora/platform-node — ctx.containers will be unavailable"}],d={id:"node",infer:async e=>t(await a({projectRoot:e.projectRoot}),e.crons??[]),name:"Node",provision:async e=>{let r;try{r=t(await a({projectRoot:e.projectRoot}),e.crons??[])}catch(n){const s=n instanceof Error?n.message:String(n);return{added:[],changed:!1,warnings:[`requirement inference skipped: ${s}`]}}const o=l.filter(n=>n.detect(r)).map(n=>n.warning);return r.crons.length>0&&o.push(`${String(r.crons.length)} cron expression(s) will be registered at runtime via SchedulerHost.cron rather than written to a config file`),{added:[],changed:!1,warnings:o}}},p="cloudflare",i={cloudflare:c,node:d},g=()=>Object.keys(i).toSorted((e,r)=>e.localeCompare(r)),h=(e=p)=>{const r=i[e];if(r===void 0)throw new Error(`unknown deploy target "${e}" — available targets: ${g().join(", ")}`);return r};export{p as DEFAULT_DEPLOY_TARGET,g as deployTargetIds,h as resolveDeployDriver};
|