@powerhousedao/host-core 6.2.3-dev.82 → 6.2.3-dev.84

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.
@@ -601,8 +601,20 @@ function knownDriveSlugs(host) {
601
601
  if (slug === void 0) return void 0;
602
602
  slugs.push(slug);
603
603
  }
604
+ for (const drive of connectDefaultDrives(host.config)) {
605
+ if (typeof drive !== "object" || drive === null || !("url" in drive)) continue;
606
+ const slug = linkedSlug(drive.url);
607
+ if (slug === void 0) return void 0;
608
+ slugs.push(slug);
609
+ }
604
610
  return slugs;
605
611
  }
612
+ /** A Connect host's `config.drives.defaultDrives`, unchecked. */
613
+ function connectDefaultDrives(config) {
614
+ const drives = typeof config === "object" && config !== null && "drives" in config ? config.drives : void 0;
615
+ const list = typeof drives === "object" && drives !== null && "defaultDrives" in drives ? drives.defaultDrives : void 0;
616
+ return Array.isArray(list) ? list : [];
617
+ }
606
618
  /** Declared form, at host level so plugin drives are seen: a placement key
607
619
  * must name a drive the host names, when every drive is knowable. A host
608
620
  * with no remote backend is not checked: its plugins may contribute drives
@@ -3117,4 +3129,4 @@ async function prepareMember(projectRoot, key, member) {
3117
3129
  //#endregion
3118
3130
  export { resolveHostOutputs as $, concatTokenSchema as $t, findNonStaticValue as A, runTransformHook as An, defineHostSchemas as At, ONE_SHOT_VERBS as B, reactorBackendSchema as Bt, writeRunRecord as C, pluginEntryObjectSchema as Cn, HOST_NAME_PATTERN as Ct, OUTPUTS_FILE as D, runObserveHook as Dn, compoundWiringSchema as Dt, HostLoadError as E, resolveOrder as En, compoundHostSchema as Et, probeHostsFolder as F, makeHostSchemas as Ft, kindShapeIssues as G, runnerBaseSchema as Gt, getVerb as H, reactorProtocolSchema as Ht, readOutputsFileHash as I, originOrUrlSchema as It, resolveRunnerModule as J, driveDeclarationSchema as Jt, knownVerbIssues as K, runnerKindSchema as Kt, scanHostImports as L, placementKeyIssues as Lt, lintHostImports as M, emittedHostSchemas as Mt, lintOutputsFile as N, genericCompoundHostSchema as Nt, computeOutputsHash as O, runObserveHookSequential as On, declaredGenericCompoundHostSchema as Ot, loadHost as P, hostNameSchema as Pt, describeMapElements as Q, TOKEN_KEYS as Qt, stripComments as R, profileSchema as Rt, readRunRecord as S, normalizePluginEntry as Sn, HOST_NAME_MESSAGE as St, runRecordSchema as T, registerHostType as Tn, childrenSchema as Tt, hostSchemaIssues as U, reactorSchema as Ut, RunnerError as V, reactorHostSchema as Vt, isSchemaLike as W, refineStartOrder as Wt, validateHost as X, projectDriveIdWith as Xt, validateDeclaredHost as Y, drivesSchema as Yt, TokenResolutionError as Z, TOKEN_ESCAPE_KEY as Zt, clearRunRecord as _, PluginError as _n, formatPath as _t, takesCspRegistrySync as a, itemTokenSchema as an, isBuiltinEnvName as at, probeRun as b, mergeContributions as bn, unwrapEscapes as bt, compoundOutputSource as c, outputTokenSchema as cn, checkOutputPaths as ct, producerOutputsSchemas as d, tokenSchema as dn, outputRefsOf as dt, envTokenSchema as en, unsetEnvMessage as et, runRecordOutputSource as f, tokenable as fn, outputSitesOf as ft, applyChildWrapper as g, resolvePluginContributions as gn, describeToken as gt, resolveUserDataPlaceholders as h, resolveHostPlugins as hn, collectTokenSites as ht, runCompound as i, isToken as in, BUILTIN_ENV_NAMES as it, lintHostImportGraph as j, emitHostJsonSchema as jt, describeHostOutputs as k, runProvideHook as kn, declaredHostSchemas as kt, loadProducers as l, ref as ln, checkTokenSites as lt, defaultUserDataDir as m, findDeadConnectConfig as mn, schemaAtPath as mt, memberVerbOf as n, findToken as nn, memberForRef as nt, runnerHandleSchema as o, keyTokenSchema as on, substituteBuiltinEnv as ot, runnerOutputsSchema as p, CONNECT_PLUGIN_OWNED_SLICES as pn, refKey as pt, listVerbs as q, buildDriveDeclarationSchema as qt, prepareMember as r, forbidRef as rn, planCompound as rt, toStartedHandle as s, mapTokenSchema as sn, findRemovedForms as st, compoundStartVerb as t, envTokenable as tn, PlanError as tt, processResolveEnv as u, tokenKeyOf as un, envSitesOf as ut, isPidAlive as v, entryActiveForVerb as vn, isPlainObject as vt, runRecordMemberSchema as w, pluginEntrySchema as wn, childWrapperSchema as wt, readProjectName as x, normalizePluginEntries as xn, HOST_NAME_MAX_LENGTH as xt, listRunRecords as y, hostTypeSatisfies as yn, renderTokens as yt, CONNECT_RUNNER as z, reactorBackendKindSchema as zt };
3119
3131
 
3120
- //# sourceMappingURL=compound-YHuVvCFd.mjs.map
3132
+ //# sourceMappingURL=compound-GhJAA2dK.mjs.map