@maincode-ai/matilda-code 0.21.4 → 0.21.5-nightly.20260908.0d3c624bb
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/chunks/agent-HVAPKXWX.js +3 -0
- package/chunks/agent-headless-PUPP3RC4.js +3 -0
- package/chunks/{anthropicContentGenerator-EFVV6ZTA.js → anthropicContentGenerator-EAQDRKHH.js} +1 -1
- package/chunks/{askUserQuestion-MFLZ7MGJ.js → askUserQuestion-7II3GVHO.js} +1 -1
- package/chunks/{chunk-FUNLOUYI.js → chunk-2HFKTFO5.js} +1 -1
- package/chunks/{chunk-2NN5YPDR.js → chunk-4RJUXDH5.js} +1 -1
- package/chunks/chunk-5QAKUC2D.js +14 -0
- package/chunks/{chunk-3FI7EEYS.js → chunk-6UGZQN4B.js} +466 -465
- package/chunks/{chunk-5U3A6KMU.js → chunk-BGZJUBRA.js} +1 -1
- package/chunks/{chunk-SUORCDGS.js → chunk-BH56I7SB.js} +1 -1
- package/chunks/{chunk-C2ZWB2NT.js → chunk-FQ44TPC5.js} +1 -1
- package/chunks/{chunk-LQWORCPO.js → chunk-FW6Z25AA.js} +1 -1
- package/chunks/{chunk-ENMM2K4Q.js → chunk-GADNIYGB.js} +1 -1
- package/chunks/chunk-I5TKBEKD.js +32 -0
- package/chunks/{chunk-LCYHQMKE.js → chunk-JFE3NGGK.js} +2 -2
- package/chunks/{chunk-4R2OFVPK.js → chunk-L5ASITMV.js} +1 -1
- package/chunks/{chunk-MNGFXISD.js → chunk-LNTO3FNQ.js} +1 -1
- package/chunks/{chunk-QEI3OETI.js → chunk-MW3LAIJW.js} +1 -1
- package/chunks/{chunk-IMYUVCF7.js → chunk-N6BOYL6K.js} +1 -1
- package/chunks/{chunk-QLEJOI4X.js → chunk-O3OUYCSO.js} +1 -1
- package/chunks/{chunk-LPWRRSAI.js → chunk-O5WFAAJF.js} +1 -1
- package/chunks/{chunk-6QP5C76Y.js → chunk-OVC5Z3EX.js} +1 -1
- package/chunks/{chunk-NDR7ZFUA.js → chunk-OXHC3R2R.js} +1 -1
- package/chunks/{chunk-FT76AZPN.js → chunk-RQIV43CR.js} +1 -1
- package/chunks/{chunk-EMWHQSMS.js → chunk-SOKNPND5.js} +1 -1
- package/chunks/{chunk-IOCF4XSR.js → chunk-SWEYYDZO.js} +1 -1
- package/chunks/{chunk-QCIDUZV6.js → chunk-U3O6TMV7.js} +1 -1
- package/chunks/{chunk-R3H6IWFK.js → chunk-UHDKX2CR.js} +1 -1
- package/chunks/{chunk-UY2R3ZQ4.js → chunk-VB4MJSMC.js} +1 -1
- package/chunks/{chunk-XKDGRW3K.js → chunk-VBOVIARK.js} +1 -1
- package/chunks/{chunk-QRCRXDZ5.js → chunk-VUJBVDPG.js} +2 -2
- package/chunks/{chunk-OMZ5SGMK.js → chunk-X4ML2NEE.js} +1 -1
- package/chunks/{chunk-S4K76QPI.js → chunk-XITA5WMN.js} +1 -1
- package/chunks/{chunk-MJEXA2MA.js → chunk-YTGWPLEA.js} +1 -1
- package/chunks/{computer-use-SPPVJT3E.js → computer-use-AU7ESBHR.js} +1 -1
- package/chunks/contextCommand-7JB3K3SS.js +3 -0
- package/chunks/{cron-create-JHL5JGIM.js → cron-create-HASFXYQL.js} +1 -1
- package/chunks/{cron-delete-K2R3KI2W.js → cron-delete-AW4S5IYT.js} +1 -1
- package/chunks/{cron-list-R3YHZBHA.js → cron-list-U5U5GO6A.js} +1 -1
- package/chunks/{edit-SLOTIPQ6.js → edit-UCNE7J7J.js} +1 -1
- package/chunks/{enter-worktree-Y6PQ27LA.js → enter-worktree-XMDJZHYY.js} +1 -1
- package/chunks/{enterPlanMode-XXL4BNEQ.js → enterPlanMode-XMH7YSWI.js} +1 -1
- package/chunks/{exit-worktree-ZO3CQN6M.js → exit-worktree-66I5GTOI.js} +1 -1
- package/chunks/{exitPlanMode-BNBCFLEU.js → exitPlanMode-B53RZAXG.js} +1 -1
- package/chunks/{geminiContentGenerator-H3MOBIG3.js → geminiContentGenerator-3QYSDHWO.js} +1 -1
- package/chunks/glob-JPWXHPZY.js +22 -0
- package/chunks/{grep-MFAMPUHG.js → grep-5RIPV774.js} +1 -1
- package/chunks/{keychain-token-storage-EAJ6RT4S.js → keychain-token-storage-5MWTIAEL.js} +1 -1
- package/chunks/{ls-4QPI2E7A.js → ls-IBIDQ5NV.js} +1 -1
- package/chunks/{lsp-P3GKBOP3.js → lsp-ELR2BGT4.js} +1 -1
- package/chunks/matildaAgentContentGenerator-2GOFJGOD.js +8 -0
- package/chunks/matildaContentGenerator-CCBXB5RF.js +8 -0
- package/chunks/{matildaOAuth2-LKOMJUC6.js → matildaOAuth2-5EYRIK66.js} +1 -1
- package/chunks/monitor-4FVSFXU5.js +32 -0
- package/chunks/notebook-edit-RTTGOHIQ.js +17 -0
- package/chunks/{openaiContentGenerator-CCKR4OUB.js → openaiContentGenerator-PEGNNLRN.js} +1 -1
- package/chunks/read-file-4TZCSTH7.js +3 -0
- package/chunks/ripGrep-MQNNJXAW.js +3 -0
- package/chunks/scheduler-4W7W3FPL.js +8 -0
- package/chunks/{send-message-K3T7GVHO.js → send-message-GFPVOTSZ.js} +1 -1
- package/chunks/{serve-C7WLVE45.js → serve-46RPFORU.js} +31 -31
- package/chunks/shell-VTOAVULB.js +3 -0
- package/chunks/{skill-D77VBROC.js → skill-FH6R4ZTW.js} +1 -1
- package/chunks/src-DBI2FFHO.js +3 -0
- package/chunks/{symbol-search-3A66G4MP.js → symbol-search-ZV6W6DPK.js} +1 -1
- package/chunks/{syntheticOutput-LLA4WQR7.js → syntheticOutput-XKGS6F2D.js} +1 -1
- package/chunks/task-create-T43QIG2F.js +3 -0
- package/chunks/{task-list-6I64SK7E.js → task-list-V27WHHHJ.js} +1 -1
- package/chunks/{task-stop-UKRXMCZV.js → task-stop-NON26GAN.js} +1 -1
- package/chunks/{task-update-XZWORLJB.js → task-update-DE7CUGPY.js} +1 -1
- package/chunks/{team-create-6SK4CNZ5.js → team-create-3NMISCGY.js} +1 -1
- package/chunks/{team-delete-DEPXAMUE.js → team-delete-LIEVUGIX.js} +1 -1
- package/chunks/{todoWrite-DKJAYA4S.js → todoWrite-YIMKFWIL.js} +1 -1
- package/chunks/{tool-search-7D46IF5G.js → tool-search-HFOHXFK5.js} +1 -1
- package/chunks/{update-goal-EUJYH23K.js → update-goal-2ZJ53Q3T.js} +1 -1
- package/chunks/{web-fetch-UGTFUOQN.js → web-fetch-EVO7GDEB.js} +1 -1
- package/chunks/{web-search-FURCBRRK.js → web-search-SJMJGGPE.js} +1 -1
- package/chunks/{workflow-DG73Y76U.js → workflow-JD3LGT4M.js} +2 -2
- package/chunks/write-file-UUWQNGF2.js +15 -0
- package/cli.js +353 -353
- package/package.json +2 -2
- package/chunks/agent-U4F2PPZK.js +0 -3
- package/chunks/agent-headless-HVLXIG5E.js +0 -3
- package/chunks/chunk-QWBNNEV2.js +0 -14
- package/chunks/contextCommand-B6PO2N2B.js +0 -3
- package/chunks/glob-JHSJXAWH.js +0 -22
- package/chunks/matildaAgentContentGenerator-TUOJCDZF.js +0 -32
- package/chunks/matildaContentGenerator-K32UBTHC.js +0 -8
- package/chunks/monitor-LW5DPUYE.js +0 -32
- package/chunks/notebook-edit-XQHVR3VY.js +0 -17
- package/chunks/read-file-URGJTANM.js +0 -3
- package/chunks/ripGrep-WLBUDFPP.js +0 -3
- package/chunks/scheduler-KIVES2O5.js +0 -8
- package/chunks/shell-FC3JNLXK.js +0 -3
- package/chunks/src-JTFAM72X.js +0 -3
- package/chunks/task-create-ZZTSVXZN.js +0 -3
- package/chunks/write-file-NQP7YPXV.js +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{d as n,g as h,l as i}from"./chunk-QKYGQLWC.js";import{g,i as p,p as c,q as l}from"./chunk-
|
|
3
|
+
import{d as n,g as h,l as i}from"./chunk-QKYGQLWC.js";import{g,i as p,p as c,q as l}from"./chunk-BGZJUBRA.js";import"./chunk-5QAKUC2D.js";import"./chunk-FWDMPRKU.js";import{b as d}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";d();var m=class extends g{constructor(s,a){super(a);this.config=s}getDescription(){if(this.params.task_id)return`Send message to task ${this.params.task_id}`;let s=this.params.summary??this.params.message.slice(0,50);return`Send to ${this.params.to}: ${s}`}async getDefaultPermission(){return"ask"}async execute(s){if(this.params.task_id){let e=this.config.getBackgroundTaskRegistry(),t=e.get(this.params.task_id);return t?t.status==="paused"?await this.config.resumeBackgroundAgent(this.params.task_id,this.params.message)?{llmContent:`Background task "${this.params.task_id}" resumed with your message as the first continuation instruction.`,returnDisplay:`Resumed ${t.description}`}:{llmContent:`Error: Background task "${this.params.task_id}" could not be resumed.`,returnDisplay:"Task could not be resumed.",error:{message:`Task could not be resumed: ${this.params.task_id}`,type:"send_message_not_running"}}:t.status!=="running"?{llmContent:`Error: Background task "${this.params.task_id}" is not running (status: ${t.status}). Cannot send messages to stopped tasks.`,returnDisplay:`Task not running (${t.status}).`,error:{message:`Task is ${t.status}: ${this.params.task_id}`,type:"send_message_not_running"}}:(e.queueMessage(this.params.task_id,this.params.message),{llmContent:`Message queued for delivery to background task "${this.params.task_id}". The task will receive it at the next tool-round boundary.`,returnDisplay:`Message queued for ${t.description}`}):{llmContent:`Error: No background task found with ID "${this.params.task_id}".`,returnDisplay:"Task not found.",error:{message:`Task not found: ${this.params.task_id}`,type:"send_message_not_found"}}}let a=this.config.getTeamManager();if(!a){let e="No active team and no task_id provided. Either create a team first, or pass `task_id` to message a background task.";return{llmContent:e,returnDisplay:e,error:{message:e}}}let o=this.params.to;if(!o){let e='Recipient "to" is required.';return{llmContent:e,returnDisplay:e,error:{message:e}}}try{if(this.params.type==="shutdown_request"){if(h()){let r="Only the team leader can request shutdowns.";return{llmContent:r,returnDisplay:r,error:{message:r}}}await a.requestShutdown(o);let t=`Shutdown requested for "${o}".`;return{llmContent:t,returnDisplay:t}}if(o==="*"){let t=n()??i;await a.broadcast(this.params.message,t);let r="Message broadcast to all teammates.";return{llmContent:r,returnDisplay:r}}await a.sendMessage(o,this.params.message,n()??i,this.params.summary);let e=`Message sent to "${o}".`;return{llmContent:e,returnDisplay:e}}catch(e){let t=e instanceof Error?e.message:String(e);return{llmContent:`Failed to send message: ${t}`,returnDisplay:`Failed to send message: ${t}`,error:{message:t}}}}},k=class u extends p{constructor(s){super(u.Name,l.SEND_MESSAGE,'Send a message to a teammate (use "to") or to a running background task (use "task_id"). For teams, set "to" to a bare teammate name (no @) or "*" to broadcast. For background tasks, set "task_id" to the id from the launch response or a recovered paused task. Running tasks receive it at the next tool-round boundary; paused recovered tasks are resumed with the message as their first continuation instruction. Your text output is NOT visible to other agents \u2014 use this tool to communicate.',"other",{type:"object",properties:{to:{type:"string",description:'Recipient teammate name, or "*" for broadcast.'},task_id:{type:"string",description:"The ID of the background task (from the launch response or a recovered paused task)."},message:{type:"string",description:"Message text to send.",maxLength:65536},summary:{type:"string",description:"Optional 5-10 word summary for UI display."},type:{type:"string",enum:["shutdown_request"],description:"Structured message type for control flow. When set, routes through the mailbox instead of plain text delivery."}},required:["message"],oneOf:[{required:["to"]},{required:["task_id"]}],additionalProperties:!1},!0,!1,!0,!1,"send message task teammate team communicate notify");this.config=s}static Name=c.SEND_MESSAGE;createInvocation(s){return new m(this.config,s)}toAutoClassifierInput(s){return{to:s.to,task_id:s.task_id,message:s.message,type:s.type}}};export{k as SendMessageTool};
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2025 Matilda
|