@kingsoftcloud/agentkit-harness-node 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE +1 -0
- package/README.md +124 -2
- package/THIRD_PARTY_NOTICES.md +66 -0
- package/ZCode-LICENSE +202 -0
- package/dist/index.mjs +4871 -0
- package/dist/native-command-plan.LICENSE.txt +221 -0
- package/dist/native-command-plan.json +16 -0
- package/dist/native-command-plan.mjs +8 -0
- package/dist/rpc-entry.mjs +5682 -0
- package/package.json +169 -4
- package/src/native/a2a-receipt-source.mjs +19 -0
- package/src/native/a2a-tools.mjs +517 -0
- package/src/native/activity-status.mjs +30 -0
- package/src/native/artifact-codec.mjs +481 -0
- package/src/native/artifact-store.mjs +1162 -0
- package/src/native/assistant-stream.mjs +76 -0
- package/src/native/background-command-port.mjs +95 -0
- package/src/native/browser-action-observation.mjs +43 -0
- package/src/native/browser-availability.mjs +22 -0
- package/src/native/browser-canvas-metrics.mjs +71 -0
- package/src/native/browser-dom.mjs +193 -0
- package/src/native/browser-playwright.mjs +1249 -0
- package/src/native/browser-vision.mjs +369 -0
- package/src/native/browser-workspace-policy.mjs +22 -0
- package/src/native/browser-workspace-protocol.mjs +95 -0
- package/src/native/browser-workspace-server.mjs +164 -0
- package/src/native/browser-workspace.mjs +355 -0
- package/src/native/captured-source.mjs +3 -0
- package/src/native/child-budget-allocation.mjs +87 -0
- package/src/native/child-capabilities.mjs +35 -0
- package/src/native/child-command-resource.mjs +20 -0
- package/src/native/child-history.mjs +188 -0
- package/src/native/child-merge.mjs +98 -0
- package/src/native/child-model-surface.mjs +19 -0
- package/src/native/child-observation.mjs +100 -0
- package/src/native/child-owner.mjs +620 -0
- package/src/native/child-publication.mjs +76 -0
- package/src/native/child-readers.mjs +366 -0
- package/src/native/child-tools.mjs +46 -0
- package/src/native/child-workspace-binding.mjs +29 -0
- package/src/native/child-workspace-tools.mjs +1 -0
- package/src/native/child-workspaces.mjs +655 -0
- package/src/native/children.mjs +365 -0
- package/src/native/command-plan-worker.mjs +14 -0
- package/src/native/command-plan.mjs +31 -0
- package/src/native/command-progress.mjs +64 -0
- package/src/native/command-shell.mjs +9 -0
- package/src/native/command-workspace-observation.mjs +36 -0
- package/src/native/component-tools.mjs +280 -0
- package/src/native/context-counter.mjs +133 -0
- package/src/native/context-markers.mjs +51 -0
- package/src/native/context-profile.mjs +72 -0
- package/src/native/context-status.mjs +27 -0
- package/src/native/conversation-command-control.mjs +133 -0
- package/src/native/delivery-timeline.mjs +39 -0
- package/src/native/dsh-background-ownership.mjs +102 -0
- package/src/native/dsh-managed-ownership.mjs +23 -0
- package/src/native/dsh-turn-contract.mjs +3 -0
- package/src/native/dsh-turn-ownership.mjs +54 -0
- package/src/native/dsh-turn-runtime.mjs +498 -0
- package/src/native/e2b-background-supervisor.mjs +347 -0
- package/src/native/e2b-background.mjs +368 -0
- package/src/native/e2b-command-state.mjs +40 -0
- package/src/native/e2b-command-tools.mjs +486 -0
- package/src/native/e2b-sandbox-owner.mjs +227 -0
- package/src/native/hook-executor.mjs +249 -0
- package/src/native/instruction-assembly.mjs +60 -0
- package/src/native/instruction-context.mjs +54 -0
- package/src/native/local-background-supervisor.mjs +108 -0
- package/src/native/local-background.mjs +207 -0
- package/src/native/local-command-evidence.mjs +57 -0
- package/src/native/local-command-policy-worker.mjs +197 -0
- package/src/native/local-command-policy.mjs +46 -0
- package/src/native/local-command-state.mjs +177 -0
- package/src/native/local-command-tools.mjs +302 -0
- package/src/native/local-execution-profile.mjs +36 -0
- package/src/native/local-output-policy.mjs +92 -0
- package/src/native/local-process-bin/darwin-arm64/launcher +0 -0
- package/src/native/local-process-bin/darwin-x64/launcher +0 -0
- package/src/native/local-process-bin/linux-arm64/launcher +0 -0
- package/src/native/local-process-bin/linux-x64/launcher +0 -0
- package/src/native/local-process-launcher.c +183 -0
- package/src/native/local-process-licenses/GCC-COPYING.RUNTIME +72 -0
- package/src/native/local-process-licenses/GCC-COPYING3 +674 -0
- package/src/native/local-process-licenses/NOTICE +21 -0
- package/src/native/local-process-licenses/musl-COPYRIGHT +193 -0
- package/src/native/local-process-manifest.json +32 -0
- package/src/native/local-process.mjs +246 -0
- package/src/native/local-resource-profile.mjs +32 -0
- package/src/native/memory-candidate.mjs +121 -0
- package/src/native/memory-extraction-run.mjs +60 -0
- package/src/native/memory-extraction-tools.mjs +116 -0
- package/src/native/memory-recall.mjs +65 -0
- package/src/native/memory-store.mjs +334 -0
- package/src/native/memory-tools.mjs +329 -0
- package/src/native/model-anthropic-cache.mjs +49 -0
- package/src/native/model-anthropic-tool-search.mjs +85 -0
- package/src/native/model-anthropic.mjs +753 -0
- package/src/native/model-chat-usage.mjs +24 -0
- package/src/native/model-inline-reasoning.mjs +111 -0
- package/src/native/model-media.mjs +174 -0
- package/src/native/model-normalize.mjs +228 -0
- package/src/native/model-openai-chat.mjs +561 -0
- package/src/native/model-port.mjs +361 -0
- package/src/native/model-provider-compat.mjs +129 -0
- package/src/native/model-replay.mjs +153 -0
- package/src/native/model-request.mjs +15 -0
- package/src/native/model-responses.mjs +1205 -0
- package/src/native/model-sse.mjs +171 -0
- package/src/native/model-surface-host.mjs +27 -0
- package/src/native/model-tool-search-policy.mjs +16 -0
- package/src/native/model-transport-observation.mjs +27 -0
- package/src/native/owned-child.mjs +114 -0
- package/src/native/owned-command.mjs +106 -0
- package/src/native/python-syntax-worker.mjs +60 -0
- package/src/native/python-syntax.mjs +50 -0
- package/src/native/read-interruption.mjs +16 -0
- package/src/native/result-stream.mjs +63 -0
- package/src/native/ruff-ast.mjs +95 -0
- package/src/native/run-observation.mjs +128 -0
- package/src/native/session-delivery-journal.mjs +96 -0
- package/src/native/session-delivery.mjs +434 -0
- package/src/native/shell-analysis.mjs +50 -0
- package/src/native/skill-disclosure.mjs +404 -0
- package/src/native/skill-events.mjs +164 -0
- package/src/native/skill-tools.mjs +813 -0
- package/src/native/source-page.mjs +73 -0
- package/src/native/sqlite-session-inbox.mjs +42 -0
- package/src/native/sqlite-store.mjs +617 -0
- package/src/native/tool-authority.mjs +99 -0
- package/src/native/tool-guidance.mjs +12 -0
- package/src/native/tool-observation.mjs +75 -0
- package/src/native/tool-states.mjs +14 -0
- package/src/native/verification-authority.mjs +37 -0
- package/src/native/web-tools.mjs +643 -0
- package/src/native/workspace-checkpoints.mjs +312 -0
- package/src/native/workspace-context.mjs +61 -0
- package/src/native/workspace-display.mjs +39 -0
- package/src/native/workspace-edit-match.mjs +19 -0
- package/src/native/workspace-edit-worker.mjs +15 -0
- package/src/native/workspace-editing.mjs +447 -0
- package/src/native/workspace-image.mjs +72 -0
- package/src/native/workspace-instructions.mjs +107 -0
- package/src/native/workspace-mutation-lock.mjs +74 -0
- package/src/native/workspace-patch-worker.mjs +17 -0
- package/src/native/workspace-patch.mjs +17 -0
- package/src/native/workspace-paths.mjs +225 -0
- package/src/native/workspace-state.mjs +272 -0
- package/src/native/workspace-subject-observer.mjs +84 -0
- package/src/native/workspace-tools.mjs +1740 -0
package/package.json
CHANGED
|
@@ -1,6 +1,171 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kingsoftcloud/agentkit-harness-node",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Standalone Native Harness Node adapters: a durable SQLite run store, a one-request model HTTP port, and a minimal versioned JSON-RPC 2.0 over NDJSON process entry. Reuses the shared Native adapter implementations and externalizes @kingsoftcloud/agentkit-harness-core; depends on no Studio/DSH code at runtime.",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./dist/index.mjs",
|
|
9
|
+
"./rpc-entry": "./dist/rpc-entry.mjs",
|
|
10
|
+
"./native/a2a-tools": "./src/native/a2a-tools.mjs",
|
|
11
|
+
"./native/artifact-codec": "./src/native/artifact-codec.mjs",
|
|
12
|
+
"./native/artifact-store": "./src/native/artifact-store.mjs",
|
|
13
|
+
"./native/assistant-stream": "./src/native/assistant-stream.mjs",
|
|
14
|
+
"./native/background-command-port": "./src/native/background-command-port.mjs",
|
|
15
|
+
"./native/browser-canvas-metrics": "./src/native/browser-canvas-metrics.mjs",
|
|
16
|
+
"./native/browser-availability": "./src/native/browser-availability.mjs",
|
|
17
|
+
"./native/browser-dom": "./src/native/browser-dom.mjs",
|
|
18
|
+
"./native/browser-playwright": "./src/native/browser-playwright.mjs",
|
|
19
|
+
"./native/browser-vision": "./src/native/browser-vision.mjs",
|
|
20
|
+
"./native/browser-workspace-protocol": "./src/native/browser-workspace-protocol.mjs",
|
|
21
|
+
"./native/browser-workspace-server": "./src/native/browser-workspace-server.mjs",
|
|
22
|
+
"./native/browser-workspace": "./src/native/browser-workspace.mjs",
|
|
23
|
+
"./native/browser-workspace-policy": "./src/native/browser-workspace-policy.mjs",
|
|
24
|
+
"./native/captured-source": "./src/native/captured-source.mjs",
|
|
25
|
+
"./native/child-history": "./src/native/child-history.mjs",
|
|
26
|
+
"./native/child-command-resource": "./src/native/child-command-resource.mjs",
|
|
27
|
+
"./native/child-owner": "./src/native/child-owner.mjs",
|
|
28
|
+
"./native/child-publication": "./src/native/child-publication.mjs",
|
|
29
|
+
"./native/child-readers": "./src/native/child-readers.mjs",
|
|
30
|
+
"./native/child-tools": "./src/native/child-tools.mjs",
|
|
31
|
+
"./native/child-workspaces": "./src/native/child-workspaces.mjs",
|
|
32
|
+
"./native/command-plan-worker": "./src/native/command-plan-worker.mjs",
|
|
33
|
+
"./native/command-plan": "./src/native/command-plan.mjs",
|
|
34
|
+
"./native/command-progress": "./src/native/command-progress.mjs",
|
|
35
|
+
"./native/component-tools": "./src/native/component-tools.mjs",
|
|
36
|
+
"./native/context-counter": "./src/native/context-counter.mjs",
|
|
37
|
+
"./native/conversation-command-control": "./src/native/conversation-command-control.mjs",
|
|
38
|
+
"./native/delivery-timeline": "./src/native/delivery-timeline.mjs",
|
|
39
|
+
"./native/dsh-background-ownership": "./src/native/dsh-background-ownership.mjs",
|
|
40
|
+
"./native/dsh-managed-ownership": "./src/native/dsh-managed-ownership.mjs",
|
|
41
|
+
"./native/dsh-turn-contract": "./src/native/dsh-turn-contract.mjs",
|
|
42
|
+
"./native/dsh-turn-ownership": "./src/native/dsh-turn-ownership.mjs",
|
|
43
|
+
"./native/dsh-turn-runtime": "./src/native/dsh-turn-runtime.mjs",
|
|
44
|
+
"./native/e2b-background-supervisor": "./src/native/e2b-background-supervisor.mjs",
|
|
45
|
+
"./native/e2b-background": "./src/native/e2b-background.mjs",
|
|
46
|
+
"./native/e2b-command-state": "./src/native/e2b-command-state.mjs",
|
|
47
|
+
"./native/e2b-command-tools": "./src/native/e2b-command-tools.mjs",
|
|
48
|
+
"./native/e2b-sandbox-owner": "./src/native/e2b-sandbox-owner.mjs",
|
|
49
|
+
"./native/hook-executor": "./src/native/hook-executor.mjs",
|
|
50
|
+
"./native/local-background-supervisor": "./src/native/local-background-supervisor.mjs",
|
|
51
|
+
"./native/local-background": "./src/native/local-background.mjs",
|
|
52
|
+
"./native/local-command-policy-worker": "./src/native/local-command-policy-worker.mjs",
|
|
53
|
+
"./native/local-command-policy": "./src/native/local-command-policy.mjs",
|
|
54
|
+
"./native/local-command-state": "./src/native/local-command-state.mjs",
|
|
55
|
+
"./native/local-command-tools": "./src/native/local-command-tools.mjs",
|
|
56
|
+
"./native/local-process": "./src/native/local-process.mjs",
|
|
57
|
+
"./native/local-output-policy": "./src/native/local-output-policy.mjs",
|
|
58
|
+
"./native/tool-guidance": "./src/native/tool-guidance.mjs",
|
|
59
|
+
"./native/memory-candidate": "./src/native/memory-candidate.mjs",
|
|
60
|
+
"./native/memory-extraction-run": "./src/native/memory-extraction-run.mjs",
|
|
61
|
+
"./native/memory-extraction-tools": "./src/native/memory-extraction-tools.mjs",
|
|
62
|
+
"./native/memory-recall": "./src/native/memory-recall.mjs",
|
|
63
|
+
"./native/memory-store": "./src/native/memory-store.mjs",
|
|
64
|
+
"./native/memory-tools": "./src/native/memory-tools.mjs",
|
|
65
|
+
"./native/model-anthropic-cache": "./src/native/model-anthropic-cache.mjs",
|
|
66
|
+
"./native/model-anthropic-tool-search": "./src/native/model-anthropic-tool-search.mjs",
|
|
67
|
+
"./native/model-anthropic": "./src/native/model-anthropic.mjs",
|
|
68
|
+
"./native/model-inline-reasoning": "./src/native/model-inline-reasoning.mjs",
|
|
69
|
+
"./native/model-media": "./src/native/model-media.mjs",
|
|
70
|
+
"./native/model-normalize": "./src/native/model-normalize.mjs",
|
|
71
|
+
"./native/model-openai-chat": "./src/native/model-openai-chat.mjs",
|
|
72
|
+
"./native/model-chat-usage": "./src/native/model-chat-usage.mjs",
|
|
73
|
+
"./native/model-port": "./src/native/model-port.mjs",
|
|
74
|
+
"./native/model-provider-compat": "./src/native/model-provider-compat.mjs",
|
|
75
|
+
"./native/model-replay": "./src/native/model-replay.mjs",
|
|
76
|
+
"./native/model-request": "./src/native/model-request.mjs",
|
|
77
|
+
"./native/model-responses": "./src/native/model-responses.mjs",
|
|
78
|
+
"./native/model-sse": "./src/native/model-sse.mjs",
|
|
79
|
+
"./native/model-tool-search-policy": "./src/native/model-tool-search-policy.mjs",
|
|
80
|
+
"./native/owned-child": "./src/native/owned-child.mjs",
|
|
81
|
+
"./native/owned-command": "./src/native/owned-command.mjs",
|
|
82
|
+
"./native/python-syntax-worker": "./src/native/python-syntax-worker.mjs",
|
|
83
|
+
"./native/python-syntax": "./src/native/python-syntax.mjs",
|
|
84
|
+
"./native/ruff-ast": "./src/native/ruff-ast.mjs",
|
|
85
|
+
"./native/session-delivery": "./src/native/session-delivery.mjs",
|
|
86
|
+
"./native/session-delivery-journal": "./src/native/session-delivery-journal.mjs",
|
|
87
|
+
"./native/skill-disclosure": "./src/native/skill-disclosure.mjs",
|
|
88
|
+
"./native/skill-events": "./src/native/skill-events.mjs",
|
|
89
|
+
"./native/skill-tools": "./src/native/skill-tools.mjs",
|
|
90
|
+
"./native/source-page": "./src/native/source-page.mjs",
|
|
91
|
+
"./native/sqlite-store": "./src/native/sqlite-store.mjs",
|
|
92
|
+
"./native/web-tools": "./src/native/web-tools.mjs",
|
|
93
|
+
"./native/workspace-checkpoints": "./src/native/workspace-checkpoints.mjs",
|
|
94
|
+
"./native/workspace-edit-match": "./src/native/workspace-edit-match.mjs",
|
|
95
|
+
"./native/workspace-edit-worker": "./src/native/workspace-edit-worker.mjs",
|
|
96
|
+
"./native/workspace-editing": "./src/native/workspace-editing.mjs",
|
|
97
|
+
"./native/workspace-mutation-lock": "./src/native/workspace-mutation-lock.mjs",
|
|
98
|
+
"./native/workspace-patch-worker": "./src/native/workspace-patch-worker.mjs",
|
|
99
|
+
"./native/workspace-patch": "./src/native/workspace-patch.mjs",
|
|
100
|
+
"./native/workspace-paths": "./src/native/workspace-paths.mjs",
|
|
101
|
+
"./native/workspace-state": "./src/native/workspace-state.mjs",
|
|
102
|
+
"./native/workspace-tools": "./src/native/workspace-tools.mjs",
|
|
103
|
+
"./native/context-status": "./src/native/context-status.mjs",
|
|
104
|
+
"./native/child-observation": "./src/native/child-observation.mjs",
|
|
105
|
+
"./native/activity-status": "./src/native/activity-status.mjs",
|
|
106
|
+
"./native/model-surface-host": "./src/native/model-surface-host.mjs",
|
|
107
|
+
"./native/child-model-surface": "./src/native/child-model-surface.mjs",
|
|
108
|
+
"./native/local-execution-profile": "./src/native/local-execution-profile.mjs",
|
|
109
|
+
"./native/local-resource-profile": "./src/native/local-resource-profile.mjs",
|
|
110
|
+
"./native/context-profile": "./src/native/context-profile.mjs",
|
|
111
|
+
"./native/instruction-context": "./src/native/instruction-context.mjs",
|
|
112
|
+
"./native/instruction-assembly": "./src/native/instruction-assembly.mjs",
|
|
113
|
+
"./native/workspace-context": "./src/native/workspace-context.mjs",
|
|
114
|
+
"./native/workspace-instructions": "./src/native/workspace-instructions.mjs",
|
|
115
|
+
"./native/tool-authority": "./src/native/tool-authority.mjs",
|
|
116
|
+
"./native/verification-authority": "./src/native/verification-authority.mjs",
|
|
117
|
+
"./native/child-merge": "./src/native/child-merge.mjs",
|
|
118
|
+
"./native/child-workspace-binding": "./src/native/child-workspace-binding.mjs",
|
|
119
|
+
"./native/child-workspace-tools": "./src/native/child-workspace-tools.mjs",
|
|
120
|
+
"./native/a2a-receipt-source": "./src/native/a2a-receipt-source.mjs",
|
|
121
|
+
"./native/children": "./src/native/children.mjs",
|
|
122
|
+
"./native/run-observation": "./src/native/run-observation.mjs",
|
|
123
|
+
"./native/tool-states": "./src/native/tool-states.mjs"
|
|
124
|
+
},
|
|
125
|
+
"bin": {
|
|
126
|
+
"agentkit-native-rpc": "./dist/rpc-entry.mjs"
|
|
127
|
+
},
|
|
128
|
+
"files": [
|
|
129
|
+
"dist",
|
|
130
|
+
"src/native",
|
|
131
|
+
"README.md",
|
|
132
|
+
"LICENSE",
|
|
133
|
+
"NOTICE",
|
|
134
|
+
"ZCode-LICENSE",
|
|
135
|
+
"THIRD_PARTY_NOTICES.md"
|
|
136
|
+
],
|
|
137
|
+
"dependencies": {
|
|
138
|
+
"@kingsoftcloud/agentkit-harness-core": "0.0.2",
|
|
139
|
+
"@astral-sh/ruff-wasm-nodejs": "0.16.8",
|
|
140
|
+
"parse5": "7.3.0",
|
|
141
|
+
"playwright-core": "1.58.2",
|
|
142
|
+
"pngjs": "7.0.0",
|
|
143
|
+
"diff": "9.0.0"
|
|
144
|
+
},
|
|
145
|
+
"scripts": {
|
|
146
|
+
"build": "node ../../scripts/build-native-node.mjs",
|
|
147
|
+
"test": "node --test test/*.test.mjs"
|
|
148
|
+
},
|
|
149
|
+
"engines": {
|
|
150
|
+
"node": ">=22.19.0"
|
|
151
|
+
},
|
|
152
|
+
"license": "Apache-2.0",
|
|
153
|
+
"publishConfig": {
|
|
154
|
+
"executableFiles": [
|
|
155
|
+
"src/native/local-process-bin/darwin-arm64/launcher",
|
|
156
|
+
"src/native/local-process-bin/darwin-x64/launcher",
|
|
157
|
+
"src/native/local-process-bin/linux-arm64/launcher",
|
|
158
|
+
"src/native/local-process-bin/linux-x64/launcher"
|
|
159
|
+
],
|
|
160
|
+
"access": "public",
|
|
161
|
+
"registry": "https://registry.npmjs.org"
|
|
162
|
+
},
|
|
163
|
+
"repository": {
|
|
164
|
+
"type": "git",
|
|
165
|
+
"url": "https://github.com/kingsoftcloud/ksadk-harness.git"
|
|
166
|
+
},
|
|
167
|
+
"homepage": "https://github.com/kingsoftcloud/ksadk-harness#readme",
|
|
168
|
+
"bugs": {
|
|
169
|
+
"url": "https://github.com/kingsoftcloud/ksadk-harness/issues"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { canonical } from '@kingsoftcloud/agentkit-harness-core';
|
|
2
|
+
|
|
3
|
+
/** Local, read-only classification. This grants neither a receipt query nor
|
|
4
|
+
* execution of the original tool. Rebinding still validates the full Host
|
|
5
|
+
* capsule/configuration before the original external turn can be adopted. */
|
|
6
|
+
export function nativeA2aReceiptWaitSource(record) {
|
|
7
|
+
const snapshot = record?.snapshot, marker = snapshot?.toolReconciliation;
|
|
8
|
+
if (snapshot?.phase !== 'awaiting_reconciliation' || snapshot.pendingIntent !== null
|
|
9
|
+
|| marker?.contract !== 'agentkit.tool-receipt-observation/v1') return null;
|
|
10
|
+
const intent = record.intents.find(item => item.operationKey === marker.operationKey);
|
|
11
|
+
const call = intent?.payload.calls?.[0], definition = record.configuration.tools.find(item => item.name === call?.name);
|
|
12
|
+
const receipt = record.receipts.find(item => item.operationKey === marker.operationKey);
|
|
13
|
+
if (call?.name !== 'call_a2a_agent' || definition?.recoveryPolicy !== 'receipt-observation/v1'
|
|
14
|
+
|| intent.kind !== 'tool' || intent.status !== 'running' || intent.payload.calls.length !== 1
|
|
15
|
+
|| !Number.isSafeInteger(intent.claimedFence) || intent.claimedFence <= 0 || call.callId !== marker.callId
|
|
16
|
+
|| canonical(snapshot.pendingTools.slice(0, 1)) !== canonical([call])
|
|
17
|
+
|| !receipt || !(receipt.status === 'uncertain' || receipt.result.results?.[0]?.status === 'uncertain')) return null;
|
|
18
|
+
return { intent, call, definition };
|
|
19
|
+
}
|