
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@loopstack/create-value-tool
Advanced tools
A simple tool that logs and returns a value of a loopstack workflow. This is useful for debugging or initializing workflow context variables.
A module for the Loopstack AI automation framework.
This module provides a tool for creating and debugging values in Loopstack workflows with built-in logging and flexible type support.
The Create Value Tool enables workflows to create, transform, and debug values during execution. It accepts any valid JSON-compatible value type and returns it, making it invaluable for debugging template expressions and reassigning values.
By using this tool, you'll be able to:
This tool is essential for workflows that need to debug complex expressions, initialize context variables, or transform data between workflow steps.
See SETUP.md for installation and setup instructions.
Inject the tool in your workflow class using the @InjectTool() decorator:
import { z } from 'zod';
import { BaseWorkflow, Final, Initial, InjectTool, ToolResult, Workflow } from '@loopstack/common';
import { CreateValue } from '@loopstack/create-value-tool';
@Workflow({
uiConfig: __dirname + '/my.ui.yaml',
schema: z
.object({
userId: z.string(),
})
.strict(),
})
export class MyWorkflow extends BaseWorkflow<{ userId: string }> {
@InjectTool() createValue: CreateValue;
config?: Record<string, unknown>;
@Initial({ to: 'processed' })
async initialize(args: { userId: string }) {
// Debug a value
await this.createValue.call({ input: args.userId });
// Create a complex object
const result: ToolResult = await this.createValue.call({
input: {
environment: 'production',
timeout: 30,
retries: 3,
endpoints: ['https://api.example.com', 'https://backup.example.com'],
},
});
this.config = result.data as Record<string, unknown>;
}
@Final({ from: 'processed' })
async done() {
// Use the config value
}
}
Author: Jakob Klippel
License: Apache-2.0
@loopstack/create-value-tool in the Loopstack RegistryFAQs
A simple tool that logs and returns a value of a loopstack workflow. This is useful for debugging or initializing workflow context variables.
We found that @loopstack/create-value-tool demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.