openpond 0.2.35 → 0.2.37

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 (150) hide show
  1. package/dist/app-server.d.ts +197 -4
  2. package/dist/app-server.js +1 -1
  3. package/dist/chunks/actions-command-GNQREIDD.js +2 -0
  4. package/dist/chunks/{app-layer-HK2GTSRX.js → app-layer-BDAKS3DG.js} +1 -1
  5. package/dist/chunks/app-server-runtime-D74FFS27.js +2 -0
  6. package/dist/chunks/apps-2SUP5JZE.js +2 -0
  7. package/dist/chunks/chunk-2O5UZOYL.js +13 -0
  8. package/dist/chunks/{chunk-BRJKTOMI.js → chunk-3I5BMVJI.js} +1 -1
  9. package/dist/chunks/{chunk-E4U7LXSW.js → chunk-3LG4G5JR.js} +2 -2
  10. package/dist/chunks/{chunk-4QX2I2DX.js → chunk-3N4GQL6I.js} +1 -1
  11. package/dist/chunks/{chunk-DR3XPQRZ.js → chunk-3YA2CD22.js} +1 -1
  12. package/dist/chunks/{chunk-EFTLCT7C.js → chunk-4R4KM6LL.js} +1 -1
  13. package/dist/chunks/{chunk-MXLB6MEW.js → chunk-5YUITAUN.js} +1 -1
  14. package/dist/chunks/{chunk-QPZNN5Q3.js → chunk-6EAQL7YX.js} +1 -1
  15. package/dist/chunks/{chunk-77BXXOHW.js → chunk-BLXEK5F7.js} +1 -1
  16. package/dist/chunks/{chunk-QWENRTVW.js → chunk-DAOLQUAK.js} +1 -1
  17. package/dist/chunks/{chunk-JFSDNQHW.js → chunk-DG4DIFF4.js} +3 -3
  18. package/dist/chunks/{chunk-SRQVXHSM.js → chunk-DXOOJFFU.js} +1 -1
  19. package/dist/chunks/chunk-EIB7GHIQ.js +4 -0
  20. package/dist/chunks/{chunk-XCTFXXVY.js → chunk-FFEI7IRU.js} +1 -1
  21. package/dist/chunks/chunk-FOW3LI6G.js +2 -0
  22. package/dist/chunks/{chunk-JLWAK5PS.js → chunk-FQOVC2GR.js} +78 -78
  23. package/dist/chunks/chunk-HZP5U2AA.js +3 -0
  24. package/dist/chunks/chunk-I6DQSOSF.js +12 -0
  25. package/dist/chunks/chunk-IYROEHYB.js +2 -0
  26. package/dist/chunks/{chunk-BOQBDCVU.js → chunk-KCFVJDIV.js} +1 -1
  27. package/dist/chunks/chunk-L6NNQUAT.js +53 -0
  28. package/dist/chunks/chunk-OO7JG7KM.js +42 -0
  29. package/dist/chunks/chunk-PKBU37CH.js +5 -0
  30. package/dist/chunks/chunk-QUNRWDVO.js +155 -0
  31. package/dist/chunks/{chunk-34URWDE7.js → chunk-S4RSY6CR.js} +1 -1
  32. package/dist/chunks/{chunk-VL553I5E.js → chunk-SL7XLTIT.js} +199 -199
  33. package/dist/chunks/{chunk-BAKCGJ5D.js → chunk-TZ6N7WFI.js} +1 -1
  34. package/dist/chunks/{chunk-Z6F6PYF4.js → chunk-UJLZRM2M.js} +1 -1
  35. package/dist/chunks/chunk-XISNUB62.js +2 -0
  36. package/dist/chunks/{chunk-PZ2ZILPN.js → chunk-XLVFY2BA.js} +1 -1
  37. package/dist/chunks/{chunk-K6EGNB2A.js → chunk-YQPECTJ2.js} +1 -1
  38. package/dist/chunks/{chunk-PMXE4CAA.js → chunk-Z3RBK6LN.js} +1 -1
  39. package/dist/chunks/cli-A2P56J7R.js +2 -0
  40. package/dist/chunks/configuration-command-URDRLDNY.js +2 -0
  41. package/dist/chunks/core-commands-CMAAUKPQ.js +2 -0
  42. package/dist/chunks/desktop-test-5PKGG6H6.js +3 -0
  43. package/dist/chunks/dist-CEKBK32A.js +2 -0
  44. package/dist/chunks/dist-GKCGK44T.js +2 -0
  45. package/dist/chunks/{extension-RMJAXEKN.js → extension-DG2XISC6.js} +1 -1
  46. package/dist/chunks/{help-QDMTLEIL.js → help-ZLJV3ZVW.js} +1 -1
  47. package/dist/chunks/hosted-harness-runtime-ABEMAABI.js +2 -0
  48. package/dist/chunks/hosted-profile-compiler-CSLJT75T.js +3 -0
  49. package/dist/chunks/{opchat-MHH4C5YQ.js → opchat-IMGIFM4W.js} +1 -1
  50. package/dist/chunks/organizations-G3UOHURO.js +2 -0
  51. package/dist/chunks/{profile-KVDJTM4D.js → profile-LMRN5QMQ.js} +1 -1
  52. package/dist/chunks/project-agent-DTAVYEB6.js +2 -0
  53. package/dist/chunks/sandbox-command-YO6RR5SD.js +2 -0
  54. package/dist/chunks/{sandbox-template-Q6K5JXA3.js → sandbox-template-LN5OQ55F.js} +1 -1
  55. package/dist/chunks/{src-42VXY5DZ.js → src-A5KEQW52.js} +1 -1
  56. package/dist/chunks/{src-ZGGKHNNF.js → src-LRJO4THC.js} +3 -3
  57. package/dist/chunks/{teams-bot-7TPB34DR.js → teams-bot-RY5M6AOW.js} +1 -1
  58. package/dist/chunks/{workspaces-XFUQZH5T.js → workspaces-KZ6ZJXXY.js} +1 -1
  59. package/dist/cli.js +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/web/assets/{App-BKY1b22z.js → App-BRZg56AC.js} +32 -32
  62. package/dist/web/assets/{AppDialog-C64bP66E.js → AppDialog-BR9UjEFe.js} +1 -1
  63. package/dist/web/assets/{AppTerminalPanel-fVkWSvWK.js → AppTerminalPanel-DNXVV6S_.js} +2 -2
  64. package/dist/web/assets/{AppsView-DHnab11q.js → AppsView-DhaB7uT7.js} +1 -1
  65. package/dist/web/assets/{BrowserSidebar-C7YeQ9KS.js → BrowserSidebar-zecj1P2T.js} +1 -1
  66. package/dist/web/assets/{CartesianChart-CYX3IXBM.js → CartesianChart-DRhWC0XA.js} +1 -1
  67. package/dist/web/assets/{CollaborationTabs-j2oBkesr.js → CollaborationTabs-BzNNwOcD.js} +1 -1
  68. package/dist/web/assets/{CommandMenu-BN1a4dTn.js → CommandMenu-C7HuXmgN.js} +1 -1
  69. package/dist/web/assets/{CommunityView-CNoxP71Z.js → CommunityView-C4HfU5ky.js} +1 -1
  70. package/dist/web/assets/{ComposerCreateImproveStrip-IoK3lqK8.js → ComposerCreateImproveStrip-CG8YZxWB.js} +1 -1
  71. package/dist/web/assets/{GetStartedView-QPabIxZC.js → GetStartedView-ZxtcgU5X.js} +1 -1
  72. package/dist/web/assets/HostedModelLearningReview-BhGIhvoc.js +1 -0
  73. package/dist/web/assets/{HostedModelLearningSettings-TkSSxw8x.js → HostedModelLearningSettings-BKM_1-LZ.js} +1 -1
  74. package/dist/web/assets/{LabModelVersionDetailPage-CRFw6V7e.js → LabModelVersionDetailPage-CklKwV_e.js} +1 -1
  75. package/dist/web/assets/{LabSkillSidebar-Dl8KWUe0.js → LabSkillSidebar-Cq_axOXr.js} +1 -1
  76. package/dist/web/assets/{LabsRoute-BzdL7mUM.js → LabsRoute-BPGkQnKq.js} +6 -6
  77. package/dist/web/assets/{MainChatThread-C3IdxbN3.js → MainChatThread-DvllW6Ej.js} +2 -2
  78. package/dist/web/assets/{MainPane-BdR1K59_.js → MainPane-BaUIvio6.js} +4 -4
  79. package/dist/web/assets/{MarkdownText-CkLxqh2M.js → MarkdownText-DP7Hjp4L.js} +1 -1
  80. package/dist/web/assets/{NativeSkillSidebar-VkWpZX6S.js → NativeSkillSidebar-BSSKKH-y.js} +1 -1
  81. package/dist/web/assets/{NewExperienceSwitcher-D_K16Ho-.js → NewExperienceSwitcher-cWw4m_pU.js} +1 -1
  82. package/dist/web/assets/{NewProjectDialog-B6E1wWOM.js → NewProjectDialog-BMzXEHsC.js} +1 -1
  83. package/dist/web/assets/{OutputsPage-27MuutGA.js → OutputsPage-CGWtgJ_j.js} +1 -1
  84. package/dist/web/assets/{ProjectsPage-CokpZHgx.js → ProjectsPage-C00Wt3oR.js} +1 -1
  85. package/dist/web/assets/{RightChatPanelStack-B6JhJdlc.js → RightChatPanelStack-0D_jpeAm.js} +1 -1
  86. package/dist/web/assets/{RightSidebarHomePanel-nn0dqUF0.js → RightSidebarHomePanel-BgHpI97K.js} +1 -1
  87. package/dist/web/assets/{ScheduledWorkPage-idJ8AO15.js → ScheduledWorkPage-C-P_Jv04.js} +1 -1
  88. package/dist/web/assets/{SettingsView-ZH2gDC6E.js → SettingsView-BJDvzvtZ.js} +3 -3
  89. package/dist/web/assets/{TeamChatView-B5cG9M6w.js → TeamChatView-BdUQNXvx.js} +2 -2
  90. package/dist/web/assets/{TerminalOverlay-9SPRce9W.js → TerminalOverlay-85H1eqcg.js} +1 -1
  91. package/dist/web/assets/{TrainingCreationPanel-2dkxe7py.js → TrainingCreationPanel-Bdx2BJzb.js} +1 -1
  92. package/dist/web/assets/{TrainingDraftPanel-oYbOFapi.js → TrainingDraftPanel-TcvqZfYS.js} +1 -1
  93. package/dist/web/assets/{UsageSettingsSection-zWs4Z_9b.js → UsageSettingsSection-Dm8bsNIT.js} +1 -1
  94. package/dist/web/assets/{WorkSidebarPanel-CiBQztz6.js → WorkSidebarPanel-C9bKi4NH.js} +1 -1
  95. package/dist/web/assets/{WorkspaceDiffPanel-BPt29A2a.js → WorkspaceDiffPanel-CFzHklbv.js} +3 -3
  96. package/dist/web/assets/{WorkspaceEnvironmentMenu-pb6fs4-2.js → WorkspaceEnvironmentMenu-_e6IkhGw.js} +1 -1
  97. package/dist/web/assets/{WorkspaceGitDialogs-DHD-L4Vs.js → WorkspaceGitDialogs-BglcR8S9.js} +1 -1
  98. package/dist/web/assets/{WorkspaceMonacoEditor-BxtCNaRo.js → WorkspaceMonacoEditor-BuipCT-i.js} +3 -3
  99. package/dist/web/assets/{arrow-up-right-DcP3EZaY.js → arrow-up-right-jN0p0koy.js} +1 -1
  100. package/dist/web/assets/{clipboard-BXulVWTJ.js → clipboard-Bat4as9H.js} +1 -1
  101. package/dist/web/assets/{cloud-upload-B3hP6o0H.js → cloud-upload-CFs0F_2n.js} +1 -1
  102. package/dist/web/assets/{cssMode-c85YG3Pd.js → cssMode-Cg4Jey3B.js} +1 -1
  103. package/dist/web/assets/{folder-open-CtOXE4jL.js → folder-open-BqInWH_9.js} +1 -1
  104. package/dist/web/assets/{folder-plus-KO96VZiR.js → folder-plus-BSA6I7ld.js} +1 -1
  105. package/dist/web/assets/{git-commit-horizontal-Bhtev2bN.js → git-commit-horizontal-CLDqrpDQ.js} +1 -1
  106. package/dist/web/assets/{htmlMode-BbCawv2y.js → htmlMode-DHHN3vwk.js} +1 -1
  107. package/dist/web/assets/{index-Hynq87d2.js → index-VtbQYCWA.js} +2 -2
  108. package/dist/web/assets/{info-Dqf1UVHA.js → info-BSebzpyp.js} +1 -1
  109. package/dist/web/assets/{jsonMode-CFycP8DE.js → jsonMode-mvqMGlEK.js} +1 -1
  110. package/dist/web/assets/{lspLanguageFeatures-CYX4VXe2.js → lspLanguageFeatures-Bw_QMGcP.js} +1 -1
  111. package/dist/web/assets/{minimize-2-BCmNskf_.js → minimize-2-CaHjbHpF.js} +1 -1
  112. package/dist/web/assets/{monaco.contribution-CJYgsAyM.js → monaco.contribution-CBkwYqsg.js} +2 -2
  113. package/dist/web/assets/{monaco.contribution-CPkt_0fd.js → monaco.contribution-CiXEi4Ka.js} +2 -2
  114. package/dist/web/assets/{monaco.contribution-3ZJbmsu3.js → monaco.contribution-DubQum0F.js} +2 -2
  115. package/dist/web/assets/{monaco.contribution-DR_TcZx7.js → monaco.contribution-KrPDFXc4.js} +2 -2
  116. package/dist/web/assets/{monitor-DWlfguJj.js → monitor-DwOfVMY6.js} +1 -1
  117. package/dist/web/assets/{python-rAXzgbqp.js → python-BPnA89YS.js} +1 -1
  118. package/dist/web/assets/{refresh-cw-BUPgzu5R.js → refresh-cw-DO-hUyTn.js} +1 -1
  119. package/dist/web/assets/{save-Mb-ECgFZ.js → save-C7WFI7Mn.js} +1 -1
  120. package/dist/web/assets/{square-CxNbsHso.js → square-DiLQ59tw.js} +1 -1
  121. package/dist/web/assets/{toggleHighContrast-DUvtEJ40.js → toggleHighContrast-BWFPIQBM.js} +1 -1
  122. package/dist/web/assets/{tsMode-IPAavolh.js → tsMode-CWxqU0x6.js} +1 -1
  123. package/dist/web/assets/{upload-Bn6_UQEa.js → upload-vUnuWYGk.js} +1 -1
  124. package/dist/web/assets/{useLocalAgentSchedules-DAHspLJg.js → useLocalAgentSchedules-BFbGmflA.js} +1 -1
  125. package/dist/web/assets/{useSessionTurnCache-CUiJuUjd.js → useSessionTurnCache-C0zgYrCB.js} +1 -1
  126. package/dist/web/assets/{wifi-off-Bsy0Wjm8.js → wifi-off-DbNO6u3Z.js} +1 -1
  127. package/dist/web/assets/{workers-35o3qFXU.js → workers-4I09fePv.js} +1 -1
  128. package/dist/web/assets/{yaml-Ba5fmKgb.js → yaml-DpHYonDY.js} +1 -1
  129. package/dist/web/index.html +1 -1
  130. package/package.json +1 -1
  131. package/dist/chunks/actions-command-6LFZFTLA.js +0 -2
  132. package/dist/chunks/app-server-runtime-CAWXM33C.js +0 -2
  133. package/dist/chunks/apps-YJRRLX2N.js +0 -2
  134. package/dist/chunks/chunk-5BFWDFPX.js +0 -166
  135. package/dist/chunks/chunk-B5LKUQGM.js +0 -2
  136. package/dist/chunks/chunk-CWW2EK77.js +0 -4
  137. package/dist/chunks/chunk-IFP6W4OW.js +0 -54
  138. package/dist/chunks/chunk-OYJ73BSC.js +0 -42
  139. package/dist/chunks/chunk-TBX3Z7TX.js +0 -2
  140. package/dist/chunks/chunk-XR6ZLKVW.js +0 -15
  141. package/dist/chunks/cli-YI6G22CQ.js +0 -2
  142. package/dist/chunks/configuration-command-CYUWO6CD.js +0 -2
  143. package/dist/chunks/core-commands-Z5C7S6OH.js +0 -2
  144. package/dist/chunks/desktop-test-JBZCCTSN.js +0 -3
  145. package/dist/chunks/dist-XCT2G25K.js +0 -2
  146. package/dist/chunks/hosted-profile-compiler-7SGXUZB4.js +0 -3
  147. package/dist/chunks/organizations-5KM2JD32.js +0 -2
  148. package/dist/chunks/project-agent-SXUMNJLZ.js +0 -2
  149. package/dist/chunks/sandbox-command-FQGX5MSS.js +0 -2
  150. package/dist/web/assets/HostedModelLearningReview-CNd3-FrC.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{$b as pe,Aa as L,Bc as ue,Ca as de,Cc as he,Da as G,Dc as Re,Ea as f,Ec as Te,Fc as Ie,Gc as Pe,Hc as Ee,Ib as xe,Ic as _e,c as We,ca as tt,cb as nt,cc as me,da as at,ec as lt,fc as dt,g as Xe,gc as pt,hc as $,i as Ze,j as Ye,k as Qe,o as et,sb as rt,sc as mt,tb as st,ub as ot,vb as it,wb as ct,xa as H,ya as j,za as le}from"./chunk-JFSDNQHW.js";import{Ja as re,Lb as oe,Sb as W,Va as Q,ac as Ve,b as $e,bc as Fe,hc as C,ic as Ge,jc as Ue,kc as ie,lb as ze,lc as Ke,mc as X,nc as ce,sb as D,tb as se}from"./chunk-5BFWDFPX.js";import{a as Je}from"./chunk-6FA3GG5B.js";import{k as V,l as N,m as F,n as Y,o as R,r as we,v as A,x as ne}from"./chunk-IFP6W4OW.js";import{b as t}from"./chunk-ES2ISFJC.js";import{a as l}from"./chunk-FTQLQJQV.js";var Vt=t.string().trim().min(1).max(1e5),Ft=t.enum(["no_training","sft","preference","rl"]),Gt=t.object({kind:t.enum(["none","demonstrations","chosen_rejected","scalar_reward"]),strength:t.enum(["absent","weak","usable"]),calibrated:t.boolean(),confounded:t.boolean(),variance:t.number().finite().nonnegative().nullable(),evidenceRefs:t.array(R).max(1e5)}).strict(),ht=t.object({schemaVersion:t.literal("openpond.modelImprovementQualificationReceipt.v1"),id:V,review:R,harnessRelease:R,tasksetRelease:R.nullable(),baselineEvaluation:R.nullable(),model:ne,environmentHash:N.nullable(),toolContractHash:N.nullable(),permissionContractHash:N.nullable(),policyHash:N.nullable(),verifierRef:R.nullable(),sourcePolicies:t.array($e).max(1e4),trainingEvidenceRefs:t.array(R).max(1e5),frozenEvaluationEvidenceRefs:t.array(R).max(1e5),privacyApproval:R.nullable(),budgetApproval:R.nullable(),maximumCostUsd:t.number().finite().nonnegative(),signal:Gt,decision:Ft,reasons:t.array(Vt).min(1).max(100),createdAt:F,metadata:Y}).strict().superRefine((e,a)=>{let n=new Set(e.trainingEvidenceRefs.map(ut));if(e.frozenEvaluationEvidenceRefs.some(o=>n.has(ut(o)))&&a.addIssue({code:"custom",message:"frozen Evaluation evidence cannot be used as training evidence",path:["frozenEvaluationEvidenceRefs"]}),e.decision==="no_training")return;(!e.tasksetRelease||!e.baselineEvaluation||!e.environmentHash||!e.toolContractHash||!e.permissionContractHash||!e.policyHash||!e.verifierRef||!e.privacyApproval||!e.budgetApproval||e.sourcePolicies.length===0||e.sourcePolicies.some(o=>o.state!=="authorized")||e.trainingEvidenceRefs.length===0||e.signal.strength!=="usable"||!e.signal.calibrated||e.signal.confounded)&&a.addIssue({code:"custom",message:"qualified model improvement requires frozen lineage, authorized signal, privacy, and budget gates"}),e.decision==="sft"&&e.signal.kind!=="demonstrations"&&a.addIssue({code:"custom",message:"SFT qualification requires demonstration signal",path:["signal","kind"]}),e.decision==="preference"&&e.signal.kind!=="chosen_rejected"&&a.addIssue({code:"custom",message:"preference qualification requires chosen/rejected signal",path:["signal","kind"]}),e.decision==="rl"&&(e.signal.kind!=="scalar_reward"||e.signal.variance===null||e.signal.variance<=0)&&a.addIssue({code:"custom",message:"RL qualification requires a usable scalar reward with variance",path:["signal"]})}),Ut=ht.extend({contentHash:N}).strict();function gn(e){let a=ht.parse(e);return Ut.parse({...a,contentHash:A(a)})}l(gn,"createModelImprovementQualificationReceipt");function ut(e){return`${e.id}:${e.contentHash}`}l(ut,"refKey");var Kt=t.object({schemaVersion:t.literal("openpond.optimizerTrainingSample.v1"),tokenIds:t.array(t.number().int().nonnegative()).min(2).max(32768),mask:t.array(t.boolean()).min(2).max(32768),logprobs:t.array(t.number().finite()).min(2).max(32768),temperatures:t.array(t.number().positive().finite()).min(2).max(32768),envName:t.string().trim().min(1).max(200),modelRequestId:t.string().trim().min(1).max(1e3),promptTokenCount:t.number().int().positive(),completionTokenCount:t.number().int().positive(),servedPolicyVersion:t.number().int().nonnegative()}).strict().superRefine((e,a)=>{let n=e.tokenIds.length;for(let[r,o]of[["mask",e.mask],["logprobs",e.logprobs],["temperatures",e.temperatures]])o.length!==n&&a.addIssue({code:"custom",path:[r],message:`${r} must align with tokenIds`});e.promptTokenCount+e.completionTokenCount!==n&&a.addIssue({code:"custom",path:["completionTokenCount"],message:"prompt and completion token counts must span tokenIds"}),e.mask.filter(r=>!r).length!==e.promptTokenCount&&a.addIssue({code:"custom",path:["mask"],message:"promptTokenCount must equal the non-trainable mask count"}),e.mask.filter(Boolean).length!==e.completionTokenCount&&a.addIssue({code:"custom",path:["mask"],message:"completionTokenCount must equal the trainable mask count"})}),Jt=t.object({id:V,environmentRelease:R,status:t.enum(["completed","failed","timed_out","cancelled"]),startedAt:F,completedAt:F,traceRefs:t.array(we).max(1e4),metadata:Y}).strict(),Wt=t.object({receiptRef:R,status:Ze,value:t.number().min(0).max(1).nullable(),learningEligible:t.boolean(),passed:t.boolean(),outcomeClass:Qe,failureOwner:Ye.nullable(),components:t.record(V,t.number().min(0).max(1).nullable())}).strict(),ft=t.object({schemaVersion:t.literal("openpond.canonicalRolloutRecord.v1"),id:V,attemptRef:R,artifactManifestRef:R,tasksetRelease:R,environmentRelease:R,verifierSetRelease:R,harnessRelease:R,taskId:V,split:Q,model:ne,seed:t.string().trim().min(1).max(500),reward:Wt,traceRef:we,optimizerSample:Kt.nullable(),environmentExecutions:t.array(Jt).min(1).max(1e5),startedAt:F,completedAt:F,metadata:Y}).strict();function gt(e,a){e.reward.status==="scored"&&(e.reward.value===null||!e.reward.learningEligible)&&a.addIssue({code:"custom",path:["reward","status"],message:"A scored rollout requires a numeric, learning-eligible reward."}),e.reward.status==="unscorable"&&(e.reward.value!==null||e.reward.learningEligible)&&a.addIssue({code:"custom",path:["reward","status"],message:"An unscorable rollout has no reward and cannot be learning-eligible."})}l(gt,"validateCanonicalRolloutRecord");var Xt=ft.superRefine(gt),Zt=t.object({...ft.shape,contentHash:N}).strict().superRefine(gt);function Rn(e){let a=We.parse(e.attemptReceipt);if(!Xe(a))throw new Error("Rollout Attempt Receipt failed content-hash verification.");let n=et.parse(e.rewardReceipt);if(n.attemptRef.id!==a.id||n.attemptRef.contentHash!==a.contentHash)throw new Error("Rollout Attempt Receipt does not match its Reward Receipt.");if(n.artifactManifestRef.id!==e.artifactManifestRef.id||n.artifactManifestRef.contentHash!==e.artifactManifestRef.contentHash)throw new Error("Rollout Artifact Manifest does not match its Reward Receipt.");if(e.environmentExecutions.some(o=>o.environmentRelease.id!==e.environmentRelease.id||o.environmentRelease.contentHash!==e.environmentRelease.contentHash))throw new Error("Rollout Environment execution does not match its admitted Environment Release.");let r=Xt.parse({schemaVersion:"openpond.canonicalRolloutRecord.v1",id:e.id,attemptRef:n.attemptRef,artifactManifestRef:e.artifactManifestRef,tasksetRelease:e.tasksetRelease,environmentRelease:e.environmentRelease,verifierSetRelease:n.verifierSetRef,harnessRelease:e.harnessRelease,taskId:e.taskId,split:e.split,model:e.model,seed:e.seed,reward:{receiptRef:{id:n.id,contentHash:n.contentHash},status:n.status,value:n.reward,learningEligible:n.learningEligible,passed:n.passed,outcomeClass:n.outcomeClass,failureOwner:n.failureOwner,components:Object.fromEntries(n.components.map(o=>[o.verifierId,o.rewardContribution]))},traceRef:e.traceRef,optimizerSample:e.optimizerSample,environmentExecutions:e.environmentExecutions,startedAt:e.startedAt,completedAt:e.completedAt,metadata:e.metadata??{}});return Zt.parse({...r,contentHash:A(r)})}l(Rn,"createCanonicalRolloutRecord");var Pn=["connected_app_search","connected_app_read","connected_app_write"],En="/v1/integrations/tool-calls",Ae="https://openpond.ai",Ce=["slack","google","github","turnkey","x","microsoft_teams","mcp"],je={slack:[w("slack.channel.bind","Bind channels","Bind Slack channels or threads to OpenPond profiles.","setup",!1),w("slack.message.ingest","Ingest messages","Ingest Slack channel or thread activity into OpenPond context.","setup",!1)],microsoft_teams:[w("microsoft_teams.channel.bind","Bind channels","Bind Teams channels or chats to OpenPond profiles.","setup",!1),w("microsoft_teams.message.ingest","Ingest messages","Ingest Teams channel or chat activity into OpenPond context.","setup",!1)],google:[w("google.drive.file.read","Read Drive files","Find and read Google Drive files.","read",!0),w("google.drive.file.write","Write Drive files","Create or update approved Google Drive files.","write",!0),w("google.docs.read","Read Docs","Read Google Docs content and structure.","read",!0),w("google.docs.write","Edit Docs","Apply approved Google Docs edits.","write",!0),w("google.comments.read","Read comments","Read Google file comments.","read",!0),w("google.comments.write","Write comments","Create or resolve approved Google comments.","write",!0)],github:[w("github.repo.read","Read repositories","Read repository metadata and file context.","read",!0),w("github.issue.read","Read issues","Read GitHub issues and comments.","read",!0),w("github.issue.write","Update issues","Create or update approved GitHub issue content.","write",!0),w("github.pull_request.read","Read pull requests","Read pull request metadata, diffs, checks, and reviews.","read",!0),w("github.pull_request.write","Update pull requests","Create approved comments or pull request updates.","write",!0)],turnkey:[w("turnkey.wallets.read","Read Agent Wallet","Read the connected OpenPond Agent Wallet address and metadata.","read",!0),w("turnkey.balances.read","Read wallet balances","Read balances for the connected OpenPond Agent Wallet.","read",!0),w("turnkey.activities.read","Read wallet activity","Read recent Turnkey activity for the connected OpenPond Agent Wallet.","read",!0)],x:[w("x.profile.read","Read profile","Read the connected X profile.","read",!0),w("x.search.read","Search X","Search public X posts when granted.","read",!0),w("x.mentions.read","Read mentions","Read mentions for the connected X account.","read",!0),w("x.post.write","Post","Create approved X posts.","write",!0),w("x.reply.write","Reply","Create approved X replies.","write",!0)],mcp:[w("mcp.tool.discover","Discover tools","Discover team-scoped MCP tools.","tooling",!1),w("mcp.tool.call","Call tools","Call approved MCP tools through the team endpoint.","tooling",!1)]},He={slack:[],microsoft_teams:[],google:[y("google.drive.search","search","Search Drive","Search Google Drive files by grounded query.",["google.drive.file.read"]),y("google.drive.read_file","read","Read Drive file","Read Drive file metadata or exported content by stable ref.",["google.drive.file.read"],{requiredKeys:["ref"]}),y("google.docs.read","read","Read Google Doc","Read Google Docs content and structure by stable ref.",["google.docs.read"],{requiredKeys:["ref"]}),y("google.comments.read","read","Read comments","Read comments for a grounded Google file ref.",["google.comments.read"],{requiredKeys:["ref"]}),y("google.docs.update","write","Update Google Doc","Apply an explicitly approved Google Docs edit and return readback verification.",["google.docs.write"],{requiredKeys:["ref","patch"]}),y("google.comments.create","write","Create comment","Create an explicitly approved Google file comment and return readback verification.",["google.comments.write"],{requiredKeys:["ref","body"]}),y("google.comments.resolve","write","Resolve comment","Resolve an explicitly approved Google comment and return readback verification.",["google.comments.write"],{requiredKeys:["ref","commentId"]})],github:[y("github.repo.search","search","Search repositories","Search accessible repositories by owner, name, or topic.",["github.repo.read"]),y("github.issue.search","search","Search issues","Search accessible GitHub issues.",["github.issue.read"]),y("github.pull_request.search","search","Search pull requests","Search accessible GitHub pull requests.",["github.pull_request.read"]),y("github.repo.read","read","Read repository","Read grounded repository metadata or file context.",["github.repo.read"],{requiredKeys:["ref"]}),y("github.issue.read","read","Read issue","Read a grounded GitHub issue and comments.",["github.issue.read"],{requiredKeys:["ref"]}),y("github.pull_request.read","read","Read pull request","Read a grounded pull request, checks, reviews, or diff summary.",["github.pull_request.read"],{requiredKeys:["ref"]}),y("github.issue.create","write","Create issue","Create an explicitly approved GitHub issue and return readback verification.",["github.issue.write"],{requiredKeys:["repo","title","body"]}),y("github.issue.comment","write","Comment on issue","Create an explicitly approved GitHub issue comment and return readback verification.",["github.issue.write"],{requiredKeys:["ref","body"]}),y("github.issue.update","write","Update issue","Apply an explicitly approved issue metadata/content update and return readback verification.",["github.issue.write"],{requiredKeys:["ref"]}),y("github.pull_request.comment","write","Comment on pull request","Create an explicitly approved pull request comment and return readback verification.",["github.pull_request.write"],{requiredKeys:["ref","body"]}),y("github.pull_request.update","write","Update pull request","Apply an explicitly approved pull request metadata update and return readback verification.",["github.pull_request.write"],{requiredKeys:["ref"]})],turnkey:[y("turnkey.wallets.read","read","Read Agent Wallet","Read the address and metadata for the connected OpenPond Agent Wallet.",["turnkey.wallets.read"]),y("turnkey.balances.read","read","Read wallet balances","Read supported-network balances for the connected OpenPond Agent Wallet.",["turnkey.balances.read"]),y("turnkey.activities.read","read","Read wallet activity","Read recent Turnkey activity for the connected OpenPond Agent Wallet.",["turnkey.activities.read"])],x:[y("x.profile.read","read","Read profile","Read the connected X account profile.",["x.profile.read"]),y("x.post.read","read","Read post","Read a public X post by stable ref, status URL, or post id.",["x.search.read"],{requiredKeys:["ref"]}),y("x.search.posts","search","Search recent posts","Search public X posts from the X recent-search window by grounded query.",["x.search.read"]),y("x.mentions.search","search","Search mentions","Search mentions for the connected X account.",["x.mentions.read"]),y("x.mention.read","read","Read mention","Read a grounded mention or post ref.",["x.mentions.read"],{requiredKeys:["ref"]}),y("x.post.create","write","Create post","Create an explicitly approved X post and return readback verification.",["x.post.write"],{requiredKeys:["text"]}),y("x.reply.create","write","Create reply","Create an explicitly approved X reply and return readback verification.",["x.reply.write"],{requiredKeys:["inReplyToRef","text"]})],mcp:[]},Yt={google:["# Google Connected App","","Use Google only through server-provided connected app tools. Never ask for or infer OAuth tokens.","Before reading or editing, identify the exact Drive file, Doc, Sheet, Slide, or comment thread. If the target is ambiguous, ask a short clarification or search first.","Use only declared Google operation ids: google.drive.search, google.drive.read_file, google.docs.read, google.comments.read, google.docs.update, google.comments.create, google.comments.resolve.","For writes, require explicit user intent, summarize the planned change, and verify the target identity before applying updates.","After a write, read back the changed object or relevant range and report the result with the provider file name or stable reference.","Prefer narrow reads over broad Drive scans. Do not expose private file ids unless the tool result already presents them as stable refs."].join(`
2
+ import{$b as pe,Aa as L,Bc as ue,Ca as de,Cc as he,Da as G,Dc as Re,Ea as f,Ec as Te,Fc as Ie,Gc as Pe,Hc as Ee,Ib as xe,Ic as _e,c as We,ca as tt,cb as nt,cc as me,da as at,ec as lt,fc as dt,g as Xe,gc as pt,hc as $,i as Ze,j as Ye,k as Qe,o as et,sb as rt,sc as mt,tb as st,ub as ot,vb as it,wb as ct,xa as H,ya as j,za as le}from"./chunk-DG4DIFF4.js";import{Ca as C,Da as Ge,Ea as Ue,Fa as ie,G as ze,Ga as Ke,Ha as X,Ia as ce,N as D,O as se,b as re,ea as oe,la as W,n as Q,va as Ve,wa as Fe}from"./chunk-2O5UZOYL.js";import{a as $e}from"./chunk-QUNRWDVO.js";import{a as Je}from"./chunk-6FA3GG5B.js";import{a as V,b as N,c as F,d as Y,e as R,h as we,l as A,n as ne}from"./chunk-HZP5U2AA.js";import{b as t}from"./chunk-ES2ISFJC.js";import{a as l}from"./chunk-FTQLQJQV.js";var Vt=t.string().trim().min(1).max(1e5),Ft=t.enum(["no_training","sft","preference","rl"]),Gt=t.object({kind:t.enum(["none","demonstrations","chosen_rejected","scalar_reward"]),strength:t.enum(["absent","weak","usable"]),calibrated:t.boolean(),confounded:t.boolean(),variance:t.number().finite().nonnegative().nullable(),evidenceRefs:t.array(R).max(1e5)}).strict(),ht=t.object({schemaVersion:t.literal("openpond.modelImprovementQualificationReceipt.v1"),id:V,review:R,harnessRelease:R,tasksetRelease:R.nullable(),baselineEvaluation:R.nullable(),model:ne,environmentHash:N.nullable(),toolContractHash:N.nullable(),permissionContractHash:N.nullable(),policyHash:N.nullable(),verifierRef:R.nullable(),sourcePolicies:t.array($e).max(1e4),trainingEvidenceRefs:t.array(R).max(1e5),frozenEvaluationEvidenceRefs:t.array(R).max(1e5),privacyApproval:R.nullable(),budgetApproval:R.nullable(),maximumCostUsd:t.number().finite().nonnegative(),signal:Gt,decision:Ft,reasons:t.array(Vt).min(1).max(100),createdAt:F,metadata:Y}).strict().superRefine((e,a)=>{let n=new Set(e.trainingEvidenceRefs.map(ut));if(e.frozenEvaluationEvidenceRefs.some(o=>n.has(ut(o)))&&a.addIssue({code:"custom",message:"frozen Evaluation evidence cannot be used as training evidence",path:["frozenEvaluationEvidenceRefs"]}),e.decision==="no_training")return;(!e.tasksetRelease||!e.baselineEvaluation||!e.environmentHash||!e.toolContractHash||!e.permissionContractHash||!e.policyHash||!e.verifierRef||!e.privacyApproval||!e.budgetApproval||e.sourcePolicies.length===0||e.sourcePolicies.some(o=>o.state!=="authorized")||e.trainingEvidenceRefs.length===0||e.signal.strength!=="usable"||!e.signal.calibrated||e.signal.confounded)&&a.addIssue({code:"custom",message:"qualified model improvement requires frozen lineage, authorized signal, privacy, and budget gates"}),e.decision==="sft"&&e.signal.kind!=="demonstrations"&&a.addIssue({code:"custom",message:"SFT qualification requires demonstration signal",path:["signal","kind"]}),e.decision==="preference"&&e.signal.kind!=="chosen_rejected"&&a.addIssue({code:"custom",message:"preference qualification requires chosen/rejected signal",path:["signal","kind"]}),e.decision==="rl"&&(e.signal.kind!=="scalar_reward"||e.signal.variance===null||e.signal.variance<=0)&&a.addIssue({code:"custom",message:"RL qualification requires a usable scalar reward with variance",path:["signal"]})}),Ut=ht.extend({contentHash:N}).strict();function gn(e){let a=ht.parse(e);return Ut.parse({...a,contentHash:A(a)})}l(gn,"createModelImprovementQualificationReceipt");function ut(e){return`${e.id}:${e.contentHash}`}l(ut,"refKey");var Kt=t.object({schemaVersion:t.literal("openpond.optimizerTrainingSample.v1"),tokenIds:t.array(t.number().int().nonnegative()).min(2).max(32768),mask:t.array(t.boolean()).min(2).max(32768),logprobs:t.array(t.number().finite()).min(2).max(32768),temperatures:t.array(t.number().positive().finite()).min(2).max(32768),envName:t.string().trim().min(1).max(200),modelRequestId:t.string().trim().min(1).max(1e3),promptTokenCount:t.number().int().positive(),completionTokenCount:t.number().int().positive(),servedPolicyVersion:t.number().int().nonnegative()}).strict().superRefine((e,a)=>{let n=e.tokenIds.length;for(let[r,o]of[["mask",e.mask],["logprobs",e.logprobs],["temperatures",e.temperatures]])o.length!==n&&a.addIssue({code:"custom",path:[r],message:`${r} must align with tokenIds`});e.promptTokenCount+e.completionTokenCount!==n&&a.addIssue({code:"custom",path:["completionTokenCount"],message:"prompt and completion token counts must span tokenIds"}),e.mask.filter(r=>!r).length!==e.promptTokenCount&&a.addIssue({code:"custom",path:["mask"],message:"promptTokenCount must equal the non-trainable mask count"}),e.mask.filter(Boolean).length!==e.completionTokenCount&&a.addIssue({code:"custom",path:["mask"],message:"completionTokenCount must equal the trainable mask count"})}),Jt=t.object({id:V,environmentRelease:R,status:t.enum(["completed","failed","timed_out","cancelled"]),startedAt:F,completedAt:F,traceRefs:t.array(we).max(1e4),metadata:Y}).strict(),Wt=t.object({receiptRef:R,status:Ze,value:t.number().min(0).max(1).nullable(),learningEligible:t.boolean(),passed:t.boolean(),outcomeClass:Qe,failureOwner:Ye.nullable(),components:t.record(V,t.number().min(0).max(1).nullable())}).strict(),ft=t.object({schemaVersion:t.literal("openpond.canonicalRolloutRecord.v1"),id:V,attemptRef:R,artifactManifestRef:R,tasksetRelease:R,environmentRelease:R,verifierSetRelease:R,harnessRelease:R,taskId:V,split:Q,model:ne,seed:t.string().trim().min(1).max(500),reward:Wt,traceRef:we,optimizerSample:Kt.nullable(),environmentExecutions:t.array(Jt).min(1).max(1e5),startedAt:F,completedAt:F,metadata:Y}).strict();function gt(e,a){e.reward.status==="scored"&&(e.reward.value===null||!e.reward.learningEligible)&&a.addIssue({code:"custom",path:["reward","status"],message:"A scored rollout requires a numeric, learning-eligible reward."}),e.reward.status==="unscorable"&&(e.reward.value!==null||e.reward.learningEligible)&&a.addIssue({code:"custom",path:["reward","status"],message:"An unscorable rollout has no reward and cannot be learning-eligible."})}l(gt,"validateCanonicalRolloutRecord");var Xt=ft.superRefine(gt),Zt=t.object({...ft.shape,contentHash:N}).strict().superRefine(gt);function Rn(e){let a=We.parse(e.attemptReceipt);if(!Xe(a))throw new Error("Rollout Attempt Receipt failed content-hash verification.");let n=et.parse(e.rewardReceipt);if(n.attemptRef.id!==a.id||n.attemptRef.contentHash!==a.contentHash)throw new Error("Rollout Attempt Receipt does not match its Reward Receipt.");if(n.artifactManifestRef.id!==e.artifactManifestRef.id||n.artifactManifestRef.contentHash!==e.artifactManifestRef.contentHash)throw new Error("Rollout Artifact Manifest does not match its Reward Receipt.");if(e.environmentExecutions.some(o=>o.environmentRelease.id!==e.environmentRelease.id||o.environmentRelease.contentHash!==e.environmentRelease.contentHash))throw new Error("Rollout Environment execution does not match its admitted Environment Release.");let r=Xt.parse({schemaVersion:"openpond.canonicalRolloutRecord.v1",id:e.id,attemptRef:n.attemptRef,artifactManifestRef:e.artifactManifestRef,tasksetRelease:e.tasksetRelease,environmentRelease:e.environmentRelease,verifierSetRelease:n.verifierSetRef,harnessRelease:e.harnessRelease,taskId:e.taskId,split:e.split,model:e.model,seed:e.seed,reward:{receiptRef:{id:n.id,contentHash:n.contentHash},status:n.status,value:n.reward,learningEligible:n.learningEligible,passed:n.passed,outcomeClass:n.outcomeClass,failureOwner:n.failureOwner,components:Object.fromEntries(n.components.map(o=>[o.verifierId,o.rewardContribution]))},traceRef:e.traceRef,optimizerSample:e.optimizerSample,environmentExecutions:e.environmentExecutions,startedAt:e.startedAt,completedAt:e.completedAt,metadata:e.metadata??{}});return Zt.parse({...r,contentHash:A(r)})}l(Rn,"createCanonicalRolloutRecord");var Pn=["connected_app_search","connected_app_read","connected_app_write"],En="/v1/integrations/tool-calls",Ae="https://openpond.ai",Ce=["slack","google","github","turnkey","x","microsoft_teams","mcp"],je={slack:[w("slack.channel.bind","Bind channels","Bind Slack channels or threads to OpenPond profiles.","setup",!1),w("slack.message.ingest","Ingest messages","Ingest Slack channel or thread activity into OpenPond context.","setup",!1)],microsoft_teams:[w("microsoft_teams.channel.bind","Bind channels","Bind Teams channels or chats to OpenPond profiles.","setup",!1),w("microsoft_teams.message.ingest","Ingest messages","Ingest Teams channel or chat activity into OpenPond context.","setup",!1)],google:[w("google.drive.file.read","Read Drive files","Find and read Google Drive files.","read",!0),w("google.drive.file.write","Write Drive files","Create or update approved Google Drive files.","write",!0),w("google.docs.read","Read Docs","Read Google Docs content and structure.","read",!0),w("google.docs.write","Edit Docs","Apply approved Google Docs edits.","write",!0),w("google.comments.read","Read comments","Read Google file comments.","read",!0),w("google.comments.write","Write comments","Create or resolve approved Google comments.","write",!0)],github:[w("github.repo.read","Read repositories","Read repository metadata and file context.","read",!0),w("github.issue.read","Read issues","Read GitHub issues and comments.","read",!0),w("github.issue.write","Update issues","Create or update approved GitHub issue content.","write",!0),w("github.pull_request.read","Read pull requests","Read pull request metadata, diffs, checks, and reviews.","read",!0),w("github.pull_request.write","Update pull requests","Create approved comments or pull request updates.","write",!0)],turnkey:[w("turnkey.wallets.read","Read Agent Wallet","Read the connected OpenPond Agent Wallet address and metadata.","read",!0),w("turnkey.balances.read","Read wallet balances","Read balances for the connected OpenPond Agent Wallet.","read",!0),w("turnkey.activities.read","Read wallet activity","Read recent Turnkey activity for the connected OpenPond Agent Wallet.","read",!0)],x:[w("x.profile.read","Read profile","Read the connected X profile.","read",!0),w("x.search.read","Search X","Search public X posts when granted.","read",!0),w("x.mentions.read","Read mentions","Read mentions for the connected X account.","read",!0),w("x.post.write","Post","Create approved X posts.","write",!0),w("x.reply.write","Reply","Create approved X replies.","write",!0)],mcp:[w("mcp.tool.discover","Discover tools","Discover team-scoped MCP tools.","tooling",!1),w("mcp.tool.call","Call tools","Call approved MCP tools through the team endpoint.","tooling",!1)]},He={slack:[],microsoft_teams:[],google:[y("google.drive.search","search","Search Drive","Search Google Drive files by grounded query.",["google.drive.file.read"]),y("google.drive.read_file","read","Read Drive file","Read Drive file metadata or exported content by stable ref.",["google.drive.file.read"],{requiredKeys:["ref"]}),y("google.docs.read","read","Read Google Doc","Read Google Docs content and structure by stable ref.",["google.docs.read"],{requiredKeys:["ref"]}),y("google.comments.read","read","Read comments","Read comments for a grounded Google file ref.",["google.comments.read"],{requiredKeys:["ref"]}),y("google.docs.update","write","Update Google Doc","Apply an explicitly approved Google Docs edit and return readback verification.",["google.docs.write"],{requiredKeys:["ref","patch"]}),y("google.comments.create","write","Create comment","Create an explicitly approved Google file comment and return readback verification.",["google.comments.write"],{requiredKeys:["ref","body"]}),y("google.comments.resolve","write","Resolve comment","Resolve an explicitly approved Google comment and return readback verification.",["google.comments.write"],{requiredKeys:["ref","commentId"]})],github:[y("github.repo.search","search","Search repositories","Search accessible repositories by owner, name, or topic.",["github.repo.read"]),y("github.issue.search","search","Search issues","Search accessible GitHub issues.",["github.issue.read"]),y("github.pull_request.search","search","Search pull requests","Search accessible GitHub pull requests.",["github.pull_request.read"]),y("github.repo.read","read","Read repository","Read grounded repository metadata or file context.",["github.repo.read"],{requiredKeys:["ref"]}),y("github.issue.read","read","Read issue","Read a grounded GitHub issue and comments.",["github.issue.read"],{requiredKeys:["ref"]}),y("github.pull_request.read","read","Read pull request","Read a grounded pull request, checks, reviews, or diff summary.",["github.pull_request.read"],{requiredKeys:["ref"]}),y("github.issue.create","write","Create issue","Create an explicitly approved GitHub issue and return readback verification.",["github.issue.write"],{requiredKeys:["repo","title","body"]}),y("github.issue.comment","write","Comment on issue","Create an explicitly approved GitHub issue comment and return readback verification.",["github.issue.write"],{requiredKeys:["ref","body"]}),y("github.issue.update","write","Update issue","Apply an explicitly approved issue metadata/content update and return readback verification.",["github.issue.write"],{requiredKeys:["ref"]}),y("github.pull_request.comment","write","Comment on pull request","Create an explicitly approved pull request comment and return readback verification.",["github.pull_request.write"],{requiredKeys:["ref","body"]}),y("github.pull_request.update","write","Update pull request","Apply an explicitly approved pull request metadata update and return readback verification.",["github.pull_request.write"],{requiredKeys:["ref"]})],turnkey:[y("turnkey.wallets.read","read","Read Agent Wallet","Read the address and metadata for the connected OpenPond Agent Wallet.",["turnkey.wallets.read"]),y("turnkey.balances.read","read","Read wallet balances","Read supported-network balances for the connected OpenPond Agent Wallet.",["turnkey.balances.read"]),y("turnkey.activities.read","read","Read wallet activity","Read recent Turnkey activity for the connected OpenPond Agent Wallet.",["turnkey.activities.read"])],x:[y("x.profile.read","read","Read profile","Read the connected X account profile.",["x.profile.read"]),y("x.post.read","read","Read post","Read a public X post by stable ref, status URL, or post id.",["x.search.read"],{requiredKeys:["ref"]}),y("x.search.posts","search","Search recent posts","Search public X posts from the X recent-search window by grounded query.",["x.search.read"]),y("x.mentions.search","search","Search mentions","Search mentions for the connected X account.",["x.mentions.read"]),y("x.mention.read","read","Read mention","Read a grounded mention or post ref.",["x.mentions.read"],{requiredKeys:["ref"]}),y("x.post.create","write","Create post","Create an explicitly approved X post and return readback verification.",["x.post.write"],{requiredKeys:["text"]}),y("x.reply.create","write","Create reply","Create an explicitly approved X reply and return readback verification.",["x.reply.write"],{requiredKeys:["inReplyToRef","text"]})],mcp:[]},Yt={google:["# Google Connected App","","Use Google only through server-provided connected app tools. Never ask for or infer OAuth tokens.","Before reading or editing, identify the exact Drive file, Doc, Sheet, Slide, or comment thread. If the target is ambiguous, ask a short clarification or search first.","Use only declared Google operation ids: google.drive.search, google.drive.read_file, google.docs.read, google.comments.read, google.docs.update, google.comments.create, google.comments.resolve.","For writes, require explicit user intent, summarize the planned change, and verify the target identity before applying updates.","After a write, read back the changed object or relevant range and report the result with the provider file name or stable reference.","Prefer narrow reads over broad Drive scans. Do not expose private file ids unless the tool result already presents them as stable refs."].join(`
3
3
  `),github:["# GitHub Connected App","","Use GitHub only through server-provided connected app tools. Repository, issue, and pull request identity must be grounded before action.","Use only declared GitHub operation ids: github.repo.search, github.issue.search, github.pull_request.search, github.repo.read, github.issue.read, github.pull_request.read, github.issue.create, github.issue.comment, github.issue.update, github.pull_request.comment, github.pull_request.update.","For reads, name the owner/repo and issue or pull request number when available. If several targets match, ask or inspect before proceeding.","For writes, require explicit user intent and avoid destructive repository changes. Create issues only when the user clearly asks to submit or file a new issue. Prefer comments, labels, or metadata updates unless a stronger operation is clearly requested.","Do not claim CI, review, branch, or PR state changed until a tool result confirms it.","Keep local workspace git operations separate from connected GitHub operations unless the user explicitly asks to bridge them."].join(`
4
4
  `),turnkey:["# Turnkey Agent Wallet Connected App","","Use Turnkey only through server-provided connected app tools. Never ask for, expose, or infer API keys, P-256 credentials, wallet private keys, or lease material.","Use only declared Turnkey read operation ids: turnkey.wallets.read, turnkey.balances.read, and turnkey.activities.read.","Turnkey connected-app access is read-only. Do not claim that a transaction was created, signed, approved, rejected, or sent.","Use turnkey.wallets.read for the Agent Wallet address and metadata, turnkey.balances.read for supported-network balances, and turnkey.activities.read for recent Turnkey activity.","Report the wallet address and network with balance results, and distinguish an empty balance from a failed provider read."].join(`
5
5
  `),x:["# X Connected App","","Use X only through server-provided connected app tools. Distinguish profile, recent search, mention, post, and reply operations.","Use only declared X operation ids: x.profile.read, x.post.read, x.search.posts, x.mentions.search, x.mention.read, x.post.create, x.reply.create.","For x.com, twitter.com, or stable status URLs, first parse the status/post id and read the post with connected_app_read using operation x.post.read and ref set to the original URL, stable ref, or id. Do not open a browser before trying the X connector.","Use x.search.posts for discovery, related public posts, replies, quote-post searches, and conversation scans. It uses X API recent search, so report zero-result searches as zero recent public posts returned by X.","For conversation or reply collection, dedupe by returned post id/ref. Do not repeat the same search call unless the result exposes a usable cursor or next token; if pagination is unavailable, state that coverage is limited to returned recent-search results.","Reads can summarize recent public posts, connected-account profile details, and mentions when the capability is available.","Writes require explicit user intent for the exact post or reply. Do not publish drafts, jokes, endorsements, or replies unless the user clearly approves the content.","Before posting or replying, preserve account identity, quote the proposed content in summary form, and respect provider limits and policy boundaries.","After a write, verify the returned post or reply ref before reporting success."].join(`