picked 0.0.123-next.3 → 0.0.123-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/reference/apps/protocol.md +1 -1
- package/docs/reference/dashboard/external-apis.md +1 -1
- package/docs/reference/dashboard/workflow-templates.md +4 -0
- package/docs/reference/management-api/schema/index.md +2 -2
- package/docs/reference/management-api/schema/workflow-run.md +1 -1
- package/docs/reference/management-api/schema/workflow.md +6 -1
- package/docs/reference/tools/mcp.md +3 -0
- package/package.json +4 -4
|
@@ -300,7 +300,7 @@ These rules apply to lifecycle events, app events and tool calls.
|
|
|
300
300
|
| Time to answer | 30 seconds for a tool call, `installation.created` and `installation.upgraded`. 15 seconds for an app event and `installation.deleted`. The time includes resends. |
|
|
301
301
|
| Resends | Only for a request with an `idempotency-key` header: app events and tool calls. Picked sends such a request three times at most, after a `408`, a `429`, a `5xx` or no answer. |
|
|
302
302
|
| Redirects | Picked does not go to a new address that a `3xx` answer gives. A `3xx` answer is not a `2xx` answer. |
|
|
303
|
-
| Answer body | Picked reads
|
|
303
|
+
| Answer body | Picked reads 1 MiB of the answer at most. |
|
|
304
304
|
|
|
305
305
|
The `endpoint` must be a URL that the [manifest](/reference/apps/manifest#endpoint) permits.
|
|
306
306
|
Before each request, Picked also checks the address:
|
|
@@ -120,7 +120,7 @@ answer.
|
|
|
120
120
|
## Limits
|
|
121
121
|
|
|
122
122
|
- The request body is limited to 1 MiB.
|
|
123
|
-
- The recorded answer is limited to
|
|
123
|
+
- The recorded answer is limited to 1 MiB. A larger answer sets `bodyTruncated`.
|
|
124
124
|
- Picked records the status that asks the caller to redirect. Picked does not go to the
|
|
125
125
|
new address.
|
|
126
126
|
- Picked sends a request three times at most. Picked waits longer before each retry, and
|
|
@@ -52,6 +52,10 @@ the lead has at that time, not the values at the time of the event. A node after
|
|
|
52
52
|
**Set lead labels** node reads the labels that it set. In a test run with **Execute writes**
|
|
53
53
|
off, **Set lead labels** does not write. The nodes after it read the old labels.
|
|
54
54
|
|
|
55
|
+
A **Create lead** or **Create or update lead** node writes the labels in its `labels`
|
|
56
|
+
argument before Picked sends `lead.created` or `lead.updated`. The first node of a workflow
|
|
57
|
+
for that event reads these labels.
|
|
58
|
+
|
|
55
59
|
If the lead was deleted, the node fails.
|
|
56
60
|
|
|
57
61
|
A workflow for `lead.created` or `lead.updated` reads leads, so it needs the scope
|
|
@@ -209,9 +209,9 @@ An operation with `@auth` needs a caller that has authenticated. `@auth(only: US
|
|
|
209
209
|
| [`workflowDelete`](/reference/management-api/schema/workflow#workflowdelete) | Mutation | Deletes a workflow. Published versions keep their copy, and an action that started it can start another workflow. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
|
|
210
210
|
| [`workflowGraphUpdate`](/reference/management-api/schema/workflow#workflowgraphupdate) | Mutation | Updates the graph of a workflow with a change set, all or nothing. A refused change set writes nothing and comes back in `errors`. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
|
|
211
211
|
| [`workflowRun`](/reference/management-api/schema/workflow-run#workflowrun) | Query | Reads a workflow run. Scope: `ORGANIZATION_WORKSPACE_READ`. |
|
|
212
|
-
| [`workflowRunRerun`](/reference/management-api/schema/workflow-run#workflowrunrerun) | Mutation | Reruns a workflow run that has ended as a new run of the whole workflow, on the version chosen. Every step runs again, so leads are created and outbound requests are sent again, and an `action_response` answers nobody. The caller must also hold every scope the workflow of the chosen version acts with. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
|
|
212
|
+
| [`workflowRunRerun`](/reference/management-api/schema/workflow-run#workflowrunrerun) | Mutation | Reruns a workflow run that has ended as a new run of the whole workflow, on the version chosen. Every step runs again, so leads are created and outbound requests are sent again, and an `action_response` answers nobody. The caller must also hold every scope the workflow of the chosen version acts with, except those any author grants, as `Workflow.scopesToHold` lists. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
|
|
213
213
|
| [`workflows`](/reference/management-api/schema/workflow#workflows) | Query | Lists the workflows in a workspace. `search` matches a case-insensitive substring of the name. Scope: `ORGANIZATION_WORKSPACE_READ`. |
|
|
214
|
-
| [`workflowTestRun`](/reference/management-api/schema/workflow#workflowtestrun) | Mutation | Tests a workflow by walking its draft graph once, holding back every write. Nothing is stored, and the caller must also hold every scope in `Workflow.
|
|
214
|
+
| [`workflowTestRun`](/reference/management-api/schema/workflow#workflowtestrun) | Mutation | Tests a workflow by walking its draft graph once, holding back every write. Nothing is stored, and the caller must also hold every scope in `Workflow.scopesToHold`. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
|
|
215
215
|
| [`workflowTools`](/reference/management-api/schema/workflow#workflowtools) | Query | Lists every tool a workflow node can run, with the arguments each takes. |
|
|
216
216
|
| [`workflowUpdate`](/reference/management-api/schema/workflow#workflowupdate) | Mutation | Updates the name or the node visit limit of a workflow. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
|
|
217
217
|
| [`workspace`](/reference/management-api/schema/workspace#workspace) | Query | Reads a workspace. Scope: `ORGANIZATION_WORKSPACE_READ`. |
|
|
@@ -26,7 +26,7 @@ workflowRun(id: ID!): WorkflowRun @auth
|
|
|
26
26
|
Reruns a workflow run that has ended as a new run of the whole workflow, on the version chosen.
|
|
27
27
|
Every step runs again, so leads are created and outbound requests are sent again, and an
|
|
28
28
|
`action_response` answers nobody. The caller must also hold every scope the workflow of the
|
|
29
|
-
chosen version acts with.
|
|
29
|
+
chosen version acts with, except those any author grants, as `Workflow.scopesToHold` lists.
|
|
30
30
|
Scope: `ORGANIZATION_WORKSPACE_UPDATE`.
|
|
31
31
|
|
|
32
32
|
```graphql
|
|
@@ -85,7 +85,7 @@ workflowDelete(input: WorkflowDeleteInput!): WorkflowDeletePayload! @auth
|
|
|
85
85
|
### `workflowTestRun`
|
|
86
86
|
|
|
87
87
|
Tests a workflow by walking its draft graph once, holding back every write. Nothing is stored,
|
|
88
|
-
and the caller must also hold every scope in `Workflow.
|
|
88
|
+
and the caller must also hold every scope in `Workflow.scopesToHold`.
|
|
89
89
|
Scope: `ORGANIZATION_WORKSPACE_UPDATE`.
|
|
90
90
|
|
|
91
91
|
```graphql
|
|
@@ -116,6 +116,11 @@ type Workflow {
|
|
|
116
116
|
`ORGANIZATION_ACTION_RUNS_UPDATE` and `ORGANIZATION_EXTERNAL_APIS_CALL`, which any author grants.
|
|
117
117
|
"""
|
|
118
118
|
scopes: [Scope!]!
|
|
119
|
+
"""
|
|
120
|
+
The scopes in `scopes` a person must hold to save the graph, test-run the workflow or rerun one
|
|
121
|
+
of its runs: every one except those any author grants.
|
|
122
|
+
"""
|
|
123
|
+
scopesToHold: [Scope!]!
|
|
119
124
|
"""The nodes of the graph."""
|
|
120
125
|
nodes: [WorkflowNode!]!
|
|
121
126
|
"""The edges of the graph."""
|
|
@@ -433,6 +433,9 @@ apply a change.
|
|
|
433
433
|
the `responses` of the action, or the `entity_id` of the event. The result shows the
|
|
434
434
|
input, the output, the status, and the branch of each node.
|
|
435
435
|
|
|
436
|
+
If the JSON of an input or an output has more than 16,384 characters, the result shows
|
|
437
|
+
only the start of it. To read the full value, call `test_run_workflow` in `picked_run`.
|
|
438
|
+
|
|
436
439
|
A tool that reads, such as `search_leads` or an `http` `GET`, runs. A tool that writes
|
|
437
440
|
does not run: the result shows what it would send. A wait node does not wait. The test
|
|
438
441
|
run saves nothing. You must have each scope that the workflow uses.
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picked",
|
|
3
3
|
"description": "The Picked SDK front door: the client, the picked.config helpers, and the picked CLI in one install",
|
|
4
|
-
"version": "0.0.123-next.
|
|
4
|
+
"version": "0.0.123-next.4",
|
|
5
5
|
"bin": {
|
|
6
6
|
"picked": "dist/esm/bin.js"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@picked/cli": "0.0.123-next.
|
|
10
|
-
"@picked/config": "0.0.123-next.
|
|
9
|
+
"@picked/cli": "0.0.123-next.4",
|
|
10
|
+
"@picked/config": "0.0.123-next.4"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@picked/client": "workspace:*",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"main": "./dist/cjs/index.js",
|
|
74
74
|
"module": "./dist/esm/index.js",
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@picked/client": "0.0.123-next.
|
|
76
|
+
"@picked/client": "0.0.123-next.4"
|
|
77
77
|
},
|
|
78
78
|
"private": false,
|
|
79
79
|
"publishConfig": {
|