@pikku/cli 0.12.125 → 0.12.126
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/CHANGELOG.md +166 -0
- package/dist/.pikku/addon/index.d.ts +1 -1
- package/dist/.pikku/addon/index.js +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
- package/dist/.pikku/agent/index.d.ts +1 -1
- package/dist/.pikku/agent/index.js +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/auth/index.d.ts +1 -1
- package/dist/.pikku/auth/index.js +1 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +1 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.js +1 -1
- package/dist/.pikku/channel/index.d.ts +1 -1
- package/dist/.pikku/channel/index.js +1 -1
- 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/cli/index.d.ts +1 -1
- package/dist/.pikku/cli/index.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +6 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +13 -0
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
- package/dist/.pikku/error/index.d.ts +1 -1
- package/dist/.pikku/error/index.js +1 -1
- package/dist/.pikku/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/function/index.d.ts +1 -1
- package/dist/.pikku/function/index.js +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +35 -18
- package/dist/.pikku/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/gateway/index.d.ts +1 -1
- package/dist/.pikku/gateway/index.js +1 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +1 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js +1 -1
- package/dist/.pikku/http/index.d.ts +1 -1
- package/dist/.pikku/http/index.js +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/mcp/index.d.ts +1 -1
- package/dist/.pikku/mcp/index.js +1 -1
- 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/middleware/index.d.ts +1 -1
- package/dist/.pikku/middleware/index.js +1 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +1 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +1 -1
- package/dist/.pikku/queue/index.d.ts +1 -1
- package/dist/.pikku/queue/index.js +1 -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-workers-wirings-meta.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +1 -0
- package/dist/.pikku/scenarios/index.d.ts +1 -1
- package/dist/.pikku/scenarios/index.js +1 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/scheduler/index.d.ts +1 -1
- package/dist/.pikku/scheduler/index.js +1 -1
- 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/schemas/register.gen.js +3 -1
- package/dist/.pikku/schemas/schemas/FabricSecretsListInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/FabricSecretsRotateInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/FabricSecretsSetInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/FabricVariablesGetInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/FabricVariablesSetInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PersonaSecretInput.schema.json +1 -0
- package/dist/.pikku/scopes/index.d.ts +1 -1
- package/dist/.pikku/scopes/index.js +1 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/secrets/index.d.ts +1 -1
- package/dist/.pikku/secrets/index.js +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/setup/index.d.ts +1 -1
- package/dist/.pikku/setup/index.js +1 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.js +1 -1
- package/dist/.pikku/trigger/index.d.ts +1 -1
- package/dist/.pikku/trigger/index.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/index.d.ts +1 -1
- package/dist/.pikku/variables/index.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/workflow/index.d.ts +1 -1
- package/dist/.pikku/workflow/index.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/bin/pikku-bin.mjs +2 -2
- package/dist/src/cli.wiring.js +6 -1
- package/dist/src/deploy/bundler/bun-bundler.js +12 -5
- package/dist/src/fabric/fabric-commands.d.ts +15 -15
- package/dist/src/fabric/functions/deploy.function.js +12 -2
- package/dist/src/fabric/functions/secrets-list.function.d.ts +4 -4
- package/dist/src/fabric/functions/secrets-list.function.js +4 -4
- package/dist/src/fabric/functions/secrets-rotate.function.d.ts +4 -4
- package/dist/src/fabric/functions/secrets-rotate.function.js +8 -5
- package/dist/src/fabric/functions/secrets-set.function.d.ts +4 -4
- package/dist/src/fabric/functions/secrets-set.function.js +4 -4
- package/dist/src/fabric/functions/validate.function.js +49 -24
- package/dist/src/fabric/functions/variables-get.function.d.ts +4 -4
- package/dist/src/fabric/functions/variables-get.function.js +4 -4
- package/dist/src/fabric/functions/variables-set.function.d.ts +4 -4
- package/dist/src/fabric/functions/variables-set.function.js +4 -4
- package/dist/src/fabric/lib/blank-comments.d.ts +21 -0
- package/dist/src/fabric/lib/blank-comments.js +71 -0
- package/dist/src/fabric/lib/blank-scenario-meta.d.ts +1 -0
- package/dist/src/fabric/lib/blank-scenario-meta.js +110 -0
- package/dist/src/fabric/lib/deployment.d.ts +26 -0
- package/dist/src/fabric/lib/deployment.js +35 -0
- package/dist/src/fabric/lib/stage.d.ts +19 -3
- package/dist/src/fabric/lib/stage.js +29 -6
- package/dist/src/functions/commands/db-reset.js +6 -2
- package/dist/src/functions/commands/dev.js +5 -1
- package/dist/src/functions/commands/persona.d.ts +18 -0
- package/dist/src/functions/commands/persona.js +41 -2
- package/dist/src/functions/commands/scenario-browser.d.ts +13 -5
- package/dist/src/functions/db/check-enums.d.ts +38 -0
- package/dist/src/functions/db/check-enums.js +103 -0
- package/dist/src/functions/db/db-codegen.js +15 -0
- package/dist/src/functions/db/postgres/postgres-introspector.d.ts +14 -0
- package/dist/src/functions/db/postgres/postgres-introspector.js +48 -0
- package/dist/src/functions/db/sqlite/sqlite-introspector.d.ts +3 -4
- package/dist/src/functions/db/sqlite/sqlite-introspector.js +5 -17
- package/dist/src/functions/wirings/virtual-user/serialize-virtual-user-functions.d.ts +9 -6
- package/dist/src/functions/wirings/virtual-user/serialize-virtual-user-functions.js +51 -27
- package/dist/src/server/actor-sign-in.d.ts +24 -1
- package/dist/src/server/actor-sign-in.js +45 -2
- package/dist/src/utils/persona-credentials.d.ts +23 -2
- package/dist/src/utils/persona-credentials.js +55 -2
- package/dist/src/utils/pikku-cli-config.d.ts +4 -4
- package/dist/src/utils/pikku-cli-config.js +30 -10
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/surface.json +101 -51
package/surface.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.12.
|
|
2
|
+
"version": "0.12.126",
|
|
3
3
|
"entryPoints": [
|
|
4
4
|
{
|
|
5
5
|
"id": "app",
|
|
@@ -2132,17 +2132,20 @@
|
|
|
2132
2132
|
"doc": "Hosts this secret may be sent to, e.g. `['api.notion.com']` or `'*.notion.com'`. Omitted means unrestricted unless `config.secrets.requireAllowedHosts` is set."
|
|
2133
2133
|
},
|
|
2134
2134
|
{
|
|
2135
|
-
"line": "description?: string"
|
|
2135
|
+
"line": "description?: string",
|
|
2136
|
+
"doc": "What this secret is for, shown beside the field someone has to fill in."
|
|
2136
2137
|
},
|
|
2137
2138
|
{
|
|
2138
|
-
"line": "displayName: string"
|
|
2139
|
+
"line": "displayName: string",
|
|
2140
|
+
"doc": "How the secret is labelled wherever a person is asked to supply it."
|
|
2139
2141
|
},
|
|
2140
2142
|
{
|
|
2141
2143
|
"line": "docsUrl?: string",
|
|
2142
2144
|
"doc": "Where a user goes to obtain this value, surfaced beside a missing one."
|
|
2143
2145
|
},
|
|
2144
2146
|
{
|
|
2145
|
-
"line": "name: string"
|
|
2147
|
+
"line": "name: string",
|
|
2148
|
+
"doc": "The key code reads it by: `secrets.getSecret('NAME')`. SCREAMING_SNAKE_CASE."
|
|
2146
2149
|
},
|
|
2147
2150
|
{
|
|
2148
2151
|
"line": "optional?: boolean",
|
|
@@ -2153,10 +2156,12 @@
|
|
|
2153
2156
|
"doc": "Rotation cadence as a duration string, e.g. `'1d'`, `'30day'`, `'1w'`."
|
|
2154
2157
|
},
|
|
2155
2158
|
{
|
|
2156
|
-
"line": "schema: T"
|
|
2159
|
+
"line": "schema: T",
|
|
2160
|
+
"doc": "The shape of the value, as a schema. This is what types `getSecret`'s result — pass the schema itself, not an instance of it."
|
|
2157
2161
|
},
|
|
2158
2162
|
{
|
|
2159
|
-
"line": "secretId: string"
|
|
2163
|
+
"line": "secretId: string",
|
|
2164
|
+
"doc": "The id under the backing store, which is where the value actually lives."
|
|
2160
2165
|
}
|
|
2161
2166
|
],
|
|
2162
2167
|
"examples": [
|
|
@@ -2614,21 +2619,24 @@
|
|
|
2614
2619
|
"docs": "What a gateway integration implements: parse an incoming event into a\nmessage, send one back, and open and close the connection.",
|
|
2615
2620
|
"members": [
|
|
2616
2621
|
{
|
|
2617
|
-
"line": "close: () => Promise<void>"
|
|
2622
|
+
"line": "close: () => Promise<void>",
|
|
2623
|
+
"doc": "Called by GatewayService.stop(); release the connection init() opened."
|
|
2618
2624
|
},
|
|
2619
2625
|
{
|
|
2620
2626
|
"line": "init: (onMessage: (data: unknown) => Promise<void>) => Promise<void>",
|
|
2621
2627
|
"doc": "Called by GatewayService.start(); must call onMessage per incoming event."
|
|
2622
2628
|
},
|
|
2623
2629
|
{
|
|
2624
|
-
"line": "name: string"
|
|
2630
|
+
"line": "name: string",
|
|
2631
|
+
"doc": "Identifies the gateway in wirings and logs, e.g. `'slack'`."
|
|
2625
2632
|
},
|
|
2626
2633
|
{
|
|
2627
2634
|
"line": "parse: (data: unknown) => GatewayInboundMessage | null",
|
|
2628
2635
|
"doc": "Return null to ignore the event, e.g. a delivery receipt."
|
|
2629
2636
|
},
|
|
2630
2637
|
{
|
|
2631
|
-
"line": "send: (senderId: string, message: GatewayOutboundMessage) => Promise<void>"
|
|
2638
|
+
"line": "send: (senderId: string, message: GatewayOutboundMessage) => Promise<void>",
|
|
2639
|
+
"doc": "Deliver a reply back to the sender the message came from."
|
|
2632
2640
|
},
|
|
2633
2641
|
{
|
|
2634
2642
|
"line": "verifyWebhook?: ((data: unknown, request?: PikkuHTTPRequest) => WebhookVerificationResult | Promise<WebhookVerificationResult>)",
|
|
@@ -2647,20 +2655,24 @@
|
|
|
2647
2655
|
"docs": "One message arriving from a gateway, normalised: who sent it, in which\nconversation, and what they said.",
|
|
2648
2656
|
"members": [
|
|
2649
2657
|
{
|
|
2650
|
-
"line": "attachments?: GatewayAttachment[]"
|
|
2658
|
+
"line": "attachments?: GatewayAttachment[]",
|
|
2659
|
+
"doc": "Files and media that came with the message."
|
|
2651
2660
|
},
|
|
2652
2661
|
{
|
|
2653
|
-
"line": "metadata?: Record<string, unknown>"
|
|
2662
|
+
"line": "metadata?: Record<string, unknown>",
|
|
2663
|
+
"doc": "Anything else the adapter wants to carry through to the wiring."
|
|
2654
2664
|
},
|
|
2655
2665
|
{
|
|
2656
|
-
"line": "raw: unknown"
|
|
2666
|
+
"line": "raw: unknown",
|
|
2667
|
+
"doc": "The provider's own event, untouched, for anything this shape drops."
|
|
2657
2668
|
},
|
|
2658
2669
|
{
|
|
2659
2670
|
"line": "senderId: string",
|
|
2660
2671
|
"doc": "Platform-specific: a phone number, a Slack user id, and so on."
|
|
2661
2672
|
},
|
|
2662
2673
|
{
|
|
2663
|
-
"line": "text: string"
|
|
2674
|
+
"line": "text: string",
|
|
2675
|
+
"doc": "What they said, as plain text, with the provider's markup stripped."
|
|
2664
2676
|
}
|
|
2665
2677
|
]
|
|
2666
2678
|
},
|
|
@@ -2675,13 +2687,16 @@
|
|
|
2675
2687
|
"docs": "One message to send back through a gateway — plain text, or the provider's\nown rich content.",
|
|
2676
2688
|
"members": [
|
|
2677
2689
|
{
|
|
2678
|
-
"line": "attachments?: GatewayAttachment[]"
|
|
2690
|
+
"line": "attachments?: GatewayAttachment[]",
|
|
2691
|
+
"doc": "Files and media to send alongside."
|
|
2679
2692
|
},
|
|
2680
2693
|
{
|
|
2681
|
-
"line": "richContent?: Record<string, unknown>"
|
|
2694
|
+
"line": "richContent?: Record<string, unknown>",
|
|
2695
|
+
"doc": "The provider's own rich payload, e.g. Slack blocks. Passed through as-is."
|
|
2682
2696
|
},
|
|
2683
2697
|
{
|
|
2684
|
-
"line": "text?: string"
|
|
2698
|
+
"line": "text?: string",
|
|
2699
|
+
"doc": "The reply as plain text. Every provider can render this."
|
|
2685
2700
|
}
|
|
2686
2701
|
]
|
|
2687
2702
|
},
|
|
@@ -2778,7 +2793,8 @@
|
|
|
2778
2793
|
"docs": "What a gateway's `verifyWebhook` returns — verified, with the response the\nprovider expects back, or not.",
|
|
2779
2794
|
"members": [
|
|
2780
2795
|
{
|
|
2781
|
-
"line": "verified: boolean"
|
|
2796
|
+
"line": "verified: boolean",
|
|
2797
|
+
"doc": "True when the request really came from the provider. False when the signature or challenge did not check out."
|
|
2782
2798
|
}
|
|
2783
2799
|
]
|
|
2784
2800
|
},
|
|
@@ -3598,19 +3614,24 @@
|
|
|
3598
3614
|
"signature": "(config: Parameters<typeof corePikkuAgentJudge<Services>>[0]) => PikkuAgentScorer<Services>",
|
|
3599
3615
|
"members": [
|
|
3600
3616
|
{
|
|
3601
|
-
"line": "description: string"
|
|
3617
|
+
"line": "description: string",
|
|
3618
|
+
"doc": "What this judge grades, in one line, for whoever reads the score later."
|
|
3602
3619
|
},
|
|
3603
3620
|
{
|
|
3604
|
-
"line": "goal: string"
|
|
3621
|
+
"line": "goal: string",
|
|
3622
|
+
"doc": "The rubric: what a good answer looks like, phrased as the goal it should meet."
|
|
3605
3623
|
},
|
|
3606
3624
|
{
|
|
3607
|
-
"line": "model: string"
|
|
3625
|
+
"line": "model: string",
|
|
3626
|
+
"doc": "The model that grades, e.g. `'claude-sonnet-4-5'`. Not the model under test."
|
|
3608
3627
|
},
|
|
3609
3628
|
{
|
|
3610
|
-
"line": "name: string"
|
|
3629
|
+
"line": "name: string",
|
|
3630
|
+
"doc": "Identifies the judge in results and in the Console. Unique per project."
|
|
3611
3631
|
},
|
|
3612
3632
|
{
|
|
3613
|
-
"line": "prompt?: ((input: ScorerInput) => string)"
|
|
3633
|
+
"line": "prompt?: ((input: ScorerInput) => string)",
|
|
3634
|
+
"doc": "Replaces the generated rubric prompt outright, for framing `goal` cannot express. The `{ score, reason }` response is still forced."
|
|
3614
3635
|
},
|
|
3615
3636
|
{
|
|
3616
3637
|
"line": "requiresReference?: boolean",
|
|
@@ -3640,10 +3661,12 @@
|
|
|
3640
3661
|
"signature": "(config: Parameters<typeof corePikkuAgentScorer<Services>>[0]) => PikkuAgentScorer<Services>",
|
|
3641
3662
|
"members": [
|
|
3642
3663
|
{
|
|
3643
|
-
"line": "description: string"
|
|
3664
|
+
"line": "description: string",
|
|
3665
|
+
"doc": "What this scorer grades, in one line, for whoever reads the score later."
|
|
3644
3666
|
},
|
|
3645
3667
|
{
|
|
3646
|
-
"line": "name: string"
|
|
3668
|
+
"line": "name: string",
|
|
3669
|
+
"doc": "Identifies the scorer in results and in the Console. Unique per project."
|
|
3647
3670
|
},
|
|
3648
3671
|
{
|
|
3649
3672
|
"line": "requiresReference?: boolean",
|
|
@@ -3654,7 +3677,8 @@
|
|
|
3654
3677
|
"doc": "0..1 fraction of live runs to grade. Defaults to all of them."
|
|
3655
3678
|
},
|
|
3656
3679
|
{
|
|
3657
|
-
"line": "score: (input: ScorerInput, services: Services) => ScorerOutput | Promise<ScorerOutput>"
|
|
3680
|
+
"line": "score: (input: ScorerInput, services: Services) => ScorerOutput | Promise<ScorerOutput>",
|
|
3681
|
+
"doc": "The grade itself: read the finished run and return `{ score, reason }`. Runs in-process, so it may use your own services."
|
|
3658
3682
|
}
|
|
3659
3683
|
],
|
|
3660
3684
|
"examples": [
|
|
@@ -8578,17 +8602,20 @@
|
|
|
8578
8602
|
"doc": "Hosts this secret may be sent to, e.g. `['api.notion.com']` or `'*.notion.com'`. Omitted means unrestricted unless `config.secrets.requireAllowedHosts` is set."
|
|
8579
8603
|
},
|
|
8580
8604
|
{
|
|
8581
|
-
"line": "description?: string"
|
|
8605
|
+
"line": "description?: string",
|
|
8606
|
+
"doc": "What this secret is for, shown beside the field someone has to fill in."
|
|
8582
8607
|
},
|
|
8583
8608
|
{
|
|
8584
|
-
"line": "displayName: string"
|
|
8609
|
+
"line": "displayName: string",
|
|
8610
|
+
"doc": "How the secret is labelled wherever a person is asked to supply it."
|
|
8585
8611
|
},
|
|
8586
8612
|
{
|
|
8587
8613
|
"line": "docsUrl?: string",
|
|
8588
8614
|
"doc": "Where a user goes to obtain this value, surfaced beside a missing one."
|
|
8589
8615
|
},
|
|
8590
8616
|
{
|
|
8591
|
-
"line": "name: string"
|
|
8617
|
+
"line": "name: string",
|
|
8618
|
+
"doc": "The key code reads it by: `secrets.getSecret('NAME')`. SCREAMING_SNAKE_CASE."
|
|
8592
8619
|
},
|
|
8593
8620
|
{
|
|
8594
8621
|
"line": "optional?: boolean",
|
|
@@ -8599,10 +8626,12 @@
|
|
|
8599
8626
|
"doc": "Rotation cadence as a duration string, e.g. `'1d'`, `'30day'`, `'1w'`."
|
|
8600
8627
|
},
|
|
8601
8628
|
{
|
|
8602
|
-
"line": "schema: T"
|
|
8629
|
+
"line": "schema: T",
|
|
8630
|
+
"doc": "The shape of the value, as a schema. This is what types `getSecret`'s result — pass the schema itself, not an instance of it."
|
|
8603
8631
|
},
|
|
8604
8632
|
{
|
|
8605
|
-
"line": "secretId: string"
|
|
8633
|
+
"line": "secretId: string",
|
|
8634
|
+
"doc": "The id under the backing store, which is where the value actually lives."
|
|
8606
8635
|
}
|
|
8607
8636
|
],
|
|
8608
8637
|
"examples": [
|
|
@@ -8689,17 +8718,20 @@
|
|
|
8689
8718
|
"doc": "Hosts this secret may be sent to, e.g. `['api.notion.com']` or `'*.notion.com'`. Omitted means unrestricted unless `config.secrets.requireAllowedHosts` is set."
|
|
8690
8719
|
},
|
|
8691
8720
|
{
|
|
8692
|
-
"line": "description?: string"
|
|
8721
|
+
"line": "description?: string",
|
|
8722
|
+
"doc": "What this secret is for, shown beside the field someone has to fill in."
|
|
8693
8723
|
},
|
|
8694
8724
|
{
|
|
8695
|
-
"line": "displayName: string"
|
|
8725
|
+
"line": "displayName: string",
|
|
8726
|
+
"doc": "How the secret is labelled wherever a person is asked to supply it."
|
|
8696
8727
|
},
|
|
8697
8728
|
{
|
|
8698
8729
|
"line": "docsUrl?: string",
|
|
8699
8730
|
"doc": "Where a user goes to obtain this value, surfaced beside a missing one."
|
|
8700
8731
|
},
|
|
8701
8732
|
{
|
|
8702
|
-
"line": "name: string"
|
|
8733
|
+
"line": "name: string",
|
|
8734
|
+
"doc": "The key code reads it by: `secrets.getSecret('NAME')`. SCREAMING_SNAKE_CASE."
|
|
8703
8735
|
},
|
|
8704
8736
|
{
|
|
8705
8737
|
"line": "optional?: boolean",
|
|
@@ -8710,10 +8742,12 @@
|
|
|
8710
8742
|
"doc": "Rotation cadence as a duration string, e.g. `'1d'`, `'30day'`, `'1w'`."
|
|
8711
8743
|
},
|
|
8712
8744
|
{
|
|
8713
|
-
"line": "schema: T"
|
|
8745
|
+
"line": "schema: T",
|
|
8746
|
+
"doc": "The shape of the value, as a schema. This is what types `getSecret`'s result — pass the schema itself, not an instance of it."
|
|
8714
8747
|
},
|
|
8715
8748
|
{
|
|
8716
|
-
"line": "secretId: string"
|
|
8749
|
+
"line": "secretId: string",
|
|
8750
|
+
"doc": "The id under the backing store, which is where the value actually lives."
|
|
8717
8751
|
}
|
|
8718
8752
|
],
|
|
8719
8753
|
"examples": [
|
|
@@ -9805,19 +9839,24 @@
|
|
|
9805
9839
|
"signature": "(config: Parameters<typeof corePikkuAgentJudge<Services>>[0]) => PikkuAgentScorer<Services>",
|
|
9806
9840
|
"members": [
|
|
9807
9841
|
{
|
|
9808
|
-
"line": "description: string"
|
|
9842
|
+
"line": "description: string",
|
|
9843
|
+
"doc": "What this judge grades, in one line, for whoever reads the score later."
|
|
9809
9844
|
},
|
|
9810
9845
|
{
|
|
9811
|
-
"line": "goal: string"
|
|
9846
|
+
"line": "goal: string",
|
|
9847
|
+
"doc": "The rubric: what a good answer looks like, phrased as the goal it should meet."
|
|
9812
9848
|
},
|
|
9813
9849
|
{
|
|
9814
|
-
"line": "model: string"
|
|
9850
|
+
"line": "model: string",
|
|
9851
|
+
"doc": "The model that grades, e.g. `'claude-sonnet-4-5'`. Not the model under test."
|
|
9815
9852
|
},
|
|
9816
9853
|
{
|
|
9817
|
-
"line": "name: string"
|
|
9854
|
+
"line": "name: string",
|
|
9855
|
+
"doc": "Identifies the judge in results and in the Console. Unique per project."
|
|
9818
9856
|
},
|
|
9819
9857
|
{
|
|
9820
|
-
"line": "prompt?: ((input: ScorerInput) => string)"
|
|
9858
|
+
"line": "prompt?: ((input: ScorerInput) => string)",
|
|
9859
|
+
"doc": "Replaces the generated rubric prompt outright, for framing `goal` cannot express. The `{ score, reason }` response is still forced."
|
|
9821
9860
|
},
|
|
9822
9861
|
{
|
|
9823
9862
|
"line": "requiresReference?: boolean",
|
|
@@ -9847,10 +9886,12 @@
|
|
|
9847
9886
|
"signature": "(config: Parameters<typeof corePikkuAgentScorer<Services>>[0]) => PikkuAgentScorer<Services>",
|
|
9848
9887
|
"members": [
|
|
9849
9888
|
{
|
|
9850
|
-
"line": "description: string"
|
|
9889
|
+
"line": "description: string",
|
|
9890
|
+
"doc": "What this scorer grades, in one line, for whoever reads the score later."
|
|
9851
9891
|
},
|
|
9852
9892
|
{
|
|
9853
|
-
"line": "name: string"
|
|
9893
|
+
"line": "name: string",
|
|
9894
|
+
"doc": "Identifies the scorer in results and in the Console. Unique per project."
|
|
9854
9895
|
},
|
|
9855
9896
|
{
|
|
9856
9897
|
"line": "requiresReference?: boolean",
|
|
@@ -9861,7 +9902,8 @@
|
|
|
9861
9902
|
"doc": "0..1 fraction of live runs to grade. Defaults to all of them."
|
|
9862
9903
|
},
|
|
9863
9904
|
{
|
|
9864
|
-
"line": "score: (input: ScorerInput, services: Services) => ScorerOutput | Promise<ScorerOutput>"
|
|
9905
|
+
"line": "score: (input: ScorerInput, services: Services) => ScorerOutput | Promise<ScorerOutput>",
|
|
9906
|
+
"doc": "The grade itself: read the finished run and return `{ score, reason }`. Runs in-process, so it may use your own services."
|
|
9865
9907
|
}
|
|
9866
9908
|
],
|
|
9867
9909
|
"examples": [
|
|
@@ -10053,19 +10095,24 @@
|
|
|
10053
10095
|
"signature": "(config: Parameters<typeof corePikkuAgentJudge<Services>>[0]) => PikkuAgentScorer<Services>",
|
|
10054
10096
|
"members": [
|
|
10055
10097
|
{
|
|
10056
|
-
"line": "description: string"
|
|
10098
|
+
"line": "description: string",
|
|
10099
|
+
"doc": "What this judge grades, in one line, for whoever reads the score later."
|
|
10057
10100
|
},
|
|
10058
10101
|
{
|
|
10059
|
-
"line": "goal: string"
|
|
10102
|
+
"line": "goal: string",
|
|
10103
|
+
"doc": "The rubric: what a good answer looks like, phrased as the goal it should meet."
|
|
10060
10104
|
},
|
|
10061
10105
|
{
|
|
10062
|
-
"line": "model: string"
|
|
10106
|
+
"line": "model: string",
|
|
10107
|
+
"doc": "The model that grades, e.g. `'claude-sonnet-4-5'`. Not the model under test."
|
|
10063
10108
|
},
|
|
10064
10109
|
{
|
|
10065
|
-
"line": "name: string"
|
|
10110
|
+
"line": "name: string",
|
|
10111
|
+
"doc": "Identifies the judge in results and in the Console. Unique per project."
|
|
10066
10112
|
},
|
|
10067
10113
|
{
|
|
10068
|
-
"line": "prompt?: ((input: ScorerInput) => string)"
|
|
10114
|
+
"line": "prompt?: ((input: ScorerInput) => string)",
|
|
10115
|
+
"doc": "Replaces the generated rubric prompt outright, for framing `goal` cannot express. The `{ score, reason }` response is still forced."
|
|
10069
10116
|
},
|
|
10070
10117
|
{
|
|
10071
10118
|
"line": "requiresReference?: boolean",
|
|
@@ -10096,10 +10143,12 @@
|
|
|
10096
10143
|
"signature": "(config: Parameters<typeof corePikkuAgentScorer<Services>>[0]) => PikkuAgentScorer<Services>",
|
|
10097
10144
|
"members": [
|
|
10098
10145
|
{
|
|
10099
|
-
"line": "description: string"
|
|
10146
|
+
"line": "description: string",
|
|
10147
|
+
"doc": "What this scorer grades, in one line, for whoever reads the score later."
|
|
10100
10148
|
},
|
|
10101
10149
|
{
|
|
10102
|
-
"line": "name: string"
|
|
10150
|
+
"line": "name: string",
|
|
10151
|
+
"doc": "Identifies the scorer in results and in the Console. Unique per project."
|
|
10103
10152
|
},
|
|
10104
10153
|
{
|
|
10105
10154
|
"line": "requiresReference?: boolean",
|
|
@@ -10110,7 +10159,8 @@
|
|
|
10110
10159
|
"doc": "0..1 fraction of live runs to grade. Defaults to all of them."
|
|
10111
10160
|
},
|
|
10112
10161
|
{
|
|
10113
|
-
"line": "score: (input: ScorerInput, services: Services) => ScorerOutput | Promise<ScorerOutput>"
|
|
10162
|
+
"line": "score: (input: ScorerInput, services: Services) => ScorerOutput | Promise<ScorerOutput>",
|
|
10163
|
+
"doc": "The grade itself: read the finished run and return `{ score, reason }`. Runs in-process, so it may use your own services."
|
|
10114
10164
|
}
|
|
10115
10165
|
],
|
|
10116
10166
|
"examples": [
|