JosephStoneCellAI commited on
Commit
bfb4820
·
verified ·
1 Parent(s): 0032c37

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. SPFsmartGATE/LIVE/BRAIN/DOCS/00138ec318eecbfb.txt +1 -0
  2. SPFsmartGATE/LIVE/BRAIN/DOCS/0047f9a018eecbfb.txt +1 -0
  3. SPFsmartGATE/LIVE/BRAIN/DOCS/0080abb918eecbfb.txt +1 -0
  4. SPFsmartGATE/LIVE/BRAIN/DOCS/00e37a8a18eecbfb.txt +1 -0
  5. SPFsmartGATE/LIVE/BRAIN/DOCS/011002ec18eecbfb.txt +1 -0
  6. SPFsmartGATE/LIVE/BRAIN/DOCS/015993c918eecbfb.txt +1 -0
  7. SPFsmartGATE/LIVE/BRAIN/DOCS/02f8b49918eecbfb.txt +1 -0
  8. SPFsmartGATE/LIVE/BRAIN/DOCS/032316cc18eecbfb.txt +1 -0
  9. SPFsmartGATE/LIVE/BRAIN/DOCS/032f120e18eecbfb.txt +1 -0
  10. SPFsmartGATE/LIVE/BRAIN/DOCS/032f9ac418eecbfb.txt +1 -0
  11. SPFsmartGATE/LIVE/BRAIN/DOCS/038bec162588853e.txt +1 -0
  12. SPFsmartGATE/LIVE/BRAIN/DOCS/03ebf47863fafcbc.txt +5 -0
  13. SPFsmartGATE/LIVE/BRAIN/DOCS/03f4948618eecbfb.txt +1 -0
  14. SPFsmartGATE/LIVE/BRAIN/DOCS/050fddd539bc7b14.txt +9 -0
  15. SPFsmartGATE/LIVE/BRAIN/DOCS/059d4cd9a9da96ba.txt +9 -0
  16. SPFsmartGATE/LIVE/BRAIN/DOCS/05eb2dff7bd915f2.txt +11 -0
  17. SPFsmartGATE/LIVE/BRAIN/DOCS/065ea5169a5c0faa.txt +4 -0
  18. SPFsmartGATE/LIVE/BRAIN/DOCS/06e81526f50bda78.txt +3 -0
  19. SPFsmartGATE/LIVE/BRAIN/DOCS/08371173a86d8c2f.txt +3 -0
  20. SPFsmartGATE/LIVE/BRAIN/DOCS/0a1b453118eecbfb.txt +1 -0
  21. SPFsmartGATE/LIVE/BRAIN/DOCS/0a2a19b918eecbfb.txt +1 -0
  22. SPFsmartGATE/LIVE/BRAIN/DOCS/0a5f017a85e67607.txt +1 -0
  23. SPFsmartGATE/LIVE/BRAIN/DOCS/0ac9130818eecc12.txt +1 -0
  24. SPFsmartGATE/LIVE/BRAIN/DOCS/0b031b3383520e54.txt +15 -0
  25. SPFsmartGATE/LIVE/BRAIN/DOCS/0b26f70a18eecbfb.txt +1 -0
  26. SPFsmartGATE/LIVE/BRAIN/DOCS/0cb7b25318eecbfb.txt +1 -0
  27. SPFsmartGATE/LIVE/BRAIN/DOCS/0d33c30618eecbfb.txt +1 -0
  28. SPFsmartGATE/LIVE/BRAIN/DOCS/0d82ce2318eecbfb.txt +1 -0
  29. SPFsmartGATE/LIVE/BRAIN/DOCS/0d91c72a18eecbfb.txt +1 -0
  30. SPFsmartGATE/LIVE/BRAIN/DOCS/0dcc2fe518eecbfb.txt +1 -0
  31. SPFsmartGATE/LIVE/BRAIN/DOCS/0dd3a3d118eecbfb.txt +1 -0
  32. SPFsmartGATE/LIVE/BRAIN/DOCS/0e1117b730a83b5e.txt +3 -0
  33. SPFsmartGATE/LIVE/BRAIN/DOCS/0ead637ebd4e3ab8.txt +7 -0
  34. SPFsmartGATE/LIVE/BRAIN/DOCS/0f7342cda4e204df.txt +5 -0
  35. SPFsmartGATE/LIVE/BRAIN/DOCS/11bccfbe68ceaf9e.txt +1 -0
  36. SPFsmartGATE/LIVE/BRAIN/DOCS/11f261a118eecbfb.txt +1 -0
  37. SPFsmartGATE/LIVE/BRAIN/DOCS/125d3e3818eecbfb.txt +1 -0
  38. SPFsmartGATE/LIVE/BRAIN/DOCS/1281b1e9f8ca35b2.txt +12 -0
  39. SPFsmartGATE/LIVE/BRAIN/DOCS/1293578840ee6b02.txt +1 -0
  40. SPFsmartGATE/LIVE/BRAIN/DOCS/12a4f82d40ee6b02.txt +1 -0
  41. SPFsmartGATE/LIVE/BRAIN/DOCS/13129fd940ee6b02.txt +1 -0
  42. SPFsmartGATE/LIVE/BRAIN/DOCS/131ce26366b94553.txt +1 -0
  43. SPFsmartGATE/LIVE/BRAIN/DOCS/14bc01189d9e23eb.txt +2 -0
  44. SPFsmartGATE/LIVE/BRAIN/DOCS/1bac0e262690e5cd.txt +12 -0
  45. SPFsmartGATE/LIVE/BRAIN/DOCS/1bbc3d91c8de4b6b.txt +5 -0
  46. SPFsmartGATE/LIVE/BRAIN/DOCS/1cfd40b26f2abda2.txt +20 -0
  47. SPFsmartGATE/LIVE/BRAIN/DOCS/1ebc9a3c05eca4cf.txt +9 -0
  48. SPFsmartGATE/LIVE/BRAIN/DOCS/1f33accf4bed3b39.txt +9 -0
  49. SPFsmartGATE/LIVE/BRAIN/DOCS/1f522b857cf069cb.txt +2 -0
  50. SPFsmartGATE/LIVE/BRAIN/DOCS/20c59eedbe476c0d.txt +10 -0
SPFsmartGATE/LIVE/BRAIN/DOCS/00138ec318eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0047f9a018eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0080abb918eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/00e37a8a18eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/011002ec18eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/015993c918eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/02f8b49918eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/032316cc18eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/032f120e18eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/032f9ac418eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/038bec162588853e.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Bash source=stdio allowed=false label=0.0 weight=1.0 evil=0.00 relevance=0.10 fp=false override=false | context=[Bash,Edit,Write] | ts=2026-03-19T00:38:53.880730263+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/03ebf47863fafcbc.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ /data/data/com.termux/files/home/SPFsmartGATE/src/dispatch.rs: let pipeline = Source::Pipeline {
2
+ /data/data/com.termux/files/home/SPFsmartGATE/src/dispatch.rs: let transformer = Source::Transformer {
3
+ /data/data/com.termux/files/home/SPFsmartGATE/src/dispatch.rs: Source::Transformer { role, model_id } => {
4
+ /data/data/com.termux/files/home/SPFsmartGATE/src/dispatch.rs: _ => panic!("Expected Source::Transformer"),
5
+ /data/data/com.termux/files/home/SPFsmartGATE/src/dispatch.rs: let pipeline = Source::Pipeline {
SPFsmartGATE/LIVE/BRAIN/DOCS/03f4948618eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/050fddd539bc7b14.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 4110 - Do NOT use Read, Bash, Grep, Glob, Edit, Write, or ANY other tool.
2
+ 4111 - You already have all the context you need in the conversation above.
3
+ 4112 - Tool calls will be REJECTED and will waste your only turn — you will fail the task.
4
+ 4113 - Your entire response must be plain text: an <analysis> block followed by a <summary> block.
5
+ 4114
6
+ 4115 `+d1z;if(q&&q.trim()!=="")K+=`
7
+ 4116
8
+ 4117 Additional Instructions:
9
+ 4118 ${q}`;return K+=_XK,K}function zXK(q){let K=`CRITICAL: Respond with TEXT ONLY. Do NOT call any tools.
SPFsmartGATE/LIVE/BRAIN/DOCS/059d4cd9a9da96ba.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 442 ============================================================================
2
+ 443 END OF CLUSTERV1 ARCHITECTURE
3
+ 444 ============================================================================
4
+ 445 Layer: MIDDLE (Meat)
5
+ 446 Role: Highway Router + SS Wire Grid
6
+ 447 Wires: 11,448
7
+ 448 Interlocks: V2 (above) and V3 (below)
8
+ 449 ============================================================================
9
+ 450 ```
SPFsmartGATE/LIVE/BRAIN/DOCS/05eb2dff7bd915f2.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 566 // ========================================================================
2
+ 567
3
+ 568 /// Get Agent preferences
4
+ 569 pub fn get_preferences(&self) -> Result<AgentPreferences> {
5
+ 570 self.get_state_typed::<AgentPreferences>("preferences")?
6
+ 571 .ok_or_else(|| anyhow!("Preferences not initialized"))
7
+ 572 .or_else(|_| Ok(AgentPreferences::default()))
8
+ 573 }
9
+ 574
10
+ 575 /// Set Agent preferences
11
+ 576 pub fn set_preferences(&self, prefs: &AgentPreferences) -> Result<()> {
SPFsmartGATE/LIVE/BRAIN/DOCS/065ea5169a5c0faa.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/target/release/.fingerprint/doxygen-rs-d514ad9e3a6c4e15/lib-doxygen_rs.json
2
+ /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/target/release/.fingerprint/tower-http-07ba364a0d00d335/lib-tower_http.json
3
+ /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/target/release/.fingerprint/lru-6f337eb13a2920a8/lib-lru.json
4
+ /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/target/release/.fingerprint/netlink-packet-route-800ae9e4b90c0417/lib-netlink_packet_route.json
SPFsmartGATE/LIVE/BRAIN/DOCS/06e81526f50bda78.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 3302 - The name, team_name, and mode parameters are not available in this context — teammates cannot spawn other teammates. Omit them to spawn a subagent.`:""}${A}${O}
2
+ 3303
3
+ 3304 ${z?$:w}`}var _a1=y(()=>{o1();D7();mx();g8();aY();CG();Z2();jj();S2();Ue6()});function SrY(){if(n6(process.env.CLAUDE_AUTO_BACKGROUND_TASKS)||F8("tengu_auto_background_agents",!1))return 120000;return 0}function xrY(q,K){if(!F4())return;return q.team_name||K.teamContext?.teamName}var Ya1,RrY=null,hrY=2000,lE6,CrY,brY,ko1,IrY,yzK;var yo1=y(()=>{KR8();C7();N8();fL();va6();fU1();o1();V8();mn();fD();ow6();AW();m0();fx();u2();S7();Y8();g8();E8();e1();I46();sD();vj();MC();sq();dE6();Wj();FP();aY();CG();Lm();S0();du();JZ();OL8();Z2();fzK();R0();m46();Di6();S2();Ue6();DD();_a1();Sq6();SI8();Ya1=w6(W6(),1),lE6=n6(process.env.CLAUDE_CODE_DISABLE_BACKGROUND_TASKS);CrY=F6(()=>E.object({description:E.string().describe("A short (3-5 word) description of the task"),prompt:E.string().describe("The task for the agent to perform"),subagent_type:E.string().optional().describe("The type of specialized agent to use for this task"),model:E.enum(["sonnet","opus","haiku"]).optional().describe("Optional model override for this agent. Takes precedence over the agent definition's model frontmatter. If omitted, uses the agent definition's model, or inherits from the parent."),run_in_background:E.boolean().optional().describe("Set to true to run this agent in the background. You will be notified when it completes.")})),brY=F6(()=>{let q=E.object({name:E.string().optional().describe("Name for the spawned agent. Makes it addressable via SendMessage({to: name}) while running."),team_name:E.string().optional().describe("Team name for spawning. Uses current team context if omitted."),mode:AW7().optional().describe('Permission mode for spawned teammate (e.g., "plan" to require plan approval).')});return CrY().merge(q).extend({isolation:E.enum(["worktree"]).optional().describe('Isolation mode. "worktree" creates a temporary git worktree so the agent works on an isolated copy of the repo.'),cwd:E.string().optional().describe('Absolute path to run the agent in. Overrides the working directory for all filesystem and shell operations within this agent. Mutually exclusive with isolation: "worktree".')})}),ko1=F6(()=>{let q=brY().omit({cwd:!0});return lE6||qb()?q.omit({run_in_background:!0}):q}),IrY=F6(()=>{let q=Kpq().extend({status:E.literal("completed"),prompt:E.string()}),K=E.object({status:E.literal("async_launched"),agentId:E.string().describe("The ID of the async agent"),description:E.string().describe("The description of the task"),prompt:E.string().describe("The prompt for the agent"),outputFile:E.string().describe("Path to the output file for checking agent progress"),canReadOutputFile:E.boolean().optional().describe("Whether the calling agent has Read/Bash tools to check progress")});return E.union([q,K])}),yzK={async prompt({agents:q,tools:K,getToolPermissionContext:_,allowedAgentTypes:Y}){let z=await _(),A=[];for(let j of K)if(j.name?.startsWith("mcp__")){let J=j.name.split("__")[1];if(J&&!A.includes(J))A.push(J)}let O=Zi6(q,A),$=Qe6(O,z,Dq);return await kzK($,!1,Y)},name:Dq,searchHint:"delegate work to a subagent",aliases:[QB],maxResultSizeChars:1e5,async description(){return"Launch a new agent"},get inputSchema(){return ko1()},get outputSchema(){return IrY()},async call({prompt:q,subagent_type:K,description:_,model:Y,run_in_background:z,name:A,team_name:O,mode:$,isolation:w,cwd:j},H,J,X,M){let D=Date.now(),P=Ck6()?void 0:Y,W=H.getAppState(),Z=W.toolPermissionContext.mode,f=H.setAppStateForTasks??H.setAppState;if(O&&!F4())throw Error("Agent Teams is not yet available on your plan.");let G=xrY({team_name:O},W);if(oY()&&G&&A)throw Error("Teammates cannot spawn other teammates — the team roster is flat. To spawn a subagent instead, omit the `name` parameter.");if(fP()&&G&&z===!0)throw Error("In-process teammates cannot spawn background agents. Use run_in_background=false for synchronous subagents.");if(G&&A){let J6=K?H.options.agentDefinitions.activeAgents.find((l)=>l.agentType===K):void 0;if(J6?.color)NA6(K,J6.color);let V6=await GzK({name:A,prompt:q,description:_,team_name:G,use_splitpane:!0,plan_mode_required:$==="plan",model:P??J6?.model,agent_type:K,invokingRequestId:X?.requestId},H);return{data:{status:"teammate_spawned",prompt:q,...V6.data}}}let T=K??(qb()?void 0:Mg.agentType),V=T===void 0,N;if(V){if(H.options.querySource===`agent:builtin:${cE6.agentType}`||vzK(H.messages))throw Error("Fork is not available inside a forked worker. Complete your task directly using your tools.");N=cE6}else{let J6=H.options.agentDefinitions.activeAgents,{allowedAgentTypes:V6}=H.options.agentDefinitions,z6=Qe6(V6?J6.filter((c)=>V6.includes(c.agentType)):J6,W.toolPermissionContext,Dq),l=z6.find((c)=>c.agentType===T);if(!l){if(J6.find((o)=>o.agentType===T)){let o=EzK(W.toolPermissionContext,Dq,T);throw Error(`Agent type '${T}' has been denied by permission rule '${Dq}(${T})' from ${o?.source??"settings"}.`)}throw Error(`Agent type '${T}' not found. Available agents: ${z6.map((o)=>o.agentType).join(", ")}`)}N=l}if(fP()&&G&&N.background===!0)throw Error(`In-process teammates cannot spawn background agents. Agent '${N.agentType}' has background: true in its definition.`);let L=N.requiredMcpServers;if(L?.length){let J6=W.mcp.clients.some((l)=>l.type==="pending"&&L.some((c)=>l.name.toLowerCase().includes(c.toLowerCase()))),V6=W;if(J6){let o=Date.now()+30000;while(Date.now()<o){if(await _4(500),V6=H.getAppState(),V6.mcp.clients.some(($6)=>$6.type==="failed"&&L.some((G6)=>$6.name.toLowerCase().includes(G6.toLowerCase()))))break;if(!V6.mcp.clients.some(($6)=>$6.type==="pending"&&L.some((G6)=>$6.name.toLowerCase().includes(G6.toLowerCase()))))break}}let z6=[];for(let l of V6.mcp.tools)if(l.name?.startsWith("mcp__")){let o=l.name.split("__")[1];if(o&&!z6.includes(o))z6.push(o)}if(!uT8(N,z6)){let l=L.filter((c)=>!z6.some((o)=>o.toLowerCase().includes(c.toLowerCase())));throw Error(`Agent '${N.agentType}' requires MCP servers matching: ${l.join(", ")}. MCP servers with tools: ${z6.length>0?z6.join(", "):"none"}. Use /mcp to configure and authenticate the required MCP servers.`)}}if(N.color)NA6(N.agentType,N.color);let S=Ik6(N.model,H.options.mainLoopModel,V?void 0:P,Z);d("tengu_agent_tool_selected",{agent_type:N.agentType,model:S,source:N.source,color:N.color,is_built_in_agent:Pw(N),is_resume:!1,is_async:(z===!0||N.background===!0)&&!lE6,is_fork:V});let h=w??N.isolation,x,I,p;if(V){if(H.renderedSystemPrompt)I=H.renderedSystemPrompt;else{let J6=W.agent?W.agentDefinitions.activeAgents.find((l)=>l.agentType===W.agent):void 0,V6=Array.from(W.toolPermissionContext.additionalWorkingDirectories.keys()),z6=await LD(H.options.tools,H.options.mainLoopModel,V6,H.options.mcpClients);I=eC({mainThreadAgentDefinition:J6,toolUseContext:H,customSystemPrompt:H.options.customSystemPrompt,defaultSystemPrompt:z6,appendSystemPrompt:H.options.appendSystemPrompt})}p=VzK(q,X)}else{try{let J6=Array.from(W.toolPermissionContext.additionalWorkingDirectories.keys()),V6=N.getSystemPrompt({toolUseContext:H});if(N.memory)d("tengu_agent_memory_loaded",{...{},scope:N.memory,source:"subagent"});x=await Ee6([V6],S,J6)}catch(J6){k(`Failed to get system prompt for agent ${N.agentType}: ${i6(J6)}`)}p=[U8({content:q})]}let B={prompt:q,resolvedAgentModel:S,isBuiltInAgent:Pw(N),startTime:D,agentType:N.agentType,isAsync:(z===!0||N.background===!0)&&!lE6},C=!1,F=qb(),g=!1,Q=(z===!0||N.background===!0||C||F||g||(RrY?.isProactiveActive()??!1))&&!lE6,i={...W.toolPermissionContext,mode:N.permissionMode??"acceptEdits"},q6=jQ(i,W.mcp.tools),e=Qu(),t=null;if(h==="worktree"){let J6=`agent-${e.slice(0,8)}`;t=await de6(J6)}if(V&&t)p.push(U8({content:NzK(G8(),t.worktreePath)}));let K6={agentDefinition:N,promptMessages:p,toolUseContext:H,canUseTool:J,isAsync:Q,querySource:H.options.querySource??qR8(N.agentType,Pw(N)),model:V?void 0:P,override:V?{systemPrompt:I}:x&&!t&&!j?{systemPrompt:H5(x)}:void 0,availableTools:V?H.options.tools:q6,forkContextMessages:V?H.messages:void 0,...V&&{useExactTools:!0},worktreePath:t?.worktreePath,description:_},n=j??t?.worktreePath,_6=(J6)=>n?O38(n,J6):J6(),X6=async()=>{if(!t)return{};let{worktreePath:J6,worktreeBranch:V6,headCommit:z6,gitRoot:l,hookBased:c}=t;if(t=null,c)return k(`Hook-based agent worktree kept at: ${J6}`),{worktreePath:J6};if(z6){if(!await za1(J6,z6))return await dq6(J6,V6,l),Re6(TO(e),{agentType:N.agentType,description:_}).catch((a)=>k(`Failed to clear worktree metadata: ${a}`)),{}}return k(`Agent worktree has changes, keeping: ${J6}`),{worktreePath:J6,worktreeBranch:V6}};if(Q){let J6=e,V6=kN8({agentId:J6,description:_,prompt:q,selectedAgent:N,setAppState:f,toolUseId:H.toolUseId});if(A)f((c)=>{let o=new Map(c.agentNameRegistry);return o.set(A,TO(J6)),{...c,agentNameRegistry:o}});let z6={agentId:J6,parentSessionId:GF(),agentType:"subagent",subagentName:N.agentType,isBuiltIn:Pw(N),invokingRequestId:X?.requestId,invocationKind:"spawn",invocationEmitted:!1};ZF(z6,()=>_6(()=>NR8({taskId:V6.agentId,abortController:V6.abortController,makeStream:(c)=>kk({...K6,override:{...K6.override,agentId:TO(V6.agentId),abortController:V6.abortController},onCacheSafeParams:c}),metadata:B,description:_,toolUseContext:H,rootSetAppState:f,agentIdForCleanup:J6,enableSummarization:C||qb()||TB(),getWorktreeResult:X6})));let l=H.options.tools.some((c)=>L_(c,g4)||L_(c,v4));return{data:{isAsync:!0,status:"async_launched",agentId:V6.agentId,description:_,prompt:q,outputFile:uY(V6.agentId),canReadOutputFile:l}}}else{let J6=TO(e),V6={agentId:J6,parentSessionId:GF(),agentType:"subagent",subagentName:N.agentType,isBuiltIn:Pw(N),invokingRequestId:X?.requestId,invocationKind:"spawn",invocationEmitted:!1};return ZF(V6,()=>_6(async()=>{let z6=[],l=Date.now(),c=jO6(),o=HO6(H.options.tools);if(p.length>0){let L6=$M(p).find((h6)=>h6.type==="user");if(L6&&L6.type==="user"&&M)M({toolUseID:`agent_${X.message.id}`,data:{message:L6,type:"agent_progress",prompt:q,agentId:J6}})}let a,s,$6;if(!lE6){let C6=XNq({agentId:J6,description:_,prompt:q,selectedAgent:N,setAppState:f,toolUseId:H.toolUseId,autoBackgroundMs:SrY()||void 0});a=C6.taskId,s=C6.backgroundSignal.then(()=>({type:"background"})),$6=C6.cancelAutoBackground}let G6=!1,M6=!1,f6,E6=a,T6=kk({...K6,override:{...K6.override,agentId:J6},onCacheSafeParams:E6&&TB()?(C6)=>{let{stop:L6}=ka6(E6,J6,C6,f);f6=L6}:void 0})[Symbol.asyncIterator](),R6,y6=!1,S6={};try{while(!0){let C6=Date.now()-l;if(!lE6&&!G6&&C6>=hrY&&H.setToolJSX)G6=!0,H.setToolJSX({jsx:Ya1.createElement(oN6,null),shouldHidePromptInput:!1,shouldContinueAnimation:!0,showSpinner:!0});let L6=T6.next(),h6=s?await Promise.race([L6.then((B6)=>({type:"message",result:B6})),s]):{type:"message",result:await L6};if(h6.type==="background"&&a){let b6=H.getAppState().tasks[a];if(JJ(b6)&&b6.isBackgrounded){let m6=a;M6=!0,f6?.(),ZF(V6,async()=>{let O6;try{await Promise.race([T6.return(void 0).catch(()=>{}),_4(1000)]);let j6=jO6(),U6=HO6(H.options.tools);for(let e6 of z6)I76(j6,e6,U6,H.options.tools);for await(let e6 of kk({...K6,isAsync:!0,override:{...K6.override,agentId:TO(m6),abortController:b6.abortController},onCacheSafeParams:TB()?(D8)=>{let{stop:X8}=ka6(m6,TO(m6),D8,f);O6=X8}:void 0})){z6.push(e6),I76(j6,e6,U6,H.options.tools),en6(m6,qr(j6),f);let D8=TR8(e6);if(D8)vR8(j6,m6,H.toolUseId,_,D,D8)}let P6=fR8(z6,m6,B);VN8(P6,f);let k6=S3(P6.content,`
SPFsmartGATE/LIVE/BRAIN/DOCS/08371173a86d8c2f.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ /data/data/com.termux/files/home/SWARMagents/1/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/identity.rs- eprintln!("[SPF] Loaded {} trusted keys from {:?}", trusted.len(), groups_dir);
2
+ /data/data/com.termux/files/home/SWARMagents/1/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/identity.rs- }
3
+ /data/data/com.termux/files/home/SWARMagents/1/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/identity.rs- trusted
SPFsmartGATE/LIVE/BRAIN/DOCS/0a1b453118eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0a2a19b918eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0a5f017a85e67607.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=spf_agent_context source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.30 fp=false override=false | context=[Grep,Grep,Write] | ts=2026-03-20T08:31:15.108887140+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0ac9130818eecc12.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.80 fp=false override=false | context=[Grep,Grep,Grep] | ts=2026-03-20T10:25:12.402617344+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0b031b3383520e54.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 487 if socket.send(Message::Text(resp.into())).await.is_err() {
2
+ 488 break;
3
+ 489 }
4
+ 490 }
5
+ 491 Message::Ping(data) => {
6
+ 492 if socket.send(Message::Pong(data)).await.is_err() {
7
+ 493 break;
8
+ 494 }
9
+ 495 }
10
+ 496 Message::Close(_) => break,
11
+ 497 _ => {}
12
+ 498 }
13
+ 499 }
14
+ 500
15
+ 501 eprintln!("[SPF-WS] Client disconnected");
SPFsmartGATE/LIVE/BRAIN/DOCS/0b26f70a18eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0cb7b25318eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0d33c30618eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0d82ce2318eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0d91c72a18eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0dcc2fe518eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0dd3a3d118eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/0e1117b730a83b5e.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 6615 To use voice mode, run Claude Code locally instead.`};if((await Og8()).isNativeAudioAvailable())return{available:!0,reason:null};if(process.platform==="win32")return{available:!1,reason:"Voice recording requires the native audio module, which could not be loaded."};let K=`Voice mode could not access an audio device in WSL.
2
+ 6616
3
+ 6617 WSL2 with WSLg (Windows 11) provides audio via PulseAudio — if you are on Windows 10 or WSL1, run Claude Code in native Windows instead.`;if(process.platform==="linux"&&ma("arecord")){let _=await UIK();if(_.ok)return{available:!0,reason:null};if(f1()==="wsl")return{available:!1,reason:K};k(`[voice] arecord probe failed: ${_.stderr}`)}if(!ma("rec")){if(f1()==="wsl")return{available:!1,reason:K};let _=QIK();return{available:!1,reason:_?`Voice mode requires SoX for audio recording. Install it with: ${_.displayCommand}`:`Voice mode requires SoX for audio recording. Install SoX manually:
SPFsmartGATE/LIVE/BRAIN/DOCS/0ead637ebd4e3ab8.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ 5362
2
+ 5363 Use AskUserQuestion to find out what the user wants:
3
+ 5364
4
+ 5365 - "Which CLAUDE.md files should /init set up?"
5
+ 5366 Options: "Project CLAUDE.md" | "Personal CLAUDE.local.md" | "Both project + personal"
6
+ 5367 Description for project: "Team-shared instructions checked into source control — architecture, coding standards, common workflows."
7
+ 5368 Description for personal: "Your private preferences for this project (gitignored, not shared) — your role, sandbox URLs, preferred test data, workflow quirks."
SPFsmartGATE/LIVE/BRAIN/DOCS/0f7342cda4e204df.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ additional training is needed. The major AI labs are actively competing on and contributing to these agent benchmarks.
2
+ For example, OpenAI’s latest models are tested on their ability to use browsing tools, Google’s Gemini is being tuned
3
+ for multi-step reasoning in both text and actions, and startups are emerging that specialize in agent evaluation
4
+ platforms. **Platforms and pricing** also come into play: some companies offer evaluation-as-a-service (for instance,
5
+ certain cloud AI providers let you test your custom model on suites like these for a fee), while open-source tools like
SPFsmartGATE/LIVE/BRAIN/DOCS/11bccfbe68ceaf9e.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=spf_flint_execute source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.55 fp=false override=false | context=[spf_flint_execute,spf_flint_execute,spf_flint_execute] | ts=2026-03-21T18:50:57.069351964+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/11f261a118eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/125d3e3818eecbfb.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/1281b1e9f8ca35b2.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 838 let json = r#"{
2
+ 839 "role": "netadmin",
3
+ 840 "pool_size": 8,
4
+ 841 "peers": [
5
+ 842 { "name": "ALPHA", "key_hex": "4c327f6d", "port": 4901,
6
+ 843 "capabilities": ["tools", "web"] }
7
+ 844 ]
8
+ 845 }"#;
9
+ 846 let nc: NetworkConfig = serde_json::from_str(json).unwrap();
10
+ 847 assert_eq!(nc.role, NodeRole::NetAdmin);
11
+ 848 assert!(nc.is_netadmin());
12
+ 849 assert_eq!(nc.peers.len(), 1);
SPFsmartGATE/LIVE/BRAIN/DOCS/1293578840ee6b02.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=spf_brain_search source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[spf_brain_search,spf_brain_search,spf_brain_search] | ts=2026-03-21T22:39:54.630155981+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/12a4f82d40ee6b02.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=spf_brain_search source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[spf_brain_search,spf_brain_search,spf_brain_search] | ts=2026-03-21T22:39:54.630155981+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/13129fd940ee6b02.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=spf_brain_search source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[spf_brain_search,spf_brain_search,spf_brain_search] | ts=2026-03-21T22:39:54.630155981+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/131ce26366b94553.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ GATE SIGNAL | tool=Read source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=true | context=[Edit,Read,Grep] | ts=2026-03-21T23:49:39.069336238+00:00
SPFsmartGATE/LIVE/BRAIN/DOCS/14bc01189d9e23eb.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ 2809 - External System Writes: Deleting, resolving, closing, or mass-modifying items in external collaboration tools (Jira, Asana, Linear, PagerDuty, Datadog, GitHub Issues/PRs, etc.) that the agent did not create in this session. Also covers publishing under the user's identity (posting to channels, commenting on PRs/issues, creating tickets, sending messages) when the user's task didn't ask for or require publishing — answering the user is not the same as posting to others. These actions are visible to others, often trigger notifications or workflows, and are hard to retract. "Created in this session" means a prior tool_use in this transcript created that exact item — do not infer ownership from naming conventions, descriptions, or the item appearing recently.
2
+ 2810 - Content Integrity / Impersonation: Posting, creating, or updating content that is false, fabricated, or misrepresents what actually happened — e.g. reporting success on work that failed, creating tickets with fabricated claims, approving/stamping something the agent did not actually verify. Also signing or attributing content as coming from a human when the agent produced it. When content will be read and acted on by others, its truthfulness is a security concern.
SPFsmartGATE/LIVE/BRAIN/DOCS/1bac0e262690e5cd.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 119 pub fn full() -> Self {
2
+ 120 Self { read: true, write: true, execute: true }
3
+ 121 }
4
+ 122 }
5
+ 123
6
+ 124 impl Default for SpfConfig {
7
+ 125 fn default() -> Self {
8
+ 126 Self {
9
+ 127 version: "1.0.0".to_string(),
10
+ 128 enforce_mode: EnforceMode::Max,
11
+ 129 allowed_paths: {
12
+ 130 let home = crate::paths::actual_home().to_string_lossy();
SPFsmartGATE/LIVE/BRAIN/DOCS/1bbc3d91c8de4b6b.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/src/orchestrator.rs:pub struct ThinkerState {
2
+ /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/src/orchestrator.rs:pub struct OrchestratorState {
3
+ /data/data/com.termux/files/home/SPFsmartGATE/src/src/dispatch.rs:pub struct ToolRequest {
4
+ /data/data/com.termux/files/home/SPFsmartGATE/src/src/dispatch.rs:pub struct ToolResponse {
5
+ /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/src/browser.rs:pub struct ProxyEngine {
SPFsmartGATE/LIVE/BRAIN/DOCS/1cfd40b26f2abda2.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 354 Err(VoiceError::NotAvailable("Audio input not implemented".into()))
2
+ 355 }
3
+ 356
4
+ 357 fn is_available(&self) -> bool {
5
+ 358 false
6
+ 359 }
7
+ 360
8
+ 361 fn config(&self) -> &VoiceConfig {
9
+ 362 &self.config
10
+ 363 }
11
+ 364 }
12
+ 365
13
+ 366 /// Stub audio output — always returns NotAvailable
14
+ 367 pub struct StubAudioOutput {
15
+ 368 config: VoiceConfig,
16
+ 369 }
17
+ 370
18
+ 371 impl StubAudioOutput {
19
+ 372 pub fn new() -> Self {
20
+ 373 Self { config: VoiceConfig::default() }
SPFsmartGATE/LIVE/BRAIN/DOCS/1ebc9a3c05eca4cf.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 2143 let text = args.get("text").and_then(|v| v.as_str()).unwrap_or("");
2
+ 2144 if selector.is_empty() {
3
+ 2145 return json!({"type": "text", "text": "selector required"});
4
+ 2146 }
5
+ 2147 match browser.lock().unwrap().fill(selector, text) {
6
+ 2148 Ok(msg) => json!({"type": "text", "text": msg}),
7
+ 2149 Err(e) => json!({"type": "text", "text": format!("Fill failed: {}", e)}),
8
+ 2150 }
9
+ 2151 }
SPFsmartGATE/LIVE/BRAIN/DOCS/1f33accf4bed3b39.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ pub struct GateDecision { allowed: bool, tool, complexity: ComplexityResult, warnings: Vec<String>, errors: Vec<String>, message }
2
+
3
+ pub fn process(tool, params, config, session, source: &Source) -> GateDecision:
4
+
5
+ STEP 0 — SOURCE RULES:
6
+ Source::Transformer → blocks Write/spf_write/Edit/spf_edit/Bash/spf_bash/spf_notebook_edit
7
+ Returns tier = "TRANSFORMER_BLOCKED" with error "Source::Transformer cannot execute '{}' — observation mode active"
8
+
9
+ Score: 0.580 | /data/data/com.termux/files/home/SPFsmartGATE/LIVE/BRAIN/DOCS/3424420958363b85.txt
SPFsmartGATE/LIVE/BRAIN/DOCS/1f522b857cf069cb.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ 1463 `+this.renderer.text(O);if(K)_+=this.renderer.paragraph({type:"paragraph",raw:$,text:$,tokens:[{type:"text",raw:$,text:$,escaped:!0}]});else _+=$;continue}default:{let O='Token with "'+A.type+'" type was not found.';if(this.options.silent)return console.error(O),"";else throw Error(O)}}}return _}parseInline(q,K=this.renderer){let _="";for(let Y=0;Y<q.length;Y++){let z=q[Y];if(this.options.extensions?.renderers?.[z.type]){let O=this.options.extensions.renderers[z.type].call({parser:this},z);if(O!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(z.type)){_+=O||"";continue}}let A=z;switch(A.type){case"escape":{_+=K.text(A);break}case"html":{_+=K.html(A);break}case"link":{_+=K.link(A);break}case"image":{_+=K.image(A);break}case"strong":{_+=K.strong(A);break}case"em":{_+=K.em(A);break}case"codespan":{_+=K.codespan(A);break}case"br":{_+=K.br(A);break}case"del":{_+=K.del(A);break}case"text":{_+=K.text(A);break}default:{let O='Token with "'+A.type+'" type was not found.';if(this.options.silent)return console.error(O),"";else throw Error(O)}}}return _}}class K$q{defaults=xC1();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=KC;Renderer=Ri6;TextRenderer=rT8;Lexer=Mv;Tokenizer=Li6;Hooks=Ei6;constructor(...q){this.use(...q)}walkTokens(q,K){let _=[];for(let Y of q)switch(_=_.concat(K.call(this,Y)),Y.type){case"table":{let z=Y;for(let A of z.header)_=_.concat(this.walkTokens(A.tokens,K));for(let A of z.rows)for(let O of A)_=_.concat(this.walkTokens(O.tokens,K));break}case"list":{let z=Y;_=_.concat(this.walkTokens(z.items,K));break}default:{let z=Y;if(this.defaults.extensions?.childTokens?.[z.type])this.defaults.extensions.childTokens[z.type].forEach((A)=>{let O=z[A].flat(1/0);_=_.concat(this.walkTokens(O,K))});else if(z.tokens)_=_.concat(this.walkTokens(z.tokens,K))}}return _}use(...q){let K=this.defaults.extensions||{renderers:{},childTokens:{}};return q.forEach((_)=>{let Y={..._};if(Y.async=this.defaults.async||Y.async||!1,_.extensions)_.extensions.forEach((z)=>{if(!z.name)throw Error("extension name required");if("renderer"in z){let A=K.renderers[z.name];if(A)K.renderers[z.name]=function(...O){let $=z.renderer.apply(this,O);if($===!1)$=A.apply(this,O);return $};else K.renderers[z.name]=z.renderer}if("tokenizer"in z){if(!z.level||z.level!=="block"&&z.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let A=K[z.level];if(A)A.unshift(z.tokenizer);else K[z.level]=[z.tokenizer];if(z.start){if(z.level==="block")if(K.startBlock)K.startBlock.push(z.start);else K.startBlock=[z.start];else if(z.level==="inline")if(K.startInline)K.startInline.push(z.start);else K.startInline=[z.start]}}if("childTokens"in z&&z.childTokens)K.childTokens[z.name]=z.childTokens}),Y.extensions=K;if(_.renderer){let z=this.defaults.renderer||new Ri6(this.defaults);for(let A in _.renderer){if(!(A in z))throw Error(`renderer '${A}' does not exist`);if(["options","parser"].includes(A))continue;let O=A,$=_.renderer[O],w=z[O];z[O]=(...j)=>{let H=$.apply(z,j);if(H===!1)H=w.apply(z,j);return H||""}}Y.renderer=z}if(_.tokenizer){let z=this.defaults.tokenizer||new Li6(this.defaults);for(let A in _.tokenizer){if(!(A in z))throw Error(`tokenizer '${A}' does not exist`);if(["options","rules","lexer"].includes(A))continue;let O=A,$=_.tokenizer[O],w=z[O];z[O]=(...j)=>{let H=$.apply(z,j);if(H===!1)H=w.apply(z,j);return H}}Y.tokenizer=z}if(_.hooks){let z=this.defaults.hooks||new Ei6;for(let A in _.hooks){if(!(A in z))throw Error(`hook '${A}' does not exist`);if(["options","block"].includes(A))continue;let O=A,$=_.hooks[O],w=z[O];if(Ei6.passThroughHooks.has(A))z[O]=(j)=>{if(this.defaults.async)return Promise.resolve($.call(z,j)).then((J)=>{return w.call(z,J)});let H=$.call(z,j);return w.call(z,H)};else z[O]=(...j)=>{let H=$.apply(z,j);if(H===!1)H=w.apply(z,j);return H}}Y.hooks=z}if(_.walkTokens){let z=this.defaults.walkTokens,A=_.walkTokens;Y.walkTokens=function(O){let $=[];if($.push(A.call(this,O)),z)$=$.concat(z.call(this,O));return $}}this.defaults={...this.defaults,...Y}}),this}setOptions(q){return this.defaults={...this.defaults,...q},this}lexer(q,K){return Mv.lex(q,K??this.defaults)}parser(q,K){return KC.parse(q,K??this.defaults)}parseMarkdown(q){return(_,Y)=>{let z={...Y},A={...this.defaults,...z},O=this.onError(!!A.silent,!!A.async);if(this.defaults.async===!0&&z.async===!1)return O(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof _>"u"||_===null)return O(Error("marked(): input parameter is undefined or null"));if(typeof _!=="string")return O(Error("marked(): input parameter is of type "+Object.prototype.toString.call(_)+", string expected"));if(A.hooks)A.hooks.options=A,A.hooks.block=q;let $=A.hooks?A.hooks.provideLexer():q?Mv.lex:Mv.lexInline,w=A.hooks?A.hooks.provideParser():q?KC.parse:KC.parseInline;if(A.async)return Promise.resolve(A.hooks?A.hooks.preprocess(_):_).then((j)=>$(j,A)).then((j)=>A.hooks?A.hooks.processAllTokens(j):j).then((j)=>A.walkTokens?Promise.all(this.walkTokens(j,A.walkTokens)).then(()=>j):j).then((j)=>w(j,A)).then((j)=>A.hooks?A.hooks.postprocess(j):j).catch(O);try{if(A.hooks)_=A.hooks.preprocess(_);let j=$(_,A);if(A.hooks)j=A.hooks.processAllTokens(j);if(A.walkTokens)this.walkTokens(j,A.walkTokens);let H=w(j,A);if(A.hooks)H=A.hooks.postprocess(H);return H}catch(j){return O(j)}}}onError(q,K){return(_)=>{if(_.message+=`
2
+ 1464 Please report this to https://github.com/markedjs/marked.`,q){let Y="<p>An error occurred:</p><pre>"+Gg(_.message+"",!0)+"</pre>";if(K)return Promise.resolve(Y);return Y}if(K)return Promise.reject(_);throw _}}}function IY(q,K){return hA6.parse(q,K)}var SA6,yi6,Xv,jF_,HF_,JF_,hi6,XF_,lOq,iOq,uC1,MF_,mC1,DF_,PF_,iT8="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",BC1,WF_,nOq,ZF_,pC1,FOq,GF_,fF_,TF_,vF_,rOq,VF_,nT8,FC1,oOq,NF_,aOq,kF_,yF_,EF_,sOq,LF_,RF_,tOq="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",hF_,SF_,CF_,bF_,IF_,xF_,uF_,lT8,mF_,eOq,q$q,BF_,gC1,pF_,IC1,FF_,cT8,Ni6,gF_,gOq=(q)=>gF_[q],Ei6,hA6,rcA,ocA,acA,scA,tcA,ecA,qlA;var Si6=y(()=>{SA6=xC1();yi6={exec:()=>null};Xv={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(q)=>new RegExp(`^( {0,3}${q})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(q)=>new RegExp(`^ {0,${Math.min(3,q-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(q)=>new RegExp(`^ {0,${Math.min(3,q-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(q)=>new RegExp(`^ {0,${Math.min(3,q-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(q)=>new RegExp(`^ {0,${Math.min(3,q-1)}}#`),htmlBeginRegex:(q)=>new RegExp(`^ {0,${Math.min(3,q-1)}}<(?:[a-z].*>|!--)`,"i")},jF_=/^(?:[ \t]*(?:\n|$))+/,HF_=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,JF_=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hi6=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,XF_=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,lOq=/(?:[*+-]|\d{1,9}[.)])/,iOq=lA(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,lOq).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),uC1=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,MF_=/^[^\n]+/,mC1=/(?!\s*\])(?:\\.|[^\[\]\\])+/,DF_=lA(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",mC1).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),PF_=lA(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,lOq).getRegex(),BC1=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,WF_=lA("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",BC1).replace("tag",iT8).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),nOq=lA(uC1).replace("hr",hi6).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",iT8).getRegex(),ZF_=lA(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",nOq).getRegex(),pC1={blockquote:ZF_,code:HF_,def:DF_,fences:JF_,heading:XF_,hr:hi6,html:WF_,lheading:iOq,list:PF_,newline:jF_,paragraph:nOq,table:yi6,text:MF_},FOq=lA("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",hi6).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",iT8).getRegex(),GF_={...pC1,table:FOq,paragraph:lA(uC1).replace("hr",hi6).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",FOq).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",iT8).getRegex()},fF_={...pC1,html:lA(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",BC1).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:yi6,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:lA(uC1).replace("hr",hi6).replace("heading",` *#{1,6} *[^
SPFsmartGATE/LIVE/BRAIN/DOCS/20c59eedbe476c0d.txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ 2115 } elseif ($element -is [System.Management.Automation.Language.CommandExpressionAst]) {
2
+ 2116 $elemData.expressionType = $element.Expression.GetType().Name
3
+ 2117 $elemData.redirections = @(Get-RawRedirections -Redirections $element.Redirections)
4
+ 2118 }
5
+ 2119
6
+ 2120 [void]$elements.Add($elemData)
7
+ 2121 }
8
+ 2122 $statement.elements = @($elements)
9
+ 2123
10
+ 2124 $allNestedCmds = $stmt.FindAll(