MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / WMK

Function WMK

package/cli.js:3624–3625  ·  view source on GitHub ↗
(q)

Source from the content-addressed store, hash-verified

3622- update: POST /v1/code/triggers/{trigger_id} (requires body, partial update)
3623- run: POST /v1/code/triggers/{trigger_id}/run
3624
3625The response is the raw JSON from the API.`;function PMK(q){return`${q.action??""}${q.trigger_id?` ${q.trigger_id}`:""}`}function WMK(q){let K=G$(q.json,`
3626`)+1;return Im8.default.createElement(s8,null,Im8.default.createElement(k,null,"HTTP ",q.status," ",Im8.default.createElement(k,{dimColor:!0},"(",K," lines)")))}var Im8;var DMK=y(()=>{gK();s6();Im8=O6(D6(),1)});var fMK={};T8(fMK,{RemoteTriggerTool:()=>NqY});var vqY,kqY,VqY="ccr-triggers-2026-01-30",NqY;var ZMK=y(()=>{CK();x7();H3();o1();pW();ZD();Bq();G7();l8();DMK();vqY=B6(()=>L.strictObject({action:L.enum(["list","get","create","update","run"]),trigger_id:L.string().regex(/^[\w-]+$/).optional().describe("Required for get, update, and run"),body:L.record(L.string(),L.unknown()).optional().describe("JSON body for create and update")})),kqY=B6(()=>L.object({status:L.number(),json:L.string()})),NqY=sq({name:_H6,searchHint:"manage scheduled remote agent triggers",maxResultSizeChars:1e5,shouldDefer:!0,get inputSchema(){return vqY()},get outputSchema(){return kqY()},isEnabled(){return g8("tengu_surreal_dali",!1)&&OO("allow_remote_sessions")},isConcurrencySafe(){return!0},isReadOnly(q){return q.action==="list"||q.action==="get"},toAutoClassifierInput(q){return`RemoteTrigger ${q.action}${q.trigger_id?` ${q.trigger_id}`:""}`},async description(){return MMK},async prompt(){return XMK},async call(q,K){await k$();let _=Kq()?.accessToken;if(!_)throw Error("Not authenticated with a claude.ai account. Run /login and try again.");let z=await mW();if(!z)throw Error("Unable to resolve organization UUID.");let Y=`${u7().BASE_API_URL}/v1/code/triggers`,$={Authorization:`Bearer ${_}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":VqY,"x-organization-uuid":z},{action:A,trigger_id:O,body:w}=q,j,H,J;switch(A){case"list":j="GET",H=Y;break;case"get":if(!O)throw Error("get requires trigger_id");j="GET",H=`${Y}/${O}`;break;case"create":if(!w)throw Error("create requires body");j="POST",H=Y,J=w;break;case"update":if(!O)throw Error("update requires trigger_id");if(!w)throw Error("update requires body");j="POST",H=`${Y}/${O}`,J=w;break;case"run":if(!O)throw Error("run requires trigger_id");j="POST",H=`${Y}/${O}/run`,J={};break}let M=await $1.request({method:j,url:H,headers:$,data:J,timeout:20000,signal:K.abortController.signal,validateStatus:()=>!0});return{data:{status:M.status,json:g6(M.data)}}},mapToolResultToToolResultBlockParam(q,K){return{tool_use_id:K,type:"tool_result",content:`HTTP ${q.status}
3627${q.json}`}},renderToolUseMessage:PMK,renderToolResultMessage:WMK})});function GMK(){return`
3628# TeamCreate

Callers

nothing calls this directly

Calls 2

G$Function · 0.85
createElementMethod · 0.80

Tested by

no test coverage detected