Initial commit

moved from private version control
This commit is contained in:
2025-10-19 21:12:41 +11:00
parent 5e84773bbe
commit e64f3e881e
187 changed files with 25372 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import { createNodeModule } from "../../nodeTypes.js";
/**
* Queries system status values exposed through stat().
*/
export const statNode = createNodeModule(
{
id: "system_stat",
title: "System Status",
category: "System",
description: "Fetch a system status value using the stat(index) helper.",
searchTags: ["stat", "status", "system", "metrics"],
inputs: [
{
id: "index",
name: "Index",
direction: "input",
kind: "number",
defaultValue: 0,
},
],
outputs: [{ id: "value", name: "Value", direction: "output", kind: "any" }],
properties: [],
},
{
evaluateValue: ({ resolveValueInput }) => {
const index = resolveValueInput("index", "0");
return `stat(${index})`;
},
}
);