@pikku/addon-graph 0.0.2 → 0.12.0
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.
- package/.pikku/addon/pikku-addon-types.gen.ts +30 -3
- package/.pikku/addon/pikku-package.gen.ts +3 -1
- package/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
- package/.pikku/agent/pikku-agent-types.gen.ts +13 -7
- package/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/.pikku/cli/pikku-cli-types.gen.ts +105 -0
- package/.pikku/console/pikku-addon-meta.gen.json +281 -0
- package/.pikku/console/pikku-node-types.gen.ts +2 -2
- package/.pikku/function/pikku-function-types.gen.ts +70 -34
- package/.pikku/function/pikku-functions-meta-verbose.gen.json +274 -196
- package/.pikku/function/pikku-functions-meta.gen.json +160 -144
- package/.pikku/function/pikku-functions-meta.gen.ts +1 -1
- package/.pikku/function/pikku-functions.gen.ts +4 -2
- package/.pikku/http/pikku-http-types.gen.ts +147 -0
- package/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- package/.pikku/pikku-bootstrap.gen.ts +2 -9
- package/.pikku/pikku-meta-service.gen.ts +10 -0
- package/.pikku/pikku-services.gen.ts +10 -3
- package/.pikku/pikku-types.gen.ts +1 -1
- package/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +212 -194
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +221 -202
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +27 -0
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/.pikku/schemas/register.gen.ts +69 -65
- package/.pikku/schemas/schemas/SleepInput.schema.json +1 -0
- package/.pikku/secrets/pikku-secret-types.gen.ts +1 -1
- package/.pikku/secrets/pikku-secrets.gen.ts +1 -1
- package/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
- package/.pikku/variables/pikku-variable-types.gen.ts +1 -1
- package/.pikku/variables/pikku-variables.gen.ts +1 -1
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
- package/.pikku/workflow/pikku-workflow-types.gen.ts +66 -57
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +18 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +25 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +30 -3
- package/dist/.pikku/addon/pikku-package.gen.js +2 -1
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +3 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +6 -6
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +13 -7
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +78 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts.map +1 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.js +61 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.js.map +1 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.ts +105 -0
- package/dist/.pikku/console/pikku-addon-meta.gen.json +281 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +2 -2
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -1
- package/dist/.pikku/console/pikku-node-types.gen.ts +2 -2
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +56 -30
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +31 -19
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.ts +70 -34
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +274 -196
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +160 -144
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
- package/dist/.pikku/function/pikku-functions.gen.js +4 -2
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-functions.gen.ts +4 -2
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.ts +147 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +4 -2
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +2 -10
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.ts +2 -9
- package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.js +10 -0
- package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
- package/dist/.pikku/pikku-services.gen.d.ts +8 -3
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +7 -1
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-services.gen.ts +10 -3
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +1 -1
- package/dist/.pikku/pikku-types.gen.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +212 -194
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +221 -202
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +27 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/dist/.pikku/schemas/register.gen.js +35 -33
- package/dist/.pikku/schemas/register.gen.js.map +1 -1
- package/dist/.pikku/schemas/register.gen.ts +69 -65
- package/dist/.pikku/schemas/schemas/SleepInput.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +36 -27
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +5 -18
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +66 -57
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/src/functions/data/jwt.function.d.ts.map +1 -1
- package/dist/src/functions/data/jwt.function.js +3 -2
- package/dist/src/functions/data/jwt.function.js.map +1 -1
- package/dist/src/functions/data/sleep.function.d.ts +16 -0
- package/dist/src/functions/data/sleep.function.d.ts.map +1 -0
- package/dist/src/functions/data/sleep.function.js +18 -0
- package/dist/src/functions/data/sleep.function.js.map +1 -0
- package/package.json +3 -2
- package/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
- package/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
- package/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -2
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -7
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -5
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -5
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nodes": {
|
|
3
|
+
"aggregate": {
|
|
4
|
+
"name": "aggregate",
|
|
5
|
+
"displayName": "Aggregate",
|
|
6
|
+
"category": "Array",
|
|
7
|
+
"type": "action",
|
|
8
|
+
"rpc": "aggregate",
|
|
9
|
+
"description": "Combine a field from many items into a list in a single item",
|
|
10
|
+
"errorOutput": false,
|
|
11
|
+
"inputSchemaName": "AggregateInput",
|
|
12
|
+
"outputSchemaName": "AggregateOutput"
|
|
13
|
+
},
|
|
14
|
+
"chunk": {
|
|
15
|
+
"name": "chunk",
|
|
16
|
+
"displayName": "Chunk",
|
|
17
|
+
"category": "Array",
|
|
18
|
+
"type": "action",
|
|
19
|
+
"rpc": "chunk",
|
|
20
|
+
"description": "Split array into chunks of specified size",
|
|
21
|
+
"errorOutput": false,
|
|
22
|
+
"inputSchemaName": "ChunkInput",
|
|
23
|
+
"outputSchemaName": "ChunkOutput"
|
|
24
|
+
},
|
|
25
|
+
"find": {
|
|
26
|
+
"name": "find",
|
|
27
|
+
"displayName": "Find",
|
|
28
|
+
"category": "Array",
|
|
29
|
+
"type": "action",
|
|
30
|
+
"rpc": "find",
|
|
31
|
+
"description": "Find the first item matching a field value",
|
|
32
|
+
"errorOutput": false,
|
|
33
|
+
"inputSchemaName": "FindInput",
|
|
34
|
+
"outputSchemaName": "FindOutput"
|
|
35
|
+
},
|
|
36
|
+
"groupBy": {
|
|
37
|
+
"name": "groupBy",
|
|
38
|
+
"displayName": "Group By",
|
|
39
|
+
"category": "Array",
|
|
40
|
+
"type": "action",
|
|
41
|
+
"rpc": "groupBy",
|
|
42
|
+
"description": "Group items by a field value",
|
|
43
|
+
"errorOutput": false,
|
|
44
|
+
"inputSchemaName": "GroupByInput",
|
|
45
|
+
"outputSchemaName": "GroupByOutput"
|
|
46
|
+
},
|
|
47
|
+
"limit": {
|
|
48
|
+
"name": "limit",
|
|
49
|
+
"displayName": "Limit",
|
|
50
|
+
"category": "Array",
|
|
51
|
+
"type": "action",
|
|
52
|
+
"rpc": "limit",
|
|
53
|
+
"description": "Restrict the number of items",
|
|
54
|
+
"errorOutput": false,
|
|
55
|
+
"inputSchemaName": "LimitInput",
|
|
56
|
+
"outputSchemaName": "LimitOutput"
|
|
57
|
+
},
|
|
58
|
+
"removeDuplicates": {
|
|
59
|
+
"name": "removeDuplicates",
|
|
60
|
+
"displayName": "Remove Duplicates",
|
|
61
|
+
"category": "Array",
|
|
62
|
+
"type": "action",
|
|
63
|
+
"rpc": "removeDuplicates",
|
|
64
|
+
"description": "Delete items with matching field values",
|
|
65
|
+
"errorOutput": false,
|
|
66
|
+
"inputSchemaName": "RemoveDuplicatesInput",
|
|
67
|
+
"outputSchemaName": "RemoveDuplicatesOutput"
|
|
68
|
+
},
|
|
69
|
+
"reverse": {
|
|
70
|
+
"name": "reverse",
|
|
71
|
+
"displayName": "Reverse",
|
|
72
|
+
"category": "Array",
|
|
73
|
+
"type": "action",
|
|
74
|
+
"rpc": "reverse",
|
|
75
|
+
"description": "Reverse the order of items in an array",
|
|
76
|
+
"errorOutput": false,
|
|
77
|
+
"inputSchemaName": "ReverseInput",
|
|
78
|
+
"outputSchemaName": "ReverseOutput"
|
|
79
|
+
},
|
|
80
|
+
"sort": {
|
|
81
|
+
"name": "sort",
|
|
82
|
+
"displayName": "Sort",
|
|
83
|
+
"category": "Array",
|
|
84
|
+
"type": "action",
|
|
85
|
+
"rpc": "sort",
|
|
86
|
+
"description": "Change items order",
|
|
87
|
+
"errorOutput": false,
|
|
88
|
+
"inputSchemaName": "SortInput",
|
|
89
|
+
"outputSchemaName": "SortOutput"
|
|
90
|
+
},
|
|
91
|
+
"splitOut": {
|
|
92
|
+
"name": "splitOut",
|
|
93
|
+
"displayName": "Split Out",
|
|
94
|
+
"category": "Array",
|
|
95
|
+
"type": "action",
|
|
96
|
+
"rpc": "splitOut",
|
|
97
|
+
"description": "Turn a list inside item(s) into separate items",
|
|
98
|
+
"errorOutput": false,
|
|
99
|
+
"inputSchemaName": "SplitOutInput",
|
|
100
|
+
"outputSchemaName": "SplitOutOutput"
|
|
101
|
+
},
|
|
102
|
+
"summarize": {
|
|
103
|
+
"name": "summarize",
|
|
104
|
+
"displayName": "Summarize",
|
|
105
|
+
"category": "Array",
|
|
106
|
+
"type": "action",
|
|
107
|
+
"rpc": "summarize",
|
|
108
|
+
"description": "Sum, count, max, etc. across items",
|
|
109
|
+
"errorOutput": false,
|
|
110
|
+
"inputSchemaName": "SummarizeInput",
|
|
111
|
+
"outputSchemaName": "SummarizeOutput"
|
|
112
|
+
},
|
|
113
|
+
"unique": {
|
|
114
|
+
"name": "unique",
|
|
115
|
+
"displayName": "Unique",
|
|
116
|
+
"category": "Array",
|
|
117
|
+
"type": "action",
|
|
118
|
+
"rpc": "unique",
|
|
119
|
+
"description": "Get unique values from an array",
|
|
120
|
+
"errorOutput": false,
|
|
121
|
+
"inputSchemaName": "UniqueInput",
|
|
122
|
+
"outputSchemaName": "UniqueOutput"
|
|
123
|
+
},
|
|
124
|
+
"coalesce": {
|
|
125
|
+
"name": "coalesce",
|
|
126
|
+
"displayName": "Coalesce",
|
|
127
|
+
"category": "Data",
|
|
128
|
+
"type": "action",
|
|
129
|
+
"rpc": "coalesce",
|
|
130
|
+
"description": "Return the first non-null value",
|
|
131
|
+
"errorOutput": false,
|
|
132
|
+
"inputSchemaName": "CoalesceInput",
|
|
133
|
+
"outputSchemaName": "CoalesceOutput"
|
|
134
|
+
},
|
|
135
|
+
"crypto": {
|
|
136
|
+
"name": "crypto",
|
|
137
|
+
"displayName": "Crypto",
|
|
138
|
+
"category": "Data",
|
|
139
|
+
"type": "action",
|
|
140
|
+
"rpc": "crypto",
|
|
141
|
+
"description": "Provide cryptographic utilities",
|
|
142
|
+
"errorOutput": false,
|
|
143
|
+
"inputSchemaName": "CryptoInput",
|
|
144
|
+
"outputSchemaName": "CryptoOutput"
|
|
145
|
+
},
|
|
146
|
+
"dateTime": {
|
|
147
|
+
"name": "dateTime",
|
|
148
|
+
"displayName": "Date & Time",
|
|
149
|
+
"category": "Data",
|
|
150
|
+
"type": "action",
|
|
151
|
+
"rpc": "dateTime",
|
|
152
|
+
"description": "Manipulate date and time values",
|
|
153
|
+
"errorOutput": false,
|
|
154
|
+
"inputSchemaName": "DateTimeInput",
|
|
155
|
+
"outputSchemaName": "DateTimeOutput"
|
|
156
|
+
},
|
|
157
|
+
"jwtSign": {
|
|
158
|
+
"name": "jwtSign",
|
|
159
|
+
"displayName": "JWT Sign",
|
|
160
|
+
"category": "Data",
|
|
161
|
+
"type": "action",
|
|
162
|
+
"rpc": "jwtSign",
|
|
163
|
+
"description": "Sign a payload into a JWT token",
|
|
164
|
+
"errorOutput": false,
|
|
165
|
+
"inputSchemaName": "JwtSignInput",
|
|
166
|
+
"outputSchemaName": "JwtSignOutput"
|
|
167
|
+
},
|
|
168
|
+
"jwtDecode": {
|
|
169
|
+
"name": "jwtDecode",
|
|
170
|
+
"displayName": "JWT Decode",
|
|
171
|
+
"category": "Data",
|
|
172
|
+
"type": "action",
|
|
173
|
+
"rpc": "jwtDecode",
|
|
174
|
+
"description": "Decode a JWT token into its payload",
|
|
175
|
+
"errorOutput": false,
|
|
176
|
+
"inputSchemaName": "JwtDecodeInput",
|
|
177
|
+
"outputSchemaName": "JwtDecodeOutput"
|
|
178
|
+
},
|
|
179
|
+
"math": {
|
|
180
|
+
"name": "math",
|
|
181
|
+
"displayName": "Math",
|
|
182
|
+
"category": "Data",
|
|
183
|
+
"type": "action",
|
|
184
|
+
"rpc": "math",
|
|
185
|
+
"description": "Perform math operations",
|
|
186
|
+
"errorOutput": false,
|
|
187
|
+
"inputSchemaName": "MathInput",
|
|
188
|
+
"outputSchemaName": "MathOutput"
|
|
189
|
+
},
|
|
190
|
+
"sleep": {
|
|
191
|
+
"name": "sleep",
|
|
192
|
+
"displayName": "Sleep",
|
|
193
|
+
"category": "Data",
|
|
194
|
+
"type": "action",
|
|
195
|
+
"rpc": "sleep",
|
|
196
|
+
"description": "Sleep for a specified duration before continuing",
|
|
197
|
+
"errorOutput": false,
|
|
198
|
+
"inputSchemaName": "SleepInput",
|
|
199
|
+
"outputSchemaName": null
|
|
200
|
+
},
|
|
201
|
+
"stringTransform": {
|
|
202
|
+
"name": "stringTransform",
|
|
203
|
+
"displayName": "String Transform",
|
|
204
|
+
"category": "Data",
|
|
205
|
+
"type": "action",
|
|
206
|
+
"rpc": "stringTransform",
|
|
207
|
+
"description": "Transform strings (case, trim, split, replace, etc.)",
|
|
208
|
+
"errorOutput": false,
|
|
209
|
+
"inputSchemaName": "StringTransformInput",
|
|
210
|
+
"outputSchemaName": "StringTransformOutput"
|
|
211
|
+
},
|
|
212
|
+
"typeConvert": {
|
|
213
|
+
"name": "typeConvert",
|
|
214
|
+
"displayName": "Type Convert",
|
|
215
|
+
"category": "Data",
|
|
216
|
+
"type": "action",
|
|
217
|
+
"rpc": "typeConvert",
|
|
218
|
+
"description": "Convert between types (string, number, boolean, json, array)",
|
|
219
|
+
"errorOutput": false,
|
|
220
|
+
"inputSchemaName": "TypeConvertInput",
|
|
221
|
+
"outputSchemaName": "TypeConvertOutput"
|
|
222
|
+
},
|
|
223
|
+
"editFields": {
|
|
224
|
+
"name": "editFields",
|
|
225
|
+
"displayName": "Edit Fields",
|
|
226
|
+
"category": "Transform",
|
|
227
|
+
"type": "action",
|
|
228
|
+
"rpc": "editFields",
|
|
229
|
+
"description": "Modify, add, or remove item fields",
|
|
230
|
+
"errorOutput": false,
|
|
231
|
+
"inputSchemaName": "EditFieldsInput",
|
|
232
|
+
"outputSchemaName": "EditFieldsOutput"
|
|
233
|
+
},
|
|
234
|
+
"merge": {
|
|
235
|
+
"name": "merge",
|
|
236
|
+
"displayName": "Merge",
|
|
237
|
+
"category": "Transform",
|
|
238
|
+
"type": "action",
|
|
239
|
+
"rpc": "merge",
|
|
240
|
+
"description": "Merge multiple objects into one",
|
|
241
|
+
"errorOutput": false,
|
|
242
|
+
"inputSchemaName": "MergeInput",
|
|
243
|
+
"outputSchemaName": "MergeOutput"
|
|
244
|
+
},
|
|
245
|
+
"omit": {
|
|
246
|
+
"name": "omit",
|
|
247
|
+
"displayName": "Omit",
|
|
248
|
+
"category": "Transform",
|
|
249
|
+
"type": "action",
|
|
250
|
+
"rpc": "omit",
|
|
251
|
+
"description": "Remove specified fields from an object",
|
|
252
|
+
"errorOutput": false,
|
|
253
|
+
"inputSchemaName": "OmitInput",
|
|
254
|
+
"outputSchemaName": "OmitOutput"
|
|
255
|
+
},
|
|
256
|
+
"pick": {
|
|
257
|
+
"name": "pick",
|
|
258
|
+
"displayName": "Pick",
|
|
259
|
+
"category": "Transform",
|
|
260
|
+
"type": "action",
|
|
261
|
+
"rpc": "pick",
|
|
262
|
+
"description": "Keep only specified fields from an object",
|
|
263
|
+
"errorOutput": false,
|
|
264
|
+
"inputSchemaName": "PickInput",
|
|
265
|
+
"outputSchemaName": "PickOutput"
|
|
266
|
+
},
|
|
267
|
+
"renameKeys": {
|
|
268
|
+
"name": "renameKeys",
|
|
269
|
+
"displayName": "Rename Keys",
|
|
270
|
+
"category": "Transform",
|
|
271
|
+
"type": "action",
|
|
272
|
+
"rpc": "renameKeys",
|
|
273
|
+
"description": "Update item field names",
|
|
274
|
+
"errorOutput": false,
|
|
275
|
+
"inputSchemaName": "RenameKeysInput",
|
|
276
|
+
"outputSchemaName": "RenameKeysOutput"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"secrets": {},
|
|
280
|
+
"package": {}
|
|
281
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.19
|
|
3
3
|
*/
|
|
4
4
|
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.js'
|
|
5
5
|
|
|
6
|
-
export type NodeCategory =
|
|
6
|
+
export type NodeCategory = never
|
|
7
7
|
|
|
8
8
|
export type NodeRPCName = keyof FlattenedRPCMap
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.19
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import type { CorePikkuMiddleware, CorePermissionGroup, PikkuWire, PickRequired } from '@pikku/core'
|
|
9
|
+
import type { CorePikkuFunctionConfig, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission } from '@pikku/core/function'
|
|
10
|
+
import { pikkuAuth as pikkuAuthCore } from '@pikku/core/function'
|
|
11
|
+
import { addMiddleware as addMiddlewareCore, addPermission as addPermissionCore } from '@pikku/core/middleware'
|
|
9
12
|
import { pikkuState as __pikkuState, CreateWireServices } from '@pikku/core/internal'
|
|
10
|
-
import {
|
|
13
|
+
import { PikkuError } from '@pikku/core/errors'
|
|
11
14
|
import type { NodeType } from '@pikku/core/node'
|
|
12
15
|
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
13
16
|
import { CorePikkuFunction, CorePikkuFunctionSessionless } from '@pikku/core/function'
|
|
@@ -30,7 +33,7 @@ export type Session = UserSession
|
|
|
30
33
|
*/
|
|
31
34
|
export type NodeConfig = {
|
|
32
35
|
displayName: string
|
|
33
|
-
category:
|
|
36
|
+
category: string
|
|
34
37
|
type: NodeType
|
|
35
38
|
errorOutput?: boolean
|
|
36
39
|
}
|
|
@@ -222,6 +225,37 @@ export const pikkuPermissionFactory = <In = any>(
|
|
|
222
225
|
return factory
|
|
223
226
|
}
|
|
224
227
|
|
|
228
|
+
/**
|
|
229
|
+
* A function that generates a human-readable description of a pending approval action.
|
|
230
|
+
* Used by AI agents to show meaningful approval prompts instead of raw tool arguments.
|
|
231
|
+
*
|
|
232
|
+
* @template In - The input type (same as the function it describes)
|
|
233
|
+
* @template RequiredServices - The services required for this description function
|
|
234
|
+
*/
|
|
235
|
+
export type PikkuApprovalDescription<In = unknown, RequiredServices extends Services = Services> = (
|
|
236
|
+
services: RequiredServices,
|
|
237
|
+
data: In
|
|
238
|
+
) => Promise<string>
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Factory function for creating approval description functions with tree-shaking support.
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
* ```typescript
|
|
245
|
+
* export const deleteTodoApproval = pikkuApprovalDescription(
|
|
246
|
+
* async ({ todoStore }, { id }) => {
|
|
247
|
+
* const todo = await todoStore.get(id)
|
|
248
|
+
* return \`Delete todo: "${todo.title}"\`
|
|
249
|
+
* }
|
|
250
|
+
* )
|
|
251
|
+
* ```
|
|
252
|
+
*/
|
|
253
|
+
export const pikkuApprovalDescription = <In = unknown, RequiredServices extends Services = Services>(
|
|
254
|
+
fn: PikkuApprovalDescription<In, RequiredServices>
|
|
255
|
+
): PikkuApprovalDescription<In, RequiredServices> => {
|
|
256
|
+
return fn
|
|
257
|
+
}
|
|
258
|
+
|
|
225
259
|
/**
|
|
226
260
|
* A sessionless API function that doesn't require user authentication.
|
|
227
261
|
* Use this for public endpoints, health checks, or operations that don't need user context.
|
|
@@ -292,7 +326,7 @@ export type PikkuFunctionConfig<
|
|
|
292
326
|
* Types are automatically inferred from the schemas.
|
|
293
327
|
*/
|
|
294
328
|
export type PikkuFunctionConfigWithSchema<
|
|
295
|
-
InputSchema extends StandardSchemaV1,
|
|
329
|
+
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
296
330
|
OutputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
297
331
|
RequiredWires extends keyof PikkuWire = never
|
|
298
332
|
> = {
|
|
@@ -301,21 +335,24 @@ export type PikkuFunctionConfigWithSchema<
|
|
|
301
335
|
expose?: boolean
|
|
302
336
|
mcp?: boolean
|
|
303
337
|
internal?: boolean
|
|
338
|
+
approvalRequired?: boolean
|
|
339
|
+
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never
|
|
304
340
|
func: PikkuFunction<
|
|
305
|
-
InferSchemaOutput<InputSchema
|
|
341
|
+
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
306
342
|
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
|
|
307
343
|
RequiredWires
|
|
308
344
|
> | PikkuFunctionSessionless<
|
|
309
|
-
InferSchemaOutput<InputSchema
|
|
345
|
+
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
310
346
|
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
|
|
311
347
|
RequiredWires
|
|
312
348
|
>
|
|
313
349
|
auth?: boolean
|
|
314
|
-
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>
|
|
350
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined
|
|
315
351
|
middleware?: PikkuMiddleware[]
|
|
316
|
-
input
|
|
352
|
+
input?: InputSchema
|
|
317
353
|
output?: OutputSchema
|
|
318
354
|
node?: NodeConfig
|
|
355
|
+
errors?: Array<typeof PikkuError>
|
|
319
356
|
}
|
|
320
357
|
|
|
321
358
|
/**
|
|
@@ -357,11 +394,11 @@ export type PikkuFunctionConfigWithSchema<
|
|
|
357
394
|
* ```
|
|
358
395
|
*/
|
|
359
396
|
export function pikkuFunc<
|
|
360
|
-
InputSchema extends StandardSchemaV1,
|
|
397
|
+
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
361
398
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
362
399
|
>(
|
|
363
400
|
config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>
|
|
364
|
-
): PikkuFunctionConfig<InferSchemaOutput<InputSchema
|
|
401
|
+
): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>
|
|
365
402
|
export function pikkuFunc<In, Out = unknown>(
|
|
366
403
|
func:
|
|
367
404
|
| PikkuFunction<In, Out, 'session' | 'rpc'>
|
|
@@ -375,7 +412,7 @@ export function pikkuFunc(func: any) {
|
|
|
375
412
|
* Configuration object for sessionless Pikku functions with Zod schema validation.
|
|
376
413
|
*/
|
|
377
414
|
export type PikkuFunctionSessionlessConfigWithSchema<
|
|
378
|
-
InputSchema extends StandardSchemaV1,
|
|
415
|
+
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
379
416
|
OutputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
380
417
|
RequiredWires extends keyof PikkuWire = never
|
|
381
418
|
> = {
|
|
@@ -386,17 +423,20 @@ export type PikkuFunctionSessionlessConfigWithSchema<
|
|
|
386
423
|
mcp?: boolean
|
|
387
424
|
internal?: boolean
|
|
388
425
|
remote?: boolean
|
|
426
|
+
approvalRequired?: boolean
|
|
427
|
+
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never
|
|
389
428
|
func: PikkuFunctionSessionless<
|
|
390
|
-
InferSchemaOutput<InputSchema
|
|
429
|
+
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
391
430
|
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
|
|
392
431
|
RequiredWires
|
|
393
432
|
>
|
|
394
433
|
auth?: boolean
|
|
395
|
-
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>
|
|
434
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined
|
|
396
435
|
middleware?: PikkuMiddleware[]
|
|
397
|
-
input
|
|
436
|
+
input?: InputSchema
|
|
398
437
|
output?: OutputSchema
|
|
399
438
|
node?: NodeConfig
|
|
439
|
+
errors?: Array<typeof PikkuError>
|
|
400
440
|
}
|
|
401
441
|
|
|
402
442
|
/**
|
|
@@ -435,11 +475,11 @@ export type PikkuFunctionSessionlessConfigWithSchema<
|
|
|
435
475
|
* ```
|
|
436
476
|
*/
|
|
437
477
|
export function pikkuSessionlessFunc<
|
|
438
|
-
InputSchema extends StandardSchemaV1,
|
|
478
|
+
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
439
479
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
440
480
|
>(
|
|
441
481
|
config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>
|
|
442
|
-
): PikkuFunctionConfig<InferSchemaOutput<InputSchema
|
|
482
|
+
): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>
|
|
443
483
|
export function pikkuSessionlessFunc<In, Out = unknown>(
|
|
444
484
|
func:
|
|
445
485
|
| PikkuFunctionSessionless<In, Out, 'session' | 'rpc'>
|
|
@@ -474,27 +514,23 @@ export const pikkuVoidFunc = (
|
|
|
474
514
|
}
|
|
475
515
|
|
|
476
516
|
/**
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
* without type compatibility issues.
|
|
517
|
+
* References a registered function by name for use in any wiring.
|
|
518
|
+
* Works for both local and addon functions — resolves via RPC at runtime.
|
|
480
519
|
*
|
|
481
|
-
* @template Name - The
|
|
482
|
-
* @param rpcName - The name of the
|
|
483
|
-
* @returns A Pikku function that proxies calls
|
|
520
|
+
* @template Name - The function name (must be a key in FlattenedRPCMap)
|
|
521
|
+
* @param rpcName - The name of the function to reference
|
|
522
|
+
* @returns A Pikku function config that proxies calls via RPC
|
|
484
523
|
*
|
|
485
524
|
* @example
|
|
486
525
|
* ```typescript
|
|
487
|
-
* //
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
*
|
|
492
|
-
* func: addon('ext:hello'),
|
|
493
|
-
* tags: ['addon'],
|
|
494
|
-
* })
|
|
526
|
+
* // Use in agent tools
|
|
527
|
+
* tools: [ref('todos:listTodos'), ref('myLocalFunc')]
|
|
528
|
+
*
|
|
529
|
+
* // Use in HTTP wiring
|
|
530
|
+
* wireHTTP({ route: '/greet', method: 'post', func: ref('greet') })
|
|
495
531
|
* ```
|
|
496
532
|
*/
|
|
497
|
-
export const
|
|
533
|
+
export const ref = <Name extends keyof FlattenedRPCMap>(
|
|
498
534
|
rpcName: Name
|
|
499
535
|
): PikkuFunctionConfig<
|
|
500
536
|
FlattenedRPCMap[Name]['input'],
|
|
@@ -644,5 +680,5 @@ export const addPermission = <In = unknown>(tag: string, permissions: CorePermis
|
|
|
644
680
|
addPermissionCore(tag, permissions as any, '@pikku/addon-graph')
|
|
645
681
|
}
|
|
646
682
|
|
|
647
|
-
export { wireAddon } from '@pikku/core'
|
|
648
|
-
export type { WireAddonConfig } from '@pikku/core'
|
|
683
|
+
export { wireAddon } from '@pikku/core/rpc'
|
|
684
|
+
export type { WireAddonConfig } from '@pikku/core/rpc'
|