@keystrokehq/parallel 0.1.5 → 0.1.6
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.cjs +1 -0
- package/dist/actions/add-enrichment-to-find-all-run.cjs.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.d.cts +3 -25
- package/dist/actions/add-enrichment-to-find-all-run.d.cts.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.d.mts +3 -25
- package/dist/actions/add-enrichment-to-find-all-run.d.mts.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.mjs +1 -0
- package/dist/actions/add-enrichment-to-find-all-run.mjs.map +1 -1
- package/dist/actions/add-runs-to-task-group.cjs +1 -0
- package/dist/actions/add-runs-to-task-group.cjs.map +1 -1
- package/dist/actions/add-runs-to-task-group.d.cts +3 -34
- package/dist/actions/add-runs-to-task-group.d.cts.map +1 -1
- package/dist/actions/add-runs-to-task-group.d.mts +3 -34
- package/dist/actions/add-runs-to-task-group.d.mts.map +1 -1
- package/dist/actions/add-runs-to-task-group.mjs +1 -0
- package/dist/actions/add-runs-to-task-group.mjs.map +1 -1
- package/dist/actions/cancel-find-all-run.cjs +1 -0
- package/dist/actions/cancel-find-all-run.cjs.map +1 -1
- package/dist/actions/cancel-find-all-run.d.cts +3 -15
- package/dist/actions/cancel-find-all-run.d.cts.map +1 -1
- package/dist/actions/cancel-find-all-run.d.mts +3 -15
- package/dist/actions/cancel-find-all-run.d.mts.map +1 -1
- package/dist/actions/cancel-find-all-run.mjs +1 -0
- package/dist/actions/cancel-find-all-run.mjs.map +1 -1
- package/dist/actions/create-chat-completions.cjs +1 -0
- package/dist/actions/create-chat-completions.cjs.map +1 -1
- package/dist/actions/create-chat-completions.d.cts +3 -32
- package/dist/actions/create-chat-completions.d.cts.map +1 -1
- package/dist/actions/create-chat-completions.d.mts +3 -32
- package/dist/actions/create-chat-completions.d.mts.map +1 -1
- package/dist/actions/create-chat-completions.mjs +1 -0
- package/dist/actions/create-chat-completions.mjs.map +1 -1
- package/dist/actions/create-monitor.cjs +1 -0
- package/dist/actions/create-monitor.cjs.map +1 -1
- package/dist/actions/create-monitor.d.cts +3 -25
- package/dist/actions/create-monitor.d.cts.map +1 -1
- package/dist/actions/create-monitor.d.mts +3 -25
- package/dist/actions/create-monitor.d.mts.map +1 -1
- package/dist/actions/create-monitor.mjs +1 -0
- package/dist/actions/create-monitor.mjs.map +1 -1
- package/dist/actions/create-task-group.cjs +1 -0
- package/dist/actions/create-task-group.cjs.map +1 -1
- package/dist/actions/create-task-group.d.cts +3 -15
- package/dist/actions/create-task-group.d.cts.map +1 -1
- package/dist/actions/create-task-group.d.mts +3 -15
- package/dist/actions/create-task-group.d.mts.map +1 -1
- package/dist/actions/create-task-group.mjs +1 -0
- package/dist/actions/create-task-group.mjs.map +1 -1
- package/dist/actions/create-task-run.cjs +1 -0
- package/dist/actions/create-task-run.cjs.map +1 -1
- package/dist/actions/create-task-run.d.cts +3 -34
- package/dist/actions/create-task-run.d.cts.map +1 -1
- package/dist/actions/create-task-run.d.mts +3 -34
- package/dist/actions/create-task-run.d.mts.map +1 -1
- package/dist/actions/create-task-run.mjs +1 -0
- package/dist/actions/create-task-run.mjs.map +1 -1
- package/dist/actions/delete-monitor.cjs +1 -0
- package/dist/actions/delete-monitor.cjs.map +1 -1
- package/dist/actions/delete-monitor.d.cts +3 -15
- package/dist/actions/delete-monitor.d.cts.map +1 -1
- package/dist/actions/delete-monitor.d.mts +3 -15
- package/dist/actions/delete-monitor.d.mts.map +1 -1
- package/dist/actions/delete-monitor.mjs +1 -0
- package/dist/actions/delete-monitor.mjs.map +1 -1
- package/dist/actions/extend-find-all-run.cjs +1 -0
- package/dist/actions/extend-find-all-run.cjs.map +1 -1
- package/dist/actions/extend-find-all-run.d.cts +3 -16
- package/dist/actions/extend-find-all-run.d.cts.map +1 -1
- package/dist/actions/extend-find-all-run.d.mts +3 -16
- package/dist/actions/extend-find-all-run.d.mts.map +1 -1
- package/dist/actions/extend-find-all-run.mjs +1 -0
- package/dist/actions/extend-find-all-run.mjs.map +1 -1
- package/dist/actions/extract.cjs +1 -0
- package/dist/actions/extract.cjs.map +1 -1
- package/dist/actions/extract.d.cts +3 -31
- package/dist/actions/extract.d.cts.map +1 -1
- package/dist/actions/extract.d.mts +3 -31
- package/dist/actions/extract.d.mts.map +1 -1
- package/dist/actions/extract.mjs +1 -0
- package/dist/actions/extract.mjs.map +1 -1
- package/dist/actions/fetch-task-group-runs.cjs +1 -0
- package/dist/actions/fetch-task-group-runs.cjs.map +1 -1
- package/dist/actions/fetch-task-group-runs.d.cts +3 -19
- package/dist/actions/fetch-task-group-runs.d.cts.map +1 -1
- package/dist/actions/fetch-task-group-runs.d.mts +3 -19
- package/dist/actions/fetch-task-group-runs.d.mts.map +1 -1
- package/dist/actions/fetch-task-group-runs.mjs +1 -0
- package/dist/actions/fetch-task-group-runs.mjs.map +1 -1
- package/dist/actions/find-all.cjs +1 -0
- package/dist/actions/find-all.cjs.map +1 -1
- package/dist/actions/find-all.d.cts +3 -33
- package/dist/actions/find-all.d.cts.map +1 -1
- package/dist/actions/find-all.d.mts +3 -33
- package/dist/actions/find-all.d.mts.map +1 -1
- package/dist/actions/find-all.mjs +1 -0
- package/dist/actions/find-all.mjs.map +1 -1
- package/dist/actions/get-find-all-run-result.cjs +1 -0
- package/dist/actions/get-find-all-run-result.cjs.map +1 -1
- package/dist/actions/get-find-all-run-result.d.cts +3 -15
- package/dist/actions/get-find-all-run-result.d.cts.map +1 -1
- package/dist/actions/get-find-all-run-result.d.mts +3 -15
- package/dist/actions/get-find-all-run-result.d.mts.map +1 -1
- package/dist/actions/get-find-all-run-result.mjs +1 -0
- package/dist/actions/get-find-all-run-result.mjs.map +1 -1
- package/dist/actions/get-find-all-run-schema.cjs +1 -0
- package/dist/actions/get-find-all-run-schema.cjs.map +1 -1
- package/dist/actions/get-find-all-run-schema.d.cts +3 -15
- package/dist/actions/get-find-all-run-schema.d.cts.map +1 -1
- package/dist/actions/get-find-all-run-schema.d.mts +3 -15
- package/dist/actions/get-find-all-run-schema.d.mts.map +1 -1
- package/dist/actions/get-find-all-run-schema.mjs +1 -0
- package/dist/actions/get-find-all-run-schema.mjs.map +1 -1
- package/dist/actions/ingest-find-all-run.cjs +1 -0
- package/dist/actions/ingest-find-all-run.cjs.map +1 -1
- package/dist/actions/ingest-find-all-run.d.cts +3 -15
- package/dist/actions/ingest-find-all-run.d.cts.map +1 -1
- package/dist/actions/ingest-find-all-run.d.mts +3 -15
- package/dist/actions/ingest-find-all-run.d.mts.map +1 -1
- package/dist/actions/ingest-find-all-run.mjs +1 -0
- package/dist/actions/ingest-find-all-run.mjs.map +1 -1
- package/dist/actions/list-monitor-events.cjs +1 -0
- package/dist/actions/list-monitor-events.cjs.map +1 -1
- package/dist/actions/list-monitor-events.d.cts +3 -16
- package/dist/actions/list-monitor-events.d.cts.map +1 -1
- package/dist/actions/list-monitor-events.d.mts +3 -16
- package/dist/actions/list-monitor-events.d.mts.map +1 -1
- package/dist/actions/list-monitor-events.mjs +1 -0
- package/dist/actions/list-monitor-events.mjs.map +1 -1
- package/dist/actions/list-monitors.cjs +1 -0
- package/dist/actions/list-monitors.cjs.map +1 -1
- package/dist/actions/list-monitors.d.cts +3 -16
- package/dist/actions/list-monitors.d.cts.map +1 -1
- package/dist/actions/list-monitors.d.mts +3 -16
- package/dist/actions/list-monitors.d.mts.map +1 -1
- package/dist/actions/list-monitors.mjs +1 -0
- package/dist/actions/list-monitors.mjs.map +1 -1
- package/dist/actions/retrieve-event-group.cjs +1 -0
- package/dist/actions/retrieve-event-group.cjs.map +1 -1
- package/dist/actions/retrieve-event-group.d.cts +3 -16
- package/dist/actions/retrieve-event-group.d.cts.map +1 -1
- package/dist/actions/retrieve-event-group.d.mts +3 -16
- package/dist/actions/retrieve-event-group.d.mts.map +1 -1
- package/dist/actions/retrieve-event-group.mjs +1 -0
- package/dist/actions/retrieve-event-group.mjs.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.cjs +1 -0
- package/dist/actions/retrieve-find-all-run-status.cjs.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.d.cts +3 -15
- package/dist/actions/retrieve-find-all-run-status.d.cts.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.d.mts +3 -15
- package/dist/actions/retrieve-find-all-run-status.d.mts.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.mjs +1 -0
- package/dist/actions/retrieve-find-all-run-status.mjs.map +1 -1
- package/dist/actions/retrieve-monitor.cjs +1 -0
- package/dist/actions/retrieve-monitor.cjs.map +1 -1
- package/dist/actions/retrieve-monitor.d.cts +3 -15
- package/dist/actions/retrieve-monitor.d.cts.map +1 -1
- package/dist/actions/retrieve-monitor.d.mts +3 -15
- package/dist/actions/retrieve-monitor.d.mts.map +1 -1
- package/dist/actions/retrieve-monitor.mjs +1 -0
- package/dist/actions/retrieve-monitor.mjs.map +1 -1
- package/dist/actions/retrieve-task-group-run.cjs +1 -0
- package/dist/actions/retrieve-task-group-run.cjs.map +1 -1
- package/dist/actions/retrieve-task-group-run.d.cts +3 -16
- package/dist/actions/retrieve-task-group-run.d.cts.map +1 -1
- package/dist/actions/retrieve-task-group-run.d.mts +3 -16
- package/dist/actions/retrieve-task-group-run.d.mts.map +1 -1
- package/dist/actions/retrieve-task-group-run.mjs +1 -0
- package/dist/actions/retrieve-task-group-run.mjs.map +1 -1
- package/dist/actions/retrieve-task-group.cjs +1 -0
- package/dist/actions/retrieve-task-group.cjs.map +1 -1
- package/dist/actions/retrieve-task-group.d.cts +3 -15
- package/dist/actions/retrieve-task-group.d.cts.map +1 -1
- package/dist/actions/retrieve-task-group.d.mts +3 -15
- package/dist/actions/retrieve-task-group.d.mts.map +1 -1
- package/dist/actions/retrieve-task-group.mjs +1 -0
- package/dist/actions/retrieve-task-group.mjs.map +1 -1
- package/dist/actions/retrieve-task-run-input.cjs +1 -0
- package/dist/actions/retrieve-task-run-input.cjs.map +1 -1
- package/dist/actions/retrieve-task-run-input.d.cts +3 -15
- package/dist/actions/retrieve-task-run-input.d.cts.map +1 -1
- package/dist/actions/retrieve-task-run-input.d.mts +3 -15
- package/dist/actions/retrieve-task-run-input.d.mts.map +1 -1
- package/dist/actions/retrieve-task-run-input.mjs +1 -0
- package/dist/actions/retrieve-task-run-input.mjs.map +1 -1
- package/dist/actions/retrieve-task-run-result.cjs +1 -0
- package/dist/actions/retrieve-task-run-result.cjs.map +1 -1
- package/dist/actions/retrieve-task-run-result.d.cts +3 -17
- package/dist/actions/retrieve-task-run-result.d.cts.map +1 -1
- package/dist/actions/retrieve-task-run-result.d.mts +3 -17
- package/dist/actions/retrieve-task-run-result.d.mts.map +1 -1
- package/dist/actions/retrieve-task-run-result.mjs +1 -0
- package/dist/actions/retrieve-task-run-result.mjs.map +1 -1
- package/dist/actions/retrieve-task-run.cjs +1 -0
- package/dist/actions/retrieve-task-run.cjs.map +1 -1
- package/dist/actions/retrieve-task-run.d.cts +3 -15
- package/dist/actions/retrieve-task-run.d.cts.map +1 -1
- package/dist/actions/retrieve-task-run.d.mts +3 -15
- package/dist/actions/retrieve-task-run.d.mts.map +1 -1
- package/dist/actions/retrieve-task-run.mjs +1 -0
- package/dist/actions/retrieve-task-run.mjs.map +1 -1
- package/dist/actions/search.cjs +1 -0
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +3 -15
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +3 -15
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +1 -0
- package/dist/actions/search.mjs.map +1 -1
- package/dist/actions/simulate-event.cjs +1 -0
- package/dist/actions/simulate-event.cjs.map +1 -1
- package/dist/actions/simulate-event.d.cts +3 -16
- package/dist/actions/simulate-event.d.cts.map +1 -1
- package/dist/actions/simulate-event.d.mts +3 -16
- package/dist/actions/simulate-event.d.mts.map +1 -1
- package/dist/actions/simulate-event.mjs +1 -0
- package/dist/actions/simulate-event.mjs.map +1 -1
- package/dist/actions/stream-find-all-events.cjs +1 -0
- package/dist/actions/stream-find-all-events.cjs.map +1 -1
- package/dist/actions/stream-find-all-events.d.cts +3 -17
- package/dist/actions/stream-find-all-events.d.cts.map +1 -1
- package/dist/actions/stream-find-all-events.d.mts +3 -17
- package/dist/actions/stream-find-all-events.d.mts.map +1 -1
- package/dist/actions/stream-find-all-events.mjs +1 -0
- package/dist/actions/stream-find-all-events.mjs.map +1 -1
- package/dist/actions/stream-task-group-events.cjs +1 -0
- package/dist/actions/stream-task-group-events.cjs.map +1 -1
- package/dist/actions/stream-task-group-events.d.cts +3 -17
- package/dist/actions/stream-task-group-events.d.cts.map +1 -1
- package/dist/actions/stream-task-group-events.d.mts +3 -17
- package/dist/actions/stream-task-group-events.d.mts.map +1 -1
- package/dist/actions/stream-task-group-events.mjs +1 -0
- package/dist/actions/stream-task-group-events.mjs.map +1 -1
- package/dist/actions/stream-task-run-events.cjs +1 -0
- package/dist/actions/stream-task-run-events.cjs.map +1 -1
- package/dist/actions/stream-task-run-events.d.cts +3 -15
- package/dist/actions/stream-task-run-events.d.cts.map +1 -1
- package/dist/actions/stream-task-run-events.d.mts +3 -15
- package/dist/actions/stream-task-run-events.d.mts.map +1 -1
- package/dist/actions/stream-task-run-events.mjs +1 -0
- package/dist/actions/stream-task-run-events.mjs.map +1 -1
- package/dist/actions/suggest-task.cjs +1 -0
- package/dist/actions/suggest-task.cjs.map +1 -1
- package/dist/actions/suggest-task.d.cts +3 -15
- package/dist/actions/suggest-task.d.cts.map +1 -1
- package/dist/actions/suggest-task.d.mts +3 -15
- package/dist/actions/suggest-task.d.mts.map +1 -1
- package/dist/actions/suggest-task.mjs +1 -0
- package/dist/actions/suggest-task.mjs.map +1 -1
- package/dist/actions/update-monitor.cjs +1 -0
- package/dist/actions/update-monitor.cjs.map +1 -1
- package/dist/actions/update-monitor.d.cts +3 -22
- package/dist/actions/update-monitor.d.cts.map +1 -1
- package/dist/actions/update-monitor.d.mts +3 -22
- package/dist/actions/update-monitor.d.mts.map +1 -1
- package/dist/actions/update-monitor.mjs +1 -0
- package/dist/actions/update-monitor.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-find-all-events.mjs","names":[],"sources":["../../src/actions/stream-find-all-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamFindAllEventsInput = z.object({\n timeout: z.number().int().describe(\"Duration in seconds to keep the connection open if no new events occur.\").optional(),\n findall_id: z.string().describe(\"Unique identifier of the FindAll run to stream events from.\"),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from.\").optional(),\n}).describe(\"Request model for streaming FindAll events.\");\nconst ParallelStreamFindAllEvents_FindAllEnrichInputSchema = z.object({\n name: z.string().describe(\"Name of the enrichment field.\").nullable(),\n description: z.string().describe(\"Description of the enrichment field.\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_MatchConditionSchema = z.object({\n name: z.string().describe(\"Identifier for the match condition.\").nullable(),\n description: z.string().describe(\"Description of what must be satisfied for the match.\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllSchemaSchema = z.object({\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"Quality/cost tier for the run.\").nullable(),\n objective: z.string().describe(\"Natural-language objective for the FindAll run.\").nullable(),\n enrichments: z.array(ParallelStreamFindAllEvents_FindAllEnrichInputSchema).describe(\"Optional list of enrichment fields.\").nullable().optional(),\n entity_type: z.string().describe(\"Type of entity to find.\").nullable(),\n match_limit: z.number().int().describe(\"Maximum number of matches to return.\").nullable().optional(),\n match_conditions: z.array(ParallelStreamFindAllEvents_MatchConditionSchema).describe(\"List of conditions that a candidate must satisfy.\"),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllSchemaUpdatedEventSchema = z.object({\n data: ParallelStreamFindAllEvents_FindAllSchemaSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n timestamp: z.string().describe(\"ISO 8601 timestamp of the event\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_RunMetricsSchema = z.object({\n matched_candidates_count: z.number().int().default(0).describe(\"Number of candidates matched so far.\").nullable().optional(),\n generated_candidates_count: z.number().int().default(0).describe(\"Number of candidates generated so far.\").nullable().optional(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllRunStatusSchema = z.object({\n status: z.enum([\"queued\", \"running\", \"in_progress\", \"completed\", \"failed\", \"cancelled\"]).describe(\"Current status of the FindAll run.\").nullable(),\n metrics: ParallelStreamFindAllEvents_RunMetricsSchema.nullable(),\n is_active: z.boolean().describe(\"Whether the run is currently active.\").nullable(),\n termination_reason: z.string().describe(\"Reason for run completion, if any.\").nullable().optional(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllRunSchema = z.object({\n status: ParallelStreamFindAllEvents_FindAllRunStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"Selected generator tier for the run.\").nullable(),\n created_at: z.string().describe(\"Creation timestamp (RFC 3339).\").nullable().optional(),\n findall_id: z.string().describe(\"ID of the FindAll run.\").nullable(),\n modified_at: z.string().describe(\"Last modification timestamp (RFC 3339).\").nullable().optional(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllRunStatusEventSchema = z.object({\n data: ParallelStreamFindAllEvents_FindAllRunSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n timestamp: z.string().describe(\"ISO 8601 timestamp of the event\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FieldBasisSchema = z.object({\n field: z.string().describe(\"Field name\").nullable(),\n source: z.string().describe(\"Source of the field value\").nullable().optional(),\n reasoning: z.string().describe(\"Reasoning for the field value\").nullable().optional(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllCandidateSchema = z.object({\n url: z.string().describe(\"Canonical URL of the candidate entity\").nullable(),\n name: z.string().describe(\"Name of the candidate entity\").nullable(),\n basis: z.array(ParallelStreamFindAllEvents_FieldBasisSchema).describe(\"Reasoning basis for candidate fields\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output data for the candidate\").nullable().optional(),\n description: z.string().describe(\"Description of the candidate entity\").nullable().optional(),\n candidate_id: z.string().describe(\"Unique identifier for the candidate\").nullable(),\n match_status: z.enum([\"generated\", \"matched\", \"unmatched\", \"discarded\", \"enriched\"]).describe(\"Current match status of the candidate\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllCandidateMatchStatusEventSchema = z.object({\n data: ParallelStreamFindAllEvents_FindAllCandidateSchema.nullable(),\n type: z.enum([\"findall.candidate.generated\", \"findall.candidate.matched\", \"findall.candidate.unmatched\", \"findall.candidate.discarded\", \"findall.candidate.enriched\"]).describe(\"Event type\").nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n timestamp: z.string().describe(\"ISO 8601 timestamp of the event\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamFindAllEvents_ErrorDetailSchema.nullable(),\n}).passthrough();\nexport const ParallelStreamFindAllEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamFindAllEvents_FindAllSchemaUpdatedEventSchema, ParallelStreamFindAllEvents_FindAllRunStatusEventSchema, ParallelStreamFindAllEvents_FindAllCandidateMatchStatusEventSchema, ParallelStreamFindAllEvents_ErrorEventSchema])).describe(\"List of events received from the FindAll stream\"),\n}).passthrough().describe(\"Response model containing list of streamed FindAll events.\");\n\nexport const parallelStreamFindAllEvents = action(\"PARALLEL_STREAM_FIND_ALL_EVENTS\", {\n slug: \"parallel-stream-find-all-events\",\n name: \"Stream FindAll Events\",\n description: \"Tool to stream events from a FindAll run. Use when you need real-time updates on candidate discovery, matching progress, and run status.\",\n input: ParallelStreamFindAllEventsInput,\n output: ParallelStreamFindAllEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACvH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACpG,CAAC,CAA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AAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgD,EAAE,OAAO;CAC7D,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+C,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,8CAA8C,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,QAAQ,EAAE,MAAM,EAAE,MAAM;EAAC;EAA6D;EAAyD;EAAoE;CAA4C,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD,EAC/T,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"stream-find-all-events.mjs","names":[],"sources":["../../src/actions/stream-find-all-events.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelStreamFindAllEventsInput = z.object({\n timeout: z.number().int().describe(\"Duration in seconds to keep the connection open if no new events occur.\").optional(),\n findall_id: z.string().describe(\"Unique identifier of the FindAll run to stream events from.\"),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from.\").optional(),\n}).describe(\"Request model for streaming FindAll events.\");\nconst ParallelStreamFindAllEvents_FindAllEnrichInputSchema = z.object({\n name: z.string().describe(\"Name of the enrichment field.\").nullable(),\n description: z.string().describe(\"Description of the enrichment field.\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_MatchConditionSchema = z.object({\n name: z.string().describe(\"Identifier for the match condition.\").nullable(),\n description: z.string().describe(\"Description of what must be satisfied for the match.\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllSchemaSchema = z.object({\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"Quality/cost tier for the run.\").nullable(),\n objective: z.string().describe(\"Natural-language objective for the FindAll run.\").nullable(),\n enrichments: z.array(ParallelStreamFindAllEvents_FindAllEnrichInputSchema).describe(\"Optional list of enrichment fields.\").nullable().optional(),\n entity_type: z.string().describe(\"Type of entity to find.\").nullable(),\n match_limit: z.number().int().describe(\"Maximum number of matches to return.\").nullable().optional(),\n match_conditions: z.array(ParallelStreamFindAllEvents_MatchConditionSchema).describe(\"List of conditions that a candidate must satisfy.\"),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllSchemaUpdatedEventSchema = z.object({\n data: ParallelStreamFindAllEvents_FindAllSchemaSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n timestamp: z.string().describe(\"ISO 8601 timestamp of the event\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_RunMetricsSchema = z.object({\n matched_candidates_count: z.number().int().default(0).describe(\"Number of candidates matched so far.\").nullable().optional(),\n generated_candidates_count: z.number().int().default(0).describe(\"Number of candidates generated so far.\").nullable().optional(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllRunStatusSchema = z.object({\n status: z.enum([\"queued\", \"running\", \"in_progress\", \"completed\", \"failed\", \"cancelled\"]).describe(\"Current status of the FindAll run.\").nullable(),\n metrics: ParallelStreamFindAllEvents_RunMetricsSchema.nullable(),\n is_active: z.boolean().describe(\"Whether the run is currently active.\").nullable(),\n termination_reason: z.string().describe(\"Reason for run completion, if any.\").nullable().optional(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllRunSchema = z.object({\n status: ParallelStreamFindAllEvents_FindAllRunStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the run.\").nullable().optional(),\n generator: z.enum([\"base\", \"core\", \"pro\", \"preview\"]).describe(\"Selected generator tier for the run.\").nullable(),\n created_at: z.string().describe(\"Creation timestamp (RFC 3339).\").nullable().optional(),\n findall_id: z.string().describe(\"ID of the FindAll run.\").nullable(),\n modified_at: z.string().describe(\"Last modification timestamp (RFC 3339).\").nullable().optional(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllRunStatusEventSchema = z.object({\n data: ParallelStreamFindAllEvents_FindAllRunSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n timestamp: z.string().describe(\"ISO 8601 timestamp of the event\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FieldBasisSchema = z.object({\n field: z.string().describe(\"Field name\").nullable(),\n source: z.string().describe(\"Source of the field value\").nullable().optional(),\n reasoning: z.string().describe(\"Reasoning for the field value\").nullable().optional(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllCandidateSchema = z.object({\n url: z.string().describe(\"Canonical URL of the candidate entity\").nullable(),\n name: z.string().describe(\"Name of the candidate entity\").nullable(),\n basis: z.array(ParallelStreamFindAllEvents_FieldBasisSchema).describe(\"Reasoning basis for candidate fields\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output data for the candidate\").nullable().optional(),\n description: z.string().describe(\"Description of the candidate entity\").nullable().optional(),\n candidate_id: z.string().describe(\"Unique identifier for the candidate\").nullable(),\n match_status: z.enum([\"generated\", \"matched\", \"unmatched\", \"discarded\", \"enriched\"]).describe(\"Current match status of the candidate\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_FindAllCandidateMatchStatusEventSchema = z.object({\n data: ParallelStreamFindAllEvents_FindAllCandidateSchema.nullable(),\n type: z.enum([\"findall.candidate.generated\", \"findall.candidate.matched\", \"findall.candidate.unmatched\", \"findall.candidate.discarded\", \"findall.candidate.enriched\"]).describe(\"Event type\").nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n timestamp: z.string().describe(\"ISO 8601 timestamp of the event\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough();\nconst ParallelStreamFindAllEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamFindAllEvents_ErrorDetailSchema.nullable(),\n}).passthrough();\nexport const ParallelStreamFindAllEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamFindAllEvents_FindAllSchemaUpdatedEventSchema, ParallelStreamFindAllEvents_FindAllRunStatusEventSchema, ParallelStreamFindAllEvents_FindAllCandidateMatchStatusEventSchema, ParallelStreamFindAllEvents_ErrorEventSchema])).describe(\"List of events received from the FindAll stream\"),\n}).passthrough().describe(\"Response model containing list of streamed FindAll events.\");\n\nexport const parallelStreamFindAllEvents: AppAction<\n typeof ParallelStreamFindAllEventsInput,\n typeof ParallelStreamFindAllEventsOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_STREAM_FIND_ALL_EVENTS\", {\n slug: \"parallel-stream-find-all-events\",\n name: \"Stream FindAll Events\",\n description: \"Tool to stream events from a FindAll run. Use when you need real-time updates on candidate discovery, matching progress, and run status.\",\n input: ParallelStreamFindAllEventsInput,\n output: ParallelStreamFindAllEventsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,C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AE,OAAO,EACxD,QAAQ,EAAE,MAAM,EAAE,MAAM;EAAC;EAA6D;EAAyD;EAAoE;CAA4C,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD,EAC/T,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-task-group-events.cjs","names":["z","action"],"sources":["../../src/actions/stream-task-group-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskGroupEventsInput = z.object({\n timeout: z.number().int().describe(\"Duration in seconds to keep the connection open if no new events occur.\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to stream events from.\"),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from.\").optional(),\n}).describe(\"Request model for streaming Task Group events.\");\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"Indicates if the Task Group is still active\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n num_task_runs: z.number().int().describe(\"Total number of task runs in the group\").nullable(),\n status_message: z.string().describe(\"Human-readable status message\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Breakdown of task runs by status\"),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n status: ParallelStreamTaskGroupEvents_TaskGroupStatusSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunInfoSchema = z.object({\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunEventSchema = z.object({\n run: ParallelStreamTaskGroupEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskGroupEvents_ErrorDetailSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nexport const ParallelStreamTaskGroupEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema, ParallelStreamTaskGroupEvents_TaskRunEventSchema, ParallelStreamTaskGroupEvents_ErrorEventSchema])).describe(\"List of events received from the Task Group stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Group events.\");\n\nexport const parallelStreamTaskGroupEvents = action(\"PARALLEL_STREAM_TASK_GROUP_EVENTS\", {\n slug: \"parallel-stream-task-group-events\",\n name: \"Stream Task Group Events\",\n description: \"Tool to stream events for a Task Group. Use when you want real-time updates of group status and run completions.\",\n input: ParallelStreamTaskGroupEventsInput,\n output: ParallelStreamTaskGroupEventsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stream-task-group-events.cjs","names":["z","action"],"sources":["../../src/actions/stream-task-group-events.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelStreamTaskGroupEventsInput = z.object({\n timeout: z.number().int().describe(\"Duration in seconds to keep the connection open if no new events occur.\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to stream events from.\"),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from.\").optional(),\n}).describe(\"Request model for streaming Task Group events.\");\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"Indicates if the Task Group is still active\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n num_task_runs: z.number().int().describe(\"Total number of task runs in the group\").nullable(),\n status_message: z.string().describe(\"Human-readable status message\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Breakdown of task runs by status\"),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n status: ParallelStreamTaskGroupEvents_TaskGroupStatusSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunInfoSchema = z.object({\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunEventSchema = z.object({\n run: ParallelStreamTaskGroupEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskGroupEvents_ErrorDetailSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nexport const ParallelStreamTaskGroupEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema, ParallelStreamTaskGroupEvents_TaskRunEventSchema, ParallelStreamTaskGroupEvents_ErrorEventSchema])).describe(\"List of events received from the Task Group stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Group events.\");\n\nexport const parallelStreamTaskGroupEvents: AppAction<\n typeof ParallelStreamTaskGroupEventsInput,\n typeof ParallelStreamTaskGroupEventsOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_STREAM_TASK_GROUP_EVENTS\", {\n slug: \"parallel-stream-task-group-events\",\n name: \"Stream Task Group Events\",\n description: \"Tool to stream events for a Task Group. Use when you want real-time updates of group status and run completions.\",\n input: ParallelStreamTaskGroupEventsInput,\n output: ParallelStreamTaskGroupEventsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACvH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAA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C,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;CAAC;CAA0D;CAAkD;AAA8C,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,EACtP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,gCAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parallel } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/stream-task-group-events.d.ts
|
|
@@ -40,23 +42,7 @@ declare const ParallelStreamTaskGroupEventsOutput: z.ZodObject<{
|
|
|
40
42
|
event_id: z.ZodNullable<z.ZodString>;
|
|
41
43
|
}, z.core.$loose>]>>;
|
|
42
44
|
}, z.core.$loose>;
|
|
43
|
-
declare const parallelStreamTaskGroupEvents:
|
|
44
|
-
taskgroup_id: string;
|
|
45
|
-
timeout?: number | undefined;
|
|
46
|
-
last_event_id?: string | undefined;
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
48
|
-
connectionId: z.ZodString;
|
|
49
|
-
entityId: z.ZodString;
|
|
50
|
-
instanceId: z.ZodString;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
generic_api_key: z.ZodString;
|
|
53
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
54
|
-
connectionId: z.ZodString;
|
|
55
|
-
entityId: z.ZodString;
|
|
56
|
-
instanceId: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
generic_api_key: z.ZodString;
|
|
59
|
-
}, z.core.$strip>>]>;
|
|
45
|
+
declare const parallelStreamTaskGroupEvents: AppAction<typeof ParallelStreamTaskGroupEventsInput, typeof ParallelStreamTaskGroupEventsOutput, typeof parallel.credential>;
|
|
60
46
|
//#endregion
|
|
61
47
|
export { parallelStreamTaskGroupEvents };
|
|
62
48
|
//# sourceMappingURL=stream-task-group-events.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-task-group-events.d.cts","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stream-task-group-events.d.cts","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cA0ClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parallel } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/stream-task-group-events.d.ts
|
|
@@ -40,23 +42,7 @@ declare const ParallelStreamTaskGroupEventsOutput: z.ZodObject<{
|
|
|
40
42
|
event_id: z.ZodNullable<z.ZodString>;
|
|
41
43
|
}, z.core.$loose>]>>;
|
|
42
44
|
}, z.core.$loose>;
|
|
43
|
-
declare const parallelStreamTaskGroupEvents:
|
|
44
|
-
taskgroup_id: string;
|
|
45
|
-
timeout?: number | undefined;
|
|
46
|
-
last_event_id?: string | undefined;
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
48
|
-
connectionId: z.ZodString;
|
|
49
|
-
entityId: z.ZodString;
|
|
50
|
-
instanceId: z.ZodString;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
generic_api_key: z.ZodString;
|
|
53
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
54
|
-
connectionId: z.ZodString;
|
|
55
|
-
entityId: z.ZodString;
|
|
56
|
-
instanceId: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
generic_api_key: z.ZodString;
|
|
59
|
-
}, z.core.$strip>>]>;
|
|
45
|
+
declare const parallelStreamTaskGroupEvents: AppAction<typeof ParallelStreamTaskGroupEventsInput, typeof ParallelStreamTaskGroupEventsOutput, typeof parallel.credential>;
|
|
60
46
|
//#endregion
|
|
61
47
|
export { parallelStreamTaskGroupEvents };
|
|
62
48
|
//# sourceMappingURL=stream-task-group-events.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-task-group-events.d.mts","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stream-task-group-events.d.mts","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cA0ClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-task-group-events.mjs","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskGroupEventsInput = z.object({\n timeout: z.number().int().describe(\"Duration in seconds to keep the connection open if no new events occur.\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to stream events from.\"),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from.\").optional(),\n}).describe(\"Request model for streaming Task Group events.\");\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"Indicates if the Task Group is still active\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n num_task_runs: z.number().int().describe(\"Total number of task runs in the group\").nullable(),\n status_message: z.string().describe(\"Human-readable status message\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Breakdown of task runs by status\"),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n status: ParallelStreamTaskGroupEvents_TaskGroupStatusSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunInfoSchema = z.object({\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunEventSchema = z.object({\n run: ParallelStreamTaskGroupEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskGroupEvents_ErrorDetailSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nexport const ParallelStreamTaskGroupEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema, ParallelStreamTaskGroupEvents_TaskRunEventSchema, ParallelStreamTaskGroupEvents_ErrorEventSchema])).describe(\"List of events received from the Task Group stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Group events.\");\n\nexport const parallelStreamTaskGroupEvents = action(\"PARALLEL_STREAM_TASK_GROUP_EVENTS\", {\n slug: \"parallel-stream-task-group-events\",\n name: \"Stream Task Group Events\",\n description: \"Tool to stream events for a Task Group. Use when you want real-time updates of group status and run completions.\",\n input: ParallelStreamTaskGroupEventsInput,\n output: ParallelStreamTaskGroupEventsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stream-task-group-events.mjs","names":[],"sources":["../../src/actions/stream-task-group-events.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelStreamTaskGroupEventsInput = z.object({\n timeout: z.number().int().describe(\"Duration in seconds to keep the connection open if no new events occur.\").optional(),\n taskgroup_id: z.string().describe(\"Unique identifier of the Task Group to stream events from.\"),\n last_event_id: z.string().describe(\"ID of the last received event to resume streaming from.\").optional(),\n}).describe(\"Request model for streaming Task Group events.\");\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"Indicates if the Task Group is still active\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n num_task_runs: z.number().int().describe(\"Total number of task runs in the group\").nullable(),\n status_message: z.string().describe(\"Human-readable status message\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Breakdown of task runs by status\"),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n status: ParallelStreamTaskGroupEvents_TaskGroupStatusSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunInfoSchema = z.object({\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_TaskRunEventSchema = z.object({\n run: ParallelStreamTaskGroupEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough();\nconst ParallelStreamTaskGroupEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskGroupEvents_ErrorDetailSchema.nullable(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable(),\n}).passthrough();\nexport const ParallelStreamTaskGroupEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskGroupEvents_TaskGroupStatusEventSchema, ParallelStreamTaskGroupEvents_TaskRunEventSchema, ParallelStreamTaskGroupEvents_ErrorEventSchema])).describe(\"List of events received from the Task Group stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Group events.\");\n\nexport const parallelStreamTaskGroupEvents: AppAction<\n typeof ParallelStreamTaskGroupEventsInput,\n typeof ParallelStreamTaskGroupEventsOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_STREAM_TASK_GROUP_EVENTS\", {\n slug: \"parallel-stream-task-group-events\",\n name: \"Stream Task Group Events\",\n description: \"Tool to stream events for a Task Group. Use when you want real-time updates of group status and run completions.\",\n input: ParallelStreamTaskGroupEventsInput,\n output: ParallelStreamTaskGroupEventsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO;CACzD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACvH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,sDAAsD,EAAE,OAAO;CACnE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,wBAAwB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC;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AAE,OAAO;CAC/D,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iDAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,gDAAgD,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,gCAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbiD,EAAE,OAAO,EAC1D,QAAQ,EAAE,MAAM,EAAE,MAAM;EAAC;EAA0D;EAAkD;CAA8C,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,EACtP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-task-run-events.cjs","names":["z","action"],"sources":["../../src/actions/stream-task-run-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskRunEventsInput = z.object({\n run_id: z.string().describe(\"Unique identifier of the Task Run to stream events from.\"),\n}).describe(\"Request model for streaming Task Run events.\");\nconst ParallelStreamTaskRunEvents_TaskRunInfoSchema = z.object({\n error: z.record(z.string(), z.unknown()).describe(\"Error details if any\").nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n warnings: z.record(z.string(), z.unknown()).describe(\"Warning details if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the task group this run belongs to\").nullable().optional(),\n}).passthrough().describe(\"Details of a task run.\");\nconst ParallelStreamTaskRunEvents_TaskRunStateEventSchema = z.object({\n run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).passthrough().describe(\"Event indicating the current status of the task run.\");\nconst ParallelStreamTaskRunEvents_SourceStatsSchema = z.object({\n num_sources_read: z.number().int().describe(\"Number of sources actually read\").nullable().optional(),\n sources_read_sample: z.array(z.string()).describe(\"Sample of sources that were read\").nullable().optional(),\n num_sources_considered: z.number().int().describe(\"Number of sources considered for the task\").nullable().optional(),\n}).passthrough().describe(\"Statistics about sources processed during task execution.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),\n progress_meter: z.number().describe(\"Completion percentage (0-100)\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress statistics about source processing.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = z.object({\n type: z.string().describe(\"Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)\").nullable(),\n message: z.string().describe(\"Human-readable progress message\").nullable(),\n timestamp: z.string().describe(\"ISO8601 timestamp when the message was generated\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress messages about task execution.\");\nconst ParallelStreamTaskRunEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error information.\");\nconst ParallelStreamTaskRunEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable(),\n}).passthrough().describe(\"Event indicating an error occurred.\");\nexport const ParallelStreamTaskRunEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskRunEvents_TaskRunStateEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema, ParallelStreamTaskRunEvents_ErrorEventSchema])).describe(\"List of events received from the Task Run stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Run events.\");\n\nexport const parallelStreamTaskRunEvents = action(\"PARALLEL_STREAM_TASK_RUN_EVENTS\", {\n slug: \"parallel-stream-task-run-events\",\n name: \"Stream Task Run Events\",\n description: \"Tool to stream events for a Task Run. Returns progress updates and state changes for the task run. For runs without enable_events=true, event frequency is reduced.\",\n input: ParallelStreamTaskRunEventsInput,\n output: ParallelStreamTaskRunEventsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stream-task-run-events.cjs","names":["z","action"],"sources":["../../src/actions/stream-task-run-events.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelStreamTaskRunEventsInput = z.object({\n run_id: z.string().describe(\"Unique identifier of the Task Run to stream events from.\"),\n}).describe(\"Request model for streaming Task Run events.\");\nconst ParallelStreamTaskRunEvents_TaskRunInfoSchema = z.object({\n error: z.record(z.string(), z.unknown()).describe(\"Error details if any\").nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n warnings: z.record(z.string(), z.unknown()).describe(\"Warning details if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the task group this run belongs to\").nullable().optional(),\n}).passthrough().describe(\"Details of a task run.\");\nconst ParallelStreamTaskRunEvents_TaskRunStateEventSchema = z.object({\n run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).passthrough().describe(\"Event indicating the current status of the task run.\");\nconst ParallelStreamTaskRunEvents_SourceStatsSchema = z.object({\n num_sources_read: z.number().int().describe(\"Number of sources actually read\").nullable().optional(),\n sources_read_sample: z.array(z.string()).describe(\"Sample of sources that were read\").nullable().optional(),\n num_sources_considered: z.number().int().describe(\"Number of sources considered for the task\").nullable().optional(),\n}).passthrough().describe(\"Statistics about sources processed during task execution.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),\n progress_meter: z.number().describe(\"Completion percentage (0-100)\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress statistics about source processing.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = z.object({\n type: z.string().describe(\"Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)\").nullable(),\n message: z.string().describe(\"Human-readable progress message\").nullable(),\n timestamp: z.string().describe(\"ISO8601 timestamp when the message was generated\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress messages about task execution.\");\nconst ParallelStreamTaskRunEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error information.\");\nconst ParallelStreamTaskRunEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable(),\n}).passthrough().describe(\"Event indicating an error occurred.\");\nexport const ParallelStreamTaskRunEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskRunEvents_TaskRunStateEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema, ParallelStreamTaskRunEvents_ErrorEventSchema])).describe(\"List of events received from the Task Run stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Run events.\");\n\nexport const parallelStreamTaskRunEvents: AppAction<\n typeof ParallelStreamTaskRunEventsInput,\n typeof ParallelStreamTaskRunEventsOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_STREAM_TASK_RUN_EVENTS\", {\n slug: \"parallel-stream-task-run-events\",\n name: \"Stream Task Run Events\",\n description: \"Tool to stream events for a Task Run. Returns progress updates and state changes for the task run. For runs without enable_events=true, event frequency is reduced.\",\n input: ParallelStreamTaskRunEventsInput,\n output: ParallelStreamTaskRunEventsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,E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A,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parallel } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/stream-task-run-events.d.ts
|
|
@@ -43,21 +45,7 @@ declare const ParallelStreamTaskRunEventsOutput: z.ZodObject<{
|
|
|
43
45
|
}, z.core.$loose>>;
|
|
44
46
|
}, z.core.$loose>]>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const parallelStreamTaskRunEvents:
|
|
47
|
-
run_id: string;
|
|
48
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
49
|
-
connectionId: z.ZodString;
|
|
50
|
-
entityId: z.ZodString;
|
|
51
|
-
instanceId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
generic_api_key: z.ZodString;
|
|
54
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>;
|
|
48
|
+
declare const parallelStreamTaskRunEvents: AppAction<typeof ParallelStreamTaskRunEventsInput, typeof ParallelStreamTaskRunEventsOutput, typeof parallel.credential>;
|
|
61
49
|
//#endregion
|
|
62
50
|
export { parallelStreamTaskRunEvents };
|
|
63
51
|
//# sourceMappingURL=stream-task-run-events.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-task-run-events.d.cts","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stream-task-run-events.d.cts","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cA8ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parallel } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/stream-task-run-events.d.ts
|
|
@@ -43,21 +45,7 @@ declare const ParallelStreamTaskRunEventsOutput: z.ZodObject<{
|
|
|
43
45
|
}, z.core.$loose>>;
|
|
44
46
|
}, z.core.$loose>]>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const parallelStreamTaskRunEvents:
|
|
47
|
-
run_id: string;
|
|
48
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
49
|
-
connectionId: z.ZodString;
|
|
50
|
-
entityId: z.ZodString;
|
|
51
|
-
instanceId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
generic_api_key: z.ZodString;
|
|
54
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>;
|
|
48
|
+
declare const parallelStreamTaskRunEvents: AppAction<typeof ParallelStreamTaskRunEventsInput, typeof ParallelStreamTaskRunEventsOutput, typeof parallel.credential>;
|
|
61
49
|
//#endregion
|
|
62
50
|
export { parallelStreamTaskRunEvents };
|
|
63
51
|
//# sourceMappingURL=stream-task-run-events.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-task-run-events.d.mts","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stream-task-run-events.d.mts","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cA8ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-task-run-events.mjs","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelStreamTaskRunEventsInput = z.object({\n run_id: z.string().describe(\"Unique identifier of the Task Run to stream events from.\"),\n}).describe(\"Request model for streaming Task Run events.\");\nconst ParallelStreamTaskRunEvents_TaskRunInfoSchema = z.object({\n error: z.record(z.string(), z.unknown()).describe(\"Error details if any\").nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n warnings: z.record(z.string(), z.unknown()).describe(\"Warning details if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the task group this run belongs to\").nullable().optional(),\n}).passthrough().describe(\"Details of a task run.\");\nconst ParallelStreamTaskRunEvents_TaskRunStateEventSchema = z.object({\n run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).passthrough().describe(\"Event indicating the current status of the task run.\");\nconst ParallelStreamTaskRunEvents_SourceStatsSchema = z.object({\n num_sources_read: z.number().int().describe(\"Number of sources actually read\").nullable().optional(),\n sources_read_sample: z.array(z.string()).describe(\"Sample of sources that were read\").nullable().optional(),\n num_sources_considered: z.number().int().describe(\"Number of sources considered for the task\").nullable().optional(),\n}).passthrough().describe(\"Statistics about sources processed during task execution.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),\n progress_meter: z.number().describe(\"Completion percentage (0-100)\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress statistics about source processing.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = z.object({\n type: z.string().describe(\"Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)\").nullable(),\n message: z.string().describe(\"Human-readable progress message\").nullable(),\n timestamp: z.string().describe(\"ISO8601 timestamp when the message was generated\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress messages about task execution.\");\nconst ParallelStreamTaskRunEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error information.\");\nconst ParallelStreamTaskRunEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable(),\n}).passthrough().describe(\"Event indicating an error occurred.\");\nexport const ParallelStreamTaskRunEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskRunEvents_TaskRunStateEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema, ParallelStreamTaskRunEvents_ErrorEventSchema])).describe(\"List of events received from the Task Run stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Run events.\");\n\nexport const parallelStreamTaskRunEvents = action(\"PARALLEL_STREAM_TASK_RUN_EVENTS\", {\n slug: \"parallel-stream-task-run-events\",\n name: \"Stream Task Run Events\",\n description: \"Tool to stream events for a Task Run. Returns progress updates and state changes for the task run. For runs without enable_events=true, event frequency is reduced.\",\n input: ParallelStreamTaskRunEventsInput,\n output: ParallelStreamTaskRunEventsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stream-task-run-events.mjs","names":[],"sources":["../../src/actions/stream-task-run-events.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelStreamTaskRunEventsInput = z.object({\n run_id: z.string().describe(\"Unique identifier of the Task Run to stream events from.\"),\n}).describe(\"Request model for streaming Task Run events.\");\nconst ParallelStreamTaskRunEvents_TaskRunInfoSchema = z.object({\n error: z.record(z.string(), z.unknown()).describe(\"Error details if any\").nullable().optional(),\n run_id: z.string().describe(\"Unique identifier of the task run\").nullable(),\n status: z.string().describe(\"Current status of the task run\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata\").nullable().optional(),\n warnings: z.record(z.string(), z.unknown()).describe(\"Warning details if any\").nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the task run is active\").nullable(),\n processor: z.string().describe(\"Processor used for the task run\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the task run was created\").nullable(),\n modified_at: z.string().describe(\"ISO8601 timestamp of last modification\").nullable(),\n taskgroup_id: z.string().describe(\"ID of the task group this run belongs to\").nullable().optional(),\n}).passthrough().describe(\"Details of a task run.\");\nconst ParallelStreamTaskRunEvents_TaskRunStateEventSchema = z.object({\n run: ParallelStreamTaskRunEvents_TaskRunInfoSchema.nullable(),\n type: z.string().describe(\"Event type\").nullable(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the task run\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output generated by the task run\").nullable().optional(),\n event_id: z.string().describe(\"Unique identifier for the event\").nullable().optional(),\n}).passthrough().describe(\"Event indicating the current status of the task run.\");\nconst ParallelStreamTaskRunEvents_SourceStatsSchema = z.object({\n num_sources_read: z.number().int().describe(\"Number of sources actually read\").nullable().optional(),\n sources_read_sample: z.array(z.string()).describe(\"Sample of sources that were read\").nullable().optional(),\n num_sources_considered: z.number().int().describe(\"Number of sources considered for the task\").nullable().optional(),\n}).passthrough().describe(\"Statistics about sources processed during task execution.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n source_stats: ParallelStreamTaskRunEvents_SourceStatsSchema.nullable(),\n progress_meter: z.number().describe(\"Completion percentage (0-100)\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress statistics about source processing.\");\nconst ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema = z.object({\n type: z.string().describe(\"Event type (e.g., task_run.progress_msg.exec_status, task_run.progress_msg.plan, etc.)\").nullable(),\n message: z.string().describe(\"Human-readable progress message\").nullable(),\n timestamp: z.string().describe(\"ISO8601 timestamp when the message was generated\").nullable().optional(),\n}).passthrough().describe(\"Event containing progress messages about task execution.\");\nconst ParallelStreamTaskRunEvents_ErrorDetailSchema = z.object({\n detail: z.record(z.string(), z.unknown()).describe(\"Additional details about the error\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the error\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error information.\");\nconst ParallelStreamTaskRunEvents_ErrorEventSchema = z.object({\n type: z.string().describe(\"Event type\").nullable(),\n error: ParallelStreamTaskRunEvents_ErrorDetailSchema.nullable(),\n}).passthrough().describe(\"Event indicating an error occurred.\");\nexport const ParallelStreamTaskRunEventsOutput = z.object({\n events: z.array(z.union([ParallelStreamTaskRunEvents_TaskRunStateEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressStatsEventSchema, ParallelStreamTaskRunEvents_TaskRunProgressMessageEventSchema, ParallelStreamTaskRunEvents_ErrorEventSchema])).describe(\"List of events received from the Task Run stream\"),\n}).passthrough().describe(\"Response model containing list of streamed Task Run events.\");\n\nexport const parallelStreamTaskRunEvents: AppAction<\n typeof ParallelStreamTaskRunEventsInput,\n typeof ParallelStreamTaskRunEventsOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_STREAM_TASK_RUN_EVENTS\", {\n slug: \"parallel-stream-task-run-events\",\n name: \"Stream Task Run Events\",\n description: \"Tool to stream events for a Task Run. Returns progress updates and state changes for the task run. For runs without enable_events=true, event frequency is reduced.\",\n input: ParallelStreamTaskRunEventsInput,\n output: ParallelStreamTaskRunEventsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO,EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACxF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS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,4BAA4B,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oBAAoB;AAC9C,MAAM,+CAA+C,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,8CAA8C,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAK/D,MAAa,8BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb+C,EAAE,OAAO,EACxD,QAAQ,EAAE,MAAM,EAAE,MAAM;EAAC;EAAqD;EAA6D;EAA+D;CAA4C,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,EACvT,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggest-task.cjs","names":["z","action"],"sources":["../../src/actions/suggest-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelSuggestTaskInput = z.object({\n user_intent: z.string().describe(\"User intent to guide the suggestion (e.g., 'Build authentication system for web app')\"),\n}).describe(\"The request payload for task suggestion.\");\nexport const ParallelSuggestTaskOutput = z.object({\n title: z.string().describe(\"Title of the suggested task\").nullable(),\n inputs: z.array(z.record(z.string(), z.unknown())).describe(\"List of pre-populated inputs if any\").nullable().optional(),\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the suggested task\"),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the suggested task\"),\n}).passthrough().describe(\"Response from the task-suggestion endpoint.\");\n\nexport const parallelSuggestTask = action(\"PARALLEL_SUGGEST_TASK\", {\n slug: \"parallel-suggest-task\",\n name: \"Suggest Task\",\n description: \"Tool to suggest tasks based on user intent. Use when you need task specifications generated from a natural language description of what you want to accomplish.\",\n input: ParallelSuggestTaskInput,\n output: ParallelSuggestTaskOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"suggest-task.cjs","names":["z","action"],"sources":["../../src/actions/suggest-task.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelSuggestTaskInput = z.object({\n user_intent: z.string().describe(\"User intent to guide the suggestion (e.g., 'Build authentication system for web app')\"),\n}).describe(\"The request payload for task suggestion.\");\nexport const ParallelSuggestTaskOutput = z.object({\n title: z.string().describe(\"Title of the suggested task\").nullable(),\n inputs: z.array(z.record(z.string(), z.unknown())).describe(\"List of pre-populated inputs if any\").nullable().optional(),\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the suggested task\"),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the suggested task\"),\n}).passthrough().describe(\"Response from the task-suggestion endpoint.\");\n\nexport const parallelSuggestTask: AppAction<\n typeof ParallelSuggestTaskInput,\n typeof ParallelSuggestTaskOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_SUGGEST_TASK\", {\n slug: \"parallel-suggest-task\",\n name: \"Suggest Task\",\n description: \"Tool to suggest tasks based on user intent. Use when you need task specifications generated from a natural language description of what you want to accomplish.\",\n input: ParallelSuggestTaskInput,\n output: ParallelSuggestTaskOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EAC1H,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;CAC5H,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parallel } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/suggest-task.d.ts
|
|
@@ -10,21 +12,7 @@ declare const ParallelSuggestTaskOutput: z.ZodObject<{
|
|
|
10
12
|
input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
13
|
output_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const parallelSuggestTask:
|
|
14
|
-
user_intent: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
16
|
-
connectionId: z.ZodString;
|
|
17
|
-
entityId: z.ZodString;
|
|
18
|
-
instanceId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const parallelSuggestTask: AppAction<typeof ParallelSuggestTaskInput, typeof ParallelSuggestTaskOutput, typeof parallel.credential>;
|
|
28
16
|
//#endregion
|
|
29
17
|
export { parallelSuggestTask };
|
|
30
18
|
//# sourceMappingURL=suggest-task.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggest-task.d.cts","names":[],"sources":["../../src/actions/suggest-task.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"suggest-task.d.cts","names":[],"sources":["../../src/actions/suggest-task.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parallel } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/suggest-task.d.ts
|
|
@@ -10,21 +12,7 @@ declare const ParallelSuggestTaskOutput: z.ZodObject<{
|
|
|
10
12
|
input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
13
|
output_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const parallelSuggestTask:
|
|
14
|
-
user_intent: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
16
|
-
connectionId: z.ZodString;
|
|
17
|
-
entityId: z.ZodString;
|
|
18
|
-
instanceId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const parallelSuggestTask: AppAction<typeof ParallelSuggestTaskInput, typeof ParallelSuggestTaskOutput, typeof parallel.credential>;
|
|
28
16
|
//#endregion
|
|
29
17
|
export { parallelSuggestTask };
|
|
30
18
|
//# sourceMappingURL=suggest-task.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggest-task.d.mts","names":[],"sources":["../../src/actions/suggest-task.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"suggest-task.d.mts","names":[],"sources":["../../src/actions/suggest-task.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggest-task.mjs","names":[],"sources":["../../src/actions/suggest-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelSuggestTaskInput = z.object({\n user_intent: z.string().describe(\"User intent to guide the suggestion (e.g., 'Build authentication system for web app')\"),\n}).describe(\"The request payload for task suggestion.\");\nexport const ParallelSuggestTaskOutput = z.object({\n title: z.string().describe(\"Title of the suggested task\").nullable(),\n inputs: z.array(z.record(z.string(), z.unknown())).describe(\"List of pre-populated inputs if any\").nullable().optional(),\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the suggested task\"),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the suggested task\"),\n}).passthrough().describe(\"Response from the task-suggestion endpoint.\");\n\nexport const parallelSuggestTask = action(\"PARALLEL_SUGGEST_TASK\", {\n slug: \"parallel-suggest-task\",\n name: \"Suggest Task\",\n description: \"Tool to suggest tasks based on user intent. Use when you need task specifications generated from a natural language description of what you want to accomplish.\",\n input: ParallelSuggestTaskInput,\n output: ParallelSuggestTaskOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"suggest-task.mjs","names":[],"sources":["../../src/actions/suggest-task.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelSuggestTaskInput = z.object({\n user_intent: z.string().describe(\"User intent to guide the suggestion (e.g., 'Build authentication system for web app')\"),\n}).describe(\"The request payload for task suggestion.\");\nexport const ParallelSuggestTaskOutput = z.object({\n title: z.string().describe(\"Title of the suggested task\").nullable(),\n inputs: z.array(z.record(z.string(), z.unknown())).describe(\"List of pre-populated inputs if any\").nullable().optional(),\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the input structure for the suggested task\"),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the expected output structure for the suggested task\"),\n}).passthrough().describe(\"Response from the task-suggestion endpoint.\");\n\nexport const parallelSuggestTask: AppAction<\n typeof ParallelSuggestTaskInput,\n typeof ParallelSuggestTaskOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_SUGGEST_TASK\", {\n slug: \"parallel-suggest-task\",\n name: \"Suggest Task\",\n description: \"Tool to suggest tasks based on user intent. Use when you need task specifications generated from a natural language description of what you want to accomplish.\",\n input: ParallelSuggestTaskInput,\n output: ParallelSuggestTaskOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBsC,EAAE,OAAO,EAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EAC1H,CAAC,CAAC,CAAC,SAAS,0CAgBH;CACP,QAhBuC,EAAE,OAAO;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACnE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;EAC5H,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6EAA6E;CACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-monitor.cjs","names":["z","action"],"sources":["../../src/actions/update-monitor.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelUpdateMonitorInput = z.object({\n query: z.string().describe(\"Updated search query for the monitor. Use this for minor updates to prompts and instructions only. Major changes to the query may lead to unexpected results in change detection, as the monitor compares new results with what was previously seen.\").optional(),\n cadence: z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\").optional(),\n webhook: z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\"),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").optional(),\n}).describe(\"Webhook configuration for monitor updates.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Updated user-provided metadata. This field is returned in webhook notifications, enabling you to map responses to corresponding objects in your application.\").optional(),\n monitor_id: z.string().describe(\"Unique identifier of the monitor to update.\"),\n}).describe(\"Request model for updating a monitor.\");\nconst ParallelUpdateMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Monitor status options.\");\nconst ParallelUpdateMonitor_CadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\");\nconst ParallelUpdateMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\").nullable(),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration for monitor updates.\");\nconst ParallelUpdateMonitor_OutputSchemaSchema = z.object({\n type: z.string().describe(\"Type of the schema.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for output.\"),\n}).passthrough().describe(\"Output schema configuration for monitor events.\");\nexport const ParallelUpdateMonitorOutput = z.object({\n query: z.string().describe(\"The query being monitored.\").nullable(),\n status: ParallelUpdateMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelUpdateMonitor_CadenceSchema.nullable(),\n webhook: ParallelUpdateMonitor_MonitorWebhookSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of the creation of the monitor in RFC 3339 format.\").nullable(),\n monitor_id: z.string().describe(\"ID of the monitor.\").nullable(),\n last_run_at: z.string().describe(\"Timestamp of the last run for the monitor.\").nullable().optional(),\n output_schema: ParallelUpdateMonitor_OutputSchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for updating a monitor.\");\n\nexport const parallelUpdateMonitor = action(\"PARALLEL_UPDATE_MONITOR\", {\n slug: \"parallel-update-monitor\",\n name: \"Update Monitor\",\n description: \"Tool to update a monitor's configuration. Use when you need to modify an existing monitor's cadence, query, metadata, or webhook settings. At least one field must be non-null to apply an update.\",\n input: ParallelUpdateMonitorInput,\n output: ParallelUpdateMonitorOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-monitor.cjs","names":["z","action"],"sources":["../../src/actions/update-monitor.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parallel } from \"../app\";\n\nexport const ParallelUpdateMonitorInput = z.object({\n query: z.string().describe(\"Updated search query for the monitor. Use this for minor updates to prompts and instructions only. Major changes to the query may lead to unexpected results in change detection, as the monitor compares new results with what was previously seen.\").optional(),\n cadence: z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\").optional(),\n webhook: z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\"),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").optional(),\n}).describe(\"Webhook configuration for monitor updates.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Updated user-provided metadata. This field is returned in webhook notifications, enabling you to map responses to corresponding objects in your application.\").optional(),\n monitor_id: z.string().describe(\"Unique identifier of the monitor to update.\"),\n}).describe(\"Request model for updating a monitor.\");\nconst ParallelUpdateMonitor_MonitorStatusSchema = z.enum([\"active\", \"canceled\"]).describe(\"Monitor status options.\");\nconst ParallelUpdateMonitor_CadenceSchema = z.enum([\"daily\", \"weekly\", \"hourly\", \"every_two_weeks\"]).describe(\"Monitor cadence options.\");\nconst ParallelUpdateMonitor_MonitorWebhookSchema = z.object({\n url: z.string().describe(\"The webhook URL to receive notifications.\").nullable(),\n event_types: z.array(z.string()).describe(\"Types of events that trigger the webhook.\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration for monitor updates.\");\nconst ParallelUpdateMonitor_OutputSchemaSchema = z.object({\n type: z.string().describe(\"Type of the schema.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition for output.\"),\n}).passthrough().describe(\"Output schema configuration for monitor events.\");\nexport const ParallelUpdateMonitorOutput = z.object({\n query: z.string().describe(\"The query being monitored.\").nullable(),\n status: ParallelUpdateMonitor_MonitorStatusSchema.nullable(),\n cadence: ParallelUpdateMonitor_CadenceSchema.nullable(),\n webhook: ParallelUpdateMonitor_MonitorWebhookSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata stored with the monitor.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of the creation of the monitor in RFC 3339 format.\").nullable(),\n monitor_id: z.string().describe(\"ID of the monitor.\").nullable(),\n last_run_at: z.string().describe(\"Timestamp of the last run for the monitor.\").nullable().optional(),\n output_schema: ParallelUpdateMonitor_OutputSchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for updating a monitor.\");\n\nexport const parallelUpdateMonitor: AppAction<\n typeof ParallelUpdateMonitorInput,\n typeof ParallelUpdateMonitorOutput,\n typeof parallel.credential\n> = action(\"PARALLEL_UPDATE_MONITOR\", {\n slug: \"parallel-update-monitor\",\n name: \"Update Monitor\",\n description: \"Tool to update a monitor's configuration. Use when you need to modify an existing monitor's cadence, query, metadata, or webhook settings. At least one field must be non-null to apply an update.\",\n input: ParallelUpdateMonitorInput,\n output: ParallelUpdateMonitorOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sPAAsP,CAAC,CAAC,SAAS;CAC5R,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAU;CAAiB,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO;EAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACpE,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,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4B,CAAC,CAAC,SAAS;CAClE,QAAQ,0CAA0C,SAAS;CAC3D,SAAS,oCAAoC,SAAS;CACtD,SAAS,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parallel } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-monitor.d.ts
|
|
@@ -41,28 +43,7 @@ declare const ParallelUpdateMonitorOutput: z.ZodObject<{
|
|
|
41
43
|
json_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
42
44
|
}, z.core.$loose>>>;
|
|
43
45
|
}, z.core.$loose>;
|
|
44
|
-
declare const parallelUpdateMonitor:
|
|
45
|
-
monitor_id: string;
|
|
46
|
-
query?: string | undefined;
|
|
47
|
-
cadence?: "daily" | "weekly" | "hourly" | "every_two_weeks" | undefined;
|
|
48
|
-
webhook?: {
|
|
49
|
-
url: string;
|
|
50
|
-
event_types?: string[] | undefined;
|
|
51
|
-
} | undefined;
|
|
52
|
-
metadata?: Record<string, unknown> | undefined;
|
|
53
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
54
|
-
connectionId: z.ZodString;
|
|
55
|
-
entityId: z.ZodString;
|
|
56
|
-
instanceId: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
generic_api_key: z.ZodString;
|
|
59
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parallel", z.ZodObject<{
|
|
60
|
-
connectionId: z.ZodString;
|
|
61
|
-
entityId: z.ZodString;
|
|
62
|
-
instanceId: z.ZodString;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
generic_api_key: z.ZodString;
|
|
65
|
-
}, z.core.$strip>>]>;
|
|
46
|
+
declare const parallelUpdateMonitor: AppAction<typeof ParallelUpdateMonitorInput, typeof ParallelUpdateMonitorOutput, typeof parallel.credential>;
|
|
66
47
|
//#endregion
|
|
67
48
|
export { parallelUpdateMonitor };
|
|
68
49
|
//# sourceMappingURL=update-monitor.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-monitor.d.cts","names":[],"sources":["../../src/actions/update-monitor.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-monitor.d.cts","names":[],"sources":["../../src/actions/update-monitor.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAY3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|