codeden 0.4.1 → 0.4.3

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.
Files changed (28) hide show
  1. package/README.md +1 -0
  2. package/dist/cli.js +1 -1
  3. package/dist/{main-Bubch4fJ.js → main-BsCZetsu.js} +2 -2
  4. package/dist/{main-Bubch4fJ.js.map → main-BsCZetsu.js.map} +1 -1
  5. package/dist/{main-f5CBW7t4.js → main-CtuRKdHE.js} +602 -461
  6. package/dist/main-CtuRKdHE.js.map +1 -0
  7. package/dist/{runner-Doy0yaNT.js → runner-BPkTmgxq.js} +27 -3
  8. package/dist/runner-BPkTmgxq.js.map +1 -0
  9. package/dist/runner.js +1 -1
  10. package/dist/web/assets/{core-BnICSmTX.js → core-BSglb5T2.js} +1 -1
  11. package/dist/web/assets/engine-oniguruma-DShJzqyt.js +1 -0
  12. package/dist/web/assets/{highlighted-body-JLMTFACH-DiAsPNHI.js → highlighted-body-JLMTFACH-C4JIAaW0.js} +1 -1
  13. package/dist/web/assets/{highlights-mfetlXdJ.js → highlights-BiFbzXfR.js} +1 -1
  14. package/dist/web/assets/index-B175wXOK.css +1 -0
  15. package/dist/web/assets/{index-CXjq9NOS.js → index-Dwp28BCB.js} +195 -195
  16. package/dist/web/assets/langs-Fwnh7v07.js +1 -0
  17. package/dist/web/assets/mermaid-WFAXDIZX-dh5FbPgs.js +1 -0
  18. package/dist/web/assets/{shiki-B1ZU2vss.js → shiki-BJFGjRKC.js} +2 -2
  19. package/dist/web/assets/{stream-tokenizer-1i17e6mT.js → stream-tokenizer-FM7Mm_zq.js} +1 -1
  20. package/dist/web/assets/{themes-CmE23Ko0.js → themes-EFt_x-Bi.js} +2 -2
  21. package/dist/web/index.html +2 -2
  22. package/package.json +2 -2
  23. package/dist/main-f5CBW7t4.js.map +0 -1
  24. package/dist/runner-Doy0yaNT.js.map +0 -1
  25. package/dist/web/assets/engine-oniguruma-Tz65MLLK.js +0 -1
  26. package/dist/web/assets/index-DcErU_f1.css +0 -1
  27. package/dist/web/assets/langs-B69Lxr5B.js +0 -1
  28. package/dist/web/assets/mermaid-WFAXDIZX-CbtYONW-.js +0 -1
@@ -8571,9 +8571,33 @@ const FactoryDigest = object({
8571
8571
  inboxItemId: Id.nullable(),
8572
8572
  itemId: Id.nullable()
8573
8573
  })),
8574
+ /** Judgement calls factory agents made on their own during the day (dark factory). */
8575
+ decisions: array(object({
8576
+ title: string(),
8577
+ decision: string(),
8578
+ needsHuman: boolean(),
8579
+ inboxItemId: Id
8580
+ })).default([]),
8574
8581
  text: string(),
8575
8582
  createdAt: Timestamp
8576
8583
  });
8584
+ /**
8585
+ * `factory_record_decision` (§10.1): in a dark factory nobody is watching, so a factory agent
8586
+ * that would have asked the user decides from the vision instead and records the call here.
8587
+ * It reaches the user's inbox and the daily digest so they can review or override it later;
8588
+ * nothing waits on it. `needsHuman` flags the few calls that are the user's to make
8589
+ * (protected areas, a missing or self-contradicting vision, anything irreversible outside the
8590
+ * code) without stopping the loop.
8591
+ */
8592
+ const FactoryDecisionRequest = object({
8593
+ /** What the agent would have asked. */
8594
+ question: string().min(1).max(2e3),
8595
+ /** What it decided. */
8596
+ decision: string().min(1).max(2e3),
8597
+ /** Why, grounded in the vision. */
8598
+ reasoning: string().min(1).max(4e3),
8599
+ needsHuman: boolean().default(false)
8600
+ });
8577
8601
  /** Protected areas parsed from the vision: path globs and topics that always need a human. */
8578
8602
  const ProtectedAreas = object({
8579
8603
  globs: array(string()),
@@ -11822,7 +11846,7 @@ object({
11822
11846
  * rest of the bundle, so the package version is the single source of truth at runtime;
11823
11847
  * everywhere else (workspace, tests) it is `SOURCE_VERSION`.
11824
11848
  */
11825
- const CODEDEN_VERSION = packageVersion() ?? "0.4.1";
11849
+ const CODEDEN_VERSION = packageVersion() ?? "0.4.3";
11826
11850
  function packageVersion() {
11827
11851
  const value = globalThis.__CODEDEN_PACKAGE_VERSION__;
11828
11852
  return typeof value === "string" && value.length > 0 ? value : void 0;
@@ -29558,6 +29582,6 @@ async function startRunner(opts) {
29558
29582
  close
29559
29583
  };
29560
29584
  }
29561
- export { BrowserNavigateRequest as $, AgentConfigLocator as $n, NOTICE_BATCH_CODE as $t, SessionFileQuery as A, GitCommitRequest as An, RespondRequest as At, NetworkStatus as B, ConflictDecision as Bn, HealthResponse as Bt, isElectronRuntime as C, AutomationRun as Cn, string as Cr, CreateProjectRequest as Ct, CODEDEN_VERSION as D, SessionStatus as Dn, toJSONSchema as Dr, ListSessionsQuery as Dt, wrapper_default as E, Session as En, ZodError as Er, ListInboxQuery as Et, ListConflictsQuery as F, TerminalClientMessage as Fn, StartSessionRequest as Ft, SetNetworkPasswordResponse as G, DEFAULT_VISION_PATH as Gn, SttQuery as Gt, RemoteAccessFile as H, WorkKey as Hn, Settings as Ht, ListNoticesQuery as I, TerminalQuery as In, SteerRequest as It, ImageTestRequest as J, InboxItemKind as Jn, UpdateInstallRequest as Jt, SignInRequest as K, FactoryLimits as Kn, TtsRequest as Kt, ResolveConflictRequest as L, RunnerCommandResults as Ln, ThreadItemsQuery as Lt, RunnerToServerMessage as M, RestoreFilesRequest as Mn, SendMessageRequest as Mt, ServerLock as N, SessionResult as Nn, SessionStartMeta as Nt, UsageQuery as O, DiffScope as On, safeParse$1 as Or, ReorderProjectsRequest as Ot, ArchiveSessionRequest as P, SpeechSummaryRequest as Pn, SetSecretRequest as Pt, BrowserHistoryRequest as Q, AgentConfigListQuery as Qn, ConflictRecord as Qt, RoleMessageRequest as R, SessionOptions as Rn, UiClientMessage as Rt, acquireInstallLock as S, AutomationGuards as Sn, record as Sr, UpdateAutomationRequest as St, import_websocket_server as T, TriagePolicy as Tn, unknown as Tr, FileWriteRequest as Tt, SetNetworkAccessRequest as U, Project as Un, LOCAL_STT_SAMPLE_RATE as Ut, PASSWORD_RULE_TEXT as V, StartedBy as Vn, agentEventToNewEvent as Vt, SetNetworkPasswordRequest as W, sortProjects as Wn, LocalSttModelParams as Wt, BrowserClientMessage as X, AgentConfigDeleteQuery as Xn, compareVersions$1 as Xt, summarizeActivity as Y, messageFrom as Yn, UpdateStatus as Yt, BrowserDevServerRequest as Z, AgentConfigDiffRequest as Zn, isNewerVersion as Zt, importClaudeSdkFrom as _, SetAutonomyModeRequest as _n, looseObject as _r, StarterSetRequest as _t, Hono as a, GithubPr as an, ProviderId as ar, AutomationImportSource as at, runNpm as b, Automation as bn, optional as br, UpcomingRunsQuery as bt, createAdaptorServer as c, githubPrId as cn, _enum as cr, ImportAutomationsRequest as ct, createImageEngineRegistry as d, FactoryCandidate as dn, boolean as dr, AutomationProjectRequest as dt, CreateGithubIssueRequest as en, AgentConfigWriteRequest as er, BrowserNewTabRequest as et, IMAGE_ASPECT_RATIOS as f, FactoryTriageRequest as fn, custom as fr, CreateAutomationRequest as ft, CLAUDE_SDK_VERSION as g, ReviewVerdict as gn, literal as gr, SetAutomationEnabledRequest as gt, claudeSdkSource as h, PutVisionRequest as hn, intersection as hr, RunAutomationRequest as ht, killTree as i, GithubListQuery as in, AutonomyLevel as ir, AUTOMATION_IMPORT_LIMITS as it, RunnerLock as j, GitPushRequest as jn, SecretKey as jt, UsageSettings as k, EditQueuedMessageRequest as kn, prettifyError as kr, ResolveInboxRequest as kt, upgradeWebSocket as l, parseGithubPrId as ln, _null as lr, AutomationFileFrontmatter as lt, ImageGenerationError as m, KillSwitchRequest as mn, int as mr, ListAutomationsQuery as mt, readLock as n, GithubIssue as nn, McpServerTarget as nr, BrowserViewportRequest as nt, tryDecodeURIComponent as o, MergePrRequest as on, ReasoningEffort as or, DuplicateAutomationRequest as ot, resolveImageOutput as p, FactoryTuning as pn, discriminatedUnion as pr, ListAutomationRunsQuery as pt, passwordProblem as q, InboxItem as qn, AppPointer as qt, isAlive as r, GithubLabelRequest as rn, McpServerUpsertRequest as rr, BrowserWsQuery as rt, bufferToFormData as s, TriageIssueRequest as sn, datetime as sr, ExportAutomationsQuery as st, startRunner as t, GithubCommentRequest as tn, McpServerDiffRequest as tr, BrowserOpenRequest as tt, ImageEngineRegistry as u, DiscoveryArea as un, array as ur, AutomationGuardsPatch as ut, installClaudeSdk as v, isFactoryMode as vn, number$1 as vr, TriageDecisionRequest as vt, ownNodeEnv as w, AutomationTrigger as wn, union as wr, FileReadQuery as wt, resolveNpm as x, AutomationAction as xn, preprocess as xr, UpdateAutomationProjectSettingsRequest as xt, isClaudeSdkInstalled as y, Artifact as yn, object as yr, TriageReport as yt, UpdateSessionRequest as z, ProjectConfigFile as zn, UpdateProjectRequest as zt };
29585
+ export { BrowserNavigateRequest as $, AgentConfigListQuery as $n, NOTICE_BATCH_CODE as $t, SessionFileQuery as A, EditQueuedMessageRequest as An, prettifyError as Ar, RespondRequest as At, NetworkStatus as B, ProjectConfigFile as Bn, HealthResponse as Bt, isElectronRuntime as C, AutomationGuards as Cn, record as Cr, CreateProjectRequest as Ct, CODEDEN_VERSION as D, Session as Dn, ZodError as Dr, ListSessionsQuery as Dt, wrapper_default as E, TriagePolicy as En, unknown as Er, ListInboxQuery as Et, ListConflictsQuery as F, SpeechSummaryRequest as Fn, StartSessionRequest as Ft, SetNetworkPasswordResponse as G, sortProjects as Gn, SttQuery as Gt, RemoteAccessFile as H, StartedBy as Hn, Settings as Ht, ListNoticesQuery as I, TerminalClientMessage as In, SteerRequest as It, ImageTestRequest as J, InboxItem as Jn, UpdateInstallRequest as Jt, SignInRequest as K, DEFAULT_VISION_PATH as Kn, TtsRequest as Kt, ResolveConflictRequest as L, TerminalQuery as Ln, ThreadItemsQuery as Lt, RunnerToServerMessage as M, GitPushRequest as Mn, SendMessageRequest as Mt, ServerLock as N, RestoreFilesRequest as Nn, SessionStartMeta as Nt, UsageQuery as O, SessionStatus as On, toJSONSchema as Or, ReorderProjectsRequest as Ot, ArchiveSessionRequest as P, SessionResult as Pn, SetSecretRequest as Pt, BrowserHistoryRequest as Q, AgentConfigDiffRequest as Qn, ConflictRecord as Qt, RoleMessageRequest as R, RunnerCommandResults as Rn, UiClientMessage as Rt, acquireInstallLock as S, AutomationAction as Sn, preprocess as Sr, UpdateAutomationRequest as St, import_websocket_server as T, AutomationTrigger as Tn, union as Tr, FileWriteRequest as Tt, SetNetworkAccessRequest as U, WorkKey as Un, LOCAL_STT_SAMPLE_RATE as Ut, PASSWORD_RULE_TEXT as V, ConflictDecision as Vn, agentEventToNewEvent as Vt, SetNetworkPasswordRequest as W, Project as Wn, LocalSttModelParams as Wt, BrowserClientMessage as X, messageFrom as Xn, compareVersions$1 as Xt, summarizeActivity as Y, InboxItemKind as Yn, UpdateStatus as Yt, BrowserDevServerRequest as Z, AgentConfigDeleteQuery as Zn, isNewerVersion as Zt, importClaudeSdkFrom as _, ReviewVerdict as _n, literal as _r, StarterSetRequest as _t, Hono as a, GithubPr as an, AutonomyLevel as ar, AutomationImportSource as at, runNpm as b, Artifact as bn, object as br, UpcomingRunsQuery as bt, createAdaptorServer as c, githubPrId as cn, datetime as cr, ImportAutomationsRequest as ct, createImageEngineRegistry as d, FactoryCandidate as dn, array as dr, AutomationProjectRequest as dt, CreateGithubIssueRequest as en, AgentConfigLocator as er, BrowserNewTabRequest as et, IMAGE_ASPECT_RATIOS as f, FactoryDecisionRequest as fn, boolean as fr, CreateAutomationRequest as ft, CLAUDE_SDK_VERSION as g, PutVisionRequest as gn, intersection as gr, SetAutomationEnabledRequest as gt, claudeSdkSource as h, KillSwitchRequest as hn, int as hr, RunAutomationRequest as ht, killTree as i, GithubListQuery as in, McpServerUpsertRequest as ir, AUTOMATION_IMPORT_LIMITS as it, RunnerLock as j, GitCommitRequest as jn, SecretKey as jt, UsageSettings as k, DiffScope as kn, safeParse$1 as kr, ResolveInboxRequest as kt, upgradeWebSocket as l, parseGithubPrId as ln, _enum as lr, AutomationFileFrontmatter as lt, ImageGenerationError as m, FactoryTuning as mn, discriminatedUnion as mr, ListAutomationsQuery as mt, readLock as n, GithubIssue as nn, McpServerDiffRequest as nr, BrowserViewportRequest as nt, tryDecodeURIComponent as o, MergePrRequest as on, ProviderId as or, DuplicateAutomationRequest as ot, resolveImageOutput as p, FactoryTriageRequest as pn, custom as pr, ListAutomationRunsQuery as pt, passwordProblem as q, FactoryLimits as qn, AppPointer as qt, isAlive as r, GithubLabelRequest as rn, McpServerTarget as rr, BrowserWsQuery as rt, bufferToFormData as s, TriageIssueRequest as sn, ReasoningEffort as sr, ExportAutomationsQuery as st, startRunner as t, GithubCommentRequest as tn, AgentConfigWriteRequest as tr, BrowserOpenRequest as tt, ImageEngineRegistry as u, DiscoveryArea as un, _null as ur, AutomationGuardsPatch as ut, installClaudeSdk as v, SetAutonomyModeRequest as vn, looseObject as vr, TriageDecisionRequest as vt, ownNodeEnv as w, AutomationRun as wn, string as wr, FileReadQuery as wt, resolveNpm as x, Automation as xn, optional as xr, UpdateAutomationProjectSettingsRequest as xt, isClaudeSdkInstalled as y, isFactoryMode as yn, number$1 as yr, TriageReport as yt, UpdateSessionRequest as z, SessionOptions as zn, UpdateProjectRequest as zt };
29562
29586
 
29563
- //# sourceMappingURL=runner-Doy0yaNT.js.map
29587
+ //# sourceMappingURL=runner-BPkTmgxq.js.map