@pikku/addon-tapfiliate 0.0.2
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/README.md +12 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +67 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js +78 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +106 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts +2 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.js +10 -0
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.ts +11 -0
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +47 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js +18 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +82 -0
- 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/console/pikku-node-types.gen.d.ts +7 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.js +2 -0
- package/dist/.pikku/console/pikku-node-types.gen.js.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.ts +8 -0
- package/dist/.pikku/credentials/pikku-credentials-meta.gen.json +10 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts +15 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js +13 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.ts +23 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +490 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.js +334 -0
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.ts +754 -0
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +350 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +7 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.json +230 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +7 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.js +30 -0
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.ts +30 -0
- 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 +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.js +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.ts +8 -0
- 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 +35 -0
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-services.gen.js +30 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -0
- package/dist/.pikku/pikku-services.gen.ts +42 -0
- package/dist/.pikku/pikku-types.gen.d.ts +12 -0
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-types.gen.js +17 -0
- package/dist/.pikku/pikku-types.gen.js.map +1 -0
- package/dist/.pikku/pikku-types.gen.ts +21 -0
- 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 +183 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +195 -0
- 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 +14 -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.d.ts +2 -0
- package/dist/.pikku/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/schemas/register.gen.js +57 -0
- package/dist/.pikku/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.ts +107 -0
- package/dist/.pikku/schemas/schemas/AffiliateCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateGetAllInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateMetadataAddInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateMetadataAddOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateMetadataRemoveInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateMetadataRemoveOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateMetadataUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AffiliateMetadataUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialSchema_tapfiliate.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProgramAffiliateAddInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProgramAffiliateAddOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProgramAffiliateApproveInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProgramAffiliateApproveOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProgramAffiliateDisapproveInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProgramAffiliateDisapproveOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProgramAffiliateGetAllInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProgramAffiliateGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProgramAffiliateGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProgramAffiliateGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/VariableSchema_TAPFILIATE_BASE_URL.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +6 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +5 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +12 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +21 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +114 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +34 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +6 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js +5 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +5 -0
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +10 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +15 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.js +13 -0
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.ts +23 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +90 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +18 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +167 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +2 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/src/functions/affiliateCreate.function.d.ts +21 -0
- package/dist/src/functions/affiliateCreate.function.d.ts.map +1 -0
- package/dist/src/functions/affiliateCreate.function.js +17 -0
- package/dist/src/functions/affiliateCreate.function.js.map +1 -0
- package/dist/src/functions/affiliateDelete.function.d.ts +13 -0
- package/dist/src/functions/affiliateDelete.function.d.ts.map +1 -0
- package/dist/src/functions/affiliateDelete.function.js +15 -0
- package/dist/src/functions/affiliateDelete.function.js.map +1 -0
- package/dist/src/functions/affiliateGet.function.d.ts +13 -0
- package/dist/src/functions/affiliateGet.function.d.ts.map +1 -0
- package/dist/src/functions/affiliateGet.function.js +15 -0
- package/dist/src/functions/affiliateGet.function.js.map +1 -0
- package/dist/src/functions/affiliateGetAll.function.d.ts +13 -0
- package/dist/src/functions/affiliateGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/affiliateGetAll.function.js +15 -0
- package/dist/src/functions/affiliateGetAll.function.js.map +1 -0
- package/dist/src/functions/affiliateMetadataAdd.function.d.ts +21 -0
- package/dist/src/functions/affiliateMetadataAdd.function.d.ts.map +1 -0
- package/dist/src/functions/affiliateMetadataAdd.function.js +17 -0
- package/dist/src/functions/affiliateMetadataAdd.function.js.map +1 -0
- package/dist/src/functions/affiliateMetadataRemove.function.d.ts +17 -0
- package/dist/src/functions/affiliateMetadataRemove.function.d.ts.map +1 -0
- package/dist/src/functions/affiliateMetadataRemove.function.js +16 -0
- package/dist/src/functions/affiliateMetadataRemove.function.js.map +1 -0
- package/dist/src/functions/affiliateMetadataUpdate.function.d.ts +21 -0
- package/dist/src/functions/affiliateMetadataUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/affiliateMetadataUpdate.function.js +17 -0
- package/dist/src/functions/affiliateMetadataUpdate.function.js.map +1 -0
- package/dist/src/functions/programAffiliateAdd.function.d.ts +17 -0
- package/dist/src/functions/programAffiliateAdd.function.d.ts.map +1 -0
- package/dist/src/functions/programAffiliateAdd.function.js +16 -0
- package/dist/src/functions/programAffiliateAdd.function.js.map +1 -0
- package/dist/src/functions/programAffiliateApprove.function.d.ts +17 -0
- package/dist/src/functions/programAffiliateApprove.function.d.ts.map +1 -0
- package/dist/src/functions/programAffiliateApprove.function.js +16 -0
- package/dist/src/functions/programAffiliateApprove.function.js.map +1 -0
- package/dist/src/functions/programAffiliateDisapprove.function.d.ts +17 -0
- package/dist/src/functions/programAffiliateDisapprove.function.d.ts.map +1 -0
- package/dist/src/functions/programAffiliateDisapprove.function.js +16 -0
- package/dist/src/functions/programAffiliateDisapprove.function.js.map +1 -0
- package/dist/src/functions/programAffiliateGet.function.d.ts +17 -0
- package/dist/src/functions/programAffiliateGet.function.d.ts.map +1 -0
- package/dist/src/functions/programAffiliateGet.function.js +16 -0
- package/dist/src/functions/programAffiliateGet.function.js.map +1 -0
- package/dist/src/functions/programAffiliateGetAll.function.d.ts +17 -0
- package/dist/src/functions/programAffiliateGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/programAffiliateGetAll.function.js +16 -0
- package/dist/src/functions/programAffiliateGetAll.function.js.map +1 -0
- package/dist/src/index.d.ts +13 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +13 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/services.d.ts +2 -0
- package/dist/src/services.d.ts.map +1 -0
- package/dist/src/services.js +14 -0
- package/dist/src/services.js.map +1 -0
- package/dist/src/tapfiliate-api.service.d.ts +10 -0
- package/dist/src/tapfiliate-api.service.d.ts.map +1 -0
- package/dist/src/tapfiliate-api.service.js +164 -0
- package/dist/src/tapfiliate-api.service.js.map +1 -0
- package/dist/src/tapfiliate.credential.d.ts +5 -0
- package/dist/src/tapfiliate.credential.d.ts.map +1 -0
- package/dist/src/tapfiliate.credential.js +13 -0
- package/dist/src/tapfiliate.credential.js.map +1 -0
- package/dist/src/tapfiliate.types.d.ts +7 -0
- package/dist/src/tapfiliate.types.d.ts.map +1 -0
- package/dist/src/tapfiliate.types.js +8 -0
- package/dist/src/tapfiliate.types.js.map +1 -0
- package/dist/src/tapfiliate.variable.d.ts +5 -0
- package/dist/src/tapfiliate.variable.d.ts.map +1 -0
- package/dist/src/tapfiliate.variable.js +11 -0
- package/dist/src/tapfiliate.variable.js.map +1 -0
- package/package.json +39 -0
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @pikku/addon-tapfiliate
|
|
2
|
+
|
|
3
|
+
Consume the Tapfiliate affiliate marketing API
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
1. Add icon SVG at `tapfiliate.svg`
|
|
8
|
+
2. Update secret schema with required fields
|
|
9
|
+
3. Implement API service methods
|
|
10
|
+
4. Create function files for each operation
|
|
11
|
+
5. Export functions in `src/index.ts`
|
|
12
|
+
6. Build: `yarn install && yarn pikku && yarn build`
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Addon package types for pikkuAddonConfig and pikkuAddonServices
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateConfig, PikkuWire } from '@pikku/core';
|
|
8
|
+
import type { SingletonServices } from '../../types/application-types.d.js';
|
|
9
|
+
import type { Config } from '../../types/application-types.d.js';
|
|
10
|
+
import type { RequiredSingletonServices } from '../pikku-services.gen.js';
|
|
11
|
+
import { TypedSecretService } from '../secrets/pikku-secrets.gen.js';
|
|
12
|
+
import { TypedVariablesService } from '../variables/pikku-variables.gen.js';
|
|
13
|
+
import { TypedCredentialService } from '../credentials/pikku-credentials.gen.js';
|
|
14
|
+
/**
|
|
15
|
+
* Base services provided to addon package service factories.
|
|
16
|
+
* These are always available from the parent application.
|
|
17
|
+
*/
|
|
18
|
+
export type AddonBaseServices = {
|
|
19
|
+
logger: SingletonServices['logger'];
|
|
20
|
+
variables: TypedVariablesService;
|
|
21
|
+
secrets: TypedSecretService;
|
|
22
|
+
credentials: TypedCredentialService;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Creates a Pikku config factory for addon packages.
|
|
26
|
+
* Unlike pikkuConfig, this receives AddonBaseServices (logger, variables, secrets)
|
|
27
|
+
* from the parent application, so addon packages can read variables/secrets during config creation.
|
|
28
|
+
*/
|
|
29
|
+
export declare const pikkuAddonConfig: <ExistingServices extends Omit<Partial<SingletonServices>, "variables" | "secrets"> & AddonBaseServices>(func: (services: ExistingServices) => Promise<Config>) => CreateConfig<Config>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a Pikku singleton services factory for addon packages.
|
|
32
|
+
* Unlike pikkuServices, this expects the parent application to provide
|
|
33
|
+
* logger, variables, and secrets - no fallbacks needed.
|
|
34
|
+
*
|
|
35
|
+
* @param func - Addon services factory function that receives config and base services
|
|
36
|
+
* @returns The singleton services factory function
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* export const createSingletonServices = pikkuAddonServices(async (
|
|
41
|
+
* config,
|
|
42
|
+
* { secrets }
|
|
43
|
+
* ) => {
|
|
44
|
+
* const creds = await secrets.getSecret<GithubCredentials>('GITHUB_CREDENTIALS')
|
|
45
|
+
* const github = new GithubService(creds)
|
|
46
|
+
* return { github }
|
|
47
|
+
* })
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare const pikkuAddonServices: <T extends Record<string, any>, ExistingServices extends Omit<Partial<SingletonServices>, "variables" | "secrets"> & AddonBaseServices>(func: (config: Config, services: ExistingServices) => Promise<T>) => (config: Config, existingServices?: Partial<SingletonServices>) => Promise<RequiredSingletonServices>;
|
|
51
|
+
/**
|
|
52
|
+
* Creates a Pikku wire services factory for addon packages.
|
|
53
|
+
* Wire services are created per-request and have access to the HTTP request context.
|
|
54
|
+
*
|
|
55
|
+
* @param func - Wire services factory function that receives singleton services and the wire context
|
|
56
|
+
* @returns The wire services factory function
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```typescript
|
|
60
|
+
* export const createWireServices = pikkuAddonWireServices(async (services, wire) => {
|
|
61
|
+
* const authHeader = wire.http?.request?.header('authorization')
|
|
62
|
+
* return { myService: new MyService(authHeader) }
|
|
63
|
+
* })
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export declare const pikkuAddonWireServices: <ExistingServices extends Omit<Partial<SingletonServices>, "variables" | "secrets"> & AddonBaseServices>(func: (services: ExistingServices, wire: PikkuWire) => Promise<Record<string, any>>) => any;
|
|
67
|
+
//# sourceMappingURL=pikku-addon-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-addon-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/addon/pikku-addon-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAA;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAA;AAKhF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,iBAAiB,CAAC,QAAQ,CAA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Services
|
|
6
|
+
*/
|
|
7
|
+
import { TypedSecretService } from '../secrets/pikku-secrets.gen.js';
|
|
8
|
+
import { TypedVariablesService } from '../variables/pikku-variables.gen.js';
|
|
9
|
+
/**
|
|
10
|
+
* Creates a Pikku config factory for addon packages.
|
|
11
|
+
* Unlike pikkuConfig, this receives AddonBaseServices (logger, variables, secrets)
|
|
12
|
+
* from the parent application, so addon packages can read variables/secrets during config creation.
|
|
13
|
+
*/
|
|
14
|
+
export const pikkuAddonConfig = (func) => {
|
|
15
|
+
return (async (_variables, existingServices) => {
|
|
16
|
+
const { secrets, variables, ...rest } = (existingServices ?? {});
|
|
17
|
+
return func({ ...rest, secrets: new TypedSecretService(secrets), variables: new TypedVariablesService(variables) });
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Creates a Pikku singleton services factory for addon packages.
|
|
22
|
+
* Unlike pikkuServices, this expects the parent application to provide
|
|
23
|
+
* logger, variables, and secrets - no fallbacks needed.
|
|
24
|
+
*
|
|
25
|
+
* @param func - Addon services factory function that receives config and base services
|
|
26
|
+
* @returns The singleton services factory function
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* export const createSingletonServices = pikkuAddonServices(async (
|
|
31
|
+
* config,
|
|
32
|
+
* { secrets }
|
|
33
|
+
* ) => {
|
|
34
|
+
* const creds = await secrets.getSecret<GithubCredentials>('GITHUB_CREDENTIALS')
|
|
35
|
+
* const github = new GithubService(creds)
|
|
36
|
+
* return { github }
|
|
37
|
+
* })
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export const pikkuAddonServices = (func) => {
|
|
41
|
+
return async (config, existingServices) => {
|
|
42
|
+
const { logger, variables, secrets, schema } = (existingServices ?? {});
|
|
43
|
+
const typedVariables = new TypedVariablesService(variables);
|
|
44
|
+
const typedSecrets = new TypedSecretService(secrets);
|
|
45
|
+
const result = await func(config, { ...existingServices, logger, variables: typedVariables, secrets: typedSecrets });
|
|
46
|
+
return {
|
|
47
|
+
config,
|
|
48
|
+
logger,
|
|
49
|
+
schema,
|
|
50
|
+
variables: typedVariables,
|
|
51
|
+
secrets: typedSecrets,
|
|
52
|
+
...result,
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Creates a Pikku wire services factory for addon packages.
|
|
58
|
+
* Wire services are created per-request and have access to the HTTP request context.
|
|
59
|
+
*
|
|
60
|
+
* @param func - Wire services factory function that receives singleton services and the wire context
|
|
61
|
+
* @returns The wire services factory function
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* export const createWireServices = pikkuAddonWireServices(async (services, wire) => {
|
|
66
|
+
* const authHeader = wire.http?.request?.header('authorization')
|
|
67
|
+
* return { myService: new MyService(authHeader) }
|
|
68
|
+
* })
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export const pikkuAddonWireServices = (func) => {
|
|
72
|
+
return ((services, wire) => {
|
|
73
|
+
const typedVariables = new TypedVariablesService(services.variables);
|
|
74
|
+
const typedSecrets = new TypedSecretService(services.secrets);
|
|
75
|
+
return func({ ...services, variables: typedVariables, secrets: typedSecrets }, wire);
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=pikku-addon-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-addon-types.gen.js","sourceRoot":"","sources":["../../../.pikku/addon/pikku-addon-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAMH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAiB3E;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,IAAqD,EAC/B,EAAE;IACxB,OAAO,CAAC,KAAK,EAAE,UAAe,EAA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,CAAC,SAAS,CAAC,CAAA;QACpE,MAAM,YAAY,GAAG,IAAI,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;QAC7D,OAAO,IAAI,CAAC,EAAE,GAAG,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,EAAsB,EAAE,IAAI,CAAC,CAAA;IAC1G,CAAC,CAAQ,CAAA;AACX,CAAC,CAAA"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Addon package types for pikkuAddonConfig and pikkuAddonServices
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import type { CreateConfig, PikkuWire } from '@pikku/core'
|
|
9
|
+
import type { SingletonServices } from '../../types/application-types.d.js'
|
|
10
|
+
import type { Config } from '../../types/application-types.d.js'
|
|
11
|
+
import type { RequiredSingletonServices } from '../pikku-services.gen.js'
|
|
12
|
+
import { TypedSecretService } from '../secrets/pikku-secrets.gen.js'
|
|
13
|
+
import { TypedVariablesService } from '../variables/pikku-variables.gen.js'
|
|
14
|
+
import { TypedCredentialService } from '../credentials/pikku-credentials.gen.js'
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Base services provided to addon package service factories.
|
|
21
|
+
* These are always available from the parent application.
|
|
22
|
+
*/
|
|
23
|
+
export type AddonBaseServices = {
|
|
24
|
+
logger: SingletonServices['logger']
|
|
25
|
+
variables: TypedVariablesService
|
|
26
|
+
secrets: TypedSecretService
|
|
27
|
+
credentials: TypedCredentialService
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Creates a Pikku config factory for addon packages.
|
|
32
|
+
* Unlike pikkuConfig, this receives AddonBaseServices (logger, variables, secrets)
|
|
33
|
+
* from the parent application, so addon packages can read variables/secrets during config creation.
|
|
34
|
+
*/
|
|
35
|
+
export const pikkuAddonConfig = <ExistingServices extends Omit<Partial<SingletonServices>, 'variables' | 'secrets'> & AddonBaseServices>(
|
|
36
|
+
func: (services: ExistingServices) => Promise<Config>
|
|
37
|
+
): CreateConfig<Config> => {
|
|
38
|
+
return (async (_variables: any, existingServices?: Partial<SingletonServices>): Promise<Config> => {
|
|
39
|
+
const { secrets, variables, ...rest } = (existingServices ?? {}) as unknown as SingletonServices
|
|
40
|
+
return func({ ...rest, secrets: new TypedSecretService(secrets), variables: new TypedVariablesService(variables) } as ExistingServices)
|
|
41
|
+
}) as unknown as CreateConfig<Config>
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Creates a Pikku singleton services factory for addon packages.
|
|
46
|
+
* Unlike pikkuServices, this expects the parent application to provide
|
|
47
|
+
* logger, variables, and secrets - no fallbacks needed.
|
|
48
|
+
*
|
|
49
|
+
* @param func - Addon services factory function that receives config and base services
|
|
50
|
+
* @returns The singleton services factory function
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* export const createSingletonServices = pikkuAddonServices(async (
|
|
55
|
+
* config,
|
|
56
|
+
* { secrets }
|
|
57
|
+
* ) => {
|
|
58
|
+
* const creds = await secrets.getSecret<GithubCredentials>('GITHUB_CREDENTIALS')
|
|
59
|
+
* const github = new GithubService(creds)
|
|
60
|
+
* return { github }
|
|
61
|
+
* })
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export const pikkuAddonServices = <T extends Record<string, any>, ExistingServices extends Omit<Partial<SingletonServices>, 'variables' | 'secrets'> & AddonBaseServices>(
|
|
65
|
+
func: (config: Config, services: ExistingServices) => Promise<T>
|
|
66
|
+
) => {
|
|
67
|
+
return async (config: Config, existingServices?: Partial<SingletonServices>): Promise<RequiredSingletonServices> => {
|
|
68
|
+
const { logger, variables, secrets, schema } = (existingServices ?? {}) as unknown as SingletonServices
|
|
69
|
+
const typedVariables = new TypedVariablesService(variables)
|
|
70
|
+
const typedSecrets = new TypedSecretService(secrets)
|
|
71
|
+
const result = await func(config, { ...existingServices, logger, variables: typedVariables, secrets: typedSecrets } as ExistingServices)
|
|
72
|
+
return {
|
|
73
|
+
config,
|
|
74
|
+
logger,
|
|
75
|
+
schema,
|
|
76
|
+
variables: typedVariables,
|
|
77
|
+
secrets: typedSecrets,
|
|
78
|
+
...result,
|
|
79
|
+
} as unknown as RequiredSingletonServices
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Creates a Pikku wire services factory for addon packages.
|
|
85
|
+
* Wire services are created per-request and have access to the HTTP request context.
|
|
86
|
+
*
|
|
87
|
+
* @param func - Wire services factory function that receives singleton services and the wire context
|
|
88
|
+
* @returns The wire services factory function
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```typescript
|
|
92
|
+
* export const createWireServices = pikkuAddonWireServices(async (services, wire) => {
|
|
93
|
+
* const authHeader = wire.http?.request?.header('authorization')
|
|
94
|
+
* return { myService: new MyService(authHeader) }
|
|
95
|
+
* })
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export const pikkuAddonWireServices = <ExistingServices extends Omit<Partial<SingletonServices>, 'variables' | 'secrets'> & AddonBaseServices>(
|
|
99
|
+
func: (services: ExistingServices, wire: PikkuWire) => Promise<Record<string, any>>
|
|
100
|
+
) => {
|
|
101
|
+
return ((services: any, wire: PikkuWire) => {
|
|
102
|
+
const typedVariables = new TypedVariablesService(services.variables)
|
|
103
|
+
const typedSecrets = new TypedSecretService(services.secrets)
|
|
104
|
+
return func({ ...services, variables: typedVariables, secrets: typedSecrets } as ExistingServices, wire)
|
|
105
|
+
}) as any
|
|
106
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-package.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/addon/pikku-package.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal';
|
|
5
|
+
import { createWireServices as createWireServices } from '../../src/services.js';
|
|
6
|
+
pikkuState('@pikku/addon-tapfiliate', 'package', 'factories', {
|
|
7
|
+
createWireServices,
|
|
8
|
+
});
|
|
9
|
+
pikkuState('@pikku/addon-tapfiliate', 'package', 'credentialsMeta', { "tapfiliate": { "name": "tapfiliate", "displayName": "Tapfiliate", "type": "wire", "oauth2": false } });
|
|
10
|
+
//# sourceMappingURL=pikku-package.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-package.gen.js","sourceRoot":"","sources":["../../../.pikku/addon/pikku-package.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAEhF,UAAU,CAAC,yBAAyB,EAAE,SAAS,EAAE,WAAW,EAAE;IAC5D,kBAAkB;CACnB,CAAC,CAAA;AAEF,UAAU,CAAC,yBAAyB,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAC,YAAY,EAAC,EAAC,MAAM,EAAC,YAAY,EAAC,aAAa,EAAC,YAAY,EAAC,MAAM,EAAC,MAAM,EAAC,QAAQ,EAAC,KAAK,EAAC,EAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal'
|
|
5
|
+
import { createWireServices as createWireServices } from '../../src/services.js'
|
|
6
|
+
|
|
7
|
+
pikkuState('@pikku/addon-tapfiliate', 'package', 'factories', {
|
|
8
|
+
createWireServices,
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
pikkuState('@pikku/addon-tapfiliate', 'package', 'credentialsMeta', {"tapfiliate":{"name":"tapfiliate","displayName":"Tapfiliate","type":"wire","oauth2":false}})
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { CoreAIAgent, PikkuAIMiddlewareHooks } from '@pikku/core/ai-agent';
|
|
5
|
+
import type { PikkuPermission, PikkuMiddleware, Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
6
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
7
|
+
import type { AIAgentMemoryConfig, AIAgentInput } from '@pikku/core/ai-agent';
|
|
8
|
+
import type { AgentMap } from './pikku-agent-map.gen.d.js';
|
|
9
|
+
type AIAgentConfig<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CoreAIAgent<PikkuPermission, PikkuMiddleware>, 'tools' | 'agents' | 'memory' | 'input' | 'output'> & {
|
|
10
|
+
input?: InputSchema;
|
|
11
|
+
output?: OutputSchema;
|
|
12
|
+
memory?: Omit<AIAgentMemoryConfig, 'workingMemory'> & {
|
|
13
|
+
workingMemory?: StandardSchemaV1;
|
|
14
|
+
};
|
|
15
|
+
tools?: object[];
|
|
16
|
+
agents?: AIAgentConfig<StandardSchemaV1 | undefined, StandardSchemaV1 | undefined>[];
|
|
17
|
+
};
|
|
18
|
+
export declare const pikkuAIAgent: <InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(agent: AIAgentConfig<InputSchema, OutputSchema>) => AIAgentConfig<InputSchema, OutputSchema>;
|
|
19
|
+
export declare const pikkuAIMiddleware: <State extends Record<string, unknown> = Record<string, unknown>, RequiredServices extends Services = Services>(hooks: PikkuAIMiddlewareHooks<State, RequiredServices>) => PikkuAIMiddlewareHooks<State, RequiredServices>;
|
|
20
|
+
export declare const agent: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<AIAgentInput, {
|
|
21
|
+
runId: string;
|
|
22
|
+
result: AgentMap[Name]["output"];
|
|
23
|
+
usage: {
|
|
24
|
+
inputTokens: number;
|
|
25
|
+
outputTokens: number;
|
|
26
|
+
};
|
|
27
|
+
}, "session" | "rpc">;
|
|
28
|
+
export declare const agentStream: <Name extends keyof AgentMap>(agentName?: Name | undefined) => PikkuFunctionConfig<{
|
|
29
|
+
agentName?: string;
|
|
30
|
+
message: string;
|
|
31
|
+
threadId: string;
|
|
32
|
+
resourceId: string;
|
|
33
|
+
}, void, "session" | "rpc">;
|
|
34
|
+
export declare const agentResume: () => PikkuFunctionConfig<{
|
|
35
|
+
runId: string;
|
|
36
|
+
toolCallId: string;
|
|
37
|
+
approved: boolean;
|
|
38
|
+
}, void, "session" | "rpc">;
|
|
39
|
+
export declare const agentApprove: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<{
|
|
40
|
+
runId: string;
|
|
41
|
+
approvals: {
|
|
42
|
+
toolCallId: string;
|
|
43
|
+
approved: boolean;
|
|
44
|
+
}[];
|
|
45
|
+
}, unknown, "session" | "rpc">;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=pikku-agent-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-agent-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,WAAW,EACX,sBAAsB,EACvB,MAAM,sBAAsB,CAAA;AAO7B,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC9H,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,sB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AAY,EACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;IAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EACzG,SAAS,GAAG,KAAK,CAEpB,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,IAAI,SAAS,MAAM,QAAQ,EACrD,4BAAgB,KAE0D,mBAAmB,CAC3F;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,EAC7E,IAAI,EACJ,SAAS,GAAG,KAAK,CAEpB,CAAA;AAED,eAAO,MAAM,WAAW,QACM,mBAAmB,CAC7C;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,EACxD,IAAI,EACJ,SAAS,GAAG,KAAK,CAEpB,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,IAAI,SAAS,MAAM,QAAQ,EACtD,WAAW,IAAI,KAE4D,mBAAmB,CAC5F;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAAE,EACzE,OAAO,EACP,SAAS,GAAG,KAAK,CAEpB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { agent as coreAgent, agentStream as coreAgentStream, agentResume as coreAgentResume, agentApprove as coreAgentApprove, } from '@pikku/core/ai-agent';
|
|
2
|
+
export const pikkuAIAgent = (agent) => {
|
|
3
|
+
return agent;
|
|
4
|
+
};
|
|
5
|
+
export const pikkuAIMiddleware = (hooks) => hooks;
|
|
6
|
+
export const agent = (agentName) => {
|
|
7
|
+
return coreAgent(agentName);
|
|
8
|
+
};
|
|
9
|
+
export const agentStream = (agentName) => {
|
|
10
|
+
return coreAgentStream(agentName);
|
|
11
|
+
};
|
|
12
|
+
export const agentResume = () => {
|
|
13
|
+
return coreAgentResume();
|
|
14
|
+
};
|
|
15
|
+
export const agentApprove = (agentName) => {
|
|
16
|
+
return coreAgentApprove(agentName);
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=pikku-agent-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-agent-types.gen.js","sourceRoot":"","sources":["../../../.pikku/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,GACjC,MAAM,sBAAsB,CAAA;AAiB7B,MAAM,CAAC,MAAM,YAAY,GAAG,CAI1B,KAA+C,EAC/C,EAAE;IACF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAI/B,KAAsD,EACL,EAAE,CAAC,KAAK,CAAA;AAE3D,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,SAAe,EACf,EAAE;IACF,OAAO,SAAS,CAAW,SAAoC,CAI9D,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,SAAgB,EAChB,EAAE;IACF,OAAO,eAAe,CAAW,SAAoC,CAIpE,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,OAAO,eAAe,EAIrB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,SAAe,EACf,EAAE;IACF,OAAO,gBAAgB,CAAW,SAAoC,CAIrE,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import {
|
|
5
|
+
CoreAIAgent,
|
|
6
|
+
PikkuAIMiddlewareHooks,
|
|
7
|
+
} from '@pikku/core/ai-agent'
|
|
8
|
+
import {
|
|
9
|
+
agent as coreAgent,
|
|
10
|
+
agentStream as coreAgentStream,
|
|
11
|
+
agentResume as coreAgentResume,
|
|
12
|
+
agentApprove as coreAgentApprove,
|
|
13
|
+
} from '@pikku/core/ai-agent'
|
|
14
|
+
import type { PikkuPermission, PikkuMiddleware, Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
|
|
15
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
16
|
+
import type { AIAgentMemoryConfig, AIAgentInput } from '@pikku/core/ai-agent'
|
|
17
|
+
import type { AgentMap } from './pikku-agent-map.gen.d.js'
|
|
18
|
+
|
|
19
|
+
type AIAgentConfig<
|
|
20
|
+
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
21
|
+
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
22
|
+
> = Omit<CoreAIAgent<PikkuPermission, PikkuMiddleware>, 'tools' | 'agents' | 'memory' | 'input' | 'output'> & {
|
|
23
|
+
input?: InputSchema
|
|
24
|
+
output?: OutputSchema
|
|
25
|
+
memory?: Omit<AIAgentMemoryConfig, 'workingMemory'> & { workingMemory?: StandardSchemaV1 }
|
|
26
|
+
tools?: object[]
|
|
27
|
+
agents?: AIAgentConfig<StandardSchemaV1 | undefined, StandardSchemaV1 | undefined>[]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const pikkuAIAgent = <
|
|
31
|
+
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
32
|
+
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
33
|
+
>(
|
|
34
|
+
agent: AIAgentConfig<InputSchema, OutputSchema>
|
|
35
|
+
) => {
|
|
36
|
+
return agent
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const pikkuAIMiddleware = <
|
|
40
|
+
State extends Record<string, unknown> = Record<string, unknown>,
|
|
41
|
+
RequiredServices extends Services = Services,
|
|
42
|
+
>(
|
|
43
|
+
hooks: PikkuAIMiddlewareHooks<State, RequiredServices>
|
|
44
|
+
): PikkuAIMiddlewareHooks<State, RequiredServices> => hooks
|
|
45
|
+
|
|
46
|
+
export const agent = <Name extends keyof AgentMap>(
|
|
47
|
+
agentName: Name
|
|
48
|
+
) => {
|
|
49
|
+
return coreAgent<AgentMap>(agentName as string & keyof AgentMap) as PikkuFunctionConfig<
|
|
50
|
+
AIAgentInput,
|
|
51
|
+
{ runId: string; result: AgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } },
|
|
52
|
+
'session' | 'rpc'
|
|
53
|
+
>
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const agentStream = <Name extends keyof AgentMap>(
|
|
57
|
+
agentName?: Name
|
|
58
|
+
) => {
|
|
59
|
+
return coreAgentStream<AgentMap>(agentName as string & keyof AgentMap) as PikkuFunctionConfig<
|
|
60
|
+
{ agentName?: string; message: string; threadId: string; resourceId: string },
|
|
61
|
+
void,
|
|
62
|
+
'session' | 'rpc'
|
|
63
|
+
>
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export const agentResume = () => {
|
|
67
|
+
return coreAgentResume() as PikkuFunctionConfig<
|
|
68
|
+
{ runId: string; toolCallId: string; approved: boolean },
|
|
69
|
+
void,
|
|
70
|
+
'session' | 'rpc'
|
|
71
|
+
>
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export const agentApprove = <Name extends keyof AgentMap>(
|
|
75
|
+
agentName: Name
|
|
76
|
+
) => {
|
|
77
|
+
return coreAgentApprove<AgentMap>(agentName as string & keyof AgentMap) as PikkuFunctionConfig<
|
|
78
|
+
{ runId: string; approvals: { toolCallId: string; approved: boolean }[] },
|
|
79
|
+
unknown,
|
|
80
|
+
'session' | 'rpc'
|
|
81
|
+
>
|
|
82
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Channel-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { CoreChannel, CorePikkuChannelMiddleware, CorePikkuChannelMiddlewareFactory } from '@pikku/core/channel';
|
|
8
|
+
import { AssertHTTPWiringParams } from '@pikku/core/http';
|
|
9
|
+
import type { PikkuFunctionConfig, PikkuFunctionSessionless, PikkuPermission, PikkuMiddleware, Services } from '../function/pikku-function-types.gen.js';
|
|
10
|
+
import type { CorePermissionGroup } from '@pikku/core';
|
|
11
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
12
|
+
/**
|
|
13
|
+
* Helper type to infer the output type from a Standard Schema
|
|
14
|
+
*/
|
|
15
|
+
type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Output : never;
|
|
16
|
+
/**
|
|
17
|
+
* Type definition for WebSocket channels with typed data exchange.
|
|
18
|
+
* Supports connection, disconnection, and message handling.
|
|
19
|
+
* Accepts both session-based (PikkuFunction) and sessionless (PikkuFunctionSessionless) functions.
|
|
20
|
+
*
|
|
21
|
+
* @template ChannelData - Type of data exchanged through the channel
|
|
22
|
+
* @template Channel - String literal type for the channel name
|
|
23
|
+
*/
|
|
24
|
+
type ChannelWiring<ChannelData, Channel extends string> = CoreChannel<ChannelData, Channel, PikkuFunctionConfig<void, any, 'channel' | 'session' | 'rpc'>, PikkuFunctionConfig<void, void, 'channel' | 'session' | 'rpc'>, PikkuFunctionConfig<any, any, 'channel' | 'session' | 'rpc'>, PikkuPermission, PikkuMiddleware>;
|
|
25
|
+
/**
|
|
26
|
+
* Creates a function that handles WebSocket channel connections.
|
|
27
|
+
* Called when a client connects to a channel.
|
|
28
|
+
*
|
|
29
|
+
* @template Out - Output type for connection response
|
|
30
|
+
* @param func - Function definition, either direct function or configuration object
|
|
31
|
+
* @returns The normalized configuration object
|
|
32
|
+
*/
|
|
33
|
+
export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunctionSessionless<void, Out, "channel" | "session" | "rpc"> | PikkuFunctionConfig<void, Out, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, Out, "channel" | "rpc" | "session">;
|
|
34
|
+
/**
|
|
35
|
+
* Creates a function that handles WebSocket channel disconnections.
|
|
36
|
+
* Called when a client disconnects from a channel.
|
|
37
|
+
*
|
|
38
|
+
* @param func - Function definition, either direct function or configuration object
|
|
39
|
+
* @returns The normalized configuration object
|
|
40
|
+
*/
|
|
41
|
+
export declare const pikkuChannelDisconnectionFunc: (func: PikkuFunctionSessionless<void, void, "channel"> | PikkuFunctionConfig<void, void, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, void, "channel" | "rpc" | "session">;
|
|
42
|
+
/**
|
|
43
|
+
* Configuration object for channel functions with Zod schema validation.
|
|
44
|
+
*/
|
|
45
|
+
type PikkuChannelFuncConfigWithSchema<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined> = {
|
|
46
|
+
name?: string;
|
|
47
|
+
tags?: string[];
|
|
48
|
+
expose?: boolean;
|
|
49
|
+
remote?: boolean;
|
|
50
|
+
func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'channel' | 'session' | 'rpc'>;
|
|
51
|
+
auth?: boolean;
|
|
52
|
+
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>;
|
|
53
|
+
middleware?: PikkuMiddleware[];
|
|
54
|
+
input: InputSchema;
|
|
55
|
+
output?: OutputSchema;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Creates a function that handles WebSocket channel messages.
|
|
59
|
+
* Called when a message is received on a channel.
|
|
60
|
+
*
|
|
61
|
+
* Supports two patterns:
|
|
62
|
+
* 1. Generic types: `pikkuChannelFunc<Input, Output>({ func: ... })`
|
|
63
|
+
* 2. Zod schemas: `pikkuChannelFunc({ input: z.object(...), func: ... })`
|
|
64
|
+
*
|
|
65
|
+
* @template In - Input type for channel messages (inferred from schema if provided)
|
|
66
|
+
* @template Out - Output type for channel responses (inferred from schema if provided)
|
|
67
|
+
* @param func - Function definition, either direct function or configuration object
|
|
68
|
+
* @returns The normalized configuration object
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```typescript
|
|
72
|
+
* // Pattern 1: Using generic types
|
|
73
|
+
* const handleMessage = pikkuChannelFunc<{text: string}, {received: boolean}>({
|
|
74
|
+
* func: async (_services, { text }) => ({ received: true })
|
|
75
|
+
* })
|
|
76
|
+
*
|
|
77
|
+
* // Pattern 2: Using Zod schemas
|
|
78
|
+
* const messageInput = z.object({ text: z.string() })
|
|
79
|
+
* const messageOutput = z.object({ received: z.boolean() })
|
|
80
|
+
*
|
|
81
|
+
* const handleMessage = pikkuChannelFunc({
|
|
82
|
+
* input: messageInput,
|
|
83
|
+
* output: messageOutput,
|
|
84
|
+
* func: async (_services, { text }) => ({ received: true })
|
|
85
|
+
* })
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
export declare function pikkuChannelFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuChannelFuncConfigWithSchema<InputSchema, OutputSchema>): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'channel' | 'session' | 'rpc'>;
|
|
89
|
+
export declare function pikkuChannelFunc<In, Out = unknown>(func: PikkuFunctionSessionless<In, Out, 'channel' | 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'channel' | 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'channel' | 'session' | 'rpc'>;
|
|
90
|
+
/**
|
|
91
|
+
* Registers a WebSocket channel with the Pikku framework.
|
|
92
|
+
*
|
|
93
|
+
* @template ChannelData - Type of data associated with the channel
|
|
94
|
+
* @template Channel - String literal type for the channel name
|
|
95
|
+
* @param channel - Channel definition with connection, disconnection, and message handlers
|
|
96
|
+
*/
|
|
97
|
+
export declare const wireChannel: <ChannelData, Channel extends string>(channel: ChannelWiring<ChannelData, Channel> & AssertHTTPWiringParams<ChannelData, Channel>) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Type-safe helper for defining channel message routes that can be composed.
|
|
100
|
+
* Returns the routes record as-is for use with wireChannel's onMessageWiring.
|
|
101
|
+
*
|
|
102
|
+
* @template T - Record of channel route handlers
|
|
103
|
+
* @param routes - The channel routes record
|
|
104
|
+
* @returns The same routes record (identity function for type safety)
|
|
105
|
+
*/
|
|
106
|
+
export declare function defineChannelRoutes<T extends Record<string, any>>(routes: T): T;
|
|
107
|
+
export type PikkuChannelMiddleware<RequiredServices extends Services = Services, Event = unknown> = CorePikkuChannelMiddleware<RequiredServices, Event>;
|
|
108
|
+
export declare const pikkuChannelMiddleware: <RequiredServices extends Services = Services, Event = unknown>(middleware: PikkuChannelMiddleware<RequiredServices, Event>) => PikkuChannelMiddleware<RequiredServices, Event>;
|
|
109
|
+
export declare const pikkuChannelMiddlewareFactory: <In = any>(factory: CorePikkuChannelMiddlewareFactory<In>) => CorePikkuChannelMiddlewareFactory<In>;
|
|
110
|
+
export declare const addChannelMiddleware: (tag: string, middleware: PikkuChannelMiddleware[]) => CorePikkuChannelMiddleware[];
|
|
111
|
+
export {};
|
|
112
|
+
//# sourceMappingURL=pikku-channel-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-channel-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/channel/pikku-channel-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE,iCAAiC,EAAoI,MAAM,q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