chore: server-and-serverless template

This commit is contained in:
e2e
2026-06-28 15:07:15 +02:00
commit cea7d22a15
202 changed files with 9063 additions and 0 deletions

View File

@@ -0,0 +1,763 @@
{
"edgeEcho": {
"pikkuFuncId": "edgeEcho",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "edgeEcho",
"services": {
"optimized": true,
"services": []
},
"inputSchemaName": "EdgeEchoInput",
"outputSchemaName": "EdgeEchoOutput",
"inputs": [
"EdgeEchoInput"
],
"outputs": [
"EdgeEchoOutput"
],
"expose": true,
"implementationHash": "e1dd1c485212e3ea",
"description": "Echoes a message back from a serverless edge Worker.",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/functions/edge-echo.function.ts",
"exportedName": "edgeEcho",
"contractHash": "91dda37cd8231346",
"inputHash": "3bb62634",
"outputHash": "10641e1c"
},
"getMessage": {
"pikkuFuncId": "getMessage",
"functionType": "user",
"funcWrapper": "pikkuFunc",
"sessionless": false,
"name": "getMessage",
"services": {
"optimized": true,
"services": [
"kysely"
]
},
"inputSchemaName": "GetMessageInput",
"outputSchemaName": "GetMessageOutput",
"inputs": [
"GetMessageInput"
],
"outputs": [
"GetMessageOutput"
],
"expose": true,
"readonly": true,
"implementationHash": "90fc43e8778db110",
"description": "Returns the current starter message for the signed-in user.",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/functions/get-message.function.ts",
"exportedName": "getMessage",
"contractHash": "0b953679c3613f47",
"inputHash": "cd075fe2",
"outputHash": "d188ad31"
},
"getSession": {
"pikkuFuncId": "getSession",
"functionType": "user",
"funcWrapper": "pikkuFunc",
"sessionless": false,
"name": "getSession",
"services": {
"optimized": true,
"services": [
"kysely"
]
},
"wires": {
"optimized": true,
"wires": [
"session"
]
},
"inputSchemaName": "GetSessionInput",
"outputSchemaName": "GetSessionOutput",
"inputs": [
"GetSessionInput"
],
"outputs": [
"GetSessionOutput"
],
"expose": true,
"readonly": true,
"implementationHash": "2ed4f21ea016c7e3",
"description": "Returns the current signed-in user.",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/functions/get-session.function.ts",
"exportedName": "getSession",
"contractHash": "493320ce1e00cb69",
"inputHash": "ba4ab2e7",
"outputHash": "386fe409"
},
"serverCounter": {
"pikkuFuncId": "serverCounter",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "serverCounter",
"services": {
"optimized": true,
"services": []
},
"inputSchemaName": "ServerCounterInput",
"outputSchemaName": "ServerCounterOutput",
"inputs": [
"ServerCounterInput"
],
"outputs": [
"ServerCounterOutput"
],
"expose": true,
"deploy": "server",
"implementationHash": "8a956f633eb3a4a4",
"description": "Increments an in-memory counter held by the container instance.",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/functions/server-counter.function.ts",
"exportedName": "serverCounter",
"contractHash": "a891b2fe0608177d",
"inputHash": "d8945f99",
"outputHash": "56e3de15"
},
"serverUptime": {
"pikkuFuncId": "serverUptime",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "serverUptime",
"services": {
"optimized": true,
"services": []
},
"inputSchemaName": "ServerUptimeInput",
"outputSchemaName": "ServerUptimeOutput",
"inputs": [
"ServerUptimeInput"
],
"outputs": [
"ServerUptimeOutput"
],
"expose": true,
"readonly": true,
"deploy": "server",
"implementationHash": "046d656adb63b531",
"description": "Reports the serving container process uptime and runtime.",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/functions/server-uptime.function.ts",
"exportedName": "serverUptime",
"contractHash": "d62f18b9b2739cd6",
"inputHash": "5425fd1f",
"outputHash": "4c1b3905"
},
"updateMessage": {
"pikkuFuncId": "updateMessage",
"functionType": "user",
"funcWrapper": "pikkuFunc",
"sessionless": false,
"name": "updateMessage",
"services": {
"optimized": true,
"services": [
"kysely"
]
},
"wires": {
"optimized": true,
"wires": [
"session"
]
},
"inputSchemaName": "UpdateMessageInput",
"outputSchemaName": "UpdateMessageOutput",
"inputs": [
"UpdateMessageInput"
],
"outputs": [
"UpdateMessageOutput"
],
"expose": true,
"implementationHash": "bfb74857a2ee5d16",
"description": "Updates the current starter message.",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/functions/update-message.function.ts",
"exportedName": "updateMessage",
"contractHash": "16e17af7cea46c7a",
"inputHash": "77b14595",
"outputHash": "bca77943"
},
"agentCaller": {
"pikkuFuncId": "agentCaller",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "agentCaller",
"services": {
"optimized": true,
"services": []
},
"wires": {
"optimized": true,
"wires": [
"rpc"
]
},
"inputSchemaName": "AgentCallerInput",
"outputSchemaName": null,
"inputs": [
"AgentCallerInput"
],
"outputs": [],
"implementationHash": "4af198bf5bbd9bd8",
"tags": [
"pikku"
],
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/agent.gen.ts",
"exportedName": "agentCaller",
"contractHash": "76619abd99f23189",
"inputHash": "4d1eddbc",
"outputHash": "9a3af204"
},
"agentStreamCaller": {
"pikkuFuncId": "agentStreamCaller",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "agentStreamCaller",
"services": {
"optimized": true,
"services": []
},
"wires": {
"optimized": true,
"wires": [
"rpc"
]
},
"inputSchemaName": "AgentStreamCallerInput",
"outputSchemaName": null,
"inputs": [
"AgentStreamCallerInput"
],
"outputs": [],
"implementationHash": "5d475a264b62cc63",
"tags": [
"pikku"
],
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/agent.gen.ts",
"exportedName": "agentStreamCaller",
"contractHash": "440ca8bea8919cc6",
"inputHash": "6b434982",
"outputHash": "641a263e"
},
"agentApproveCaller": {
"pikkuFuncId": "agentApproveCaller",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "agentApproveCaller",
"services": {
"optimized": true,
"services": []
},
"wires": {
"optimized": true,
"wires": [
"rpc"
]
},
"inputSchemaName": "AgentApproveCallerInput",
"outputSchemaName": null,
"inputs": [
"AgentApproveCallerInput"
],
"outputs": [],
"implementationHash": "ae5d4bfb0293119a",
"tags": [
"pikku"
],
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/agent.gen.ts",
"exportedName": "agentApproveCaller",
"contractHash": "83a9293c4b51d65c",
"inputHash": "f1628b7c",
"outputHash": "ef71f08a"
},
"agentResumeCaller": {
"pikkuFuncId": "agentResumeCaller",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "agentResumeCaller",
"services": {
"optimized": true,
"services": []
},
"wires": {
"optimized": true,
"wires": [
"rpc"
]
},
"inputSchemaName": "AgentResumeCallerInput",
"outputSchemaName": null,
"inputs": [
"AgentResumeCallerInput"
],
"outputs": [],
"implementationHash": "d17ccf1259ba4a60",
"tags": [
"pikku"
],
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/agent.gen.ts",
"exportedName": "agentResumeCaller",
"contractHash": "0648ffb2cfa9d861",
"inputHash": "f25b50dd",
"outputHash": "ee89e454"
},
"getAgentThreads": {
"pikkuFuncId": "getAgentThreads",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "getAgentThreads",
"services": {
"optimized": true,
"services": [
"agentRunService"
]
},
"inputSchemaName": "GetAgentThreadsInput",
"outputSchemaName": "GetAgentThreadsOutput",
"inputs": [
"GetAgentThreadsInput"
],
"outputs": [
"GetAgentThreadsOutput"
],
"expose": true,
"implementationHash": "3823f8f3911c48e2",
"title": "Get Agent Threads",
"tags": [
"pikku",
"pikku:agent"
],
"description": "Returns a list of AI agent threads from storage. Accepts optional filters: agentName, resourceId, limit, and offset for pagination.",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/agent.gen.ts",
"exportedName": "getAgentThreads",
"contractHash": "d629208347702d27",
"inputHash": "41f5350c",
"outputHash": "6598bdff"
},
"getAgentThreadMessages": {
"pikkuFuncId": "getAgentThreadMessages",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "getAgentThreadMessages",
"services": {
"optimized": true,
"services": [
"agentRunService"
]
},
"inputSchemaName": "GetAgentThreadMessagesInput",
"outputSchemaName": "GetAgentThreadMessagesOutput",
"inputs": [
"GetAgentThreadMessagesInput"
],
"outputs": [
"GetAgentThreadMessagesOutput"
],
"expose": true,
"implementationHash": "dffe581287205c6e",
"title": "Get Agent Thread Messages",
"tags": [
"pikku",
"pikku:agent"
],
"description": "Returns all messages for a given AI agent thread, ordered by creation time.",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/agent.gen.ts",
"exportedName": "getAgentThreadMessages",
"contractHash": "44e43e96024680f3",
"inputHash": "a158e652",
"outputHash": "04960780"
},
"getAgentThreadRuns": {
"pikkuFuncId": "getAgentThreadRuns",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "getAgentThreadRuns",
"services": {
"optimized": true,
"services": [
"agentRunService"
]
},
"inputSchemaName": "GetAgentThreadRunsInput",
"outputSchemaName": "GetAgentThreadRunsOutput",
"inputs": [
"GetAgentThreadRunsInput"
],
"outputs": [
"GetAgentThreadRunsOutput"
],
"expose": true,
"implementationHash": "2e83ec1d0e08772d",
"title": "Get Agent Thread Runs",
"tags": [
"pikku",
"pikku:agent"
],
"description": "Returns the run history for a given AI agent thread, ordered by creation time.",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/agent.gen.ts",
"exportedName": "getAgentThreadRuns",
"contractHash": "c51892c37c245537",
"inputHash": "fb544997",
"outputHash": "6352aca1"
},
"deleteAgentThread": {
"pikkuFuncId": "deleteAgentThread",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "deleteAgentThread",
"services": {
"optimized": true,
"services": [
"agentRunService"
]
},
"inputSchemaName": "DeleteAgentThreadInput",
"outputSchemaName": "DeleteAgentThreadOutput",
"inputs": [
"DeleteAgentThreadInput"
],
"outputs": [
"DeleteAgentThreadOutput"
],
"expose": true,
"implementationHash": "7c0d0fb40a42fc20",
"title": "Delete Agent Thread",
"tags": [
"pikku",
"pikku:agent"
],
"description": "Deletes an AI agent thread and all of its persisted state.",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/agent.gen.ts",
"exportedName": "deleteAgentThread",
"contractHash": "b970011db1e0230e",
"inputHash": "3ed36ee5",
"outputHash": "a2094cc1"
},
"authHandler": {
"pikkuFuncId": "authHandler",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "authHandler",
"services": {
"optimized": true,
"services": [
"kysely",
"secrets"
]
},
"wires": {
"optimized": false,
"wires": []
},
"inputSchemaName": null,
"outputSchemaName": "AuthHandlerOutput",
"inputs": [],
"outputs": [
"AuthHandlerOutput"
],
"implementationHash": "7b1988fee5ec048e",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/auth.gen.ts",
"exportedName": "authHandler",
"contractHash": "56ca81afb5965d88",
"inputHash": "3db46710",
"outputHash": "4a0c6eec"
},
"pikkuConsoleSetSecret": {
"pikkuFuncId": "pikkuConsoleSetSecret",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "pikkuConsoleSetSecret",
"services": {
"optimized": true,
"services": [
"secrets"
]
},
"inputSchemaName": "PikkuConsoleSetSecretInput",
"outputSchemaName": "PikkuConsoleSetSecretOutput",
"inputs": [
"PikkuConsoleSetSecretInput"
],
"outputs": [
"PikkuConsoleSetSecretOutput"
],
"expose": true,
"implementationHash": "403f267c2ff0edad",
"tags": [
"pikku"
],
"description": "Set the value of a secret",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/console.gen.ts",
"exportedName": "pikkuConsoleSetSecret",
"contractHash": "fcb625d86fe88b8f",
"inputHash": "a0c8a043",
"outputHash": "57702b41"
},
"pikkuConsoleGetVariable": {
"pikkuFuncId": "pikkuConsoleGetVariable",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "pikkuConsoleGetVariable",
"services": {
"optimized": true,
"services": [
"variables"
]
},
"inputSchemaName": "PikkuConsoleGetVariableInput",
"outputSchemaName": "PikkuConsoleGetVariableOutput",
"inputs": [
"PikkuConsoleGetVariableInput"
],
"outputs": [
"PikkuConsoleGetVariableOutput"
],
"expose": true,
"implementationHash": "a2637db8df0daa91",
"tags": [
"pikku"
],
"description": "Get the current value of a variable",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/console.gen.ts",
"exportedName": "pikkuConsoleGetVariable",
"contractHash": "3b66dda4d82fa48a",
"inputHash": "ce4b2e06",
"outputHash": "f54f1059"
},
"pikkuConsoleSetVariable": {
"pikkuFuncId": "pikkuConsoleSetVariable",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "pikkuConsoleSetVariable",
"services": {
"optimized": true,
"services": [
"variables"
]
},
"inputSchemaName": "PikkuConsoleSetVariableInput",
"outputSchemaName": "PikkuConsoleSetVariableOutput",
"inputs": [
"PikkuConsoleSetVariableInput"
],
"outputs": [
"PikkuConsoleSetVariableOutput"
],
"expose": true,
"implementationHash": "4fac80de849be6c9",
"tags": [
"pikku"
],
"description": "Set the value of a variable",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/console.gen.ts",
"exportedName": "pikkuConsoleSetVariable",
"contractHash": "9dda40633b173a08",
"inputHash": "d91a4af5",
"outputHash": "91fe907b"
},
"pikkuConsoleHasSecret": {
"pikkuFuncId": "pikkuConsoleHasSecret",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "pikkuConsoleHasSecret",
"services": {
"optimized": true,
"services": [
"secrets"
]
},
"inputSchemaName": "PikkuConsoleHasSecretInput",
"outputSchemaName": "PikkuConsoleHasSecretOutput",
"inputs": [
"PikkuConsoleHasSecretInput"
],
"outputs": [
"PikkuConsoleHasSecretOutput"
],
"expose": true,
"implementationHash": "b8c818fb2291b032",
"tags": [
"pikku"
],
"description": "Check if a secret exists without reading its value",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/console.gen.ts",
"exportedName": "pikkuConsoleHasSecret",
"contractHash": "eeff751c00461679",
"inputHash": "a67adc7c",
"outputHash": "1da66eac"
},
"pikkuConsoleGetSecret": {
"pikkuFuncId": "pikkuConsoleGetSecret",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "pikkuConsoleGetSecret",
"services": {
"optimized": true,
"services": [
"secrets"
]
},
"inputSchemaName": "PikkuConsoleGetSecretInput",
"outputSchemaName": "PikkuConsoleGetSecretOutput",
"inputs": [
"PikkuConsoleGetSecretInput"
],
"outputs": [
"PikkuConsoleGetSecretOutput"
],
"expose": true,
"implementationHash": "6808aead5cd1896a",
"tags": [
"pikku"
],
"description": "Get the current value of a secret",
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/console.gen.ts",
"exportedName": "pikkuConsoleGetSecret",
"contractHash": "d651ad93642eaeed",
"inputHash": "329251da",
"outputHash": "fb675a26"
},
"http:get:/workflow-run/:runId/stream": {
"pikkuFuncId": "http:get:/workflow-run/:runId/stream",
"functionType": "inline",
"name": "/workflow-run/:runId/stream",
"services": {
"optimized": false,
"services": []
},
"inputSchemaName": "StreamWorkflowRunInput",
"outputSchemaName": null,
"inputs": [
"StreamWorkflowRunInput"
],
"outputs": [],
"sessionless": true,
"contractHash": "b693c43c3c0f10d5",
"inputHash": "e0a18a17",
"outputHash": "fc2fd4a0"
},
"http:get:/function-tests/stream": {
"pikkuFuncId": "http:get:/function-tests/stream",
"functionType": "inline",
"name": "/function-tests/stream",
"services": {
"optimized": false,
"services": []
},
"inputSchemaName": null,
"outputSchemaName": "StreamFunctionTestsOutput",
"inputs": [],
"outputs": [
"StreamFunctionTestsOutput"
],
"sessionless": true,
"contractHash": "de6cfac52a493763",
"inputHash": "748d80cf",
"outputHash": "2090bce5"
},
"rpcCaller": {
"pikkuFuncId": "rpcCaller",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "rpcCaller",
"services": {
"optimized": true,
"services": []
},
"wires": {
"optimized": true,
"wires": [
"rpc"
]
},
"inputSchemaName": "RpcCallerInput",
"outputSchemaName": null,
"inputs": [
"RpcCallerInput"
],
"outputs": [],
"implementationHash": "f92b60dda357f483",
"tags": [
"pikku"
],
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/rpc-public.gen.ts",
"exportedName": "rpcCaller",
"contractHash": "f6901fd233740bf4",
"inputHash": "a69cacc4",
"outputHash": "629e0b5a"
},
"remoteRPCHandler": {
"pikkuFuncId": "remoteRPCHandler",
"functionType": "user",
"funcWrapper": "pikkuSessionlessFunc",
"sessionless": true,
"name": "remoteRPCHandler",
"services": {
"optimized": true,
"services": []
},
"wires": {
"optimized": true,
"wires": [
"rpc"
]
},
"inputSchemaName": "RemoteRPCHandlerInput",
"outputSchemaName": null,
"inputs": [
"RemoteRPCHandlerInput"
],
"outputs": [],
"remote": true,
"implementationHash": "105018a823bdb551",
"tags": [
"pikku"
],
"isDirectFunction": false,
"sourceFile": "/Users/yasser/git/pikku/fabric/templates/server-and-serverless/packages/functions/src/scaffold/rpc-remote.gen.ts",
"exportedName": "remoteRPCHandler"
}
}