@@ -91,7 +91,7 @@ <h2>API Access Credentials</h2>
9191 < div id ="compute-status-bars "> </ div >
9292 < footer > WebXOS Vial MCP Controller | Testing Mode (BETA) | 2025 | v2.7 WARNING: $webxos token is still in development phase under MIT open source license. @WEBXOS will claim no fault for loss of tokens while using our software. For more info: webxos.netlify.app & github.com/webxos/webxos</ footer >
9393 < input type ="file " id ="file-input " accept =".md,.json ">
94- < script src ="/vial2/static/js/mcp-client.js "> </ script >
94+ < script src =". /vial2/static/js/mcp-client.js "> </ script >
9595 < script >
9696 // Global state
9797 let logQueue = [ '<p>Vial MCP Controller initialized. Use /help for API commands.</p>' , '<p class="balance">$WEBXOS Balance: 0.0000 | Reputation: 0</p>' ] ;
@@ -295,7 +295,7 @@ <h2>API Access Credentials</h2>
295295 async function authenticate ( ) {
296296 try {
297297 isOffline = false ;
298- window . location . href = `https://api.stack-auth.com/api/v1/oauth/authorize?client_id=${ encodeURIComponent ( 'your_stack_auth_client_id' ) } &redirect_uri=${ encodeURIComponent ( 'https://webxos.netlify.app /vial2.html' ) } &response_type=code&scope=openid+profile+email` ;
298+ window . location . href = `https://api.stack-auth.com/api/v1/oauth/authorize?client_id=${ encodeURIComponent ( 'your_stack_auth_client_id' ) } &redirect_uri=${ encodeURIComponent ( 'https://webxos.github.io /vial2.html' ) } &response_type=code&scope=openid+profile+email` ;
299299 } catch ( e ) {
300300 showErrorNotification ( `Authentication redirect failed: ${ e . message } [vial2.html:150] [ID:auth_redirect_error]` ) ;
301301 logEvent ( 'error' , `Authentication redirect failed: ${ e . message } [vial2.html:150] [ID:auth_redirect_error]` , { error : e . message } ) ;
@@ -311,7 +311,7 @@ <h2>API Access Credentials</h2>
311311 const response = await fetch ( '/vial2/mcp/api/endpoints' , {
312312 method : 'POST' ,
313313 headers : { 'Content-Type' : 'application/json' } ,
314- body : JSON . stringify ( { method : 'authenticate' , code, redirect_uri : 'https://webxos.netlify.app /vial2.html' } )
314+ body : JSON . stringify ( { method : 'authenticate' , code, redirect_uri : 'https://webxos.github.io /vial2.html' } )
315315 } ) ;
316316 const result = await response . json ( ) ;
317317 if ( result . error ) {
@@ -637,7 +637,7 @@ <h2>API Access Credentials</h2>
637637 try {
638638 const data = {
639639 markdown: ` # WebXOS Vial and Wallet Export \n\n## Agentic Network \n- Network ID : ${agenticNetworkId || 'none' } \n- Session Start : ${new Date ( ) . toISOString ( ) } \n- Session Duration : 0.00 seconds \n- Reputation : ${isOffline ? 'N / A ( Offline ) ' : reputation } \n\n## Wallet \n- Address : ${wallet . address || 'none' } \n- Hash : ${wallet . hash || 'none' } \n\n## API Credentials \n- Key : ${apiCredentials . key || 'none' } \n- Secret : ${apiCredentials . secret || 'none' } \n\n## Blockchain \n- Blocks : ${blockchain . length } \n- Last Hash : ${blockchain . length ? blockchain [ blockchain . length - 1 ] . hash : 'none' } \n\n## Vials \n${vials . map ( vial => `
640- # Vial Agent: ${ vial . id } \n- Status: ${ vial . status } \n- Language: ${ vial . isPython ? 'Python' : 'JavaScript' } \n- Code Length: ${ vial . codeLength } bytes\n- $WEBXOS Hash: ${ vial . webxosHash } \n- Wallet Address: ${ vial . wallet . address || 'none' } \n- Wallet Hash: ${ vial . wallet . hash || 'none' } \n- Tasks: ${ vial . tasks . join ( ', ' ) || 'none' } \n- Quantum State: ${ JSON . stringify ( vial . quantumState || { } , null , 2 ) . replace ( / \n / g, '\n ' ) } \n- Training Data: ${ JSON . stringify ( vial . trainingData , null , 2 ) . replace ( / \n / g, '\n ' ) } \n- Config: ${ JSON . stringify ( vial . config , null , 2 ) . replace ( / \n / g, '\n ' ) } \n\n\`\`\`python\n${ vial . code } \n\`\`\`\n` ) . join ( '---\n\n' ) } \n## Compute \n- State : ${computes [ 0 ] . state } \n- Readiness : ${computes [ 0 ] . readiness } \n- Spec : ${JSON . stringify ( computes [ 0 ] . spec || { } , null , 2 ) . replace ( / \n / g, '\n ' ) } \n\n## Instructions \n- ** Reuse ** : Import this . md file via the "Import" button to resume training . \n- ** Extend ** : Modify agent code externally , then reimport . \n- ** Share ** : Send this . md file to others to continue training with the same wallet . \n- ** API ** : Use API credentials to access agents at webxos . netlify . app / vial2 / mcp / api / agents . \n- ** Cash Out ** : $WEBXOS balance and reputation are tied to the wallet address and hash for secure verification ( online mode only ) . \n\nGenerated by Vial MCP Controller `
640+ # Vial Agent: ${ vial . id } \n- Status: ${ vial . status } \n- Language: ${ vial . isPython ? 'Python' : 'JavaScript' } \n- Code Length: ${ vial . codeLength } bytes\n- $WEBXOS Hash: ${ vial . webxosHash } \n- Wallet Address: ${ vial . wallet . address || 'none' } \n- Wallet Hash: ${ vial . wallet . hash || 'none' } \n- Tasks: ${ vial . tasks . join ( ', ' ) || 'none' } \n- Quantum State: ${ JSON . stringify ( vial . quantumState || { } , null , 2 ) . replace ( / \n / g, '\n ' ) } \n- Training Data: ${ JSON . stringify ( vial . trainingData , null , 2 ) . replace ( / \n / g, '\n ' ) } \n- Config: ${ JSON . stringify ( vial . config , null , 2 ) . replace ( / \n / g, '\n ' ) } \n\n\`\`\`python\n${ vial . code } \n\`\`\`\n` ) . join ( '---\n\n' ) } \n## Compute \n- State : ${computes [ 0 ] . state } \n- Readiness : ${computes [ 0 ] . readiness } \n- Spec : ${JSON . stringify ( computes [ 0 ] . spec || { } , null , 2 ) . replace ( / \n / g, '\n ' ) } \n\n## Instructions \n- ** Reuse ** : Import this . md file via the "Import" button to resume training . \n- ** Extend ** : Modify agent code externally , then reimport . \n- ** Share ** : Send this . md file to others to continue training with the same wallet . \n- ** API ** : Use API credentials to access agents at webxos . github . io / vial2 / mcp / api / agents . \n- ** Cash Out ** : $WEBXOS balance and reputation are tied to the wallet address and hash for secure verification ( online mode only ) . \n\nGenerated by Vial MCP Controller `
641641 };
642642 const blob = new Blob([data.markdown], { type: 'text/markdown' });
643643 const url = URL.createObjectURL(blob);
@@ -761,7 +761,7 @@ <h2>API Access Credentials</h2>
761761 apiCredentials = { key : result . api_key , secret : result . api_password } ;
762762 const apiInput = document . getElementById ( 'api-input' ) ;
763763 if ( apiInput ) {
764- apiInput . value = `API Key: ${ apiCredentials . key } \nAPI Secret: ${ apiCredentials . secret } \n\nUse these credentials to access agents at webxos.netlify.app /vial2/mcp/api/agents` ;
764+ apiInput . value = `API Key: ${ apiCredentials . key } \nAPI Secret: ${ apiCredentials . secret } \n\nUse these credentials to access agents at webxos.github.io /vial2/mcp/api/agents` ;
765765 }
766766 const blockHash = await sha256 ( JSON . stringify ( apiCredentials ) ) ;
767767 blockchain . push ( { type : 'api_credentials' , data : apiCredentials , hash : blockHash } ) ;
@@ -789,7 +789,7 @@ <h2>API Access Credentials</h2>
789789 apiPopup . classList . add ( 'visible' ) ;
790790 const apiInput = document . getElementById ( 'api-input' ) ;
791791 if ( apiInput && apiCredentials . key ) {
792- apiInput . value = `API Key: ${ apiCredentials . key } \nAPI Secret: ${ apiCredentials . secret } \n\nUse these credentials to access agents at webxos.netlify.app /vial2/mcp/api/agents` ;
792+ apiInput . value = `API Key: ${ apiCredentials . key } \nAPI Secret: ${ apiCredentials . secret } \n\nUse these credentials to access agents at webxos.github.io /vial2/mcp/api/agents` ;
793793 }
794794 }
795795 }
@@ -808,7 +808,7 @@ <h2>API Access Credentials</h2>
808808 blockchain . push ( { type : 'command' , data : { command : sanitizedCommand } , hash : blockHash } ) ;
809809
810810 if ( cmd === '/help' ) {
811- logEvent ( 'command' , 'Vial MCP Commands: /prompt <vial> <text> (e.g., /prompt vial1 train dataset), /task <vial> <task> (e.g., /task vial2 optimize model), /config <vial> <key> <value> (e.g., /config vial1 learning_rate 0.01), /status, /git <command> (e.g., /git status), /configure, /refresh_configuration, /terminate_fast, /terminate_immediate. Use buttons for Authenticate, Void, Troubleshoot, Quantum Link, Export, Import, API Access. See webxos.netlify.app [vial2.html:390] [ID:help_command]' , { blockHash } ) ;
811+ logEvent ( 'command' , 'Vial MCP Commands: /prompt <vial> <text> (e.g., /prompt vial1 train dataset), /task <vial> <task> (e.g., /task vial2 optimize model), /config <vial> <key> <value> (e.g., /config vial1 learning_rate 0.01), /status, /git <command> (e.g., /git status), /configure, /refresh_configuration, /terminate_fast, /terminate_immediate. Use buttons for Authenticate, Void, Troubleshoot, Quantum Link, Export, Import, API Access. See webxos.github.io [vial2.html:390] [ID:help_command]' , { blockHash } ) ;
812812 return ;
813813 }
814814
0 commit comments