chatbase 0.1.0 → 0.2.0
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/README.md +167 -40
- package/dist/base/body-input.js +2 -2
- package/dist/client/pairing.js +1 -2
- package/dist/commands/auth/login.js +5 -2
- package/dist/commands/auth/logout.js +4 -2
- package/dist/commands/auth/status.js +4 -2
- package/dist/commands/conversations/tool-result.js +74 -0
- package/dist/commands/whatsapp/send-template.js +94 -0
- package/dist/commands/whatsapp/templates.js +55 -0
- package/oclif.manifest.json +421 -105
- package/package.json +5 -1
- package/spec/openapi.json +37 -0
package/oclif.manifest.json
CHANGED
|
@@ -1652,13 +1652,12 @@
|
|
|
1652
1652
|
"set.js"
|
|
1653
1653
|
]
|
|
1654
1654
|
},
|
|
1655
|
-
"
|
|
1655
|
+
"helpdesk:statuses": {
|
|
1656
1656
|
"aliases": [],
|
|
1657
1657
|
"args": {},
|
|
1658
|
-
"description": "
|
|
1658
|
+
"description": "List ticket statuses for an agent",
|
|
1659
1659
|
"examples": [
|
|
1660
|
-
"<%= config.bin %>
|
|
1661
|
-
"<%= config.bin %> conversations export -a agt_123 --all -o export.json"
|
|
1660
|
+
"<%= config.bin %> helpdesk statuses -a agt_123"
|
|
1662
1661
|
],
|
|
1663
1662
|
"flags": {
|
|
1664
1663
|
"json": {
|
|
@@ -1717,31 +1716,85 @@
|
|
|
1717
1716
|
"hasDynamicHelp": false,
|
|
1718
1717
|
"multiple": false,
|
|
1719
1718
|
"type": "option"
|
|
1719
|
+
}
|
|
1720
|
+
},
|
|
1721
|
+
"hasDynamicHelp": false,
|
|
1722
|
+
"hiddenAliases": [],
|
|
1723
|
+
"id": "helpdesk:statuses",
|
|
1724
|
+
"pluginAlias": "chatbase",
|
|
1725
|
+
"pluginName": "chatbase",
|
|
1726
|
+
"pluginType": "core",
|
|
1727
|
+
"strict": true,
|
|
1728
|
+
"enableJsonFlag": false,
|
|
1729
|
+
"isESM": true,
|
|
1730
|
+
"relativePath": [
|
|
1731
|
+
"dist",
|
|
1732
|
+
"commands",
|
|
1733
|
+
"helpdesk",
|
|
1734
|
+
"statuses.js"
|
|
1735
|
+
]
|
|
1736
|
+
},
|
|
1737
|
+
"helpdesk:teams": {
|
|
1738
|
+
"aliases": [],
|
|
1739
|
+
"args": {},
|
|
1740
|
+
"description": "List helpdesk teams for an agent",
|
|
1741
|
+
"examples": [
|
|
1742
|
+
"<%= config.bin %> helpdesk teams -a agt_123"
|
|
1743
|
+
],
|
|
1744
|
+
"flags": {
|
|
1745
|
+
"json": {
|
|
1746
|
+
"description": "Output raw API JSON",
|
|
1747
|
+
"helpGroup": "OUTPUT",
|
|
1748
|
+
"name": "json",
|
|
1749
|
+
"allowNo": false,
|
|
1750
|
+
"type": "boolean"
|
|
1720
1751
|
},
|
|
1721
|
-
"
|
|
1722
|
-
"description": "
|
|
1723
|
-
"
|
|
1724
|
-
"
|
|
1725
|
-
"
|
|
1726
|
-
"type": "
|
|
1752
|
+
"plain": {
|
|
1753
|
+
"description": "Tab-separated output for scripts",
|
|
1754
|
+
"helpGroup": "OUTPUT",
|
|
1755
|
+
"name": "plain",
|
|
1756
|
+
"allowNo": false,
|
|
1757
|
+
"type": "boolean"
|
|
1727
1758
|
},
|
|
1728
|
-
"
|
|
1729
|
-
"
|
|
1730
|
-
"
|
|
1731
|
-
"
|
|
1732
|
-
"
|
|
1733
|
-
"type": "
|
|
1759
|
+
"quiet": {
|
|
1760
|
+
"char": "q",
|
|
1761
|
+
"description": "Suppress non-essential output",
|
|
1762
|
+
"name": "quiet",
|
|
1763
|
+
"allowNo": false,
|
|
1764
|
+
"type": "boolean"
|
|
1734
1765
|
},
|
|
1735
|
-
"
|
|
1736
|
-
"description": "
|
|
1737
|
-
"name": "
|
|
1766
|
+
"verbose": {
|
|
1767
|
+
"description": "Verbose diagnostics",
|
|
1768
|
+
"name": "verbose",
|
|
1738
1769
|
"allowNo": false,
|
|
1739
1770
|
"type": "boolean"
|
|
1740
1771
|
},
|
|
1741
|
-
"
|
|
1742
|
-
"
|
|
1743
|
-
"
|
|
1744
|
-
"
|
|
1772
|
+
"no-input": {
|
|
1773
|
+
"description": "Never prompt; fail instead",
|
|
1774
|
+
"name": "no-input",
|
|
1775
|
+
"allowNo": false,
|
|
1776
|
+
"type": "boolean"
|
|
1777
|
+
},
|
|
1778
|
+
"no-color": {
|
|
1779
|
+
"description": "Disable colored output",
|
|
1780
|
+
"name": "no-color",
|
|
1781
|
+
"allowNo": false,
|
|
1782
|
+
"type": "boolean"
|
|
1783
|
+
},
|
|
1784
|
+
"agent": {
|
|
1785
|
+
"char": "a",
|
|
1786
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
1787
|
+
"name": "agent",
|
|
1788
|
+
"hasDynamicHelp": false,
|
|
1789
|
+
"multiple": false,
|
|
1790
|
+
"type": "option"
|
|
1791
|
+
},
|
|
1792
|
+
"agent-name": {
|
|
1793
|
+
"description": "Agent display name (looked up to an ID)",
|
|
1794
|
+
"exclusive": [
|
|
1795
|
+
"agent"
|
|
1796
|
+
],
|
|
1797
|
+
"name": "agent-name",
|
|
1745
1798
|
"hasDynamicHelp": false,
|
|
1746
1799
|
"multiple": false,
|
|
1747
1800
|
"type": "option"
|
|
@@ -1749,34 +1802,33 @@
|
|
|
1749
1802
|
},
|
|
1750
1803
|
"hasDynamicHelp": false,
|
|
1751
1804
|
"hiddenAliases": [],
|
|
1752
|
-
"id": "
|
|
1805
|
+
"id": "helpdesk:teams",
|
|
1753
1806
|
"pluginAlias": "chatbase",
|
|
1754
1807
|
"pluginName": "chatbase",
|
|
1755
1808
|
"pluginType": "core",
|
|
1756
1809
|
"strict": true,
|
|
1757
|
-
"summary": "Export conversations from every source, with full message history",
|
|
1758
1810
|
"enableJsonFlag": false,
|
|
1759
1811
|
"isESM": true,
|
|
1760
1812
|
"relativePath": [
|
|
1761
1813
|
"dist",
|
|
1762
1814
|
"commands",
|
|
1763
|
-
"
|
|
1764
|
-
"
|
|
1815
|
+
"helpdesk",
|
|
1816
|
+
"teams.js"
|
|
1765
1817
|
]
|
|
1766
1818
|
},
|
|
1767
|
-
"
|
|
1819
|
+
"messages:feedback": {
|
|
1768
1820
|
"aliases": [],
|
|
1769
1821
|
"args": {
|
|
1770
|
-
"
|
|
1771
|
-
"description": "
|
|
1772
|
-
"name": "
|
|
1822
|
+
"messageId": {
|
|
1823
|
+
"description": "Message ID (alternative to --message)",
|
|
1824
|
+
"name": "messageId",
|
|
1773
1825
|
"required": false
|
|
1774
1826
|
}
|
|
1775
1827
|
},
|
|
1776
|
-
"description": "
|
|
1828
|
+
"description": "Set or clear user feedback on an assistant message",
|
|
1777
1829
|
"examples": [
|
|
1778
|
-
"<%= config.bin %>
|
|
1779
|
-
"<%= config.bin %>
|
|
1830
|
+
"<%= config.bin %> messages feedback msg_1 --conversation conv_123 --rating positive -a agt_123",
|
|
1831
|
+
"<%= config.bin %> messages feedback --conversation conv_123 --message msg_1 --rating clear -a agt_123"
|
|
1780
1832
|
],
|
|
1781
1833
|
"flags": {
|
|
1782
1834
|
"json": {
|
|
@@ -1839,14 +1891,35 @@
|
|
|
1839
1891
|
"conversation": {
|
|
1840
1892
|
"description": "Conversation ID",
|
|
1841
1893
|
"name": "conversation",
|
|
1894
|
+
"required": true,
|
|
1842
1895
|
"hasDynamicHelp": false,
|
|
1843
1896
|
"multiple": false,
|
|
1844
1897
|
"type": "option"
|
|
1898
|
+
},
|
|
1899
|
+
"message": {
|
|
1900
|
+
"description": "Message ID",
|
|
1901
|
+
"name": "message",
|
|
1902
|
+
"hasDynamicHelp": false,
|
|
1903
|
+
"multiple": false,
|
|
1904
|
+
"type": "option"
|
|
1905
|
+
},
|
|
1906
|
+
"rating": {
|
|
1907
|
+
"description": "Feedback value (\"clear\" removes existing feedback)",
|
|
1908
|
+
"name": "rating",
|
|
1909
|
+
"required": true,
|
|
1910
|
+
"hasDynamicHelp": false,
|
|
1911
|
+
"multiple": false,
|
|
1912
|
+
"options": [
|
|
1913
|
+
"positive",
|
|
1914
|
+
"negative",
|
|
1915
|
+
"clear"
|
|
1916
|
+
],
|
|
1917
|
+
"type": "option"
|
|
1845
1918
|
}
|
|
1846
1919
|
},
|
|
1847
1920
|
"hasDynamicHelp": false,
|
|
1848
1921
|
"hiddenAliases": [],
|
|
1849
|
-
"id": "
|
|
1922
|
+
"id": "messages:feedback",
|
|
1850
1923
|
"pluginAlias": "chatbase",
|
|
1851
1924
|
"pluginName": "chatbase",
|
|
1852
1925
|
"pluginType": "core",
|
|
@@ -1856,18 +1929,17 @@
|
|
|
1856
1929
|
"relativePath": [
|
|
1857
1930
|
"dist",
|
|
1858
1931
|
"commands",
|
|
1859
|
-
"
|
|
1860
|
-
"
|
|
1932
|
+
"messages",
|
|
1933
|
+
"feedback.js"
|
|
1861
1934
|
]
|
|
1862
1935
|
},
|
|
1863
|
-
"
|
|
1936
|
+
"messages:list": {
|
|
1864
1937
|
"aliases": [],
|
|
1865
1938
|
"args": {},
|
|
1866
|
-
"description": "List
|
|
1939
|
+
"description": "List messages in a conversation",
|
|
1867
1940
|
"examples": [
|
|
1868
|
-
"<%= config.bin %>
|
|
1869
|
-
"<%= config.bin %>
|
|
1870
|
-
"<%= config.bin %> conversations list -a agt_123 --all --json"
|
|
1941
|
+
"<%= config.bin %> messages list --conversation conv_123 -a agt_123",
|
|
1942
|
+
"<%= config.bin %> messages list --conversation conv_123 -a agt_123 --all --json"
|
|
1871
1943
|
],
|
|
1872
1944
|
"flags": {
|
|
1873
1945
|
"json": {
|
|
@@ -1947,9 +2019,10 @@
|
|
|
1947
2019
|
"allowNo": false,
|
|
1948
2020
|
"type": "boolean"
|
|
1949
2021
|
},
|
|
1950
|
-
"
|
|
1951
|
-
"description": "
|
|
1952
|
-
"name": "
|
|
2022
|
+
"conversation": {
|
|
2023
|
+
"description": "Conversation ID",
|
|
2024
|
+
"name": "conversation",
|
|
2025
|
+
"required": true,
|
|
1953
2026
|
"hasDynamicHelp": false,
|
|
1954
2027
|
"multiple": false,
|
|
1955
2028
|
"type": "option"
|
|
@@ -1957,27 +2030,27 @@
|
|
|
1957
2030
|
},
|
|
1958
2031
|
"hasDynamicHelp": false,
|
|
1959
2032
|
"hiddenAliases": [],
|
|
1960
|
-
"id": "
|
|
2033
|
+
"id": "messages:list",
|
|
1961
2034
|
"pluginAlias": "chatbase",
|
|
1962
2035
|
"pluginName": "chatbase",
|
|
1963
2036
|
"pluginType": "core",
|
|
1964
2037
|
"strict": true,
|
|
1965
|
-
"summary": "List an agent’s API-created conversations",
|
|
1966
2038
|
"enableJsonFlag": false,
|
|
1967
2039
|
"isESM": true,
|
|
1968
2040
|
"relativePath": [
|
|
1969
2041
|
"dist",
|
|
1970
2042
|
"commands",
|
|
1971
|
-
"
|
|
2043
|
+
"messages",
|
|
1972
2044
|
"list.js"
|
|
1973
2045
|
]
|
|
1974
2046
|
},
|
|
1975
|
-
"
|
|
2047
|
+
"conversations:export": {
|
|
1976
2048
|
"aliases": [],
|
|
1977
2049
|
"args": {},
|
|
1978
|
-
"description": "
|
|
2050
|
+
"description": "Export conversations with full message history, newest first.\n\nThis is the only endpoint that returns conversations from every source — the chat bubble and external integrations (Slack, WhatsApp, Instagram, Messenger, and the like) as well as API-created ones. Prefer it over `conversations list` whenever you need real traffic rather than just programmatically created conversations. Each item embeds its own `messages` array, so no follow-up `conversations get` or `messages list` call is needed (and neither works for bubble/integration conversations).",
|
|
1979
2051
|
"examples": [
|
|
1980
|
-
"<%= config.bin %>
|
|
2052
|
+
"<%= config.bin %> conversations export -a agt_123",
|
|
2053
|
+
"<%= config.bin %> conversations export -a agt_123 --all -o export.json"
|
|
1981
2054
|
],
|
|
1982
2055
|
"flags": {
|
|
1983
2056
|
"json": {
|
|
@@ -2036,30 +2109,157 @@
|
|
|
2036
2109
|
"hasDynamicHelp": false,
|
|
2037
2110
|
"multiple": false,
|
|
2038
2111
|
"type": "option"
|
|
2112
|
+
},
|
|
2113
|
+
"cursor": {
|
|
2114
|
+
"description": "Opaque cursor from a previous response",
|
|
2115
|
+
"name": "cursor",
|
|
2116
|
+
"hasDynamicHelp": false,
|
|
2117
|
+
"multiple": false,
|
|
2118
|
+
"type": "option"
|
|
2119
|
+
},
|
|
2120
|
+
"limit": {
|
|
2121
|
+
"description": "Items per page (1-20, default 20)",
|
|
2122
|
+
"name": "limit",
|
|
2123
|
+
"hasDynamicHelp": false,
|
|
2124
|
+
"multiple": false,
|
|
2125
|
+
"type": "option"
|
|
2126
|
+
},
|
|
2127
|
+
"all": {
|
|
2128
|
+
"description": "Fetch every page",
|
|
2129
|
+
"name": "all",
|
|
2130
|
+
"allowNo": false,
|
|
2131
|
+
"type": "boolean"
|
|
2132
|
+
},
|
|
2133
|
+
"output": {
|
|
2134
|
+
"char": "o",
|
|
2135
|
+
"description": "Write export JSON to a file instead of stdout",
|
|
2136
|
+
"name": "output",
|
|
2137
|
+
"hasDynamicHelp": false,
|
|
2138
|
+
"multiple": false,
|
|
2139
|
+
"type": "option"
|
|
2039
2140
|
}
|
|
2040
2141
|
},
|
|
2041
2142
|
"hasDynamicHelp": false,
|
|
2042
2143
|
"hiddenAliases": [],
|
|
2043
|
-
"id": "
|
|
2144
|
+
"id": "conversations:export",
|
|
2044
2145
|
"pluginAlias": "chatbase",
|
|
2045
2146
|
"pluginName": "chatbase",
|
|
2046
2147
|
"pluginType": "core",
|
|
2047
2148
|
"strict": true,
|
|
2149
|
+
"summary": "Export conversations from every source, with full message history",
|
|
2048
2150
|
"enableJsonFlag": false,
|
|
2049
2151
|
"isESM": true,
|
|
2050
2152
|
"relativePath": [
|
|
2051
2153
|
"dist",
|
|
2052
2154
|
"commands",
|
|
2053
|
-
"
|
|
2054
|
-
"
|
|
2155
|
+
"conversations",
|
|
2156
|
+
"export.js"
|
|
2055
2157
|
]
|
|
2056
2158
|
},
|
|
2057
|
-
"
|
|
2159
|
+
"conversations:get": {
|
|
2160
|
+
"aliases": [],
|
|
2161
|
+
"args": {
|
|
2162
|
+
"conversationId": {
|
|
2163
|
+
"description": "Conversation ID (alternative to --conversation)",
|
|
2164
|
+
"name": "conversationId",
|
|
2165
|
+
"required": false
|
|
2166
|
+
}
|
|
2167
|
+
},
|
|
2168
|
+
"description": "Show one conversation",
|
|
2169
|
+
"examples": [
|
|
2170
|
+
"<%= config.bin %> conversations get conv_123 -a agt_123",
|
|
2171
|
+
"<%= config.bin %> conversations get --conversation conv_123 -a agt_123"
|
|
2172
|
+
],
|
|
2173
|
+
"flags": {
|
|
2174
|
+
"json": {
|
|
2175
|
+
"description": "Output raw API JSON",
|
|
2176
|
+
"helpGroup": "OUTPUT",
|
|
2177
|
+
"name": "json",
|
|
2178
|
+
"allowNo": false,
|
|
2179
|
+
"type": "boolean"
|
|
2180
|
+
},
|
|
2181
|
+
"plain": {
|
|
2182
|
+
"description": "Tab-separated output for scripts",
|
|
2183
|
+
"helpGroup": "OUTPUT",
|
|
2184
|
+
"name": "plain",
|
|
2185
|
+
"allowNo": false,
|
|
2186
|
+
"type": "boolean"
|
|
2187
|
+
},
|
|
2188
|
+
"quiet": {
|
|
2189
|
+
"char": "q",
|
|
2190
|
+
"description": "Suppress non-essential output",
|
|
2191
|
+
"name": "quiet",
|
|
2192
|
+
"allowNo": false,
|
|
2193
|
+
"type": "boolean"
|
|
2194
|
+
},
|
|
2195
|
+
"verbose": {
|
|
2196
|
+
"description": "Verbose diagnostics",
|
|
2197
|
+
"name": "verbose",
|
|
2198
|
+
"allowNo": false,
|
|
2199
|
+
"type": "boolean"
|
|
2200
|
+
},
|
|
2201
|
+
"no-input": {
|
|
2202
|
+
"description": "Never prompt; fail instead",
|
|
2203
|
+
"name": "no-input",
|
|
2204
|
+
"allowNo": false,
|
|
2205
|
+
"type": "boolean"
|
|
2206
|
+
},
|
|
2207
|
+
"no-color": {
|
|
2208
|
+
"description": "Disable colored output",
|
|
2209
|
+
"name": "no-color",
|
|
2210
|
+
"allowNo": false,
|
|
2211
|
+
"type": "boolean"
|
|
2212
|
+
},
|
|
2213
|
+
"agent": {
|
|
2214
|
+
"char": "a",
|
|
2215
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
2216
|
+
"name": "agent",
|
|
2217
|
+
"hasDynamicHelp": false,
|
|
2218
|
+
"multiple": false,
|
|
2219
|
+
"type": "option"
|
|
2220
|
+
},
|
|
2221
|
+
"agent-name": {
|
|
2222
|
+
"description": "Agent display name (looked up to an ID)",
|
|
2223
|
+
"exclusive": [
|
|
2224
|
+
"agent"
|
|
2225
|
+
],
|
|
2226
|
+
"name": "agent-name",
|
|
2227
|
+
"hasDynamicHelp": false,
|
|
2228
|
+
"multiple": false,
|
|
2229
|
+
"type": "option"
|
|
2230
|
+
},
|
|
2231
|
+
"conversation": {
|
|
2232
|
+
"description": "Conversation ID",
|
|
2233
|
+
"name": "conversation",
|
|
2234
|
+
"hasDynamicHelp": false,
|
|
2235
|
+
"multiple": false,
|
|
2236
|
+
"type": "option"
|
|
2237
|
+
}
|
|
2238
|
+
},
|
|
2239
|
+
"hasDynamicHelp": false,
|
|
2240
|
+
"hiddenAliases": [],
|
|
2241
|
+
"id": "conversations:get",
|
|
2242
|
+
"pluginAlias": "chatbase",
|
|
2243
|
+
"pluginName": "chatbase",
|
|
2244
|
+
"pluginType": "core",
|
|
2245
|
+
"strict": true,
|
|
2246
|
+
"enableJsonFlag": false,
|
|
2247
|
+
"isESM": true,
|
|
2248
|
+
"relativePath": [
|
|
2249
|
+
"dist",
|
|
2250
|
+
"commands",
|
|
2251
|
+
"conversations",
|
|
2252
|
+
"get.js"
|
|
2253
|
+
]
|
|
2254
|
+
},
|
|
2255
|
+
"conversations:list": {
|
|
2058
2256
|
"aliases": [],
|
|
2059
2257
|
"args": {},
|
|
2060
|
-
"description": "List
|
|
2258
|
+
"description": "List conversations for an agent, newest first.\n\nScope: the API v2 list endpoint returns only conversations created programmatically through the API. Conversations from the chat bubble and external integrations (Slack, WhatsApp, Instagram, Messenger, and the like) are not accessible here and are not counted in `total`. Use `chatbase conversations export` to read conversations from every source — it also embeds full message history, which `conversations get` and `messages list` cannot retrieve for those conversations.",
|
|
2061
2259
|
"examples": [
|
|
2062
|
-
"<%= config.bin %>
|
|
2260
|
+
"<%= config.bin %> conversations list -a agt_123",
|
|
2261
|
+
"<%= config.bin %> conversations list -a agt_123 --user usr_456",
|
|
2262
|
+
"<%= config.bin %> conversations list -a agt_123 --all --json"
|
|
2063
2263
|
],
|
|
2064
2264
|
"flags": {
|
|
2065
2265
|
"json": {
|
|
@@ -2118,37 +2318,66 @@
|
|
|
2118
2318
|
"hasDynamicHelp": false,
|
|
2119
2319
|
"multiple": false,
|
|
2120
2320
|
"type": "option"
|
|
2321
|
+
},
|
|
2322
|
+
"limit": {
|
|
2323
|
+
"description": "Maximum items per page",
|
|
2324
|
+
"name": "limit",
|
|
2325
|
+
"hasDynamicHelp": false,
|
|
2326
|
+
"multiple": false,
|
|
2327
|
+
"type": "option"
|
|
2328
|
+
},
|
|
2329
|
+
"cursor": {
|
|
2330
|
+
"description": "Pagination cursor from a previous page",
|
|
2331
|
+
"name": "cursor",
|
|
2332
|
+
"hasDynamicHelp": false,
|
|
2333
|
+
"multiple": false,
|
|
2334
|
+
"type": "option"
|
|
2335
|
+
},
|
|
2336
|
+
"all": {
|
|
2337
|
+
"description": "Fetch every page",
|
|
2338
|
+
"name": "all",
|
|
2339
|
+
"allowNo": false,
|
|
2340
|
+
"type": "boolean"
|
|
2341
|
+
},
|
|
2342
|
+
"user": {
|
|
2343
|
+
"description": "List conversations for a specific user (uses GET /users/{userId}/conversations)",
|
|
2344
|
+
"name": "user",
|
|
2345
|
+
"hasDynamicHelp": false,
|
|
2346
|
+
"multiple": false,
|
|
2347
|
+
"type": "option"
|
|
2121
2348
|
}
|
|
2122
2349
|
},
|
|
2123
2350
|
"hasDynamicHelp": false,
|
|
2124
2351
|
"hiddenAliases": [],
|
|
2125
|
-
"id": "
|
|
2352
|
+
"id": "conversations:list",
|
|
2126
2353
|
"pluginAlias": "chatbase",
|
|
2127
2354
|
"pluginName": "chatbase",
|
|
2128
2355
|
"pluginType": "core",
|
|
2129
2356
|
"strict": true,
|
|
2357
|
+
"summary": "List an agent’s API-created conversations",
|
|
2130
2358
|
"enableJsonFlag": false,
|
|
2131
2359
|
"isESM": true,
|
|
2132
2360
|
"relativePath": [
|
|
2133
2361
|
"dist",
|
|
2134
2362
|
"commands",
|
|
2135
|
-
"
|
|
2136
|
-
"
|
|
2363
|
+
"conversations",
|
|
2364
|
+
"list.js"
|
|
2137
2365
|
]
|
|
2138
2366
|
},
|
|
2139
|
-
"
|
|
2367
|
+
"conversations:tool-result": {
|
|
2140
2368
|
"aliases": [],
|
|
2141
2369
|
"args": {
|
|
2142
|
-
"
|
|
2143
|
-
"description": "
|
|
2144
|
-
"name": "
|
|
2370
|
+
"conversationId": {
|
|
2371
|
+
"description": "Conversation ID (alternative to --conversation)",
|
|
2372
|
+
"name": "conversationId",
|
|
2145
2373
|
"required": false
|
|
2146
2374
|
}
|
|
2147
2375
|
},
|
|
2148
|
-
"description": "
|
|
2376
|
+
"description": "Submit the result of a client-side tool call so the paused chat turn can continue. The tool call ID comes from the tool-call part of the chat response that requested the execution.",
|
|
2149
2377
|
"examples": [
|
|
2150
|
-
"<%= config.bin %>
|
|
2151
|
-
"<%= config.bin %>
|
|
2378
|
+
"<%= config.bin %> conversations tool-result conv_123 --tool-call-id tc_1 --output '{\"temperature\": 72}' -a agt_123",
|
|
2379
|
+
"<%= config.bin %> conversations tool-result conv_123 --tool-call-id tc_1 --output @result.json -a agt_123",
|
|
2380
|
+
"<%= config.bin %> conversations tool-result conv_123 --tool-call-id tc_1 -a agt_123"
|
|
2152
2381
|
],
|
|
2153
2382
|
"flags": {
|
|
2154
2383
|
"json": {
|
|
@@ -2211,55 +2440,56 @@
|
|
|
2211
2440
|
"conversation": {
|
|
2212
2441
|
"description": "Conversation ID",
|
|
2213
2442
|
"name": "conversation",
|
|
2214
|
-
"required": true,
|
|
2215
2443
|
"hasDynamicHelp": false,
|
|
2216
2444
|
"multiple": false,
|
|
2217
2445
|
"type": "option"
|
|
2218
2446
|
},
|
|
2219
|
-
"
|
|
2220
|
-
"description": "
|
|
2221
|
-
"name": "
|
|
2447
|
+
"tool-call-id": {
|
|
2448
|
+
"description": "The toolCallId from the tool-call part in the chat response",
|
|
2449
|
+
"name": "tool-call-id",
|
|
2450
|
+
"required": true,
|
|
2222
2451
|
"hasDynamicHelp": false,
|
|
2223
2452
|
"multiple": false,
|
|
2224
2453
|
"type": "option"
|
|
2225
2454
|
},
|
|
2226
|
-
"
|
|
2227
|
-
"description": "
|
|
2228
|
-
"name": "
|
|
2229
|
-
"required": true,
|
|
2455
|
+
"output": {
|
|
2456
|
+
"description": "Result of executing the tool (inline JSON, @file, or @-); a value that is not valid JSON is sent as a plain string",
|
|
2457
|
+
"name": "output",
|
|
2230
2458
|
"hasDynamicHelp": false,
|
|
2231
2459
|
"multiple": false,
|
|
2232
|
-
"options": [
|
|
2233
|
-
"positive",
|
|
2234
|
-
"negative",
|
|
2235
|
-
"clear"
|
|
2236
|
-
],
|
|
2237
2460
|
"type": "option"
|
|
2238
2461
|
}
|
|
2239
2462
|
},
|
|
2240
2463
|
"hasDynamicHelp": false,
|
|
2241
2464
|
"hiddenAliases": [],
|
|
2242
|
-
"id": "
|
|
2465
|
+
"id": "conversations:tool-result",
|
|
2243
2466
|
"pluginAlias": "chatbase",
|
|
2244
2467
|
"pluginName": "chatbase",
|
|
2245
2468
|
"pluginType": "core",
|
|
2246
2469
|
"strict": true,
|
|
2470
|
+
"summary": "Submit a client-side tool result to a chat turn",
|
|
2247
2471
|
"enableJsonFlag": false,
|
|
2248
2472
|
"isESM": true,
|
|
2249
2473
|
"relativePath": [
|
|
2250
2474
|
"dist",
|
|
2251
2475
|
"commands",
|
|
2252
|
-
"
|
|
2253
|
-
"
|
|
2476
|
+
"conversations",
|
|
2477
|
+
"tool-result.js"
|
|
2254
2478
|
]
|
|
2255
2479
|
},
|
|
2256
|
-
"
|
|
2480
|
+
"whatsapp:send-template": {
|
|
2257
2481
|
"aliases": [],
|
|
2258
|
-
"args": {
|
|
2259
|
-
|
|
2482
|
+
"args": {
|
|
2483
|
+
"template": {
|
|
2484
|
+
"description": "Name of the approved template",
|
|
2485
|
+
"name": "template",
|
|
2486
|
+
"required": true
|
|
2487
|
+
}
|
|
2488
|
+
},
|
|
2489
|
+
"description": "Send an approved WhatsApp template to a phone number from one of the agent’s connected numbers. No user ID is needed — a Chatbase user is resolved or created from the recipient number, and replies flow through the agent’s regular WhatsApp pipeline. Use `whatsapp templates` to see available templates and the variables each expects.",
|
|
2260
2490
|
"examples": [
|
|
2261
|
-
"<%= config.bin %>
|
|
2262
|
-
"<%= config.bin %>
|
|
2491
|
+
"<%= config.bin %> whatsapp send-template order_update --to 14155552671 -a agt_123",
|
|
2492
|
+
"<%= config.bin %> whatsapp send-template order_update --to 14155552671 --language en_US --variables '{\"header\":{\"1\":\"#1042\"},\"body\":{\"1\":\"Jane\",\"2\":\"Friday\"}}' -a agt_123"
|
|
2263
2493
|
],
|
|
2264
2494
|
"flags": {
|
|
2265
2495
|
"json": {
|
|
@@ -2319,30 +2549,115 @@
|
|
|
2319
2549
|
"multiple": false,
|
|
2320
2550
|
"type": "option"
|
|
2321
2551
|
},
|
|
2322
|
-
"
|
|
2323
|
-
"description": "
|
|
2324
|
-
"name": "
|
|
2552
|
+
"to": {
|
|
2553
|
+
"description": "Recipient phone number in international format (digits with country code)",
|
|
2554
|
+
"name": "to",
|
|
2555
|
+
"required": true,
|
|
2325
2556
|
"hasDynamicHelp": false,
|
|
2326
2557
|
"multiple": false,
|
|
2327
2558
|
"type": "option"
|
|
2328
2559
|
},
|
|
2329
|
-
"
|
|
2330
|
-
"description": "
|
|
2331
|
-
"name": "
|
|
2560
|
+
"from": {
|
|
2561
|
+
"description": "Which connected WhatsApp number to send from — optional when the agent has exactly one",
|
|
2562
|
+
"name": "from",
|
|
2332
2563
|
"hasDynamicHelp": false,
|
|
2333
2564
|
"multiple": false,
|
|
2334
2565
|
"type": "option"
|
|
2335
2566
|
},
|
|
2336
|
-
"
|
|
2337
|
-
"description": "
|
|
2338
|
-
"name": "
|
|
2567
|
+
"language": {
|
|
2568
|
+
"description": "Template language code (e.g. en_US) — optional when the template exists in a single language",
|
|
2569
|
+
"name": "language",
|
|
2570
|
+
"hasDynamicHelp": false,
|
|
2571
|
+
"multiple": false,
|
|
2572
|
+
"type": "option"
|
|
2573
|
+
},
|
|
2574
|
+
"variables": {
|
|
2575
|
+
"description": "Template variable values as JSON grouped by component (@file, @-, or inline), e.g. '{\"body\":{\"1\":\"Jane\"}}'",
|
|
2576
|
+
"name": "variables",
|
|
2577
|
+
"hasDynamicHelp": false,
|
|
2578
|
+
"multiple": false,
|
|
2579
|
+
"type": "option"
|
|
2580
|
+
}
|
|
2581
|
+
},
|
|
2582
|
+
"hasDynamicHelp": false,
|
|
2583
|
+
"hiddenAliases": [],
|
|
2584
|
+
"id": "whatsapp:send-template",
|
|
2585
|
+
"pluginAlias": "chatbase",
|
|
2586
|
+
"pluginName": "chatbase",
|
|
2587
|
+
"pluginType": "core",
|
|
2588
|
+
"strict": true,
|
|
2589
|
+
"summary": "Send an approved WhatsApp template message",
|
|
2590
|
+
"enableJsonFlag": false,
|
|
2591
|
+
"isESM": true,
|
|
2592
|
+
"relativePath": [
|
|
2593
|
+
"dist",
|
|
2594
|
+
"commands",
|
|
2595
|
+
"whatsapp",
|
|
2596
|
+
"send-template.js"
|
|
2597
|
+
]
|
|
2598
|
+
},
|
|
2599
|
+
"whatsapp:templates": {
|
|
2600
|
+
"aliases": [],
|
|
2601
|
+
"args": {},
|
|
2602
|
+
"description": "List the approved WhatsApp templates available to the agent, across all of its connected WhatsApp Business Accounts. A template can only be sent from a number on its own Business Account — pick a sender whose WABA matches the template’s WABA column.",
|
|
2603
|
+
"examples": [
|
|
2604
|
+
"<%= config.bin %> whatsapp templates -a agt_123",
|
|
2605
|
+
"<%= config.bin %> whatsapp templates -a agt_123 --json"
|
|
2606
|
+
],
|
|
2607
|
+
"flags": {
|
|
2608
|
+
"json": {
|
|
2609
|
+
"description": "Output raw API JSON",
|
|
2610
|
+
"helpGroup": "OUTPUT",
|
|
2611
|
+
"name": "json",
|
|
2339
2612
|
"allowNo": false,
|
|
2340
2613
|
"type": "boolean"
|
|
2341
2614
|
},
|
|
2342
|
-
"
|
|
2343
|
-
"description": "
|
|
2344
|
-
"
|
|
2345
|
-
"
|
|
2615
|
+
"plain": {
|
|
2616
|
+
"description": "Tab-separated output for scripts",
|
|
2617
|
+
"helpGroup": "OUTPUT",
|
|
2618
|
+
"name": "plain",
|
|
2619
|
+
"allowNo": false,
|
|
2620
|
+
"type": "boolean"
|
|
2621
|
+
},
|
|
2622
|
+
"quiet": {
|
|
2623
|
+
"char": "q",
|
|
2624
|
+
"description": "Suppress non-essential output",
|
|
2625
|
+
"name": "quiet",
|
|
2626
|
+
"allowNo": false,
|
|
2627
|
+
"type": "boolean"
|
|
2628
|
+
},
|
|
2629
|
+
"verbose": {
|
|
2630
|
+
"description": "Verbose diagnostics",
|
|
2631
|
+
"name": "verbose",
|
|
2632
|
+
"allowNo": false,
|
|
2633
|
+
"type": "boolean"
|
|
2634
|
+
},
|
|
2635
|
+
"no-input": {
|
|
2636
|
+
"description": "Never prompt; fail instead",
|
|
2637
|
+
"name": "no-input",
|
|
2638
|
+
"allowNo": false,
|
|
2639
|
+
"type": "boolean"
|
|
2640
|
+
},
|
|
2641
|
+
"no-color": {
|
|
2642
|
+
"description": "Disable colored output",
|
|
2643
|
+
"name": "no-color",
|
|
2644
|
+
"allowNo": false,
|
|
2645
|
+
"type": "boolean"
|
|
2646
|
+
},
|
|
2647
|
+
"agent": {
|
|
2648
|
+
"char": "a",
|
|
2649
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
2650
|
+
"name": "agent",
|
|
2651
|
+
"hasDynamicHelp": false,
|
|
2652
|
+
"multiple": false,
|
|
2653
|
+
"type": "option"
|
|
2654
|
+
},
|
|
2655
|
+
"agent-name": {
|
|
2656
|
+
"description": "Agent display name (looked up to an ID)",
|
|
2657
|
+
"exclusive": [
|
|
2658
|
+
"agent"
|
|
2659
|
+
],
|
|
2660
|
+
"name": "agent-name",
|
|
2346
2661
|
"hasDynamicHelp": false,
|
|
2347
2662
|
"multiple": false,
|
|
2348
2663
|
"type": "option"
|
|
@@ -2350,18 +2665,19 @@
|
|
|
2350
2665
|
},
|
|
2351
2666
|
"hasDynamicHelp": false,
|
|
2352
2667
|
"hiddenAliases": [],
|
|
2353
|
-
"id": "
|
|
2668
|
+
"id": "whatsapp:templates",
|
|
2354
2669
|
"pluginAlias": "chatbase",
|
|
2355
2670
|
"pluginName": "chatbase",
|
|
2356
2671
|
"pluginType": "core",
|
|
2357
2672
|
"strict": true,
|
|
2673
|
+
"summary": "List approved WhatsApp templates for an agent",
|
|
2358
2674
|
"enableJsonFlag": false,
|
|
2359
2675
|
"isESM": true,
|
|
2360
2676
|
"relativePath": [
|
|
2361
2677
|
"dist",
|
|
2362
2678
|
"commands",
|
|
2363
|
-
"
|
|
2364
|
-
"
|
|
2679
|
+
"whatsapp",
|
|
2680
|
+
"templates.js"
|
|
2365
2681
|
]
|
|
2366
2682
|
},
|
|
2367
2683
|
"tickets:create": {
|
|
@@ -3944,5 +4260,5 @@
|
|
|
3944
4260
|
]
|
|
3945
4261
|
}
|
|
3946
4262
|
},
|
|
3947
|
-
"version": "0.
|
|
4263
|
+
"version": "0.2.0"
|
|
3948
4264
|
}
|