@sentry/junior 0.179.0 → 0.180.0

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 (126) hide show
  1. package/dist/{agent-hooks-32IDCLMW.js → agent-hooks-DKDDRKZA.js} +16 -18
  2. package/dist/api/schema.js +0 -1
  3. package/dist/api.js +199 -197
  4. package/dist/app.d.ts +4 -0
  5. package/dist/app.js +300 -1259
  6. package/dist/catalog-runtime-WXKGUF3W.js +14 -0
  7. package/dist/chat/agent/sandbox.d.ts +0 -2
  8. package/dist/chat/api-turns/routing.d.ts +4 -0
  9. package/dist/chat/api-turns/work.d.ts +5 -0
  10. package/dist/chat/config.d.ts +5 -2
  11. package/dist/chat/configuration/defaults.d.ts +1 -1
  12. package/dist/chat/conversations/projection.d.ts +6 -4
  13. package/dist/chat/ingress/message-router.d.ts +3 -0
  14. package/dist/chat/model-profile.d.ts +8 -10
  15. package/dist/chat/pi/conversation-events.d.ts +3 -2
  16. package/dist/chat/plugins/task-queue.d.ts +40 -3
  17. package/dist/chat/plugins/task-runner.d.ts +1 -1
  18. package/dist/chat/queue/callback.d.ts +26 -0
  19. package/dist/chat/queue/sign.d.ts +30 -0
  20. package/dist/chat/sandbox/sandbox.d.ts +0 -2
  21. package/dist/chat/sandbox/session.d.ts +0 -2
  22. package/dist/chat/sandbox/skill-sync.d.ts +1 -1
  23. package/dist/chat/sandbox/snapshot/events.d.ts +23 -0
  24. package/dist/chat/sandbox/snapshot/job-callback.d.ts +5 -0
  25. package/dist/chat/sandbox/snapshot/job-queue.d.ts +26 -0
  26. package/dist/chat/sandbox/snapshot/job-runner.d.ts +11 -0
  27. package/dist/chat/sandbox/snapshot/not-ready-error.d.ts +6 -0
  28. package/dist/chat/sandbox/snapshot/workspace.d.ts +9 -3
  29. package/dist/chat/services/turn-router.d.ts +4 -3
  30. package/dist/chat/task-execution/queue-signing.d.ts +10 -21
  31. package/dist/chat/task-execution/state.d.ts +48 -0
  32. package/dist/chat/task-execution/store.d.ts +28 -2
  33. package/dist/chat/task-execution/worker.d.ts +4 -1
  34. package/dist/chat/tools/handoff/tool.d.ts +1 -1
  35. package/dist/{chunk-B6ECUSVX.js → chunk-2AYEVN7K.js} +8 -8
  36. package/dist/{chunk-SLGGOASN.js → chunk-2YIRH4E3.js} +46 -46
  37. package/dist/{chunk-KJLHIHFF.js → chunk-3ILJBWP7.js} +35 -227
  38. package/dist/{chunk-RZRYOLCE.js → chunk-5PUMIMNQ.js} +2292 -1147
  39. package/dist/{chunk-CJLBLELR.js → chunk-5TUR4M3M.js} +8 -61
  40. package/dist/{chunk-6ZWRNC4D.js → chunk-6Y5B5PEX.js} +1 -1
  41. package/dist/{chunk-XSPSCWLH.js → chunk-6YCEWOLO.js} +4 -4
  42. package/dist/chunk-7H2VZTWN.js +103 -0
  43. package/dist/{chunk-FAS6AIMF.js → chunk-CCDXTDSY.js} +8 -8
  44. package/dist/{chunk-CGA4ERJ5.js → chunk-CEMMLV5L.js} +1 -1
  45. package/dist/{chunk-XZY6G5YZ.js → chunk-CK6EINVZ.js} +180 -87
  46. package/dist/{chunk-FIANEE7Z.js → chunk-CM5HNV2W.js} +6 -6
  47. package/dist/{chunk-JT4WMD3C.js → chunk-CP73FKME.js} +144 -218
  48. package/dist/{chunk-3I7XE3PA.js → chunk-DHLOGWYH.js} +36 -36
  49. package/dist/chunk-DKIJ2RP5.js +68 -0
  50. package/dist/{chunk-YFNAMRGE.js → chunk-DRHEGXTZ.js} +1 -1
  51. package/dist/{chunk-OOUNJNMR.js → chunk-DWPN6SCH.js} +1 -1
  52. package/dist/chunk-EWHP2IRG.js +209 -0
  53. package/dist/{chunk-R6U7N4FS.js → chunk-FGC3PHNH.js} +3 -3
  54. package/dist/{chunk-3TM3FYLQ.js → chunk-GA5NS74S.js} +1 -1
  55. package/dist/{chunk-FIDMHAO6.js → chunk-GPXAHUQH.js} +84 -274
  56. package/dist/chunk-GUKXEPMX.js +218 -0
  57. package/dist/{chunk-GENV6KF2.js → chunk-I6IFTAPF.js} +108 -76
  58. package/dist/{chunk-R5NWWYIS.js → chunk-IANUX7HX.js} +5 -5
  59. package/dist/{chunk-G2CAC4CV.js → chunk-KCL6AWYW.js} +74 -68
  60. package/dist/{chunk-5IRROPA5.js → chunk-L7LTGN4Z.js} +129 -31
  61. package/dist/{chunk-Q5B3WTGG.js → chunk-LGVQLNLS.js} +42 -41
  62. package/dist/chunk-M3QYTBQ6.js +55 -0
  63. package/dist/{chunk-FTGD2FBP.js → chunk-MXEUIGHO.js} +2 -2
  64. package/dist/{chunk-M63DETLL.js → chunk-N7TMSOZH.js} +6 -6
  65. package/dist/{chunk-2HIPYNQI.js → chunk-O4QYZTDK.js} +33 -32
  66. package/dist/chunk-PEQXYSSE.js +45 -0
  67. package/dist/{chunk-RTRBYSF3.js → chunk-QSO7B5JO.js} +1 -1
  68. package/dist/{chunk-HQNE5APD.js → chunk-RAZG3YHC.js} +100 -79
  69. package/dist/{chunk-VP4OVRDD.js → chunk-S7YRTOSQ.js} +69 -73
  70. package/dist/{chunk-U4TKB6F6.js → chunk-SDBKZ5LV.js} +108 -5
  71. package/dist/{chunk-GPLAT6H7.js → chunk-TC5DE5KJ.js} +22 -18
  72. package/dist/{chunk-H4HBKISO.js → chunk-TXKUKMVO.js} +1 -1
  73. package/dist/chunk-U5EUCUBH.js +164 -0
  74. package/dist/{chunk-3AFVR5UC.js → chunk-VG722ONZ.js} +18 -16
  75. package/dist/{chunk-ZQMG3CL5.js → chunk-VGPPWWHF.js} +16 -16
  76. package/dist/{chunk-JMJNFEDC.js → chunk-WVAMRKYG.js} +9 -54
  77. package/dist/chunk-X6GDDWQH.js +60 -0
  78. package/dist/{chunk-4GWXAILB.js → chunk-ZE2KOV3G.js} +1 -1
  79. package/dist/{chunk-TIEKUH4Q.js → chunk-ZM7ZURJS.js} +4 -3
  80. package/dist/cli/chat.js +47 -43
  81. package/dist/cli/check.js +13 -15
  82. package/dist/cli/env.js +0 -1
  83. package/dist/cli/init.js +0 -1
  84. package/dist/cli/main.js +2 -3
  85. package/dist/cli/plugins.js +18 -20
  86. package/dist/cli/run.js +0 -1
  87. package/dist/cli/snapshot-create.js +14 -16
  88. package/dist/cli/upgrade.js +16 -18
  89. package/dist/{conversation-work-KATFHLG3.js → conversation-work-VIOQ5ZF3.js} +0 -2
  90. package/dist/{db-EJAV7JL6.js → db-6SBHIAJK.js} +8 -10
  91. package/dist/deployment.d.ts +1 -0
  92. package/dist/{discovery-GUFTFBTL.js → discovery-DWVDM7UK.js} +1 -2
  93. package/dist/{experimental-XVDOSRBS.js → experimental-SIJSRDJD.js} +0 -1
  94. package/dist/instrumentation.js +7 -9
  95. package/dist/nitro.js +39 -13
  96. package/dist/{oauth-callback-server-GAVSUBTQ.js → oauth-callback-server-WSDQPZZS.js} +34 -32
  97. package/dist/{oauth-relay-3ZU72UGL.js → oauth-relay-5XPVRPYB.js} +0 -1
  98. package/dist/{plugins-HW4VWW6G.js → plugins-YTYJMMJF.js} +1 -2
  99. package/dist/{runner-34JL64JF.js → runner-GWTSWESR.js} +39 -33
  100. package/dist/{sandbox-egress-signals-DXOOBSBI.js → sandbox-egress-signals-FIL7EGPR.js} +5 -6
  101. package/dist/{sentry-JMWTS32N.js → sentry-MB3NL3IR.js} +1 -2
  102. package/dist/skills-F32BPFYW.js +27 -0
  103. package/dist/spawn-X5BPP5OE.js +37 -0
  104. package/dist/task-runner-2FPBV5PP.js +32 -0
  105. package/dist/validation-62WO524A.js +17 -0
  106. package/dist/vercel.js +0 -1
  107. package/dist/version.js +1 -2
  108. package/dist/work-3C3CMZ24.js +45 -0
  109. package/dist/worker-MFAI6ZEK.js +22 -0
  110. package/package.json +8 -7
  111. package/dist/catalog-runtime-FBVA6WAQ.js +0 -16
  112. package/dist/chat/plugins/task-callback.d.ts +0 -5
  113. package/dist/chat/plugins/task-message.d.ts +0 -23
  114. package/dist/chat/plugins/task-signing.d.ts +0 -31
  115. package/dist/chat/sandbox/snapshot/waiting-error.d.ts +0 -15
  116. package/dist/chat/services/workspace-snapshot-wait.d.ts +0 -27
  117. package/dist/chunk-5I6ORJUY.js +0 -127
  118. package/dist/chunk-6GWA276C.js +0 -72
  119. package/dist/chunk-MLKGABMK.js +0 -9
  120. package/dist/chunk-UT6X7XN7.js +0 -51
  121. package/dist/chunk-WR76IVA5.js +0 -130
  122. package/dist/skills-U545HALM.js +0 -29
  123. package/dist/spawn-I2S4IDUQ.js +0 -37
  124. package/dist/validation-EVXVGA44.js +0 -19
  125. package/dist/work-QOAUPDBU.js +0 -45
  126. package/dist/worker-5GX2IKLZ.js +0 -24
@@ -12,6 +12,8 @@ export interface ConversationWorkerContext {
12
12
  publishExternally: boolean;
13
13
  /** True when the current execution slice must stop at its next safe boundary. */
14
14
  shouldYield(): boolean;
15
+ /** Return an AbortSignal backed by the durable Conversation stop request. */
16
+ stopSignal?(): AbortSignal;
15
17
  }
16
18
  export interface InboxAttempt {
17
19
  ack(): Promise<void>;
@@ -22,7 +24,8 @@ export interface InboxAttempt {
22
24
  messages: InboundMessage[];
23
25
  }
24
26
  export interface ConversationWorkerResult {
25
- status: "completed" | "deferred" | "lost_lease" | "yielded";
27
+ /** `paused` waits for an external wake but must resume if a stop raced it. */
28
+ status: "completed" | "deferred" | "lost_lease" | "paused" | "yielded";
26
29
  }
27
30
  export interface ConversationWorkProcessResult {
28
31
  status: "active" | "completed" | "failed" | "lost_lease" | "no_work" | "pending_requeued" | "yielded";
@@ -1,6 +1,6 @@
1
1
  import type { ToolRuntimeContext } from "@/chat/tools/types";
2
2
  export declare const HANDOFF_TOOL_NAME = "handoff";
3
- /** Create the runtime control for an in-place execution-profile switch. */
3
+ /** Create the tool that switches the active model profile. */
4
4
  export declare function createHandoffTool(handoff: NonNullable<ToolRuntimeContext["handoff"]>): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
5
5
  inputSchema: import("../definition").JsonSchemaObject;
6
6
  outputSchema: import("../definition").JsonSchemaObject;
@@ -6,14 +6,14 @@ import {
6
6
  isStale,
7
7
  runNonInteractiveCommand,
8
8
  sleep
9
- } from "./chunk-JMJNFEDC.js";
9
+ } from "./chunk-WVAMRKYG.js";
10
10
  import {
11
11
  getStateAdapter
12
- } from "./chunk-3TM3FYLQ.js";
12
+ } from "./chunk-GA5NS74S.js";
13
13
  import {
14
14
  setSpanAttributes,
15
15
  withSpan
16
- } from "./chunk-HQNE5APD.js";
16
+ } from "./chunk-RAZG3YHC.js";
17
17
 
18
18
  // src/chat/sandbox/resources.ts
19
19
  var configuredResources;
@@ -57,9 +57,9 @@ function setSnapshotSpanAttributes(snapshot) {
57
57
  "app.sandbox.source": snapshot.snapshotId ? "snapshot" : "created",
58
58
  "app.sandbox.snapshot.cache_hit": snapshot.cacheHit,
59
59
  "app.sandbox.snapshot.resolve_outcome": snapshot.resolveOutcome,
60
- ...snapshot.profileHash ? { "app.sandbox.snapshot.profile_hash": snapshot.profileHash } : {},
60
+ ...snapshot.profileHash ? { "app.sandbox.snapshot.profile_hash": snapshot.profileHash } : void 0,
61
61
  "app.sandbox.snapshot.dependency_count": snapshot.dependencyCount,
62
- ...snapshot.rebuildReason ? { "app.sandbox.snapshot.rebuild_reason": snapshot.rebuildReason } : {}
62
+ ...snapshot.rebuildReason ? { "app.sandbox.snapshot.rebuild_reason": snapshot.rebuildReason } : void 0
63
63
  });
64
64
  }
65
65
  async function trace(name, op, attributes, callback) {
@@ -283,7 +283,7 @@ async function postinstall(sandbox, commands, signal, timeoutMs) {
283
283
  pathPrefix: `${SANDBOX_WORKSPACE_ROOT}/.junior/bin:$PATH`,
284
284
  signal,
285
285
  timeoutMs,
286
- ...command.sudo !== void 0 ? { sudo: command.sudo } : {}
286
+ ...command.sudo !== void 0 ? { sudo: command.sudo } : void 0
287
287
  });
288
288
  if (result.exitCode !== 0) {
289
289
  const detail = result.stderr.trim() || result.stdout.trim() || "command failed";
@@ -460,7 +460,7 @@ async function build(value, runtime, timeoutMs, signal, prepare) {
460
460
  runtime,
461
461
  signal,
462
462
  ...sandboxCredentials ?? {},
463
- ...resources ? { resources } : {}
463
+ ...resources ? { resources } : void 0
464
464
  })
465
465
  );
466
466
  try {
@@ -680,7 +680,7 @@ async function resolve(params) {
680
680
  ),
681
681
  createdAtMs: lockResult.createdAtMs,
682
682
  buildDurationMs: lockResult.buildDurationMs,
683
- ...rebuildReason ? { rebuildReason } : {}
683
+ ...rebuildReason ? { rebuildReason } : void 0
684
684
  };
685
685
  }
686
686
  );
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  credentialUserSubjectId
3
- } from "./chunk-CGA4ERJ5.js";
4
- import {
5
- logInfo,
6
- logWarn,
7
- setSpanAttributes
8
- } from "./chunk-HQNE5APD.js";
3
+ } from "./chunk-CEMMLV5L.js";
9
4
  import {
10
5
  discoverInstalledPluginPackageContent,
11
6
  normalizePluginPackageNames
12
- } from "./chunk-OOUNJNMR.js";
7
+ } from "./chunk-DWPN6SCH.js";
13
8
  import {
14
9
  pluginRoots
15
- } from "./chunk-H4HBKISO.js";
10
+ } from "./chunk-TXKUKMVO.js";
11
+ import {
12
+ logInfo,
13
+ logWarn,
14
+ setSpanAttributes
15
+ } from "./chunk-RAZG3YHC.js";
16
16
 
17
17
  // src/chat/plugins/manifest.ts
18
18
  import { z } from "zod";
@@ -626,9 +626,9 @@ function normalizeCredentials(data, name) {
626
626
  return {
627
627
  type: "oauth-bearer",
628
628
  domains,
629
- ...apiHeaders ? { apiHeaders } : {},
629
+ ...apiHeaders ? { apiHeaders } : void 0,
630
630
  authTokenEnv: result.data["auth-token-env"],
631
- ...result.data["auth-token-placeholder"] ? { authTokenPlaceholder: result.data["auth-token-placeholder"] } : {}
631
+ ...result.data["auth-token-placeholder"] ? { authTokenPlaceholder: result.data["auth-token-placeholder"] } : void 0
632
632
  };
633
633
  }
634
634
  function normalizeRuntimeDependencies(entries, name) {
@@ -751,8 +751,8 @@ function normalizeRuntimePostinstall(commands, name) {
751
751
  const normalizedArgs = result.data.args?.map((arg) => arg.trim()).filter((arg) => arg.length > 0);
752
752
  parsed.push({
753
753
  cmd: result.data.cmd,
754
- ...normalizedArgs && normalizedArgs.length > 0 ? { args: normalizedArgs } : {},
755
- ...typeof result.data.sudo === "boolean" ? { sudo: result.data.sudo } : {}
754
+ ...normalizedArgs && normalizedArgs.length > 0 ? { args: normalizedArgs } : void 0,
755
+ ...typeof result.data.sudo === "boolean" ? { sudo: result.data.sudo } : void 0
756
756
  });
757
757
  }
758
758
  return parsed.length > 0 ? parsed : void 0;
@@ -831,9 +831,9 @@ function normalizeMcp(data, envVars, name) {
831
831
  return {
832
832
  transport: "http",
833
833
  url: result.data.url,
834
- ...headers ? { headers } : {},
835
- ...result.data["allowed-tools"] ? { allowedTools: result.data["allowed-tools"] } : {},
836
- ...result.data["wrapped-tools"] ? { wrappedTools: result.data["wrapped-tools"] } : {}
834
+ ...headers ? { headers } : void 0,
835
+ ...result.data["allowed-tools"] ? { allowedTools: result.data["allowed-tools"] } : void 0,
836
+ ...result.data["wrapped-tools"] ? { wrappedTools: result.data["wrapped-tools"] } : void 0
837
837
  };
838
838
  }
839
839
  function parseManifestSource(parsedSource, dir, config, options) {
@@ -941,14 +941,14 @@ function parseManifestSource(parsedSource, dir, config, options) {
941
941
  displayName: data["display-name"],
942
942
  description: data.description,
943
943
  configKeys,
944
- ...domains ? { domains } : {},
945
- ...apiHeaders ? { apiHeaders } : {},
946
- ...commandEnv ? { commandEnv } : {},
947
- ...Object.keys(envVars).length > 0 ? { envVars } : {},
948
- ...credentials ? { credentials } : {},
949
- ...runtimeDependencies ? { runtimeDependencies } : {},
950
- ...runtimePostinstall ? { runtimePostinstall } : {},
951
- ...mcp ? { mcp } : {}
944
+ ...domains ? { domains } : void 0,
945
+ ...apiHeaders ? { apiHeaders } : void 0,
946
+ ...commandEnv ? { commandEnv } : void 0,
947
+ ...Object.keys(envVars).length > 0 ? { envVars } : void 0,
948
+ ...credentials ? { credentials } : void 0,
949
+ ...runtimeDependencies ? { runtimeDependencies } : void 0,
950
+ ...runtimePostinstall ? { runtimePostinstall } : void 0,
951
+ ...mcp ? { mcp } : void 0
952
952
  };
953
953
  if (data.oauth) {
954
954
  if (!credentials && options?.allowHookManagedEgress !== true) {
@@ -977,11 +977,11 @@ function parseManifestSource(parsedSource, dir, config, options) {
977
977
  clientSecretEnv: result.data["client-secret-env"],
978
978
  authorizeEndpoint: result.data["authorize-endpoint"],
979
979
  tokenEndpoint: result.data["token-endpoint"],
980
- ...result.data.scope ? { scope: result.data.scope } : {},
981
- ...authorizeParams ? { authorizeParams } : {},
982
- ...result.data["token-auth-method"] ? { tokenAuthMethod: result.data["token-auth-method"] } : {},
983
- ...tokenExtraHeaders ? { tokenExtraHeaders } : {},
984
- ...result.data["treat-empty-scope-as-unreported"] ? { treatEmptyScopeAsUnreported: true } : {}
980
+ ...result.data.scope ? { scope: result.data.scope } : void 0,
981
+ ...authorizeParams ? { authorizeParams } : void 0,
982
+ ...result.data["token-auth-method"] ? { tokenAuthMethod: result.data["token-auth-method"] } : void 0,
983
+ ...tokenExtraHeaders ? { tokenExtraHeaders } : void 0,
984
+ ...result.data["treat-empty-scope-as-unreported"] ? { treatEmptyScopeAsUnreported: true } : void 0
985
985
  };
986
986
  }
987
987
  assertCommandEnvDoesNotExposeHostSecretRefs(
@@ -1021,7 +1021,7 @@ function parseManifestSource(parsedSource, dir, config, options) {
1021
1021
  manifest.target = {
1022
1022
  type: result.data.type,
1023
1023
  configKey: qualifiedKey,
1024
- ...commandFlags ? { commandFlags } : {}
1024
+ ...commandFlags ? { commandFlags } : void 0
1025
1025
  };
1026
1026
  }
1027
1027
  return manifest;
@@ -1152,7 +1152,7 @@ function getOAuthProviderErrorAttributes(error) {
1152
1152
  "app.credential.provider": error.provider,
1153
1153
  "app.oauth.error.phase": error.phase,
1154
1154
  "server.address": error.resourceHost,
1155
- ...error.status !== void 0 ? { "http.response.status_code": error.status } : {}
1155
+ ...error.status !== void 0 ? { "http.response.status_code": error.status } : void 0
1156
1156
  };
1157
1157
  }
1158
1158
  async function readBoundedOAuthErrorBody(response) {
@@ -1393,7 +1393,7 @@ function parseOAuthTokenResponse(data, requestedScope, options) {
1393
1393
  const result = {
1394
1394
  accessToken,
1395
1395
  refreshToken: resolvedRefreshToken,
1396
- ...scope ? { scope } : {}
1396
+ ...scope ? { scope } : void 0
1397
1397
  };
1398
1398
  if (expiresIn !== void 0) {
1399
1399
  if (typeof expiresIn !== "number" || !Number.isFinite(expiresIn) || expiresIn <= 0) {
@@ -1593,9 +1593,9 @@ function createOAuthBearerBroker(manifest, credentials, deps) {
1593
1593
  );
1594
1594
  }
1595
1595
  const refreshedTokens = {
1596
- ...latest.refreshTokenExpiresAt ? { refreshTokenExpiresAt: latest.refreshTokenExpiresAt } : {},
1596
+ ...latest.refreshTokenExpiresAt ? { refreshTokenExpiresAt: latest.refreshTokenExpiresAt } : void 0,
1597
1597
  ...refreshed,
1598
- ...latest.account ? { account: latest.account } : {}
1598
+ ...latest.account ? { account: latest.account } : void 0
1599
1599
  };
1600
1600
  await deps.userTokenStore.set(
1601
1601
  userSubjectId,
@@ -1690,8 +1690,8 @@ function registerPluginManifest(state, manifest, pluginDir, skillsDir, migration
1690
1690
  const definition = {
1691
1691
  manifest,
1692
1692
  dir: pluginDir,
1693
- ...migrationsDir ? { migrationsDir } : {},
1694
- ...skillsDir ? { skillsDir } : {}
1693
+ ...migrationsDir ? { migrationsDir } : void 0,
1694
+ ...skillsDir ? { skillsDir } : void 0
1695
1695
  };
1696
1696
  state.pluginDefinitions.push(definition);
1697
1697
  state.pluginsByName.set(manifest.name, definition);
@@ -1775,7 +1775,7 @@ function normalizePluginCatalogConfig(config) {
1775
1775
  return {
1776
1776
  inlineManifests: config.inlineManifests ? structuredClone(config.inlineManifests) : void 0,
1777
1777
  packages: normalizePluginPackageNames(config.packages),
1778
- ...config.manifests ? { manifests: structuredClone(config.manifests) } : {}
1778
+ ...config.manifests ? { manifests: structuredClone(config.manifests) } : void 0
1779
1779
  };
1780
1780
  }
1781
1781
  function clonePluginCatalogConfig(config) {
@@ -1783,9 +1783,9 @@ function clonePluginCatalogConfig(config) {
1783
1783
  return void 0;
1784
1784
  }
1785
1785
  return {
1786
- ...config.inlineManifests ? { inlineManifests: structuredClone(config.inlineManifests) } : {},
1786
+ ...config.inlineManifests ? { inlineManifests: structuredClone(config.inlineManifests) } : void 0,
1787
1787
  packages: [...config.packages ?? []],
1788
- ...config.manifests ? { manifests: structuredClone(config.manifests) } : {}
1788
+ ...config.manifests ? { manifests: structuredClone(config.manifests) } : void 0
1789
1789
  };
1790
1790
  }
1791
1791
  function packageContentByName(packagedContent, packageName) {
@@ -1907,7 +1907,7 @@ function logLoadedPlugins(state) {
1907
1907
  "app.plugin.config_key_count": plugin.manifest.configKeys.length,
1908
1908
  "app.plugin.has_mcp": Boolean(plugin.manifest.mcp),
1909
1909
  "file.directory": plugin.dir,
1910
- ...plugin.skillsDir ? { "app.file.skill_directory": plugin.skillsDir } : {}
1910
+ ...plugin.skillsDir ? { "app.file.skill_directory": plugin.skillsDir } : void 0
1911
1911
  });
1912
1912
  }
1913
1913
  }
@@ -1986,8 +1986,8 @@ function createPluginCatalogRuntime() {
1986
1986
  for (const command of plugin.manifest.runtimePostinstall ?? []) {
1987
1987
  commands.push({
1988
1988
  cmd: command.cmd,
1989
- ...command.args ? { args: [...command.args] } : {},
1990
- ...command.sudo !== void 0 ? { sudo: command.sudo } : {}
1989
+ ...command.args ? { args: [...command.args] } : void 0,
1990
+ ...command.sudo !== void 0 ? { sudo: command.sudo } : void 0
1991
1991
  });
1992
1992
  }
1993
1993
  }
@@ -2002,11 +2002,11 @@ function createPluginCatalogRuntime() {
2002
2002
  clientSecretEnv: oauth.clientSecretEnv,
2003
2003
  authorizeEndpoint: oauth.authorizeEndpoint,
2004
2004
  tokenEndpoint: oauth.tokenEndpoint,
2005
- ...oauth.scope ? { scope: oauth.scope } : {},
2006
- ...oauth.authorizeParams ? { authorizeParams: { ...oauth.authorizeParams } } : {},
2007
- ...oauth.tokenAuthMethod ? { tokenAuthMethod: oauth.tokenAuthMethod } : {},
2008
- ...oauth.tokenExtraHeaders ? { tokenExtraHeaders: { ...oauth.tokenExtraHeaders } } : {},
2009
- ...oauth.treatEmptyScopeAsUnreported ? { treatEmptyScopeAsUnreported: true } : {},
2005
+ ...oauth.scope ? { scope: oauth.scope } : void 0,
2006
+ ...oauth.authorizeParams ? { authorizeParams: { ...oauth.authorizeParams } } : void 0,
2007
+ ...oauth.tokenAuthMethod ? { tokenAuthMethod: oauth.tokenAuthMethod } : void 0,
2008
+ ...oauth.tokenExtraHeaders ? { tokenExtraHeaders: { ...oauth.tokenExtraHeaders } } : void 0,
2009
+ ...oauth.treatEmptyScopeAsUnreported ? { treatEmptyScopeAsUnreported: true } : void 0,
2010
2010
  callbackPath: `/api/oauth/callback/${plugin.manifest.name}`
2011
2011
  };
2012
2012
  },