Update npm packages to latest versions

Fix JavaScript sourcemap paths to show full file locations
Implement --build-debug flag and complete Build UI streaming
Add xterm.js terminal UI and fix asset path routing
Add RSpade Build UI service with WebSocket support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-31 08:12:33 +00:00
parent 393479280f
commit d7d341f752
15084 changed files with 980818 additions and 138 deletions

2
node_modules/@jqhtml/core/dist/component-registry.d.ts generated vendored Executable file → Normal file
View File

@@ -10,6 +10,7 @@ export interface TemplateDefinition {
name: string;
tag: string;
defaultAttributes?: Record<string, any>;
extends?: string;
render: TemplateFunction;
}
export type ComponentConstructor = new (args: Record<string, any>, element?: any) => Jqhtml_Component;
@@ -20,6 +21,7 @@ export declare function register_component(name: string, component_class: Compon
export declare function register_component(component_class: ComponentConstructor): void;
/**
* Get a component class by name
* If no class found, walks the template extends chain to find parent class
*/
export declare function get_component_class(name: string): ComponentConstructor | undefined;
/**

2
node_modules/@jqhtml/core/dist/component-registry.d.ts.map generated vendored Executable file → Normal file
View File

@@ -1 +1 @@
{"version":3,"file":"component-registry.d.ts","sourceRoot":"","sources":["../src/component-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,MAAM,MAAM,gBAAgB,GAAG,CAC7B,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzB,OAAO,EAAE,GAAG,KACT,CAAC,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC;AAG/B,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACxC,MAAM,EAAE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EAAE,oBAAoB,GAAG,kBAAkB,CAwB/F;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,GAAG,EACb,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAC7B,gBAAgB,CAGlB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAE9C;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAEnD;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,CAAC,CAsB/F"}

0
node_modules/@jqhtml/core/dist/component.d.ts generated vendored Executable file → Normal file
View File

2
node_modules/@jqhtml/core/dist/component.d.ts.map generated vendored Executable file → Normal file
View File

@@ -1 +1 @@
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAUH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,CAAC,EAAE;YACb,GAAG,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;YACjF,UAAU,EAAE,MAAM,IAAI,CAAC;SACxB,CAAC;KACH;CACF;AAED,qBAAa,gBAAgB;IAE3B,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAGtB,CAAC,EAAE,GAAG,CAAC;IACP,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAC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AG,OAAO;IAK3C;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG;IAgB1B;;;;;;;;;;;;OAYG;IACH,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAgB7C;;;OAGG;IACH,YAAY,IAAI,gBAAgB,GAAG,IAAI;IAIvC;;OAEG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,EAAE;IAa1C;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAoBlD;;OAEG;IACH,MAAM,CAAC,mBAAmB,IAAI,MAAM,EAAE;IAwCtC,OAAO,CAAC,aAAa;IAIrB;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAkB7B,OAAO,CAAC,kBAAkB;IAyB1B,OAAO,CAAC,yBAAyB;IAsFjC,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,gBAAgB;IAcxB;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,UAAU;CASnB"}

0
node_modules/@jqhtml/core/dist/debug-entry.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/debug-entry.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/debug-overlay.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/debug-overlay.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/debug.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/debug.d.ts.map generated vendored Executable file → Normal file
View File

45
node_modules/@jqhtml/core/dist/index.cjs generated vendored Executable file → Normal file
View File

@@ -236,9 +236,41 @@ function register_component(nameOrClass, component_class, template) {
}
/**
* Get a component class by name
* If no class found, walks the template extends chain to find parent class
*/
function get_component_class(name) {
return component_classes.get(name);
// First check if class directly registered
const directClass = component_classes.get(name);
if (directClass) {
return directClass;
}
// No direct class found - walk template extends chain to find parent with class
const template = component_templates.get(name);
if (template && template.extends) {
// Recursively check parent templates
const visited = new Set([name]); // Prevent infinite loops
let currentTemplateName = template.extends;
while (currentTemplateName && !visited.has(currentTemplateName)) {
visited.add(currentTemplateName);
// Check if this parent has a registered class
const parentClass = component_classes.get(currentTemplateName);
if (parentClass) {
if (window.jqhtml?.debug?.enabled) {
console.log(`[JQHTML] Component '${name}' using class from parent '${currentTemplateName}' via extends chain`);
}
return parentClass;
}
// Continue walking up the chain
const parentTemplate = component_templates.get(currentTemplateName);
if (parentTemplate && parentTemplate.extends) {
currentTemplateName = parentTemplate.extends;
}
else {
break;
}
}
}
return undefined;
}
/**
* Register a template - name is extracted from template.name property
@@ -1712,7 +1744,14 @@ class Jqhtml_Component {
*/
id(local_id) {
const element = this.$id(local_id);
return element.data('_component') || null;
const component = element.data('_component');
// If no component found but element exists, warn developer
if (!component && element.length > 0) {
console.warn(`Component ${this.constructor.name} tried to call .id('${local_id}') - ` +
`${local_id} exists, however, it is not a component or $redrawable. ` +
`Did you forget to add $redrawable to the tag?`);
}
return component || null;
}
/**
* Get the component that instantiated this component (rendered it in their template)
@@ -2928,7 +2967,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.2.171';
const version = '2.2.174';
// Default export with all functionality
const jqhtml = {
// Core

2
node_modules/@jqhtml/core/dist/index.cjs.map generated vendored Executable file → Normal file

File diff suppressed because one or more lines are too long

0
node_modules/@jqhtml/core/dist/index.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/index.d.ts.map generated vendored Executable file → Normal file
View File

45
node_modules/@jqhtml/core/dist/index.js generated vendored Executable file → Normal file
View File

@@ -232,9 +232,41 @@ function register_component(nameOrClass, component_class, template) {
}
/**
* Get a component class by name
* If no class found, walks the template extends chain to find parent class
*/
function get_component_class(name) {
return component_classes.get(name);
// First check if class directly registered
const directClass = component_classes.get(name);
if (directClass) {
return directClass;
}
// No direct class found - walk template extends chain to find parent with class
const template = component_templates.get(name);
if (template && template.extends) {
// Recursively check parent templates
const visited = new Set([name]); // Prevent infinite loops
let currentTemplateName = template.extends;
while (currentTemplateName && !visited.has(currentTemplateName)) {
visited.add(currentTemplateName);
// Check if this parent has a registered class
const parentClass = component_classes.get(currentTemplateName);
if (parentClass) {
if (window.jqhtml?.debug?.enabled) {
console.log(`[JQHTML] Component '${name}' using class from parent '${currentTemplateName}' via extends chain`);
}
return parentClass;
}
// Continue walking up the chain
const parentTemplate = component_templates.get(currentTemplateName);
if (parentTemplate && parentTemplate.extends) {
currentTemplateName = parentTemplate.extends;
}
else {
break;
}
}
}
return undefined;
}
/**
* Register a template - name is extracted from template.name property
@@ -1708,7 +1740,14 @@ class Jqhtml_Component {
*/
id(local_id) {
const element = this.$id(local_id);
return element.data('_component') || null;
const component = element.data('_component');
// If no component found but element exists, warn developer
if (!component && element.length > 0) {
console.warn(`Component ${this.constructor.name} tried to call .id('${local_id}') - ` +
`${local_id} exists, however, it is not a component or $redrawable. ` +
`Did you forget to add $redrawable to the tag?`);
}
return component || null;
}
/**
* Get the component that instantiated this component (rendered it in their template)
@@ -2924,7 +2963,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.2.171';
const version = '2.2.174';
// Default export with all functionality
const jqhtml = {
// Core

2
node_modules/@jqhtml/core/dist/index.js.map generated vendored Executable file → Normal file

File diff suppressed because one or more lines are too long

0
node_modules/@jqhtml/core/dist/instruction-processor.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/instruction-processor.d.ts.map generated vendored Executable file → Normal file
View File

47
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js generated vendored Executable file → Normal file
View File

@@ -1,5 +1,5 @@
/**
* JQHTML Core v2.2.171
* JQHTML Core v2.2.174
* (c) 2025 JQHTML Team
* Released under the MIT License
*/
@@ -237,9 +237,41 @@ function register_component(nameOrClass, component_class, template) {
}
/**
* Get a component class by name
* If no class found, walks the template extends chain to find parent class
*/
function get_component_class(name) {
return component_classes.get(name);
// First check if class directly registered
const directClass = component_classes.get(name);
if (directClass) {
return directClass;
}
// No direct class found - walk template extends chain to find parent with class
const template = component_templates.get(name);
if (template && template.extends) {
// Recursively check parent templates
const visited = new Set([name]); // Prevent infinite loops
let currentTemplateName = template.extends;
while (currentTemplateName && !visited.has(currentTemplateName)) {
visited.add(currentTemplateName);
// Check if this parent has a registered class
const parentClass = component_classes.get(currentTemplateName);
if (parentClass) {
if (window.jqhtml?.debug?.enabled) {
console.log(`[JQHTML] Component '${name}' using class from parent '${currentTemplateName}' via extends chain`);
}
return parentClass;
}
// Continue walking up the chain
const parentTemplate = component_templates.get(currentTemplateName);
if (parentTemplate && parentTemplate.extends) {
currentTemplateName = parentTemplate.extends;
}
else {
break;
}
}
}
return undefined;
}
/**
* Register a template - name is extracted from template.name property
@@ -1713,7 +1745,14 @@ class Jqhtml_Component {
*/
id(local_id) {
const element = this.$id(local_id);
return element.data('_component') || null;
const component = element.data('_component');
// If no component found but element exists, warn developer
if (!component && element.length > 0) {
console.warn(`Component ${this.constructor.name} tried to call .id('${local_id}') - ` +
`${local_id} exists, however, it is not a component or $redrawable. ` +
`Did you forget to add $redrawable to the tag?`);
}
return component || null;
}
/**
* Get the component that instantiated this component (rendered it in their template)
@@ -2929,7 +2968,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.2.171';
const version = '2.2.174';
// Default export with all functionality
const jqhtml = {
// Core

2
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js.map generated vendored Executable file → Normal file

File diff suppressed because one or more lines are too long

0
node_modules/@jqhtml/core/dist/jqhtml-debug.esm.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/jqhtml-debug.esm.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/jquery-plugin.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/jquery-plugin.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/lifecycle-manager.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/lifecycle-manager.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/template-renderer.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/template-renderer.d.ts.map generated vendored Executable file → Normal file
View File

2
node_modules/@jqhtml/core/package.json generated vendored Executable file → Normal file
View File

@@ -1,6 +1,6 @@
{
"name": "@jqhtml/core",
"version": "2.2.171",
"version": "2.2.174",
"description": "Core runtime library for JQHTML",
"type": "module",
"main": "./dist/index.js",