@maincode-ai/matilda-code 0.19.1 → 0.19.2
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/README.md +0 -45
- package/chunks/{agent-O7L36PRI.js → agent-XKRS7SDN.js} +1 -1
- package/chunks/{agent-headless-ZOO3SBWV.js → agent-headless-5UTXGWJL.js} +1 -1
- package/chunks/{chunk-NRYMHT3V.js → chunk-APVMKC4S.js} +1 -1
- package/chunks/{chunk-ZX6WKO3S.js → chunk-KMU5KAYC.js} +2 -2
- package/chunks/{chunk-WNEFIZW2.js → chunk-RDNFN7GJ.js} +1 -1
- package/chunks/{chunk-F2SL32K6.js → chunk-WQNABJ5R.js} +1 -1
- package/chunks/{chunk-YTY4VZHQ.js → chunk-X2SJJ7RN.js} +2 -2
- package/chunks/{chunk-JQSW4K4X.js → chunk-XKNSVSWD.js} +1 -1
- package/chunks/{computer-use-5HO7HQCB.js → computer-use-MJ7WGSXA.js} +1 -1
- package/chunks/{contextCommand-3DHLUVVM.js → contextCommand-AGXIRVKU.js} +1 -1
- package/chunks/{edit-GKLQRHLW.js → edit-Y7NFRYDN.js} +1 -1
- package/chunks/{enter-worktree-2NIHUGOI.js → enter-worktree-PVVX5BLF.js} +1 -1
- package/chunks/{enterPlanMode-PHENGP6O.js → enterPlanMode-VVRE4YBV.js} +1 -1
- package/chunks/{exit-worktree-LDVCXGEZ.js → exit-worktree-LDIOV4NM.js} +1 -1
- package/chunks/{exitPlanMode-U3QEDGBI.js → exitPlanMode-AR4QZ4EF.js} +1 -1
- package/chunks/{geminiContentGenerator-56OUN5BI.js → geminiContentGenerator-35P4NFWN.js} +1 -1
- package/chunks/{glob-P43IIJJX.js → glob-6H2PV6X4.js} +1 -1
- package/chunks/{grep-6WULIUE2.js → grep-OMYHSNBF.js} +1 -1
- package/chunks/{matildaAgentContentGenerator-QLZEASVN.js → matildaAgentContentGenerator-B7FZY5QT.js} +1 -1
- package/chunks/{matildaContentGenerator-TGCMZZC6.js → matildaContentGenerator-DQOUSFU3.js} +1 -1
- package/chunks/{monitor-4N4X3QGD.js → monitor-LY6HMAGP.js} +1 -1
- package/chunks/{notebook-edit-CY3IB63X.js → notebook-edit-PY3T4RHL.js} +1 -1
- package/chunks/{openaiContentGenerator-LBEDAHRX.js → openaiContentGenerator-A42WRFRC.js} +1 -1
- package/chunks/{ripGrep-N4V3GUFZ.js → ripGrep-BJRH2OAQ.js} +1 -1
- package/chunks/{scheduler-QLV7TX35.js → scheduler-MFP5BJTP.js} +1 -1
- package/chunks/{serve-CIN26WPX.js → serve-DAFPBR3R.js} +1 -1
- package/chunks/{shell-C3FX4NO6.js → shell-YAP6NQTT.js} +1 -1
- package/chunks/{src-CZPOL4AN.js → src-77YCXW6G.js} +1 -1
- package/chunks/{team-create-LB3Q5Z6M.js → team-create-B3K7PIQ5.js} +1 -1
- package/chunks/web-search-MD3V4NBD.js +26 -0
- package/chunks/{workflow-EUTO2UEN.js → workflow-A2P7P7KO.js} +2 -2
- package/chunks/{write-file-SXD2ZXSI.js → write-file-TTOYKZTG.js} +1 -1
- package/cli.js +6 -6
- package/package.json +3 -3
- package/chunks/web-search-5PWKXHF6.js +0 -13
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maincode-ai/matilda-code",
|
|
3
|
-
"version": "0.19.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.19.2",
|
|
4
|
+
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "cli.js",
|
|
7
7
|
"bin": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"bundled"
|
|
23
23
|
],
|
|
24
24
|
"config": {
|
|
25
|
-
"sandboxImageUri": "ghcr.io/maincode/matilda-code:0.19.
|
|
25
|
+
"sandboxImageUri": "ghcr.io/maincode/matilda-code:0.19.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {},
|
|
28
28
|
"optionalDependencies": {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import{d as _}from"./chunk-OQ73WWR4.js";import"./chunk-NRYMHT3V.js";import"./chunk-4F4DA5UI.js";import"./chunk-2MEHZGZJ.js";import"./chunk-LN2DRVOB.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-DY6PIAAY.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-UY2R3ZQ4.js";import"./chunk-4M4CUQUR.js";import{g as h,i as y,p as u,q as d}from"./chunk-X6DODPXG.js";import"./chunk-IOCF4XSR.js";import{Y as g}from"./chunk-QWBNNEV2.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import{b as f}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";f();var E=g("WEB_SEARCH");function C(n){if(process.env.MATILDA_WEB_SEARCH_URL)return process.env.MATILDA_WEB_SEARCH_URL;let t=n.getContentGeneratorConfig?.()?.baseUrl||process.env.OPENAI_BASE_URL||"https://matilda.maincode.com/api/v1/code";return`${_(t)}/api/v1/tools/web_search`}function T(n){let o=n.getContentGeneratorConfig?.();return typeof o?.apiKey=="string"&&o.apiKey.length>0?o.apiKey:process.env.MATILDA_API_KEY}var p=class extends h{constructor(t,s){super(s);this.config=t}async getDefaultPermission(){return"allow"}getDescription(){return`Web search: ${this.params.query}`}async execute(t){let s=this.params.query?.trim();if(!s)return{llmContent:"Error: query is required",returnDisplay:"Error: query is required",error:{message:"query is required",type:"invalid_tool_params"}};let b=C(this.config),m=T(this.config);if(!m)return{llmContent:"web_search requires Matilda authentication (MATILDA_API_KEY or signed-in session).",returnDisplay:"Not authenticated for web_search",error:{message:"missing MATILDA_API_KEY",type:"execution_failed"}};try{let e=await fetch(b,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${m}`},body:JSON.stringify({query:s,max_results:this.params.max_results??5}),signal:t});if(e.status===404)return{llmContent:"web_search is not enabled on this Matilda Core deployment yet (404). Use web_fetch with a known URL, or configure MATILDA_WEB_SEARCH_URL.",returnDisplay:"web_search unavailable (404)",error:{message:"web_search endpoint not found",type:"execution_failed"}};if(!e.ok){let l=await e.text().catch(()=>"");return{llmContent:`web_search failed (HTTP ${e.status}): ${l.slice(0,300)}`,returnDisplay:`web_search failed (${e.status})`,error:{message:`HTTP ${e.status}`,type:"execution_failed"}}}let r=await e.json(),c=Array.isArray(r.results)?r.results:[],i=[];if(r.answer&&i.push(r.answer,""),c.length===0)i.push(`No web results for "${s}".`);else{i.push(`Web results for "${s}":`);for(let[l,a]of c.entries())i.push(`${l+1}. ${a.title??"(untitled)"}`,` ${a.url??""}`,a.snippet?` ${a.snippet}`:"")}return{llmContent:i.filter(Boolean).join(`
|
|
4
|
-
`),returnDisplay:`Found ${c.length} result(s)`}}catch(e){let r=e instanceof Error?e.message:String(e);return E.debug(`web_search error: ${r}`),{llmContent:`web_search failed: ${r}`,returnDisplay:"web_search failed",error:{message:r,type:"execution_failed"}}}}},A=class extends y{constructor(t){super(u.WEB_SEARCH,d.WEB_SEARCH,"Search the public web for current information via Matilda Core (metered). Prefer web_fetch when you already have a specific URL.","search",{type:"object",properties:{query:{type:"string",description:"Search query"},max_results:{type:"number",description:"Maximum results to return (default 5)"}},required:["query"]});this.config=t}static Name=u.WEB_SEARCH;createInvocation(t){return new p(this.config,t)}};export{A as WebSearchTool};
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright 2026 Matilda Team
|
|
8
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
9
|
-
*
|
|
10
|
-
* First-party web_search routed through Matilda Core (auth/quota/metering).
|
|
11
|
-
* Endpoint: POST {authBase}/api/v1/tools/web_search
|
|
12
|
-
* Override with MATILDA_WEB_SEARCH_URL when Core path differs.
|
|
13
|
-
*/
|