@pikku/addon-console 0.12.7 → 0.12.9

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 (107) hide show
  1. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
  2. package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
  3. package/dist/.pikku/addon/pikku-package.gen.js +1 -1
  4. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
  5. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  6. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  7. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  8. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
  9. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  10. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  11. package/dist/.pikku/function/pikku-function-types.gen.d.ts +43 -69
  12. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  13. package/dist/.pikku/function/pikku-function-types.gen.js +33 -40
  14. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  15. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  16. package/dist/.pikku/function/pikku-functions-meta.gen.json +115 -12
  17. package/dist/.pikku/function/pikku-functions.gen.js +7 -1
  18. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
  19. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  20. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  21. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  22. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  23. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  24. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  25. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  26. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  27. package/dist/.pikku/pikku-services.gen.d.ts +5 -2
  28. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  29. package/dist/.pikku/pikku-services.gen.js +3 -0
  30. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  31. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  32. package/dist/.pikku/pikku-types.gen.js +1 -1
  33. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  34. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  35. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +24 -8
  36. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +24 -8
  37. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  38. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +3 -0
  39. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  40. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  41. package/dist/.pikku/schemas/register.gen.js +7 -1
  42. package/dist/.pikku/schemas/register.gen.js.map +1 -1
  43. package/dist/.pikku/schemas/schemas/AddonPackageInfo.schema.json +1 -1
  44. package/dist/.pikku/schemas/schemas/AllMeta.schema.json +1 -1
  45. package/dist/.pikku/schemas/schemas/FunctionCoverageReport.schema.json +1 -0
  46. package/dist/.pikku/schemas/schemas/GetAddonMetaOutput.schema.json +1 -1
  47. package/dist/.pikku/schemas/schemas/GetAgentThreadsInput.schema.json +1 -1
  48. package/dist/.pikku/schemas/schemas/GetFunctionsMetaOutput.schema.json +1 -1
  49. package/dist/.pikku/schemas/schemas/GetStateDiffInput.schema.json +1 -0
  50. package/dist/.pikku/schemas/schemas/StateDiff.schema.json +1 -0
  51. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  52. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  53. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  54. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  55. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  56. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  57. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  58. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  59. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  60. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  61. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  62. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  63. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  64. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  65. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  66. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  67. package/dist/src/functions/get-agent-threads.function.d.ts +3 -0
  68. package/dist/src/functions/get-agent-threads.function.d.ts.map +1 -1
  69. package/dist/src/functions/get-agent-threads.function.js +2 -1
  70. package/dist/src/functions/get-agent-threads.function.js.map +1 -1
  71. package/dist/src/functions/get-function-coverage.function.d.ts +26 -0
  72. package/dist/src/functions/get-function-coverage.function.d.ts.map +1 -0
  73. package/dist/src/functions/get-function-coverage.function.js +22 -0
  74. package/dist/src/functions/get-function-coverage.function.js.map +1 -0
  75. package/dist/src/functions/get-functions-meta.function.d.ts +10 -1
  76. package/dist/src/functions/get-functions-meta.function.d.ts.map +1 -1
  77. package/dist/src/functions/get-functions-meta.function.js +31 -2
  78. package/dist/src/functions/get-functions-meta.function.js.map +1 -1
  79. package/dist/src/functions/get-state-diff.function.d.ts +12 -0
  80. package/dist/src/functions/get-state-diff.function.d.ts.map +1 -0
  81. package/dist/src/functions/get-state-diff.function.js +13 -0
  82. package/dist/src/functions/get-state-diff.function.js.map +1 -0
  83. package/dist/src/functions/install-addon.function.d.ts.map +1 -1
  84. package/dist/src/functions/install-addon.function.js +5 -4
  85. package/dist/src/functions/install-addon.function.js.map +1 -1
  86. package/dist/src/functions/install-openapi-addon.function.d.ts.map +1 -1
  87. package/dist/src/functions/install-openapi-addon.function.js +5 -4
  88. package/dist/src/functions/install-openapi-addon.function.js.map +1 -1
  89. package/dist/src/functions/run-function-tests.function.d.ts +3 -0
  90. package/dist/src/functions/run-function-tests.function.d.ts.map +1 -0
  91. package/dist/src/functions/run-function-tests.function.js +64 -0
  92. package/dist/src/functions/run-function-tests.function.js.map +1 -0
  93. package/dist/src/functions/stream-workflow-run.function.js +1 -1
  94. package/dist/src/functions/stream-workflow-run.function.js.map +1 -1
  95. package/dist/src/services/code-edit.service.js.map +1 -1
  96. package/dist/src/services/state-diff.service.d.ts +76 -0
  97. package/dist/src/services/state-diff.service.d.ts.map +1 -0
  98. package/dist/src/services/state-diff.service.js +148 -0
  99. package/dist/src/services/state-diff.service.js.map +1 -0
  100. package/dist/src/services/wiring.service.d.ts +18 -1
  101. package/dist/src/services/wiring.service.d.ts.map +1 -1
  102. package/dist/src/services/wiring.service.js +254 -10
  103. package/dist/src/services/wiring.service.js.map +1 -1
  104. package/dist/src/services.d.ts.map +1 -1
  105. package/dist/src/services.js +12 -5
  106. package/dist/src/services.js.map +1 -1
  107. package/package.json +10 -5
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,IAAI;IACrB,YAAY,EAAE,IAAI;IAClB,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,IAAI;IACvB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE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AAkB,EAAE,IAAI;IACxB,WAAW,EAAE,IAAI;IACjB,eAAe,EAAE,IAAI;IACrB,oBAAoB,EAAE,IAAI;IAC1B,iBAAiB,EAAE,IAAI;CACf,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA;AAOV,oDAAoD;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,WAAW,EAAC,aAAa,EAAC,eAAe,EAAC,kBAAkB,EAAC,iBAAiB,EAAC,iBAAiB,EAAC,oBAAoB,EAAC,WAAW,EAAC,YAAY,EAAC,mBAAmB,EAAC,mBAAmB,CAAU,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.16
2
+ * This file was generated by @pikku/cli@0.12.22
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.16
2
+ * This file was generated by @pikku/cli@0.12.22
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.16
2
+ * This file was generated by @pikku/cli@0.12.22
3
3
  */
4
4
  /**
5
5
  * Queue-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.16
2
+ * This file was generated by @pikku/cli@0.12.22
3
3
  */
4
4
  /**
5
5
  * Queue-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.16
2
+ * This file was generated by @pikku/cli@0.12.22
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -9,13 +9,16 @@
9
9
  import type { AgentCredentialRequirement } from '../../src/functions/agent-credential-check.function.js'
10
10
  import type { CredentialUserEntry } from '../../src/functions/credential-list-users.function.js'
11
11
  import type { AddonPackageInfo } from '../../src/services/addon.service.js'
12
- import type { FunctionMeta, FunctionRuntimeMeta, FunctionServicesMeta, FunctionWiresMeta, MiddlewareMetadata, PermissionMetadata, CommonWireMeta } from '../../../../core/dist/types/core.types.d.js'
12
+ import type { FunctionMetaWithVersions, FunctionVersionEntry } from '../../src/functions/get-functions-meta.function.js'
13
+ import type { FunctionRuntimeMeta, FunctionServicesMeta, FunctionWiresMeta, MiddlewareMetadata, PermissionMetadata, CommonWireMeta } from '../../../../core/dist/types/core.types.d.js'
13
14
  import type { InstalledAddon } from '../../src/functions/get-installed-addons.function.js'
14
15
  import type { WorkflowStepMeta, RpcStepMeta, BranchStepMeta, ParallelGroupStepMeta, FanoutStepMeta, ReturnStepMeta, InlineStepMeta, SleepStepMeta, CancelStepMeta, SwitchStepMeta, FilterStepMeta, ArrayPredicateStepMeta, SetStepMeta } from '../../../../core/dist/wirings/workflow/dsl/workflow-dsl.types.d.js'
15
16
  import type { WorkflowContext } from '../../../../core/dist/wirings/workflow/workflow.types.d.js'
16
17
  import type { AgentConfigChanges, FunctionConfigChanges } from '../../src/services/code-edit.service.js'
17
18
  import type { AllMeta, ChannelSnippets } from '../../src/services/wiring.service.js'
19
+ import type { FunctionCoverageReport } from '../../src/functions/get-function-coverage.function.js'
18
20
  import type { JSONSchema7 } from 'json-schema'
21
+ import type { StateDiff } from '../../src/services/state-diff.service.js'
19
22
 
20
23
  export type AgentCredentialCheckInput = { agentName: string; userId?: string; }
21
24
  export type AgentCredentialCheckOutput = { requirements: AgentCredentialRequirement[]; allConnected: boolean; }
@@ -42,18 +45,19 @@ export type GetAgentThreadMessagesInput = { threadId: string; }
42
45
  export type GetAgentThreadMessagesOutput = any[]
43
46
  export type GetAgentThreadRunsInput = { threadId: string; }
44
47
  export type GetAgentThreadRunsOutput = any[]
45
- export type GetAgentThreadsInput = { agentName?: string; limit?: number; offset?: number; }
48
+ export type GetAgentThreadsInput = { agentName?: string; resourceId?: string; limit?: number; offset?: number; }
46
49
  export type GetAgentThreadsOutput = any[]
47
50
  export type GetAIWorkflowsInput = { agentName?: string; }
48
51
  export type GetAIWorkflowsOutput = { workflowName: string; graphHash: string; graph: any; }[]
49
52
  export type GetChannelSnippetsInput = { channelName: string; }
50
- export type GetFunctionsMetaOutput = FunctionMeta[]
53
+ export type GetFunctionsMetaOutput = FunctionMetaWithVersions[]
51
54
  export type GetInstalledAddonsOutput = InstalledAddon[]
52
55
  export type GetOpenapiDetailInput = { name: string; }
53
56
  export type GetOpenapiDetailOutput = { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; swaggerYamlUrl?: string; logo?: string; categories: string[]; tags: string[]; added?: string; updated?: string; }
54
57
  export type GetOpenapisInput = { limit: number; offset: number; search?: string; }
55
58
  export type GetOpenapisOutput = { apis: { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; logo?: string; }[]; total: number; nextCursor: number; }
56
59
  export type GetSchemaInput = { schemaName: string; }
60
+ export type GetStateDiffInput = { basePath: string; oursPath?: string; }
57
61
  export type GetWorkflowMetaByIdInput = { workflowId: string; }
58
62
  export type GetWorkflowMetaByIdOutput = CommonWireMeta & { name: string; steps: WorkflowStepMeta[]; context?: WorkflowContext; dsl?: boolean; inline?: boolean; expose?: boolean; }
59
63
  export type GetWorkflowRunHistoryInput = { runId: string; }
@@ -121,12 +125,14 @@ export type RPCMap = {
121
125
  readonly 'getAIWorkflows': RPCHandler<GetAIWorkflowsInput, GetAIWorkflowsOutput>,
122
126
  readonly 'getAllMeta': RPCHandler<null, AllMeta>,
123
127
  readonly 'getChannelSnippets': RPCHandler<GetChannelSnippetsInput, ChannelSnippets>,
128
+ readonly 'getFunctionCoverage': RPCHandler<null, FunctionCoverageReport>,
124
129
  readonly 'getFunctionsMeta': RPCHandler<null, GetFunctionsMetaOutput>,
125
130
  readonly 'getInstalledAddons': RPCHandler<null, GetInstalledAddonsOutput>,
126
131
  readonly 'getAddonInstalledPackage': RPCHandler<GetAddonInstalledPackageInput, AddonPackageInfo>,
127
132
  readonly 'getOpenapiDetail': RPCHandler<GetOpenapiDetailInput, GetOpenapiDetailOutput>,
128
133
  readonly 'getOpenapis': RPCHandler<GetOpenapisInput, GetOpenapisOutput>,
129
134
  readonly 'getSchema': RPCHandler<GetSchemaInput, JSONSchema7>,
135
+ readonly 'getStateDiff': RPCHandler<GetStateDiffInput, StateDiff>,
130
136
  readonly 'getWorkflowMetaById': RPCHandler<GetWorkflowMetaByIdInput, GetWorkflowMetaByIdOutput>,
131
137
  readonly 'getWorkflowRunHistory': RPCHandler<GetWorkflowRunHistoryInput, GetWorkflowRunHistoryOutput>,
132
138
  readonly 'getWorkflowRunNames': RPCHandler<null, GetWorkflowRunNamesOutput>,
@@ -146,6 +152,7 @@ export type RPCMap = {
146
152
  readonly 'readAgentSource': RPCHandler<ReadAgentSourceInput, ReadAgentSourceOutput>,
147
153
  readonly 'readFunctionBody': RPCHandler<ReadFunctionBodyInput, ReadFunctionBodyOutput>,
148
154
  readonly 'readFunctionSource': RPCHandler<ReadFunctionSourceInput, ReadFunctionSourceOutput>,
155
+ readonly 'runFunctionTests': RPCHandler<null, FunctionCoverageReport>,
149
156
  readonly 'updateAgentConfig': RPCHandler<UpdateAgentConfigInput, UpdateAgentConfigOutput>,
150
157
  readonly 'updateFunctionBody': RPCHandler<UpdateFunctionBodyInput, UpdateFunctionBodyOutput>,
151
158
  readonly 'updateFunctionConfig': RPCHandler<UpdateFunctionConfigInput, UpdateFunctionConfigOutput>,
@@ -156,15 +163,24 @@ export type RPCMap = {
156
163
  // No addon packages, use RPCMap directly
157
164
  export type FlattenedRPCMap = RPCMap
158
165
 
166
+ type IsAny<T> = 0 extends (1 & T) ? true : false
167
+ type IsVoidishInput<T> = IsAny<T> extends true
168
+ ? false
169
+ : [T] extends [void | null | undefined]
170
+ ? true
171
+ : false
172
+
159
173
 
160
174
  export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
161
- name: Name,
162
- data: FlattenedRPCMap[Name]['input']
175
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
176
+ ? [name: Name]
177
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
163
178
  ) => Promise<FlattenedRPCMap[Name]['output']>
164
179
 
165
180
  export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
166
- name: Name,
167
- data: FlattenedRPCMap[Name]['input']
181
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
182
+ ? [name: Name]
183
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
168
184
  ) => Promise<FlattenedRPCMap[Name]['output']>
169
185
 
170
186
  import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.16
2
+ * This file was generated by @pikku/cli@0.12.22
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -9,13 +9,16 @@
9
9
  import type { AgentCredentialRequirement } from '../../src/functions/agent-credential-check.function.js'
10
10
  import type { CredentialUserEntry } from '../../src/functions/credential-list-users.function.js'
11
11
  import type { AddonPackageInfo } from '../../src/services/addon.service.js'
12
- import type { FunctionMeta, FunctionRuntimeMeta, FunctionServicesMeta, FunctionWiresMeta, MiddlewareMetadata, PermissionMetadata, CommonWireMeta } from '../../../../core/dist/types/core.types.d.js'
12
+ import type { FunctionMetaWithVersions, FunctionVersionEntry } from '../../src/functions/get-functions-meta.function.js'
13
+ import type { FunctionRuntimeMeta, FunctionServicesMeta, FunctionWiresMeta, MiddlewareMetadata, PermissionMetadata, CommonWireMeta } from '../../../../core/dist/types/core.types.d.js'
13
14
  import type { InstalledAddon } from '../../src/functions/get-installed-addons.function.js'
14
15
  import type { WorkflowStepMeta, RpcStepMeta, BranchStepMeta, ParallelGroupStepMeta, FanoutStepMeta, ReturnStepMeta, InlineStepMeta, SleepStepMeta, CancelStepMeta, SwitchStepMeta, FilterStepMeta, ArrayPredicateStepMeta, SetStepMeta } from '../../../../core/dist/wirings/workflow/dsl/workflow-dsl.types.d.js'
15
16
  import type { WorkflowContext } from '../../../../core/dist/wirings/workflow/workflow.types.d.js'
16
17
  import type { AgentConfigChanges, FunctionConfigChanges } from '../../src/services/code-edit.service.js'
17
18
  import type { AllMeta, ChannelSnippets } from '../../src/services/wiring.service.js'
19
+ import type { FunctionCoverageReport } from '../../src/functions/get-function-coverage.function.js'
18
20
  import type { JSONSchema7 } from 'json-schema'
21
+ import type { StateDiff } from '../../src/services/state-diff.service.js'
19
22
 
20
23
  export type AgentCredentialCheckInput = { agentName: string; userId?: string; }
21
24
  export type AgentCredentialCheckOutput = { requirements: AgentCredentialRequirement[]; allConnected: boolean; }
@@ -42,18 +45,19 @@ export type GetAgentThreadMessagesInput = { threadId: string; }
42
45
  export type GetAgentThreadMessagesOutput = any[]
43
46
  export type GetAgentThreadRunsInput = { threadId: string; }
44
47
  export type GetAgentThreadRunsOutput = any[]
45
- export type GetAgentThreadsInput = { agentName?: string; limit?: number; offset?: number; }
48
+ export type GetAgentThreadsInput = { agentName?: string; resourceId?: string; limit?: number; offset?: number; }
46
49
  export type GetAgentThreadsOutput = any[]
47
50
  export type GetAIWorkflowsInput = { agentName?: string; }
48
51
  export type GetAIWorkflowsOutput = { workflowName: string; graphHash: string; graph: any; }[]
49
52
  export type GetChannelSnippetsInput = { channelName: string; }
50
- export type GetFunctionsMetaOutput = FunctionMeta[]
53
+ export type GetFunctionsMetaOutput = FunctionMetaWithVersions[]
51
54
  export type GetInstalledAddonsOutput = InstalledAddon[]
52
55
  export type GetOpenapiDetailInput = { name: string; }
53
56
  export type GetOpenapiDetailOutput = { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; swaggerYamlUrl?: string; logo?: string; categories: string[]; tags: string[]; added?: string; updated?: string; }
54
57
  export type GetOpenapisInput = { limit: number; offset: number; search?: string; }
55
58
  export type GetOpenapisOutput = { apis: { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; logo?: string; }[]; total: number; nextCursor: number; }
56
59
  export type GetSchemaInput = { schemaName: string; }
60
+ export type GetStateDiffInput = { basePath: string; oursPath?: string; }
57
61
  export type GetWorkflowMetaByIdInput = { workflowId: string; }
58
62
  export type GetWorkflowMetaByIdOutput = CommonWireMeta & { name: string; steps: WorkflowStepMeta[]; context?: WorkflowContext; dsl?: boolean; inline?: boolean; expose?: boolean; }
59
63
  export type GetWorkflowRunHistoryInput = { runId: string; }
@@ -121,12 +125,14 @@ export type RPCMap = {
121
125
  readonly 'getAIWorkflows': RPCHandler<GetAIWorkflowsInput, GetAIWorkflowsOutput>,
122
126
  readonly 'getAllMeta': RPCHandler<null, AllMeta>,
123
127
  readonly 'getChannelSnippets': RPCHandler<GetChannelSnippetsInput, ChannelSnippets>,
128
+ readonly 'getFunctionCoverage': RPCHandler<null, FunctionCoverageReport>,
124
129
  readonly 'getFunctionsMeta': RPCHandler<null, GetFunctionsMetaOutput>,
125
130
  readonly 'getInstalledAddons': RPCHandler<null, GetInstalledAddonsOutput>,
126
131
  readonly 'getAddonInstalledPackage': RPCHandler<GetAddonInstalledPackageInput, AddonPackageInfo>,
127
132
  readonly 'getOpenapiDetail': RPCHandler<GetOpenapiDetailInput, GetOpenapiDetailOutput>,
128
133
  readonly 'getOpenapis': RPCHandler<GetOpenapisInput, GetOpenapisOutput>,
129
134
  readonly 'getSchema': RPCHandler<GetSchemaInput, JSONSchema7>,
135
+ readonly 'getStateDiff': RPCHandler<GetStateDiffInput, StateDiff>,
130
136
  readonly 'getWorkflowMetaById': RPCHandler<GetWorkflowMetaByIdInput, GetWorkflowMetaByIdOutput>,
131
137
  readonly 'getWorkflowRunHistory': RPCHandler<GetWorkflowRunHistoryInput, GetWorkflowRunHistoryOutput>,
132
138
  readonly 'getWorkflowRunNames': RPCHandler<null, GetWorkflowRunNamesOutput>,
@@ -146,6 +152,7 @@ export type RPCMap = {
146
152
  readonly 'readAgentSource': RPCHandler<ReadAgentSourceInput, ReadAgentSourceOutput>,
147
153
  readonly 'readFunctionBody': RPCHandler<ReadFunctionBodyInput, ReadFunctionBodyOutput>,
148
154
  readonly 'readFunctionSource': RPCHandler<ReadFunctionSourceInput, ReadFunctionSourceOutput>,
155
+ readonly 'runFunctionTests': RPCHandler<null, FunctionCoverageReport>,
149
156
  readonly 'streamWorkflowRun': RPCHandler<StreamWorkflowRunInput, null>,
150
157
  readonly 'updateAgentConfig': RPCHandler<UpdateAgentConfigInput, UpdateAgentConfigOutput>,
151
158
  readonly 'updateFunctionBody': RPCHandler<UpdateFunctionBodyInput, UpdateFunctionBodyOutput>,
@@ -157,15 +164,24 @@ export type RPCMap = {
157
164
  // No addon packages, use RPCMap directly
158
165
  export type FlattenedRPCMap = RPCMap
159
166
 
167
+ type IsAny<T> = 0 extends (1 & T) ? true : false
168
+ type IsVoidishInput<T> = IsAny<T> extends true
169
+ ? false
170
+ : [T] extends [void | null | undefined]
171
+ ? true
172
+ : false
173
+
160
174
 
161
175
  export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
162
- name: Name,
163
- data: FlattenedRPCMap[Name]['input']
176
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
177
+ ? [name: Name]
178
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
164
179
  ) => Promise<FlattenedRPCMap[Name]['output']>
165
180
 
166
181
  export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
167
- name: Name,
168
- data: FlattenedRPCMap[Name]['input']
182
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
183
+ ? [name: Name]
184
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
169
185
  ) => Promise<FlattenedRPCMap[Name]['output']>
170
186
 
171
187
  import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.16
2
+ * This file was generated by @pikku/cli@0.12.22
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' };
@@ -17,12 +17,14 @@
17
17
  "getAIWorkflows": "getAIWorkflows",
18
18
  "getAllMeta": "getAllMeta",
19
19
  "getChannelSnippets": "getChannelSnippets",
20
+ "getFunctionCoverage": "getFunctionCoverage",
20
21
  "getFunctionsMeta": "getFunctionsMeta",
21
22
  "getInstalledAddons": "getInstalledAddons",
22
23
  "getAddonInstalledPackage": "getAddonInstalledPackage",
23
24
  "getOpenapiDetail": "getOpenapiDetail",
24
25
  "getOpenapis": "getOpenapis",
25
26
  "getSchema": "getSchema",
27
+ "getStateDiff": "getStateDiff",
26
28
  "getWorkflowMetaById": "getWorkflowMetaById",
27
29
  "getWorkflowRunHistory": "getWorkflowRunHistory",
28
30
  "getWorkflowRunNames": "getWorkflowRunNames",
@@ -42,6 +44,7 @@
42
44
  "readAgentSource": "readAgentSource",
43
45
  "readFunctionBody": "readFunctionBody",
44
46
  "readFunctionSource": "readFunctionSource",
47
+ "runFunctionTests": "runFunctionTests",
45
48
  "streamWorkflowRun": "streamWorkflowRun",
46
49
  "updateAgentConfig": "updateAgentConfig",
47
50
  "updateFunctionBody": "updateFunctionBody",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.16
2
+ * This file was generated by @pikku/cli@0.12.22
3
3
  */
4
4
  /**
5
5
  * Scheduler-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.16
2
+ * This file was generated by @pikku/cli@0.12.22
3
3
  */
4
4
  /**
5
5
  * Scheduler-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.16
2
+ * This file was generated by @pikku/cli@0.12.22
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema';
5
5
  import * as AgentCredentialCheckInput from './schemas/AgentCredentialCheckInput.schema.json' with { type: 'json' };
@@ -66,6 +66,8 @@ import * as GetChannelSnippetsInput from './schemas/GetChannelSnippetsInput.sche
66
66
  addSchema('GetChannelSnippetsInput', GetChannelSnippetsInput, '@pikku/addon-console');
67
67
  import * as ChannelSnippets from './schemas/ChannelSnippets.schema.json' with { type: 'json' };
68
68
  addSchema('ChannelSnippets', ChannelSnippets, '@pikku/addon-console');
69
+ import * as FunctionCoverageReport from './schemas/FunctionCoverageReport.schema.json' with { type: 'json' };
70
+ addSchema('FunctionCoverageReport', FunctionCoverageReport, '@pikku/addon-console');
69
71
  import * as GetFunctionsMetaOutput from './schemas/GetFunctionsMetaOutput.schema.json' with { type: 'json' };
70
72
  addSchema('GetFunctionsMetaOutput', GetFunctionsMetaOutput, '@pikku/addon-console');
71
73
  import * as GetInstalledAddonsOutput from './schemas/GetInstalledAddonsOutput.schema.json' with { type: 'json' };
@@ -84,6 +86,10 @@ import * as GetSchemaInput from './schemas/GetSchemaInput.schema.json' with { ty
84
86
  addSchema('GetSchemaInput', GetSchemaInput, '@pikku/addon-console');
85
87
  import * as JSONSchema7 from './schemas/JSONSchema7.schema.json' with { type: 'json' };
86
88
  addSchema('JSONSchema7', JSONSchema7, '@pikku/addon-console');
89
+ import * as GetStateDiffInput from './schemas/GetStateDiffInput.schema.json' with { type: 'json' };
90
+ addSchema('GetStateDiffInput', GetStateDiffInput, '@pikku/addon-console');
91
+ import * as StateDiff from './schemas/StateDiff.schema.json' with { type: 'json' };
92
+ addSchema('StateDiff', StateDiff, '@pikku/addon-console');
87
93
  import * as GetWorkflowMetaByIdInput from './schemas/GetWorkflowMetaByIdInput.schema.json' with { type: 'json' };
88
94
  addSchema('GetWorkflowMetaByIdInput', GetWorkflowMetaByIdInput, '@pikku/addon-console');
89
95
  import * as GetWorkflowMetaByIdOutput from './schemas/GetWorkflowMetaByIdOutput.schema.json' with { type: 'json' };
@@ -1 +1 @@
1
- {"version":3,"file":"register.gen.js","sourceRoot":"","sources":["../../../.pikku/schemas/register.g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1
- { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "displayName": { "type": "string" }, "version": { "type": "string" }, "description": { "type": "string" }, "author": { "type": "string" }, "repository": { "type": "string" }, "license": { "type": "string" }, "readme": { "type": "string" }, "icon": { "type": "string" }, "publishedAt": { "type": "string" }, "updatedAt": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "categories": { "type": "array", "items": { "type": "string" } }, "functions": { "$ref": "#/definitions/FunctionsMeta" }, "agents": { "type": "object", "additionalProperties": {} }, "secrets": { "type": "object", "additionalProperties": {} }, "variables": { "type": "object", "additionalProperties": {} }, "httpRoutes": { "$ref": "#/definitions/HTTPWiringsMeta" }, "channels": { "$ref": "#/definitions/ChannelsMeta" }, "cli": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIProgramMeta" } }, "mcp": { "anyOf": [{ "$ref": "#/definitions/McpMeta" }, { "type": "null" }] }, "schemas": { "type": "object", "additionalProperties": {} } }, "required": ["id", "name", "displayName", "version", "description", "author", "publishedAt", "updatedAt", "tags", "categories", "functions", "agents", "secrets", "variables", "httpRoutes", "channels", "cli", "mcp", "schemas"], "additionalProperties": false, "definitions": { "FunctionsMeta": { "type": "object", "additionalProperties": { "$ref": "#/definitions/FunctionMeta" } }, "FunctionMeta": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "functionType": { "type": "string", "enum": ["user", "inline", "helper"] }, "funcWrapper": { "type": "string" }, "services": { "$ref": "#/definitions/FunctionServicesMeta" }, "wires": { "$ref": "#/definitions/FunctionWiresMeta" }, "inputs": { "anyOf": [{ "type": "array", "items": { "type": "string" } }, { "type": "null" }] }, "outputs": { "anyOf": [{ "type": "array", "items": { "type": "string" } }, { "type": "null" }] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "isDirectFunction": { "type": "boolean" }, "sourceFile": { "type": "string" }, "exportedName": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "title": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "inputSchemaName": { "type": ["string", "null"] }, "outputSchemaName": { "type": ["string", "null"] }, "expose": { "type": "boolean" }, "remote": { "type": "boolean" }, "mcp": { "type": "boolean" }, "readonly": { "type": "boolean" }, "deploy": { "type": "string", "enum": ["serverless", "server", "auto"] }, "sessionless": { "type": "boolean" }, "version": { "type": "number" }, "approvalRequired": { "type": "boolean" }, "approvalDescription": { "type": "string" }, "contractHash": { "type": "string" }, "inputHash": { "type": "string" }, "outputHash": { "type": "string" } }, "required": ["inputSchemaName", "outputSchemaName", "pikkuFuncId"] }, "FunctionServicesMeta": { "type": "object", "properties": { "optimized": { "type": "boolean" }, "services": { "type": "array", "items": { "type": "string" } } }, "required": ["optimized", "services"], "additionalProperties": false }, "FunctionWiresMeta": { "type": "object", "properties": { "optimized": { "type": "boolean" }, "wires": { "type": "array", "items": { "type": "string" } } }, "required": ["optimized", "wires"], "additionalProperties": false }, "MiddlewareMetadata": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "http" }, "route": { "type": "string" } }, "required": ["type", "route"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "tag" }, "tag": { "type": "string" } }, "required": ["type", "tag"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false }], "description": "Metadata for middleware at any level\n- type: 'http' = HTTP route middleware group (references httpGroup in pikkuState)\n- type: 'tag' = Tag-based middleware group (references tagGroup in pikkuState)\n- type: 'wire' = Wire-level individual middleware" }, "PermissionMetadata": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "http" }, "route": { "type": "string" } }, "required": ["type", "route"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "tag" }, "tag": { "type": "string" } }, "required": ["type", "tag"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false }], "description": "Metadata for permissions at any level\n- type: 'http' = HTTP route permission group (references httpGroup in pikkuState)\n- type: 'tag' = Tag-based permission group (references tagGroup in pikkuState)\n- type: 'wire' = Wire-level individual permission" }, "HTTPWiringsMeta": { "type": "object", "properties": { "post": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "get": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "delete": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "patch": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "head": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "put": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } } }, "required": ["post", "get", "delete", "patch", "head", "put", "options"], "additionalProperties": false }, "HTTPWiringMeta": { "type": "object", "additionalProperties": false, "properties": { "route": { "type": "string" }, "method": { "$ref": "#/definitions/HTTPMethod" }, "params": { "type": "array", "items": { "type": "string" } }, "query": { "type": "array", "items": { "type": "string" } }, "inputTypes": { "$ref": "#/definitions/HTTPFunctionMetaInputTypes" }, "headersSchemaName": { "type": "string" }, "sse": { "type": "boolean", "const": true }, "groupBasePath": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "title": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } } }, "required": ["method", "pikkuFuncId", "route"], "description": "Represents metadata for a set of HTTP wirings, including HTTP wiring details, methods, input/output types, and documentation." }, "HTTPMethod": { "type": "string", "enum": ["post", "get", "delete", "patch", "head", "put", "options"], "description": "Represents the HTTP methods supported for API HTTP wirings." }, "HTTPFunctionMetaInputTypes": { "type": "object", "properties": { "params": { "type": "string" }, "query": { "type": "string" }, "body": { "type": "string" } }, "additionalProperties": false, "description": "Represents the input types for HTTP wiring metadata, including parameters, query, and body types." }, "ChannelsMeta": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ChannelMeta" } }, "ChannelMeta": { "type": "object", "properties": { "name": { "type": "string" }, "route": { "type": "string" }, "params": { "type": "array", "items": { "type": "string" } }, "query": { "type": "array", "items": { "type": "string" } }, "input": { "type": ["string", "null"] }, "inputTypes": { "$ref": "#/definitions/HTTPFunctionMetaInputTypes" }, "connect": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "disconnect": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "message": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "messageWirings": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ChannelMessageMeta" } } }, "binary": { "type": ["boolean", "null"] }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "channelMiddleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } } }, "required": ["name", "route", "input", "connect", "disconnect", "message", "messageWirings"], "additionalProperties": false }, "ChannelMessageMeta": { "type": "object", "properties": { "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } } }, "required": ["pikkuFuncId"], "additionalProperties": false }, "CLIProgramMeta": { "type": "object", "properties": { "program": { "type": "string" }, "commands": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLICommandMeta" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIOption" } }, "defaultRenderName": { "type": "string" } }, "required": ["program", "commands", "options"], "additionalProperties": false, "description": "CLI metadata collection (per program)" }, "CLICommandMeta": { "type": "object", "properties": { "parameters": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "positionals": { "type": "array", "items": { "$ref": "#/definitions/CLIPositional" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIOption" } }, "renderName": { "type": "string" }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "subcommands": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLICommandMeta" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "isDefault": { "type": "boolean" } }, "required": ["pikkuFuncId", "positionals", "options"], "additionalProperties": false, "description": "CLI command metadata for runtime" }, "CLIPositional": { "type": "object", "properties": { "name": { "type": "string" }, "required": { "type": "boolean" }, "variadic": { "type": "boolean" } }, "required": ["name", "required"], "additionalProperties": false, "description": "Positional argument definition" }, "CLIOption": { "type": "object", "properties": { "description": { "type": "string" }, "short": { "type": "string" }, "default": {}, "choices": { "type": "array", "items": {} }, "array": { "type": "boolean" }, "required": { "type": "boolean" } }, "required": ["description"], "additionalProperties": false, "description": "CLI option definition" }, "McpMeta": { "type": "object", "properties": { "toolsMeta": { "$ref": "#/definitions/MCPToolMeta" }, "resourcesMeta": { "$ref": "#/definitions/MCPResourceMeta" }, "promptsMeta": { "$ref": "#/definitions/MCPPromptMeta" } }, "required": ["toolsMeta", "resourcesMeta", "promptsMeta"], "additionalProperties": false }, "MCPToolMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "name": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "streaming": { "type": "boolean" } }, "required": ["description", "inputSchema", "name", "outputSchema", "pikkuFuncId"] }, "description": "Represents metadata for MCP tools, including name, description, and documentation." }, "MCPResourceMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "uri": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "mimeType": { "type": "string" }, "size": { "type": "number" }, "streaming": { "type": "boolean" }, "tags": { "type": "array", "items": { "type": "string" } } }, "required": ["description", "inputSchema", "outputSchema", "pikkuFuncId", "title", "uri"] }, "description": "Represents metadata for MCP resources, including name, description, and documentation." }, "MCPPromptMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "arguments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "required": { "type": "boolean" } }, "required": ["name", "description", "required"], "additionalProperties": false } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "name": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } } }, "required": ["arguments", "description", "inputSchema", "name", "outputSchema", "pikkuFuncId"] }, "description": "Represents metadata for MCP prompts, including name, description, and arguments." } } }
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "displayName": { "type": "string" }, "version": { "type": "string" }, "description": { "type": "string" }, "author": { "type": "string" }, "repository": { "type": "string" }, "license": { "type": "string" }, "readme": { "type": "string" }, "icon": { "type": "string" }, "publishedAt": { "type": "string" }, "updatedAt": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "categories": { "type": "array", "items": { "type": "string" } }, "functions": { "$ref": "#/definitions/FunctionsMeta" }, "agents": { "type": "object", "additionalProperties": {} }, "secrets": { "type": "object", "additionalProperties": {} }, "variables": { "type": "object", "additionalProperties": {} }, "httpRoutes": { "$ref": "#/definitions/HTTPWiringsMeta" }, "channels": { "$ref": "#/definitions/ChannelsMeta" }, "cli": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIProgramMeta" } }, "mcp": { "anyOf": [{ "$ref": "#/definitions/McpMeta" }, { "type": "null" }] }, "schemas": { "type": "object", "additionalProperties": {} } }, "required": ["id", "name", "displayName", "version", "description", "author", "publishedAt", "updatedAt", "tags", "categories", "functions", "agents", "secrets", "variables", "httpRoutes", "channels", "cli", "mcp", "schemas"], "additionalProperties": false, "definitions": { "FunctionsMeta": { "type": "object", "additionalProperties": { "$ref": "#/definitions/FunctionMeta" } }, "FunctionMeta": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "functionType": { "type": "string", "enum": ["user", "inline", "helper"] }, "funcWrapper": { "type": "string" }, "services": { "$ref": "#/definitions/FunctionServicesMeta" }, "wires": { "$ref": "#/definitions/FunctionWiresMeta" }, "inputs": { "anyOf": [{ "type": "array", "items": { "type": "string" } }, { "type": "null" }] }, "outputs": { "anyOf": [{ "type": "array", "items": { "type": "string" } }, { "type": "null" }] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "isDirectFunction": { "type": "boolean" }, "sourceFile": { "type": "string" }, "exportedName": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "title": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "inputSchemaName": { "type": ["string", "null"] }, "outputSchemaName": { "type": ["string", "null"] }, "expose": { "type": "boolean" }, "remote": { "type": "boolean" }, "mcp": { "type": "boolean" }, "readonly": { "type": "boolean" }, "deploy": { "type": "string", "enum": ["serverless", "server", "auto"] }, "sessionless": { "type": "boolean" }, "version": { "type": "number" }, "approvalRequired": { "type": "boolean" }, "approvalDescription": { "type": "string" }, "implementationHash": { "type": "string" }, "contractHash": { "type": "string" }, "inputHash": { "type": "string" }, "outputHash": { "type": "string" } }, "required": ["inputSchemaName", "outputSchemaName", "pikkuFuncId"] }, "FunctionServicesMeta": { "type": "object", "properties": { "optimized": { "type": "boolean" }, "services": { "type": "array", "items": { "type": "string" } } }, "required": ["optimized", "services"], "additionalProperties": false }, "FunctionWiresMeta": { "type": "object", "properties": { "optimized": { "type": "boolean" }, "wires": { "type": "array", "items": { "type": "string" } } }, "required": ["optimized", "wires"], "additionalProperties": false }, "MiddlewareMetadata": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "http" }, "route": { "type": "string" } }, "required": ["type", "route"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "tag" }, "tag": { "type": "string" } }, "required": ["type", "tag"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false }], "description": "Metadata for middleware at any level\n- type: 'http' = HTTP route middleware group (references httpGroup in pikkuState)\n- type: 'tag' = Tag-based middleware group (references tagGroup in pikkuState)\n- type: 'wire' = Wire-level individual middleware" }, "PermissionMetadata": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "http" }, "route": { "type": "string" } }, "required": ["type", "route"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "tag" }, "tag": { "type": "string" } }, "required": ["type", "tag"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false }], "description": "Metadata for permissions at any level\n- type: 'http' = HTTP route permission group (references httpGroup in pikkuState)\n- type: 'tag' = Tag-based permission group (references tagGroup in pikkuState)\n- type: 'wire' = Wire-level individual permission" }, "HTTPWiringsMeta": { "type": "object", "properties": { "post": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "get": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "delete": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "patch": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "head": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "put": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } } }, "required": ["post", "get", "delete", "patch", "head", "put", "options"], "additionalProperties": false }, "HTTPWiringMeta": { "type": "object", "additionalProperties": false, "properties": { "route": { "type": "string" }, "method": { "$ref": "#/definitions/HTTPMethod" }, "params": { "type": "array", "items": { "type": "string" } }, "query": { "type": "array", "items": { "type": "string" } }, "inputTypes": { "$ref": "#/definitions/HTTPFunctionMetaInputTypes" }, "headersSchemaName": { "type": "string" }, "sse": { "type": "boolean", "const": true }, "groupBasePath": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "title": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } } }, "required": ["method", "pikkuFuncId", "route"], "description": "Represents metadata for a set of HTTP wirings, including HTTP wiring details, methods, input/output types, and documentation." }, "HTTPMethod": { "type": "string", "enum": ["post", "get", "delete", "patch", "head", "put", "options"], "description": "Represents the HTTP methods supported for API HTTP wirings." }, "HTTPFunctionMetaInputTypes": { "type": "object", "properties": { "params": { "type": "string" }, "query": { "type": "string" }, "body": { "type": "string" } }, "additionalProperties": false, "description": "Represents the input types for HTTP wiring metadata, including parameters, query, and body types." }, "ChannelsMeta": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ChannelMeta" } }, "ChannelMeta": { "type": "object", "properties": { "name": { "type": "string" }, "route": { "type": "string" }, "params": { "type": "array", "items": { "type": "string" } }, "query": { "type": "array", "items": { "type": "string" } }, "input": { "type": ["string", "null"] }, "inputTypes": { "$ref": "#/definitions/HTTPFunctionMetaInputTypes" }, "connect": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "disconnect": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "message": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "messageWirings": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ChannelMessageMeta" } } }, "binary": { "type": ["boolean", "null"] }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "channelMiddleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } } }, "required": ["name", "route", "input", "connect", "disconnect", "message", "messageWirings"], "additionalProperties": false }, "ChannelMessageMeta": { "type": "object", "properties": { "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } } }, "required": ["pikkuFuncId"], "additionalProperties": false }, "CLIProgramMeta": { "type": "object", "properties": { "program": { "type": "string" }, "commands": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLICommandMeta" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIOption" } }, "defaultRenderName": { "type": "string" } }, "required": ["program", "commands", "options"], "additionalProperties": false, "description": "CLI metadata collection (per program)" }, "CLICommandMeta": { "type": "object", "properties": { "parameters": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "positionals": { "type": "array", "items": { "$ref": "#/definitions/CLIPositional" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIOption" } }, "renderName": { "type": "string" }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "subcommands": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLICommandMeta" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "isDefault": { "type": "boolean" } }, "required": ["pikkuFuncId", "positionals", "options"], "additionalProperties": false, "description": "CLI command metadata for runtime" }, "CLIPositional": { "type": "object", "properties": { "name": { "type": "string" }, "required": { "type": "boolean" }, "variadic": { "type": "boolean" } }, "required": ["name", "required"], "additionalProperties": false, "description": "Positional argument definition" }, "CLIOption": { "type": "object", "properties": { "description": { "type": "string" }, "short": { "type": "string" }, "default": {}, "choices": { "type": "array", "items": {} }, "array": { "type": "boolean" }, "required": { "type": "boolean" } }, "required": ["description"], "additionalProperties": false, "description": "CLI option definition" }, "McpMeta": { "type": "object", "properties": { "toolsMeta": { "$ref": "#/definitions/MCPToolMeta" }, "resourcesMeta": { "$ref": "#/definitions/MCPResourceMeta" }, "promptsMeta": { "$ref": "#/definitions/MCPPromptMeta" } }, "required": ["toolsMeta", "resourcesMeta", "promptsMeta"], "additionalProperties": false }, "MCPToolMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "name": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "streaming": { "type": "boolean" } }, "required": ["inputSchema", "name", "outputSchema", "pikkuFuncId"] }, "description": "Represents metadata for MCP tools, including name, description, and documentation." }, "MCPResourceMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "uri": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "mimeType": { "type": "string" }, "size": { "type": "number" }, "streaming": { "type": "boolean" }, "tags": { "type": "array", "items": { "type": "string" } } }, "required": ["description", "inputSchema", "outputSchema", "pikkuFuncId", "title", "uri"] }, "description": "Represents metadata for MCP resources, including name, description, and documentation." }, "MCPPromptMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "arguments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "required": { "type": "boolean" } }, "required": ["name", "description", "required"], "additionalProperties": false } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "name": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } } }, "required": ["arguments", "description", "inputSchema", "name", "outputSchema", "pikkuFuncId"] }, "description": "Represents metadata for MCP prompts, including name, description, and arguments." } } }