@pikku/addon-ollama 0.1.2 → 0.1.4
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/dist/.pikku/addon/pikku-addon-types.gen.d.ts +2 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.js +2 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +2 -2
- package/dist/.pikku/addon/pikku-package.gen.js +3 -2
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +4 -2
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +8 -2
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js +3 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +17 -2
- package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts +2 -0
- package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts.map +1 -0
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +6 -0
- package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +1 -0
- package/dist/.pikku/agent/pikku-model-aliases.gen.ts +6 -0
- package/dist/.pikku/agent/pikku-scorer-names.gen.d.ts +8 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.ts +1 -1
- package/dist/.pikku/console/pikku-addon-meta.gen.json +4 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +76 -64
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +30 -13
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.ts +127 -79
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +8 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +2 -2
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +28 -4
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +2 -2
- package/dist/.pikku/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions.gen.ts +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -24
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +2 -24
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.ts +3 -31
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +10 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +10 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +2 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +2 -1
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.ts +2 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/pikku-meta-service.gen.ts +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +7 -1
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +6 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-services.gen.ts +7 -1
- package/dist/.pikku/pikku-types.gen.d.ts +2 -1
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-types.gen.js +3 -1
- package/dist/.pikku/pikku-types.gen.js.map +1 -1
- package/dist/.pikku/pikku-types.gen.ts +4 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -7
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -7
- package/{.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts → dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts} +2 -7
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +2 -2
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +2 -2
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/schemas/register.gen.js +5 -0
- package/dist/.pikku/scenarios/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/scenarios/schemas/register.gen.ts +4 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
- package/dist/.pikku/schemas/register.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.ts +1 -1
- package/dist/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts +37 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.js +18 -0
- package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.ts +52 -0
- package/dist/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +31 -0
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.js +19 -0
- package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.ts +41 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +8 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +6 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
- package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +36 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.js +28 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.ts +58 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +2 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +2 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +14 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +2 -2
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +2 -2
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +14 -4
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.ts +17 -4
- package/dist/.pikku/workflow/personas.gen.json +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts +17 -0
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.js +18 -0
- package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.ts +35 -0
- package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +263 -5
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +62 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +435 -5
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +2 -2
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +4 -4
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/src/functions/embeddings/embed-many.function.d.ts +2 -2
- package/dist/src/functions/embeddings/embed-many.function.d.ts.map +1 -1
- package/dist/src/functions/embeddings/embed.function.d.ts +2 -2
- package/dist/src/functions/embeddings/embed.function.d.ts.map +1 -1
- package/dist/src/functions/text/generate-object.function.d.ts +6 -6
- package/dist/src/functions/text/generate-object.function.d.ts.map +1 -1
- package/dist/src/functions/text/generate.function.d.ts +2 -2
- package/dist/src/functions/text/generate.function.d.ts.map +1 -1
- package/dist/src/ollama.variable.js +2 -2
- package/dist/src/ollama.variable.js.map +1 -1
- package/dist/types/application-types.d.ts +17 -0
- package/package.json +6 -7
- package/.pikku/addon/pikku-addon-types.gen.ts +0 -105
- package/.pikku/addon/pikku-package.gen.ts +0 -11
- package/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
- package/.pikku/agent/pikku-agent-types.gen.ts +0 -82
- package/.pikku/channel/pikku-channel-types.gen.ts +0 -177
- package/.pikku/console/pikku-addon-meta.gen.json +0 -58
- package/.pikku/console/pikku-node-types.gen.ts +0 -8
- package/.pikku/function/pikku-function-types.gen.ts +0 -754
- package/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -118
- package/.pikku/function/pikku-functions-meta.gen.json +0 -78
- package/.pikku/function/pikku-functions-meta.gen.ts +0 -7
- package/.pikku/function/pikku-functions.gen.ts +0 -14
- package/.pikku/http/pikku-http-types.gen.ts +0 -147
- package/.pikku/mcp/pikku-mcp-types.gen.ts +0 -183
- package/.pikku/pikku-bootstrap.gen.ts +0 -8
- package/.pikku/pikku-meta-service.gen.ts +0 -10
- package/.pikku/pikku-services.gen.ts +0 -45
- package/.pikku/pikku-types.gen.ts +0 -21
- package/.pikku/queue/pikku-queue-types.gen.ts +0 -27
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +0 -211
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -6
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +0 -6
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +0 -25
- package/.pikku/schemas/register.gen.ts +0 -39
- package/.pikku/schemas/schemas/OllamaEmbedInput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaEmbedManyInput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaEmbedManyOutput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaEmbedOutput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaGenerateObjectInput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaGenerateObjectOutput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaGenerateTextInput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaGenerateTextOutput.schema.json +0 -1
- package/.pikku/schemas/schemas/VariableSchema_ollama_base_url.schema.json +0 -1
- package/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
- package/.pikku/secrets/pikku-secrets.gen.ts +0 -21
- package/.pikku/trigger/pikku-trigger-types.gen.ts +0 -160
- package/.pikku/variables/pikku-variable-types.gen.ts +0 -5
- package/.pikku/variables/pikku-variables-meta.gen.json +0 -10
- package/.pikku/variables/pikku-variables.gen.ts +0 -23
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +0 -38
- package/.pikku/workflow/pikku-workflow-types.gen.ts +0 -167
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
- /package/{.pikku/secrets/pikku-secrets-meta.gen.json → dist/.pikku/scenarios/features.gen.json} +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import type { FlatScope, ScopeDefinitionsMeta } from '@pikku/core/scope'
|
|
8
|
+
import { flattenScopeDefinitions } from '@pikku/core/scope'
|
|
9
|
+
import definitions from './pikku-scopes-meta.gen.json' with { type: 'json' }
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Every scope a function can require.
|
|
13
|
+
*
|
|
14
|
+
* A `:*` entry requires the scope and all of its descendants. Held grants are
|
|
15
|
+
* matched against this by `verifyScopes` — `admin:*` on a session satisfies
|
|
16
|
+
* any `admin:...` requirement.
|
|
17
|
+
*/
|
|
18
|
+
export type ScopeId = never
|
|
19
|
+
|
|
20
|
+
export interface ScopeMeta {
|
|
21
|
+
id: ScopeId
|
|
22
|
+
displayName?: string
|
|
23
|
+
description?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The declared scope set, for a ScopeService to sync into its store.
|
|
28
|
+
*
|
|
29
|
+
* Derived from the metadata sidecar rather than inlined, so that the import
|
|
30
|
+
* above forces tsc to emit the .json alongside this file. An addon publishes
|
|
31
|
+
* only its compiled output, and a host reads that .json to merge the addon's
|
|
32
|
+
* scopes into its own `ScopeId` union and declared set — an uncopied sidecar
|
|
33
|
+
* would leave the addon's scopes ungrantable.
|
|
34
|
+
*
|
|
35
|
+
* Additive: removing a declaration leaves an inert row rather than revoking a
|
|
36
|
+
* grant mid-deploy. Use `pikku scopes prune` to remove them deliberately.
|
|
37
|
+
*/
|
|
38
|
+
export const SCOPES: FlatScope[] = flattenScopeDefinitions(
|
|
39
|
+
Object.values(definitions as ScopeDefinitionsMeta)
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
const DISPLAY_NAMES: Record<string, string> = {
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Declared scopes, keyed by id. Rendered by the console when granting. */
|
|
47
|
+
export const SCOPES_META: Record<string, ScopeMeta> = Object.fromEntries(
|
|
48
|
+
SCOPES.map((scope) => [
|
|
49
|
+
scope.id,
|
|
50
|
+
{
|
|
51
|
+
id: scope.id as ScopeId,
|
|
52
|
+
...(DISPLAY_NAMES[scope.id]
|
|
53
|
+
? { displayName: DISPLAY_NAMES[scope.id] }
|
|
54
|
+
: {}),
|
|
55
|
+
...(scope.description ? { description: scope.description } : {}),
|
|
56
|
+
},
|
|
57
|
+
])
|
|
58
|
+
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { defineSecret } from '@pikku/core/secret';
|
|
5
5
|
export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret';
|
|
6
6
|
//# sourceMappingURL=pikku-secret-types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-secret-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"pikku-secret-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-secret-types.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"pikku-secret-types.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { defineSecret } from '@pikku/core/secret'
|
|
5
5
|
export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret'
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
4
|
import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
|
|
5
5
|
import type { SecretService } from '@pikku/core/services';
|
|
6
|
+
import type { SecretDefinitionsMeta } from '@pikku/core/secret';
|
|
7
|
+
/**
|
|
8
|
+
* Every secret declared in this package.
|
|
9
|
+
*
|
|
10
|
+
* Read from the metadata sidecar rather than inlined, so that the import above
|
|
11
|
+
* forces tsc to emit the .json alongside this file. An addon publishes only its
|
|
12
|
+
* compiled output, and a host reads that .json to discover the addon's declared
|
|
13
|
+
* secrets — an uncopied sidecar leaves them invisible to the host.
|
|
14
|
+
*/
|
|
15
|
+
export declare const SECRETS_META: SecretDefinitionsMeta;
|
|
6
16
|
export interface CredentialsMap {
|
|
7
17
|
}
|
|
8
18
|
export type SecretId = keyof CredentialsMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-secrets.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AACxG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-secrets.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AACxG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAG/D;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,qBACW,CAAA;AAEtC,MAAM,WAAW,cAAc;CAE9B;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAA;AAM3C,qBAAa,kBAAmB,SAAQ,sBAAsB,CAAC,cAAc,CAAC;gBAChE,OAAO,EAAE,aAAa;CAGnC"}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
4
|
import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
|
|
5
|
+
import secretsMeta from './pikku-secrets-meta.gen.json' with { type: 'json' };
|
|
6
|
+
/**
|
|
7
|
+
* Every secret declared in this package.
|
|
8
|
+
*
|
|
9
|
+
* Read from the metadata sidecar rather than inlined, so that the import above
|
|
10
|
+
* forces tsc to emit the .json alongside this file. An addon publishes only its
|
|
11
|
+
* compiled output, and a host reads that .json to discover the addon's declared
|
|
12
|
+
* secrets — an uncopied sidecar leaves them invisible to the host.
|
|
13
|
+
*/
|
|
14
|
+
export const SECRETS_META = secretsMeta;
|
|
5
15
|
const CREDENTIALS_META = {};
|
|
6
16
|
export class TypedSecretService extends CoreTypedSecretService {
|
|
7
17
|
constructor(secrets) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-secrets.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-secrets.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AAGxG,OAAO,WAAW,MAAM,+BAA+B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAE7E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GACvB,WAAoC,CAAA;AAQtC,MAAM,gBAAgB,GAAmC,EAExD,CAAA;AAED,MAAM,OAAO,kBAAmB,SAAQ,sBAAsC;IAC5E,YAAY,OAAsB;QAChC,KAAK,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAA;IAClC,CAAC;CACF"}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
4
|
import { TypedSecretService as CoreTypedSecretService, type CredentialMeta } from '@pikku/core/services'
|
|
5
5
|
import type { SecretService } from '@pikku/core/services'
|
|
6
|
+
import type { SecretDefinitionsMeta } from '@pikku/core/secret'
|
|
7
|
+
import secretsMeta from './pikku-secrets-meta.gen.json' with { type: 'json' }
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Every secret declared in this package.
|
|
11
|
+
*
|
|
12
|
+
* Read from the metadata sidecar rather than inlined, so that the import above
|
|
13
|
+
* forces tsc to emit the .json alongside this file. An addon publishes only its
|
|
14
|
+
* compiled output, and a host reads that .json to discover the addon's declared
|
|
15
|
+
* secrets — an uncopied sidecar leaves them invisible to the host.
|
|
16
|
+
*/
|
|
17
|
+
export const SECRETS_META: SecretDefinitionsMeta =
|
|
18
|
+
secretsMeta as SecretDefinitionsMeta
|
|
6
19
|
|
|
7
20
|
export interface CredentialsMap {
|
|
8
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { defineVariable } from '@pikku/core/variable';
|
|
5
5
|
export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable';
|
|
6
6
|
//# sourceMappingURL=pikku-variable-types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-variable-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variable-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"pikku-variable-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variable-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { defineVariable } from '@pikku/core/variable';
|
|
5
5
|
//# sourceMappingURL=pikku-variable-types.gen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-variable-types.gen.js","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variable-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"pikku-variable-types.gen.js","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variable-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { defineVariable } from '@pikku/core/variable'
|
|
5
5
|
export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable'
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
4
|
import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
|
|
5
5
|
import type { VariablesService } from '@pikku/core/services';
|
|
6
|
+
import type { VariableDefinitionsMeta } from '@pikku/core/variable';
|
|
6
7
|
import type { z } from 'zod';
|
|
7
8
|
import { ollamaBaseUrlSchema } from '../../src/ollama.variable.js';
|
|
9
|
+
/**
|
|
10
|
+
* Every variable declared in this package.
|
|
11
|
+
*
|
|
12
|
+
* Read from the metadata sidecar rather than inlined, so that the import above
|
|
13
|
+
* forces tsc to emit the .json alongside this file. An addon publishes only its
|
|
14
|
+
* compiled output, and a host reads that .json to discover the addon's declared
|
|
15
|
+
* variables — an uncopied sidecar leaves them invisible to the host.
|
|
16
|
+
*/
|
|
17
|
+
export declare const VARIABLES_META: VariableDefinitionsMeta;
|
|
8
18
|
export interface VariablesMap {
|
|
9
19
|
'OLLAMA_BASE_URL': z.infer<typeof ollamaBaseUrlSchema>;
|
|
10
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-variables.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variables.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAqB,MAAM,sBAAsB,CAAA;AAC5G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAElE,MAAM,WAAW,YAAY;IAC3B,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;CACvD;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,YAAY,CAAA;AAM3C,qBAAa,qBAAsB,SAAQ,yBAAyB,CAAC,YAAY,CAAC;gBACpE,SAAS,EAAE,gBAAgB;CAGxC"}
|
|
1
|
+
{"version":3,"file":"pikku-variables.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variables.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAqB,MAAM,sBAAsB,CAAA;AAC5G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEnE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,uBACa,CAAA;AAE1C,MAAM,WAAW,YAAY;IAC3B,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;CACvD;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,YAAY,CAAA;AAM3C,qBAAa,qBAAsB,SAAQ,yBAAyB,CAAC,YAAY,CAAC;gBACpE,SAAS,EAAE,gBAAgB;CAGxC"}
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
4
|
import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import variablesMeta from './pikku-variables-meta.gen.json' with { type: 'json' };
|
|
6
|
+
/**
|
|
7
|
+
* Every variable declared in this package.
|
|
8
|
+
*
|
|
9
|
+
* Read from the metadata sidecar rather than inlined, so that the import above
|
|
10
|
+
* forces tsc to emit the .json alongside this file. An addon publishes only its
|
|
11
|
+
* compiled output, and a host reads that .json to discover the addon's declared
|
|
12
|
+
* variables — an uncopied sidecar leaves them invisible to the host.
|
|
13
|
+
*/
|
|
14
|
+
export const VARIABLES_META = variablesMeta;
|
|
15
|
+
const TYPED_VARIABLES_META = {
|
|
16
|
+
'OLLAMA_BASE_URL': { name: 'ollama_base_url', displayName: "Ollama Base URL" }
|
|
7
17
|
};
|
|
8
18
|
export class TypedVariablesService extends CoreTypedVariablesService {
|
|
9
19
|
constructor(variables) {
|
|
10
|
-
super(variables,
|
|
20
|
+
super(variables, TYPED_VARIABLES_META);
|
|
11
21
|
}
|
|
12
22
|
}
|
|
13
23
|
//# sourceMappingURL=pikku-variables.gen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-variables.gen.js","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variables.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAqB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-variables.gen.js","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variables.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAqB,MAAM,sBAAsB,CAAA;AAG5G,OAAO,aAAa,MAAM,iCAAiC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAIjF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GACzB,aAAwC,CAAA;AAQ1C,MAAM,oBAAoB,GAAiC;IACzD,iBAAiB,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,EAAE;CAC/E,CAAA;AAED,MAAM,OAAO,qBAAsB,SAAQ,yBAAuC;IAChF,YAAY,SAA2B;QACrC,KAAK,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAA;IACxC,CAAC;CACF"}
|
|
@@ -1,23 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
4
|
import { TypedVariablesService as CoreTypedVariablesService, type VariableMeta } from '@pikku/core/services'
|
|
5
5
|
import type { VariablesService } from '@pikku/core/services'
|
|
6
|
+
import type { VariableDefinitionsMeta } from '@pikku/core/variable'
|
|
7
|
+
import variablesMeta from './pikku-variables-meta.gen.json' with { type: 'json' }
|
|
6
8
|
import type { z } from 'zod'
|
|
7
9
|
import { ollamaBaseUrlSchema } from '../../src/ollama.variable.js'
|
|
8
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Every variable declared in this package.
|
|
13
|
+
*
|
|
14
|
+
* Read from the metadata sidecar rather than inlined, so that the import above
|
|
15
|
+
* forces tsc to emit the .json alongside this file. An addon publishes only its
|
|
16
|
+
* compiled output, and a host reads that .json to discover the addon's declared
|
|
17
|
+
* variables — an uncopied sidecar leaves them invisible to the host.
|
|
18
|
+
*/
|
|
19
|
+
export const VARIABLES_META: VariableDefinitionsMeta =
|
|
20
|
+
variablesMeta as VariableDefinitionsMeta
|
|
21
|
+
|
|
9
22
|
export interface VariablesMap {
|
|
10
23
|
'OLLAMA_BASE_URL': z.infer<typeof ollamaBaseUrlSchema>
|
|
11
24
|
}
|
|
12
25
|
|
|
13
26
|
export type VariableId = keyof VariablesMap
|
|
14
27
|
|
|
15
|
-
const
|
|
16
|
-
'OLLAMA_BASE_URL': { name: 'ollama_base_url', displayName:
|
|
28
|
+
const TYPED_VARIABLES_META: Record<string, VariableMeta> = {
|
|
29
|
+
'OLLAMA_BASE_URL': { name: 'ollama_base_url', displayName: "Ollama Base URL" }
|
|
17
30
|
}
|
|
18
31
|
|
|
19
32
|
export class TypedVariablesService extends CoreTypedVariablesService<VariablesMap> {
|
|
20
33
|
constructor(variables: VariablesService) {
|
|
21
|
-
super(variables,
|
|
34
|
+
super(variables, TYPED_VARIABLES_META)
|
|
22
35
|
}
|
|
23
36
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HttpPersonasConfig } from '@pikku/core/persona';
|
|
2
|
+
import type { ScenarioPersona, ResolvedPersona } from '@pikku/core/services';
|
|
3
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js';
|
|
4
|
+
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js';
|
|
5
|
+
export declare const personaConfigs: {};
|
|
6
|
+
export type PersonaName = keyof typeof personaConfigs;
|
|
7
|
+
/**
|
|
8
|
+
* The same personas as a list, widened to `ResolvedPersona`. Iterating
|
|
9
|
+
* `personaConfigs` directly yields the literal type of each entry, on which an
|
|
10
|
+
* optional field a persona did not declare does not exist — so a seed reading
|
|
11
|
+
* `roles` off every persona needs this instead.
|
|
12
|
+
*/
|
|
13
|
+
export declare const personaList: ResolvedPersona[];
|
|
14
|
+
export type AgentName = keyof AgentMap & string;
|
|
15
|
+
export type TypedPersonas = Record<PersonaName, ScenarioPersona<AgentName, FlattenedRPCMap>>;
|
|
16
|
+
export declare const createPersonas: (options: Omit<HttpPersonasConfig, "personas">) => TypedPersonas;
|
|
17
|
+
//# sourceMappingURL=pikku-personas.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-personas.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/workflow/pikku-personas.gen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AAE5E,eAAO,MAAM,cAAc,IAAwD,CAAA;AAEnF,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,cAAc,CAAA;AAErD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,eAAe,EAAkC,CAAA;AAE3E,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ,GAAG,MAAM,CAAA;AAC/C,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,WAAW,EACX,eAAe,CAAC,SAAS,EAAE,eAAe,CAAC,CAC5C,CAAA;AAED,eAAO,MAAM,cAAc,GACzB,SAAS,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,KAC5C,aAIkB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
|
+
*/
|
|
4
|
+
/** Personas declared with definePersonas() */
|
|
5
|
+
import { createHttpPersonas } from '@pikku/core/persona';
|
|
6
|
+
export const personaConfigs = {};
|
|
7
|
+
/**
|
|
8
|
+
* The same personas as a list, widened to `ResolvedPersona`. Iterating
|
|
9
|
+
* `personaConfigs` directly yields the literal type of each entry, on which an
|
|
10
|
+
* optional field a persona did not declare does not exist — so a seed reading
|
|
11
|
+
* `roles` off every persona needs this instead.
|
|
12
|
+
*/
|
|
13
|
+
export const personaList = Object.values(personaConfigs);
|
|
14
|
+
export const createPersonas = (options) => createHttpPersonas({
|
|
15
|
+
...options,
|
|
16
|
+
personas: personaConfigs,
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=pikku-personas.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-personas.gen.js","sourceRoot":"","sources":["../../../.pikku/workflow/pikku-personas.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,8CAA8C;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAMxD,MAAM,CAAC,MAAM,cAAc,GAAG,EAAqD,CAAA;AAInF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAsB,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;AAQ3E,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,OAA6C,EAC9B,EAAE,CACjB,kBAAkB,CAAC;IACjB,GAAG,OAAO;IACV,QAAQ,EAAE,cAAc;CACzB,CAAkB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
|
+
*/
|
|
4
|
+
/** Personas declared with definePersonas() */
|
|
5
|
+
import { createHttpPersonas } from '@pikku/core/persona'
|
|
6
|
+
import type { HttpPersonasConfig } from '@pikku/core/persona'
|
|
7
|
+
import type { ScenarioPersona, ResolvedPersona } from '@pikku/core/services'
|
|
8
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
9
|
+
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js'
|
|
10
|
+
|
|
11
|
+
export const personaConfigs = {} as const satisfies Record<string, ResolvedPersona>
|
|
12
|
+
|
|
13
|
+
export type PersonaName = keyof typeof personaConfigs
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The same personas as a list, widened to `ResolvedPersona`. Iterating
|
|
17
|
+
* `personaConfigs` directly yields the literal type of each entry, on which an
|
|
18
|
+
* optional field a persona did not declare does not exist — so a seed reading
|
|
19
|
+
* `roles` off every persona needs this instead.
|
|
20
|
+
*/
|
|
21
|
+
export const personaList: ResolvedPersona[] = Object.values(personaConfigs)
|
|
22
|
+
|
|
23
|
+
export type AgentName = keyof AgentMap & string
|
|
24
|
+
export type TypedPersonas = Record<
|
|
25
|
+
PersonaName,
|
|
26
|
+
ScenarioPersona<AgentName, FlattenedRPCMap>
|
|
27
|
+
>
|
|
28
|
+
|
|
29
|
+
export const createPersonas = (
|
|
30
|
+
options: Omit<HttpPersonasConfig, 'personas'>
|
|
31
|
+
): TypedPersonas =>
|
|
32
|
+
createHttpPersonas({
|
|
33
|
+
...options,
|
|
34
|
+
personas: personaConfigs,
|
|
35
|
+
}) as TypedPersonas
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Scenario step map: the names `scenario.given/when/then` accepts, with
|
|
6
|
+
* the input and output types of each step.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
interface ScenarioStepHandler<I, O> {
|
|
13
|
+
input: I;
|
|
14
|
+
output: O;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type FlattenedScenarioStepMap = {
|
|
18
|
+
};
|