@almadar/std 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/behaviors/async.d.ts +8 -8
  2. package/dist/behaviors/async.js +548 -500
  3. package/dist/behaviors/async.js.map +1 -1
  4. package/dist/behaviors/data-management.d.ts +11 -19
  5. package/dist/behaviors/data-management.js +468 -449
  6. package/dist/behaviors/data-management.js.map +1 -1
  7. package/dist/behaviors/feedback.d.ts +6 -6
  8. package/dist/behaviors/feedback.js +312 -278
  9. package/dist/behaviors/feedback.js.map +1 -1
  10. package/dist/behaviors/game-core.d.ts +11 -12
  11. package/dist/behaviors/game-core.js +357 -406
  12. package/dist/behaviors/game-core.js.map +1 -1
  13. package/dist/behaviors/game-entity.d.ts +13 -14
  14. package/dist/behaviors/game-entity.js +622 -592
  15. package/dist/behaviors/game-entity.js.map +1 -1
  16. package/dist/behaviors/game-ui.d.ts +9 -10
  17. package/dist/behaviors/game-ui.js +522 -459
  18. package/dist/behaviors/game-ui.js.map +1 -1
  19. package/dist/behaviors/index.d.ts +3 -3
  20. package/dist/behaviors/index.js +3876 -3843
  21. package/dist/behaviors/index.js.map +1 -1
  22. package/dist/behaviors/registry.d.ts +14 -24
  23. package/dist/behaviors/registry.js +3868 -3803
  24. package/dist/behaviors/registry.js.map +1 -1
  25. package/dist/behaviors/types.d.ts +14 -138
  26. package/dist/behaviors/types.js +10 -47
  27. package/dist/behaviors/types.js.map +1 -1
  28. package/dist/behaviors/ui-interaction.d.ts +13 -20
  29. package/dist/behaviors/ui-interaction.js +961 -1043
  30. package/dist/behaviors/ui-interaction.js.map +1 -1
  31. package/dist/index.d.ts +44 -11
  32. package/dist/index.js +3913 -3870
  33. package/dist/index.js.map +1 -1
  34. package/dist/modules/index.js +11 -0
  35. package/dist/modules/index.js.map +1 -1
  36. package/dist/modules/str.js +11 -0
  37. package/dist/modules/str.js.map +1 -1
  38. package/dist/registry.js +11 -0
  39. package/dist/registry.js.map +1 -1
  40. package/package.json +3 -2
@@ -11,6 +11,17 @@ var STR_OPERATORS = {
11
11
  params: [{ name: "s", type: "string", description: "The string" }],
12
12
  example: '["str/len", "hello"] // => 5'
13
13
  },
14
+ "str/concat": {
15
+ module: "str",
16
+ category: "std-str",
17
+ minArity: 1,
18
+ maxArity: 99,
19
+ description: "Concatenate strings together",
20
+ hasSideEffects: false,
21
+ returnType: "string",
22
+ params: [{ name: "strings", type: "string", description: "Strings to concatenate" }],
23
+ example: '["str/concat", "/users/", "@entity.id"] // => "/users/123"'
24
+ },
14
25
  "str/upper": {
15
26
  module: "str",
16
27
  category: "std-str",
@@ -1 +1 @@
1
- {"version":3,"sources":["../../modules/str.ts"],"names":[],"mappings":";AAcO,IAAM,aAAA,GAAiD;AAAA,EAC5D,SAAA,EAAW;AAAA,IACT,MAAA,EAAQ,KAAA;AAAA,IACR,QAAA,EAAU,SAAA;AAAA,IACV,QAAA,EAAU,CAAA;AAAA,IACV,QAAA,EAAU,CAAA;AAAA,IACV,WAAA,EAAa,eAAA;AAAA,IACb,cAAA,EAAgB,KAAA;AAAA,IAChB,UAAA,EAAY,QAAA;AAAA,IACZ,MAAA,EAAQ,CAAC,EAAE,IAAA,EAAM,KAAK,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,YAAA,EAAc,CAAA;AAAA,IACjE,OAAA,EAAS;AAAA,GACX;AAAA,EACA,WAAA,EAAa;AAAA,IACX,MAAA,EAAQ,KAAA;AAAA,IACR,QAAA,EAAU,SAAA;AAAA,IACV,QAAA,EAAU,CAAA;AAAA,IACV,QAAA,EAAU,CAAA;AAAA,IACV,WAAA,EAAa,sBAAA;AAAA,IACb,cAAA,EAAgB,KAAA;AAAA,IAChB,UAAA,EAAY,QAAA;AAAA,IACZ,MAAA,EAAQ,CAAC,EAAE,IAAA,EAAM,KAAK,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,YAAA,EAAc,CAAA;AAAA,IACjE,OAAA,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n * Provides string manipulation and transformation functions.\n *\n * @packageDocumentation\n */\n\nimport type { StdOperatorMeta } from '../types.js';\n\n/**\n * String module operators.\n * All operators return strings (or boolean for checks) and have no side effects.\n */\nexport const STR_OPERATORS: Record<string, StdOperatorMeta> = {\n 'str/len': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'String length',\n hasSideEffects: false,\n returnType: 'number',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/len\", \"hello\"] // => 5',\n },\n 'str/upper': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to uppercase',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/upper\", \"hello\"] // => \"HELLO\"',\n },\n 'str/lower': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to lowercase',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/lower\", \"HELLO\"] // => \"hello\"',\n },\n 'str/trim': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Remove leading and trailing whitespace',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/trim\", \" hello \"] // => \"hello\"',\n },\n 'str/trimStart': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Remove leading whitespace',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/trimStart\", \" hello\"] // => \"hello\"',\n },\n 'str/trimEnd': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Remove trailing whitespace',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/trimEnd\", \"hello \"] // => \"hello\"',\n },\n 'str/split': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Split string into array by delimiter',\n hasSideEffects: false,\n returnType: 'array',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'delim', type: 'string', description: 'Delimiter' },\n ],\n example: '[\"str/split\", \"a,b,c\", \",\"] // => [\"a\", \"b\", \"c\"]',\n },\n 'str/join': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Join array elements into string',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 'arr', type: 'array', description: 'Array to join' },\n { name: 'delim', type: 'string', description: 'Delimiter' },\n ],\n example: '[\"str/join\", [\"a\", \"b\", \"c\"], \", \"] // => \"a, b, c\"',\n },\n 'str/slice': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 3,\n description: 'Extract substring',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'start', type: 'number', description: 'Start index' },\n { name: 'end', type: 'number', description: 'End index (exclusive)', optional: true },\n ],\n example: '[\"str/slice\", \"hello\", 1, 4] // => \"ell\"',\n },\n 'str/replace': {\n module: 'str',\n category: 'std-str',\n minArity: 3,\n maxArity: 3,\n description: 'Replace first occurrence',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'find', type: 'string', description: 'String to find' },\n { name: 'replace', type: 'string', description: 'Replacement' },\n ],\n example: '[\"str/replace\", \"hello world\", \"world\", \"there\"] // => \"hello there\"',\n },\n 'str/replaceAll': {\n module: 'str',\n category: 'std-str',\n minArity: 3,\n maxArity: 3,\n description: 'Replace all occurrences',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'find', type: 'string', description: 'String to find' },\n { name: 'replace', type: 'string', description: 'Replacement' },\n ],\n example: '[\"str/replaceAll\", \"a-b-c\", \"-\", \"_\"] // => \"a_b_c\"',\n },\n 'str/includes': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Check if string contains substring',\n hasSideEffects: false,\n returnType: 'boolean',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'search', type: 'string', description: 'Substring to find' },\n ],\n example: '[\"str/includes\", \"hello world\", \"world\"] // => true',\n },\n 'str/startsWith': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Check if string starts with prefix',\n hasSideEffects: false,\n returnType: 'boolean',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'prefix', type: 'string', description: 'Prefix to check' },\n ],\n example: '[\"str/startsWith\", \"hello\", \"hel\"] // => true',\n },\n 'str/endsWith': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Check if string ends with suffix',\n hasSideEffects: false,\n returnType: 'boolean',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'suffix', type: 'string', description: 'Suffix to check' },\n ],\n example: '[\"str/endsWith\", \"hello\", \"lo\"] // => true',\n },\n 'str/padStart': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 3,\n description: 'Pad string from start to target length',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'len', type: 'number', description: 'Target length' },\n { name: 'char', type: 'string', description: 'Padding character', optional: true, defaultValue: ' ' },\n ],\n example: '[\"str/padStart\", \"5\", 3, \"0\"] // => \"005\"',\n },\n 'str/padEnd': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 3,\n description: 'Pad string from end to target length',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'len', type: 'number', description: 'Target length' },\n { name: 'char', type: 'string', description: 'Padding character', optional: true, defaultValue: ' ' },\n ],\n example: '[\"str/padEnd\", \"5\", 3, \"0\"] // => \"500\"',\n },\n 'str/repeat': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Repeat string n times',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'count', type: 'number', description: 'Repeat count' },\n ],\n example: '[\"str/repeat\", \"ab\", 3] // => \"ababab\"',\n },\n 'str/reverse': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Reverse string',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/reverse\", \"hello\"] // => \"olleh\"',\n },\n 'str/capitalize': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Capitalize first character',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/capitalize\", \"hello\"] // => \"Hello\"',\n },\n 'str/titleCase': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to Title Case',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/titleCase\", \"hello world\"] // => \"Hello World\"',\n },\n 'str/camelCase': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to camelCase',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/camelCase\", \"hello world\"] // => \"helloWorld\"',\n },\n 'str/kebabCase': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to kebab-case',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/kebabCase\", \"Hello World\"] // => \"hello-world\"',\n },\n 'str/snakeCase': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to snake_case',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/snakeCase\", \"Hello World\"] // => \"hello_world\"',\n },\n 'str/default': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Return default if value is null/undefined/empty',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string | null', description: 'The value' },\n { name: 'default', type: 'string', description: 'Default value' },\n ],\n example: '[\"str/default\", null, \"N/A\"] // => \"N/A\"',\n },\n 'str/template': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Variable substitution in template string',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 'template', type: 'string', description: 'Template with {placeholders}' },\n { name: 'vars', type: 'object', description: 'Variables to substitute' },\n ],\n example: '[\"str/template\", \"Hello, {name}!\", {\"name\": \"World\"}] // => \"Hello, World!\"',\n },\n 'str/truncate': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 3,\n description: 'Truncate string with optional suffix',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'len', type: 'number', description: 'Maximum length' },\n { name: 'suffix', type: 'string', description: 'Suffix for truncated strings', optional: true, defaultValue: '...' },\n ],\n example: '[\"str/truncate\", \"Hello World\", 8, \"...\"] // => \"Hello...\"',\n },\n};\n\n/**\n * Get all string operator names.\n */\nexport function getStrOperators(): string[] {\n return Object.keys(STR_OPERATORS);\n}\n"]}
1
+ {"version":3,"sources":["../../modules/str.ts"],"names":[],"mappings":";AAcO,IAAM,aAAA,GAAiD;AAAA,EAC5D,SAAA,EAAW;AAAA,IACT,MAAA,EAAQ,KAAA;AAAA,IACR,QAAA,EAAU,SAAA;AAAA,IACV,QAAA,EAAU,CAAA;AAAA,IACV,QAAA,EAAU,CAAA;AAAA,IACV,WAAA,EAAa,eAAA;AAAA,IACb,cAAA,EAAgB,KAAA;AAAA,IAChB,UAAA,EAAY,QAAA;AAAA,IACZ,MAAA,EAAQ,CAAC,EAAE,IAAA,EAAM,KAAK,IAAA,EAAM,QAAA,EAAU,WAAA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,QAAA,EAAU,aAAa,yBAAA;AAA0B,KACzE;AAAA,IACA,OAAA,EAAS;AAAA,GACX;AAAA,EACA,cAAA,EAAgB;AAAA,IACd,MAAA,EAAQ,KAAA;AAAA,IACR,QAAA,EAAU,SAAA;AAAA,IACV,QAAA,EAAU,CAAA;AAAA,IACV,QAAA,EAAU,CAAA;AAAA,IACV,WAAA,EAAa,sCAAA;AAAA,IACb,cAAA,EAAgB,KAAA;AAAA,IAChB,UAAA,EAAY,QAAA;AAAA,IACZ,MAAA,EAAQ;AAAA,MACN,EAAE,IAAA,EAAM,GAAA,EAAK,IAAA,EAAM,QAAA,EAAU,aAAa,YAAA,EAAa;AAAA,MACvD,EAAE,IAAA,EAAM,KAAA,EAAO,IAAA,EAAM,QAAA,EAAU,aAAa,gBAAA,EAAiB;AAAA,MAC7D,EAAE,IAAA,EAAM,QAAA,EAAU,IAAA,EAAM,QAAA,EAAU,aAAa,8BAAA,EAAgC,QAAA,EAAU,IAAA,EAAM,YAAA,EAAc,KAAA;AAAM,KACrH;AAAA,IACA,OAAA,EAAS;AAAA;AAEb;AAKO,SAAS,eAAA,GAA4B;AAC1C,EAAA,OAAO,MAAA,CAAO,KAAK,aAAa,CAAA;AAClC","file":"str.js","sourcesContent":["/**\n * String Module - String Operations\n *\n * Provides string manipulation and transformation functions.\n *\n * @packageDocumentation\n */\n\nimport type { StdOperatorMeta } from '../types.js';\n\n/**\n * String module operators.\n * All operators return strings (or boolean for checks) and have no side effects.\n */\nexport const STR_OPERATORS: Record<string, StdOperatorMeta> = {\n 'str/len': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'String length',\n hasSideEffects: false,\n returnType: 'number',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/len\", \"hello\"] // => 5',\n },\n 'str/concat': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 99,\n description: 'Concatenate strings together',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 'strings', type: 'string', description: 'Strings to concatenate' }],\n example: '[\"str/concat\", \"/users/\", \"@entity.id\"] // => \"/users/123\"',\n },\n 'str/upper': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to uppercase',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/upper\", \"hello\"] // => \"HELLO\"',\n },\n 'str/lower': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to lowercase',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/lower\", \"HELLO\"] // => \"hello\"',\n },\n 'str/trim': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Remove leading and trailing whitespace',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/trim\", \" hello \"] // => \"hello\"',\n },\n 'str/trimStart': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Remove leading whitespace',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/trimStart\", \" hello\"] // => \"hello\"',\n },\n 'str/trimEnd': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Remove trailing whitespace',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/trimEnd\", \"hello \"] // => \"hello\"',\n },\n 'str/split': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Split string into array by delimiter',\n hasSideEffects: false,\n returnType: 'array',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'delim', type: 'string', description: 'Delimiter' },\n ],\n example: '[\"str/split\", \"a,b,c\", \",\"] // => [\"a\", \"b\", \"c\"]',\n },\n 'str/join': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Join array elements into string',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 'arr', type: 'array', description: 'Array to join' },\n { name: 'delim', type: 'string', description: 'Delimiter' },\n ],\n example: '[\"str/join\", [\"a\", \"b\", \"c\"], \", \"] // => \"a, b, c\"',\n },\n 'str/slice': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 3,\n description: 'Extract substring',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'start', type: 'number', description: 'Start index' },\n { name: 'end', type: 'number', description: 'End index (exclusive)', optional: true },\n ],\n example: '[\"str/slice\", \"hello\", 1, 4] // => \"ell\"',\n },\n 'str/replace': {\n module: 'str',\n category: 'std-str',\n minArity: 3,\n maxArity: 3,\n description: 'Replace first occurrence',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'find', type: 'string', description: 'String to find' },\n { name: 'replace', type: 'string', description: 'Replacement' },\n ],\n example: '[\"str/replace\", \"hello world\", \"world\", \"there\"] // => \"hello there\"',\n },\n 'str/replaceAll': {\n module: 'str',\n category: 'std-str',\n minArity: 3,\n maxArity: 3,\n description: 'Replace all occurrences',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'find', type: 'string', description: 'String to find' },\n { name: 'replace', type: 'string', description: 'Replacement' },\n ],\n example: '[\"str/replaceAll\", \"a-b-c\", \"-\", \"_\"] // => \"a_b_c\"',\n },\n 'str/includes': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Check if string contains substring',\n hasSideEffects: false,\n returnType: 'boolean',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'search', type: 'string', description: 'Substring to find' },\n ],\n example: '[\"str/includes\", \"hello world\", \"world\"] // => true',\n },\n 'str/startsWith': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Check if string starts with prefix',\n hasSideEffects: false,\n returnType: 'boolean',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'prefix', type: 'string', description: 'Prefix to check' },\n ],\n example: '[\"str/startsWith\", \"hello\", \"hel\"] // => true',\n },\n 'str/endsWith': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Check if string ends with suffix',\n hasSideEffects: false,\n returnType: 'boolean',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'suffix', type: 'string', description: 'Suffix to check' },\n ],\n example: '[\"str/endsWith\", \"hello\", \"lo\"] // => true',\n },\n 'str/padStart': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 3,\n description: 'Pad string from start to target length',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'len', type: 'number', description: 'Target length' },\n { name: 'char', type: 'string', description: 'Padding character', optional: true, defaultValue: ' ' },\n ],\n example: '[\"str/padStart\", \"5\", 3, \"0\"] // => \"005\"',\n },\n 'str/padEnd': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 3,\n description: 'Pad string from end to target length',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'len', type: 'number', description: 'Target length' },\n { name: 'char', type: 'string', description: 'Padding character', optional: true, defaultValue: ' ' },\n ],\n example: '[\"str/padEnd\", \"5\", 3, \"0\"] // => \"500\"',\n },\n 'str/repeat': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Repeat string n times',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'count', type: 'number', description: 'Repeat count' },\n ],\n example: '[\"str/repeat\", \"ab\", 3] // => \"ababab\"',\n },\n 'str/reverse': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Reverse string',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/reverse\", \"hello\"] // => \"olleh\"',\n },\n 'str/capitalize': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Capitalize first character',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/capitalize\", \"hello\"] // => \"Hello\"',\n },\n 'str/titleCase': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to Title Case',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/titleCase\", \"hello world\"] // => \"Hello World\"',\n },\n 'str/camelCase': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to camelCase',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/camelCase\", \"hello world\"] // => \"helloWorld\"',\n },\n 'str/kebabCase': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to kebab-case',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/kebabCase\", \"Hello World\"] // => \"hello-world\"',\n },\n 'str/snakeCase': {\n module: 'str',\n category: 'std-str',\n minArity: 1,\n maxArity: 1,\n description: 'Convert to snake_case',\n hasSideEffects: false,\n returnType: 'string',\n params: [{ name: 's', type: 'string', description: 'The string' }],\n example: '[\"str/snakeCase\", \"Hello World\"] // => \"hello_world\"',\n },\n 'str/default': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Return default if value is null/undefined/empty',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string | null', description: 'The value' },\n { name: 'default', type: 'string', description: 'Default value' },\n ],\n example: '[\"str/default\", null, \"N/A\"] // => \"N/A\"',\n },\n 'str/template': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 2,\n description: 'Variable substitution in template string',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 'template', type: 'string', description: 'Template with {placeholders}' },\n { name: 'vars', type: 'object', description: 'Variables to substitute' },\n ],\n example: '[\"str/template\", \"Hello, {name}!\", {\"name\": \"World\"}] // => \"Hello, World!\"',\n },\n 'str/truncate': {\n module: 'str',\n category: 'std-str',\n minArity: 2,\n maxArity: 3,\n description: 'Truncate string with optional suffix',\n hasSideEffects: false,\n returnType: 'string',\n params: [\n { name: 's', type: 'string', description: 'The string' },\n { name: 'len', type: 'number', description: 'Maximum length' },\n { name: 'suffix', type: 'string', description: 'Suffix for truncated strings', optional: true, defaultValue: '...' },\n ],\n example: '[\"str/truncate\", \"Hello World\", 8, \"...\"] // => \"Hello...\"',\n },\n};\n\n/**\n * Get all string operator names.\n */\nexport function getStrOperators(): string[] {\n return Object.keys(STR_OPERATORS);\n}\n"]}
package/dist/registry.js CHANGED
@@ -244,6 +244,17 @@ var STR_OPERATORS = {
244
244
  params: [{ name: "s", type: "string", description: "The string" }],
245
245
  example: '["str/len", "hello"] // => 5'
246
246
  },
247
+ "str/concat": {
248
+ module: "str",
249
+ category: "std-str",
250
+ minArity: 1,
251
+ maxArity: 99,
252
+ description: "Concatenate strings together",
253
+ hasSideEffects: false,
254
+ returnType: "string",
255
+ params: [{ name: "strings", type: "string", description: "Strings to concatenate" }],
256
+ example: '["str/concat", "/users/", "@entity.id"] // => "/users/123"'
257
+ },
247
258
  "str/upper": {
248
259
  module: "str",
249
260
  category: "std-str",