AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(math-helper): ui improvement (#16624)
Talal Jaberda1579a630c5
diff --git a/bun.lock b/bun.lockindex e2405fbf441..95192c93bba 100644--- a/bun.lock+++ b/bun.lock@@ -10679,7 +10679,7 @@},"packages/pieces/core/math-helper": {"name": "@activepieces/piece-math-helper",- "version": "0.1.0",+ "version": "0.2.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/core/math-helper/package.json b/packages/pieces/core/math-helper/package.jsonindex 796208c6b44..21aa3534b9f 100644--- a/packages/pieces/core/math-helper/package.json+++ b/packages/pieces/core/math-helper/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-math-helper",- "version": "0.1.0",+ "version": "0.2.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","bundleDeps": true,diff --git a/packages/pieces/core/math-helper/src/index.ts b/packages/pieces/core/math-helper/src/index.tsindex 69f65c82265..6ccb6f5120f 100644--- a/packages/pieces/core/math-helper/src/index.ts+++ b/packages/pieces/core/math-helper/src/index.ts@@ -10,7 +10,7 @@ export const math = createPiece({displayName: 'Math Helper',description: 'Add, subtract, multiply, divide, or pick a random number.',auth: PieceAuth.None(),- minimumSupportedRelease: '0.36.1',+ minimumSupportedRelease: '0.88.2',logoUrl: 'https://cdn.activepieces.com/pieces/new-core/math-helper.svg',categories: [PieceCategory.CORE],authors: ["kishanprmr","MoShizzle","abuaboud"],diff --git a/packages/pieces/core/math-helper/src/lib/actions/addition.ts b/packages/pieces/core/math-helper/src/lib/actions/addition.tsindex 13ed397b311..48014bbb550 100644--- a/packages/pieces/core/math-helper/src/lib/actions/addition.ts+++ b/packages/pieces/core/math-helper/src/lib/actions/addition.ts@@ -14,6 +14,15 @@ export const addition = createAction({displayName: 'Addition',description: 'Add two numbers together.',aiMetadata: { description: 'Compute the sum of exactly two numbers, returning first_number + second_number. Pick this only for a two-operand addition; use the sibling Subtraction, Multiplication, Division, or Modulo actions for other operations, and the Code piece for summing a list or evaluating any multi-term formula. Both operands are required and must be numeric; read-only and idempotent, with no external side effects.', idempotent: true },+ propertyGroups: [+ {+ key: 'numbers',+ display: 'section',+ label: 'Numbers',+ icon: 'markdown',+ props: ['first_number', 'second_number'],+ },+ ],props: {first_number: Property.Number({displayName: 'First Number',diff --git a/packages/pieces/core/math-helper/src/lib/actions/division.ts b/packages/pieces/core/math-helper/src/lib/actions/division.tsindex faec13a6cdb..a7bd57e1e53 100644--- a/packages/pieces/core/math-helper/src/lib/actions/division.ts+++ b/packages/pieces/core/math-helper/src/lib/actions/division.ts@@ -16,6 +16,15 @@ export const division = createAction({displayName: 'Division',description: 'Divide the first number by the second number.',aiMetadata: { description: 'Compute the quotient of two numbers, returning first_number / second_number as a floating-point value rather than integer division. Pick this for a two-operand division such as an average, ratio, or unit price; use the sibling Modulo action when you need the remainder instead, or the other Math Helper siblings for the remaining operations. Critical constraint: second_number is validated and must not be zero, or the step fails before computing; read-only and idempotent.', idempotent: true },+ propertyGroups: [+ {+ key: 'numbers',+ display: 'section',+ label: 'Numbers',+ icon: 'markdown',+ props: ['first_number', 'second_number'],+ },+ ],props: {first_number: Property.Number({displayName: 'First Number',diff --git a/packages/pieces/core/math-helper/src/lib/actions/generateRandom.ts b/packages/pieces/core/math-helper/src/lib/actions/generateRandom.tsindex 8bcb569ba72..42b4010afe8 100644--- a/packages/pieces/core/math-helper/src/lib/actions/generateRandom.ts+++ b/packages/pieces/core/math-helper/src/lib/actions/generateRandom.ts@@ -14,6 +14,15 @@ export const generateRandom = createAction({displayName: 'Random Number',description: 'Pick a random whole number from a range, ends included.',aiMetadata: { description: 'Draw a pseudo-random integer uniformly from the inclusive range between first_number (the minimum) and second_number (the maximum). Pick this for sampling, jitter, or picking an arbitrary index; it is not cryptographically secure, so use the Crypto piece for tokens, secrets, or IDs, and the arithmetic siblings for deterministic math. It returns whole numbers only; decimal bounds are rounded inward and reversed bounds are swapped, so the result always lies inside the range, and the step fails when the range holds no whole number at all (1.2 to 1.8); not idempotent, since each call returns a different value for identical inputs.', idempotent: false },+ propertyGroups: [+ {+ key: 'range',+ display: 'section',+ label: 'Range',+ icon: 'sliders',+ props: ['first_number', 'second_number'],+ },+ ],props: {first_number: Property.Number({displayName: 'Minimum',diff --git a/packages/pieces/core/math-helper/src/lib/actions/modulo.ts b/packages/pieces/core/math-helper/src/lib/actions/modulo.tsindex ae9823e88c9..f97d780c778 100644--- a/packages/pieces/core/math-helper/src/lib/actions/modulo.ts+++ b/packages/pieces/core/math-helper/src/lib/actions/modulo.ts@@ -16,6 +16,15 @@ export const modulo = createAction({displayName: 'Modulo',description: 'Get the remainder after dividing the first number by the second.',aiMetadata: { description: 'Compute the remainder of first_number divided by second_number using JavaScript % semantics, so the sign of the result follows the dividend (-7 with divisor 3 yields -1, not 2). Pick this for divisibility or every-Nth checks and for cycling an index over a fixed range; use the sibling Division action when you want the quotient instead. Like Division, second_number is validated and must not be zero, or the step fails before computing; read-only and idempotent.', idempotent: true },+ propertyGroups: [+ {+ key: 'numbers',+ display: 'section',+ label: 'Numbers',+ icon: 'markdown',+ props: ['first_number', 'second_number'],+ },+ ],props: {first_number: Property.Number({displayName: 'First Number',diff --git a/packages/pieces/core/math-helper/src/lib/actions/multiplication.ts b/packages/pieces/core/math-helper/src/lib/actions/multiplication.tsindex 59dad7480a6..46ab1570439 100644--- a/packages/pieces/core/math-helper/src/lib/actions/multiplication.ts+++ b/packages/pieces/core/math-helper/src/lib/actions/multiplication.ts@@ -14,6 +14,15 @@ export const multiplication = createAction({displayName: 'Multiplication',description: 'Multiply two numbers together.',aiMetadata: { description: 'Compute the product of exactly two numbers, returning first_number * second_number. Pick this for a two-operand multiplication, including percentage or unit-rate scaling (e.g. an amount times 0.15); use the sibling Addition, Subtraction, Division, or Modulo actions for other operations, and the Code piece for exponents or multi-term formulas. Both operands are required and must be numeric; read-only and idempotent, with no external side effects.', idempotent: true },+ propertyGroups: [+ {+ key: 'numbers',+ display: 'section',+ label: 'Numbers',+ icon: 'markdown',+ props: ['first_number', 'second_number'],+ },+ ],props: {first_number: Property.Number({displayName: 'First Number',diff --git a/packages/pieces/core/math-helper/src/lib/actions/subtraction.ts b/packages/pieces/core/math-helper/src/lib/actions/subtraction.tsindex 2608a95d15a..ff3e29d5f3f 100644--- a/packages/pieces/core/math-helper/src/lib/actions/subtraction.ts+++ b/packages/pieces/core/math-helper/src/lib/actions/subtraction.ts@@ -14,6 +14,15 @@ export const subtraction = createAction({displayName: 'Subtraction',description: 'Subtract one number from another.',aiMetadata: { description: 'Compute the difference of two numbers. It returns second_number - first_number: first_number is the amount being subtracted (labelled "Number to Subtract") and second_number is the value it is subtracted from (labelled "Starting Number"). Pick this for a two-operand subtraction only, using the sibling Addition, Multiplication, Division, or Modulo actions for other operations and the Code piece for multi-term formulas; read-only and idempotent.', idempotent: true },+ propertyGroups: [+ {+ key: 'numbers',+ display: 'section',+ label: 'Numbers',+ icon: 'markdown',+ props: ['first_number', 'second_number'],+ },+ ],props: {first_number: Property.Number({displayName: 'Number to Subtract',