@antfly/cli-linux-arm64 0.0.0 → 0.2.0-rc.11

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/bin/antfly ADDED
Binary file
@@ -0,0 +1,501 @@
1
+ // Copyright 2026 Antfly, Inc.
2
+ //
3
+ // Licensed under the Elastic License 2.0 (ELv2); you may not use this file
4
+ // except in compliance with the Elastic License 2.0. You may obtain a copy of
5
+ // the Elastic License 2.0 at
6
+ //
7
+ // https://www.antfly.io/licensing/ELv2-license
8
+
9
+ #ifndef ANTFLY_H
10
+ #define ANTFLY_H
11
+
12
+ #include <stdbool.h>
13
+ #include <stddef.h>
14
+ #include <stdint.h>
15
+
16
+ #ifdef __cplusplus
17
+ extern "C" {
18
+ #endif
19
+
20
+ typedef enum antfly_error_code {
21
+ ANTFLY_OK = 0,
22
+ ANTFLY_INVALID_ARGUMENT = 1,
23
+ ANTFLY_NOT_FOUND = 2,
24
+ ANTFLY_VERSION_CONFLICT = 3,
25
+ ANTFLY_INTENT_CONFLICT = 4,
26
+ ANTFLY_TXN_NOT_FOUND = 5,
27
+ ANTFLY_BUSY = 6,
28
+ ANTFLY_INTERNAL = 255,
29
+ } antfly_error_code;
30
+
31
+ /*
32
+ * C ABI conventions:
33
+ *
34
+ * - Functions return ANTFLY_OK on success. Any other antfly_error_code is an
35
+ * error and should be handled with the stable strings returned by
36
+ * antfly_error_code_name and antfly_error_code_description.
37
+ * - antfly_slice is borrowed input. The caller owns the memory and must keep it
38
+ * valid for the duration of the call.
39
+ * - antfly_buffer is owned output. On success, the caller owns the returned
40
+ * memory and must release it with antfly_buffer_free, or
41
+ * antfly_buffer_free_zero when the bytes may contain sensitive data.
42
+ * - Lite status, maintenance, backup, restore, check, and snapshot helpers
43
+ * reset antfly_buffer outputs to {NULL, 0} before validating arguments.
44
+ * Lower-level antfly_db_* buffer APIs require a valid output pointer and
45
+ * only transfer ownership after ANTFLY_OK.
46
+ * - void * database handles are owned by the caller after a successful open and
47
+ * must be closed with antfly_db_close. Closing NULL is allowed.
48
+ * - Search result structs own nested allocations only after ANTFLY_OK and must
49
+ * be released with their matching *_free function.
50
+ */
51
+
52
+ typedef enum antfly_txn_status {
53
+ ANTFLY_TXN_PENDING = 0,
54
+ ANTFLY_TXN_COMMITTED = 1,
55
+ ANTFLY_TXN_ABORTED = 2,
56
+ } antfly_txn_status;
57
+
58
+ typedef struct antfly_slice {
59
+ const uint8_t *ptr;
60
+ size_t len;
61
+ } antfly_slice;
62
+
63
+ typedef struct antfly_buffer {
64
+ uint8_t *ptr;
65
+ size_t len;
66
+ } antfly_buffer;
67
+
68
+ #define ANTFLY_LITE_OPEN_MODE_WRITER 0u
69
+ #define ANTFLY_LITE_OPEN_MODE_READONLY 1u
70
+ #define ANTFLY_LITE_OPEN_MODE_STATUS_ONLY 2u
71
+
72
+ #define ANTFLY_OPEN_MODE_WRITER 0u
73
+ #define ANTFLY_OPEN_MODE_READONLY 1u
74
+ #define ANTFLY_OPEN_MODE_STATUS_ONLY 2u
75
+
76
+ #define ANTFLY_STORAGE_KIND_DIRECTORY 0u
77
+ #define ANTFLY_STORAGE_KIND_LITE 1u
78
+
79
+ #define ANTFLY_PROFILE_NATIVE 0u
80
+ #define ANTFLY_PROFILE_HOSTED 1u
81
+
82
+ #define ANTFLY_LITE_PROFILE_NATIVE 0u
83
+ #define ANTFLY_LITE_PROFILE_HOSTED 1u
84
+
85
+ #define ANTFLY_OPEN_FLAG_NO_SYNC (1u << 0)
86
+ #define ANTFLY_OPEN_FLAG_TTL_CLEANUP (1u << 1)
87
+ #define ANTFLY_OPEN_FLAG_REMOTE_PROVIDER_CONFIGURED (1u << 2)
88
+ #define ANTFLY_OPEN_FLAG_LOCAL_RUNTIME_CONFIGURED (1u << 3)
89
+ #define ANTFLY_OPEN_FLAG_GENERATED_ENRICHMENT_REPLAY (1u << 4)
90
+
91
+ #define ANTFLY_LITE_INFERENCE_MODE_CALLER_SUPPLIED_OR_DISABLED "caller_supplied_or_disabled"
92
+ #define ANTFLY_LITE_INFERENCE_MODE_CALLER_SUPPLIED_ARTIFACTS "caller_supplied_artifacts"
93
+ #define ANTFLY_LITE_INFERENCE_MODE_REMOTE_PROVIDER "remote_provider"
94
+ #define ANTFLY_LITE_INFERENCE_MODE_LOCAL_EMBEDDED "local_embedded"
95
+ #define ANTFLY_LITE_INFERENCE_MODE_MANUAL_MAINTENANCE "manual_maintenance"
96
+ #define ANTFLY_LITE_INFERENCE_MODE_DISABLED_DEFERRED "disabled_deferred"
97
+
98
+ #define ANTFLY_LITE_OPEN_FLAG_NO_SYNC (1u << 0)
99
+ #define ANTFLY_LITE_OPEN_FLAG_TTL_CLEANUP (1u << 1)
100
+ #define ANTFLY_LITE_OPEN_FLAG_REMOTE_PROVIDER_CONFIGURED (1u << 2)
101
+ #define ANTFLY_LITE_OPEN_FLAG_LOCAL_RUNTIME_CONFIGURED (1u << 3)
102
+ #define ANTFLY_LITE_OPEN_FLAG_GENERATED_ENRICHMENT_REPLAY (1u << 4)
103
+
104
+ typedef struct antfly_open_options {
105
+ uint32_t abi_size;
106
+ uint32_t storage_kind;
107
+ uint32_t open_mode;
108
+ uint32_t profile;
109
+ uint32_t flags;
110
+ uint32_t reserved0;
111
+ uint64_t map_size;
112
+ bool ttl_cleanup_enabled;
113
+ bool ttl_cleanup_lease_owned;
114
+ uint32_t ttl_cleanup_batch_size;
115
+ antfly_slice ttl_cleanup_owner_id;
116
+ uint64_t ttl_cleanup_lease_ttl_ms;
117
+ uint64_t ttl_cleanup_interval_ms;
118
+ uint64_t ttl_cleanup_grace_period_ns;
119
+ uint64_t reserved[8];
120
+ } antfly_open_options;
121
+
122
+ typedef struct antfly_lite_open_options {
123
+ uint32_t abi_size;
124
+ uint32_t open_mode;
125
+ uint32_t profile;
126
+ uint32_t flags;
127
+ uint64_t map_size;
128
+ bool ttl_cleanup_enabled;
129
+ bool ttl_cleanup_lease_owned;
130
+ uint32_t ttl_cleanup_batch_size;
131
+ antfly_slice ttl_cleanup_owner_id;
132
+ uint64_t ttl_cleanup_lease_ttl_ms;
133
+ uint64_t ttl_cleanup_interval_ms;
134
+ uint64_t ttl_cleanup_grace_period_ns;
135
+ uint64_t reserved[8];
136
+ } antfly_lite_open_options;
137
+
138
+ /*
139
+ * Call antfly_lite_open_options_init before setting fields manually. The
140
+ * abi_size field must remain the value returned by
141
+ * antfly_lite_open_options_size so future library versions can detect the
142
+ * caller's struct layout.
143
+ */
144
+
145
+ typedef struct antfly_write_intent {
146
+ antfly_slice key;
147
+ antfly_slice value;
148
+ bool is_delete;
149
+ } antfly_write_intent;
150
+
151
+ typedef struct antfly_version_predicate {
152
+ antfly_slice key;
153
+ uint64_t expected_version;
154
+ } antfly_version_predicate;
155
+
156
+ typedef struct antfly_dense_search_hit {
157
+ uint8_t *id_ptr;
158
+ size_t id_len;
159
+ float score;
160
+ } antfly_dense_search_hit;
161
+
162
+ typedef struct antfly_dense_search_result {
163
+ antfly_dense_search_hit *hits_ptr;
164
+ size_t hit_count;
165
+ uint32_t total_hits;
166
+ uint64_t identity_read_generation;
167
+ } antfly_dense_search_result;
168
+
169
+ typedef struct antfly_packed_dense_search_hit {
170
+ size_t id_offset;
171
+ size_t id_len;
172
+ float score;
173
+ } antfly_packed_dense_search_hit;
174
+
175
+ typedef struct antfly_packed_dense_search_result {
176
+ antfly_packed_dense_search_hit *hits_ptr;
177
+ size_t hit_count;
178
+ uint32_t total_hits;
179
+ uint8_t *ids_ptr;
180
+ size_t ids_len;
181
+ uint64_t identity_read_generation;
182
+ } antfly_packed_dense_search_result;
183
+
184
+ typedef struct antfly_dense_search_profile {
185
+ uint64_t total_ns;
186
+ uint64_t index_lookup_ns;
187
+ uint64_t search_ns;
188
+ uint64_t hits_ns;
189
+ uint64_t fallback_ns;
190
+ uint64_t hbc_total_ns;
191
+ uint64_t hbc_setup_ns;
192
+ uint64_t hbc_root_load_ns;
193
+ uint64_t hbc_node_cache_miss_ns;
194
+ uint64_t hbc_node_cache_misses;
195
+ uint64_t hbc_quantized_cache_miss_ns;
196
+ uint64_t hbc_quantized_cache_misses;
197
+ uint64_t hbc_child_expand_ns;
198
+ uint64_t hbc_leaf_score_ns;
199
+ uint64_t hbc_rerank_ns;
200
+ uint64_t hbc_rerank_vector_load_ns;
201
+ uint64_t hbc_rerank_distance_ns;
202
+ uint64_t hbc_nodes_visited;
203
+ uint64_t hbc_leaves_explored;
204
+ uint64_t hbc_reranked_vectors;
205
+ uint32_t hit_count;
206
+ uint32_t total_hits;
207
+ bool used_fast_path;
208
+ } antfly_dense_search_profile;
209
+
210
+ typedef struct antfly_dense_wire_search_profile {
211
+ uint64_t total_ns;
212
+ uint64_t decode_ns;
213
+ uint64_t search_ns;
214
+ uint64_t resolve_ns;
215
+ uint64_t encode_ns;
216
+ uint64_t fallback_ns;
217
+ uint64_t hbc_total_ns;
218
+ uint64_t hbc_setup_ns;
219
+ uint64_t hbc_root_load_ns;
220
+ uint64_t hbc_node_cache_miss_ns;
221
+ uint64_t hbc_node_cache_misses;
222
+ uint64_t hbc_quantized_cache_miss_ns;
223
+ uint64_t hbc_quantized_cache_misses;
224
+ uint64_t hbc_child_expand_ns;
225
+ uint64_t hbc_leaf_score_ns;
226
+ uint64_t hbc_rerank_ns;
227
+ uint64_t hbc_rerank_vector_load_ns;
228
+ uint64_t hbc_rerank_distance_ns;
229
+ uint64_t hbc_nodes_visited;
230
+ uint64_t hbc_leaves_explored;
231
+ uint64_t hbc_reranked_vectors;
232
+ uint32_t hit_count;
233
+ uint32_t total_hits;
234
+ bool used_fast_path;
235
+ } antfly_dense_wire_search_profile;
236
+
237
+ typedef struct antfly_scan_hash_entry {
238
+ uint8_t *id_ptr;
239
+ size_t id_len;
240
+ uint64_t hash;
241
+ } antfly_scan_hash_entry;
242
+
243
+ typedef struct antfly_scan_hash_result {
244
+ antfly_scan_hash_entry *entries_ptr;
245
+ size_t entry_count;
246
+ } antfly_scan_hash_result;
247
+
248
+ uint32_t antfly_abi_version(void);
249
+ uint32_t antfly_lite_abi_version(void);
250
+ uint32_t antfly_open_options_size(void);
251
+ uint32_t antfly_lite_open_options_size(void);
252
+ const char *antfly_error_code_name(antfly_error_code code);
253
+ const char *antfly_error_code_description(antfly_error_code code);
254
+ antfly_error_code antfly_open_options_init(antfly_open_options *options);
255
+ antfly_error_code antfly_lite_open_options_init(antfly_lite_open_options *options);
256
+
257
+ /*
258
+ * Storage-neutral embedded opens. ANTFLY_STORAGE_KIND_DIRECTORY opens a normal
259
+ * single-node Antfly directory. ANTFLY_STORAGE_KIND_LITE opens a v1 .aflite
260
+ * single-file database. The antfly_lite_* helpers below are convenience
261
+ * wrappers over ANTFLY_STORAGE_KIND_LITE. antfly_db_create_with_options has
262
+ * exclusive-create semantics for ANTFLY_STORAGE_KIND_LITE; directory storage
263
+ * should use antfly_db_open_with_options.
264
+ */
265
+ antfly_error_code antfly_db_open(const char *path, void **out_handle);
266
+ antfly_error_code antfly_db_open_with_options(
267
+ const char *path,
268
+ const antfly_open_options *options,
269
+ void **out_handle
270
+ );
271
+ antfly_error_code antfly_db_create_with_options(
272
+ const char *path,
273
+ const antfly_open_options *options,
274
+ void **out_handle
275
+ );
276
+
277
+ /*
278
+ * antfly_lite_create* creates a new v1 .aflite database. antfly_lite_open*
279
+ * opens an existing v1 .aflite database. Open calls do not create missing files
280
+ * or migrate pre-release Lite layouts.
281
+ */
282
+ antfly_error_code antfly_lite_open(const char *path, void **out_handle);
283
+ antfly_error_code antfly_lite_create(const char *path, void **out_handle);
284
+ antfly_error_code antfly_lite_open_with_options(
285
+ const char *path,
286
+ const antfly_lite_open_options *options,
287
+ void **out_handle
288
+ );
289
+ antfly_error_code antfly_lite_create_with_options(
290
+ const char *path,
291
+ const antfly_lite_open_options *options,
292
+ void **out_handle
293
+ );
294
+ antfly_error_code antfly_lite_open_hosted(const char *path, void **out_handle);
295
+ antfly_error_code antfly_lite_create_hosted(const char *path, void **out_handle);
296
+ antfly_error_code antfly_lite_open_readonly(const char *path, void **out_handle);
297
+ antfly_error_code antfly_lite_open_status_only(const char *path, void **out_handle);
298
+
299
+ antfly_error_code antfly_lite_status_json(void *handle, antfly_buffer *out);
300
+ antfly_error_code antfly_lite_capabilities_json(void *handle, antfly_buffer *out);
301
+ antfly_error_code antfly_lite_backup(void *handle, antfly_buffer *out);
302
+ antfly_error_code antfly_lite_export(void *handle, antfly_buffer *out);
303
+ antfly_error_code antfly_lite_import_backup(void *handle, antfly_slice backup);
304
+ antfly_error_code antfly_lite_import(void *handle, antfly_slice backup);
305
+ antfly_error_code antfly_lite_restore_backup_json(
306
+ const char *dest_path,
307
+ antfly_slice backup,
308
+ bool replace,
309
+ antfly_buffer *out
310
+ );
311
+ antfly_error_code antfly_lite_restore_json(
312
+ const char *dest_path,
313
+ antfly_slice backup,
314
+ bool replace,
315
+ antfly_buffer *out
316
+ );
317
+ antfly_error_code antfly_lite_check_json(void *handle, antfly_buffer *out);
318
+ antfly_error_code antfly_lite_check_file_json(const char *path, antfly_buffer *out);
319
+ antfly_error_code antfly_lite_copy_stable_snapshot_json(
320
+ void *handle,
321
+ const char *dest_path,
322
+ bool replace,
323
+ antfly_buffer *out
324
+ );
325
+ antfly_error_code antfly_lite_copy_stable_snapshot_file_json(
326
+ const char *src_path,
327
+ const char *dest_path,
328
+ bool replace,
329
+ antfly_buffer *out
330
+ );
331
+ antfly_error_code antfly_lite_compact_json(void *handle, antfly_buffer *out);
332
+ antfly_error_code antfly_lite_vacuum_json(void *handle, antfly_buffer *out);
333
+ antfly_error_code antfly_lite_run_until_idle(void *handle);
334
+ antfly_error_code antfly_lite_run_until_idle_json(void *handle, antfly_buffer *out);
335
+ antfly_error_code antfly_lite_replay_generated_enrichments_json(void *handle, antfly_buffer *out);
336
+ antfly_error_code antfly_lite_pending_work_stats_json(void *handle, antfly_buffer *out);
337
+
338
+ void antfly_db_close(void *handle);
339
+ void antfly_buffer_free(antfly_buffer *buffer);
340
+ void antfly_buffer_free_zero(antfly_buffer *buffer);
341
+ /* Raw pointer/length free helper for bindings that cannot pass antfly_buffer. */
342
+ void antfly_db_buffer_free(uint8_t *ptr, size_t len);
343
+ /* Alias retained for existing buffer-shaped callers; prefer antfly_buffer_free_zero. */
344
+ void antfly_db_buffer_free_zero(antfly_buffer *buffer);
345
+ void antfly_db_dense_search_result_free(antfly_dense_search_result *result);
346
+ void antfly_db_packed_dense_search_result_free(antfly_packed_dense_search_result *result);
347
+ void antfly_db_scan_hash_result_free(antfly_scan_hash_result *result);
348
+
349
+ antfly_error_code antfly_db_batch(
350
+ void *handle,
351
+ const antfly_write_intent *writes,
352
+ size_t write_count,
353
+ const antfly_version_predicate *predicates,
354
+ size_t predicate_count,
355
+ uint64_t timestamp_ns,
356
+ uint8_t sync_level
357
+ );
358
+ antfly_error_code antfly_db_batch_json(
359
+ void *handle,
360
+ antfly_slice request_json,
361
+ antfly_buffer *out
362
+ );
363
+ antfly_error_code antfly_db_begin_transaction_with_id(
364
+ void *handle,
365
+ const uint8_t (*txn_id)[16],
366
+ uint64_t timestamp_ns,
367
+ const antfly_slice *participants,
368
+ size_t participant_count
369
+ );
370
+ antfly_error_code antfly_db_write_transaction(
371
+ void *handle,
372
+ const uint8_t (*txn_id)[16],
373
+ const antfly_write_intent *writes,
374
+ size_t write_count,
375
+ const antfly_version_predicate *predicates,
376
+ size_t predicate_count
377
+ );
378
+ antfly_error_code antfly_db_resolve_intents(
379
+ void *handle,
380
+ const uint8_t (*txn_id)[16],
381
+ uint8_t status,
382
+ uint64_t commit_version
383
+ );
384
+ antfly_error_code antfly_db_get_transaction_status(
385
+ void *handle,
386
+ const uint8_t (*txn_id)[16],
387
+ uint8_t *out_status
388
+ );
389
+ antfly_error_code antfly_db_get_commit_version(
390
+ void *handle,
391
+ const uint8_t (*txn_id)[16],
392
+ uint64_t *out_commit_version
393
+ );
394
+ antfly_error_code antfly_db_get_timestamp(void *handle, antfly_slice key, uint64_t *out_timestamp);
395
+ antfly_error_code antfly_db_lookup_json(void *handle, antfly_slice key, antfly_buffer *out);
396
+ antfly_error_code antfly_db_get_raw(void *handle, antfly_slice key, antfly_buffer *out);
397
+ antfly_error_code antfly_db_get_schema_json(void *handle, antfly_buffer *out);
398
+ antfly_error_code antfly_db_set_schema_json(void *handle, antfly_slice schema_json);
399
+ antfly_error_code antfly_db_run_until_idle(void *handle);
400
+ antfly_error_code antfly_db_run_until_idle_json(void *handle, antfly_buffer *out);
401
+ antfly_error_code antfly_db_pending_work_stats_json(void *handle, antfly_buffer *out);
402
+ antfly_error_code antfly_db_list_indexes_json(void *handle, antfly_buffer *out);
403
+ antfly_error_code antfly_db_add_index_json(void *handle, antfly_slice config_json);
404
+ antfly_error_code antfly_db_delete_index(void *handle, antfly_slice name, bool *out_deleted);
405
+ antfly_error_code antfly_db_list_enrichments_json(void *handle, antfly_buffer *out);
406
+ antfly_error_code antfly_db_add_enrichment_json(void *handle, antfly_slice config_json);
407
+ antfly_error_code antfly_db_delete_enrichment(
408
+ void *handle,
409
+ antfly_slice kind,
410
+ antfly_slice name,
411
+ bool *out_deleted
412
+ );
413
+ antfly_error_code antfly_db_scan_json(void *handle, antfly_slice request_json, antfly_buffer *out);
414
+ antfly_error_code antfly_db_scan_hashes(
415
+ void *handle,
416
+ antfly_slice request_json,
417
+ antfly_scan_hash_result *out_result
418
+ );
419
+ antfly_error_code antfly_db_stats_json(void *handle, antfly_buffer *out);
420
+ antfly_error_code antfly_db_search_json(void *handle, antfly_slice request_json, antfly_buffer *out);
421
+ antfly_error_code antfly_db_search_dense(
422
+ void *handle,
423
+ antfly_slice index_name,
424
+ const float *vector_ptr,
425
+ size_t vector_len,
426
+ uint32_t k,
427
+ uint32_t limit,
428
+ uint32_t offset,
429
+ antfly_packed_dense_search_result *out_result
430
+ );
431
+ antfly_error_code antfly_db_search_dense_profile(
432
+ void *handle,
433
+ antfly_slice index_name,
434
+ const float *vector_ptr,
435
+ size_t vector_len,
436
+ uint32_t k,
437
+ uint32_t limit,
438
+ uint32_t offset,
439
+ antfly_dense_search_profile *out_profile
440
+ );
441
+ antfly_error_code antfly_db_search_dense_wire(
442
+ void *handle,
443
+ antfly_slice request_buf,
444
+ antfly_buffer *out
445
+ );
446
+ antfly_error_code antfly_db_search_dense_wire_profile(
447
+ void *handle,
448
+ antfly_slice request_buf,
449
+ antfly_buffer *out,
450
+ antfly_dense_wire_search_profile *out_profile
451
+ );
452
+ antfly_error_code antfly_db_search_text_match(
453
+ void *handle,
454
+ antfly_slice index_name,
455
+ antfly_slice field,
456
+ antfly_slice text,
457
+ uint32_t limit,
458
+ uint32_t offset,
459
+ antfly_dense_search_result *out_result
460
+ );
461
+ antfly_error_code antfly_db_search_text_match_wire(void *handle, antfly_slice request_buf, antfly_buffer *out);
462
+ antfly_error_code antfly_db_search_text_term_wire(void *handle, antfly_slice request_buf, antfly_buffer *out);
463
+ antfly_error_code antfly_db_search_text_match_phrase_wire(void *handle, antfly_slice request_buf, antfly_buffer *out);
464
+ antfly_error_code antfly_db_search_hits_json(
465
+ void *handle,
466
+ antfly_slice request_json,
467
+ antfly_dense_search_result *out_result
468
+ );
469
+ antfly_error_code antfly_db_aggregate_hits_json(void *handle, antfly_slice request_json, antfly_buffer *out);
470
+ antfly_error_code antfly_db_lookup_artifact_json(void *handle, antfly_slice artifact_id_b64, antfly_buffer *out);
471
+ antfly_error_code antfly_db_decode_artifact_id_json(antfly_slice artifact_id_b64, antfly_buffer *out);
472
+ antfly_error_code antfly_db_extract_enrichments_json(void *handle, antfly_slice request_json, antfly_buffer *out);
473
+ antfly_error_code antfly_db_compute_enrichments_json(void *handle, antfly_slice request_json, antfly_buffer *out);
474
+
475
+ antfly_error_code antfly_db_get_edges_json(
476
+ void *handle,
477
+ antfly_slice index_name,
478
+ antfly_slice key,
479
+ antfly_slice edge_type,
480
+ uint8_t direction,
481
+ antfly_buffer *out
482
+ );
483
+ antfly_error_code antfly_db_traverse_edges_json(void *handle, antfly_slice request_json, antfly_buffer *out);
484
+ antfly_error_code antfly_db_execute_graph_queries_json(void *handle, antfly_slice request_json, antfly_buffer *out);
485
+ antfly_error_code antfly_db_get_neighbors_json(
486
+ void *handle,
487
+ antfly_slice index_name,
488
+ antfly_slice key,
489
+ antfly_slice edge_type,
490
+ uint8_t direction,
491
+ antfly_buffer *out
492
+ );
493
+ antfly_error_code antfly_db_find_shortest_path_json(void *handle, antfly_slice request_json, antfly_buffer *out);
494
+ antfly_error_code antfly_db_find_k_shortest_paths_json(void *handle, antfly_slice request_json, antfly_buffer *out);
495
+ antfly_error_code antfly_db_match_pattern_json(void *handle, antfly_slice request_json, antfly_buffer *out);
496
+
497
+ #ifdef __cplusplus
498
+ }
499
+ #endif
500
+
501
+ #endif
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antfly/cli-linux-arm64",
3
- "version": "0.0.0",
3
+ "version": "0.2.0-rc.11",
4
4
  "description": "Native Antfly CLI binary for Linux arm64",
5
5
  "license": "Elastic-2.0",
6
6
  "repository": {
@@ -10,6 +10,8 @@
10
10
  },
11
11
  "files": [
12
12
  "bin",
13
+ "include",
14
+ "lib",
13
15
  "share",
14
16
  "README.md"
15
17
  ],
@@ -0,0 +1,7 @@
1
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <title>Antfly logo</title>
3
+ <path d="M39.2842 28.0677C39.2842 34.2626 34.2623 39.2845 28.0674 39.2845H6.10853C5.37819 39.2845 5.01243 38.4015 5.52886 37.885L11.0896 32.3243H28.0674C30.4183 32.3243 32.324 30.4186 32.324 28.0677V11.0898L37.8847 5.5291C38.4012 5.01267 39.2842 5.37843 39.2842 6.10877V28.0677Z" fill="#ffffff"/>
4
+ <path d="M27.2721 24.5018C27.2698 25.2127 26.4103 25.5671 25.9076 25.0645L21.1775 20.3344C20.8653 20.0223 20.8653 19.5162 21.1775 19.2041L25.9377 14.4438C26.4421 13.9395 27.3044 14.2983 27.3022 15.0116L27.2721 24.5018Z" fill="#ffffff"/>
5
+ <path d="M28.3149 6.96011H11.2167C8.86587 6.96012 6.96011 8.86587 6.9601 11.2167V28.3149L1.39945 33.8755C0.883015 34.392 0 34.0262 0 33.2958V11.2167C4.48304e-06 5.02189 5.02189 9.39218e-06 11.2167 0H33.2958C34.0262 0 34.3919 0.883017 33.8755 1.39945L28.3149 6.96011Z" fill="#ffffff"/>
6
+ <path d="M11.8783 15.1175C11.8806 14.4067 12.7401 14.0522 13.2428 14.5549L17.8625 19.1746C18.1747 19.4867 18.1747 19.9928 17.8625 20.3049L13.2134 24.9541C12.709 25.4584 11.8467 25.0996 11.8489 24.3863L11.8783 15.1175Z" fill="#ffffff"/>
7
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <title>Antfly logo</title>
3
+ <path d="M39.2842 28.0677C39.2842 34.2626 34.2623 39.2845 28.0674 39.2845H6.10853C5.37819 39.2845 5.01243 38.4015 5.52886 37.885L11.0896 32.3243H28.0674C30.4183 32.3243 32.324 30.4186 32.324 28.0677V11.0898L37.8847 5.5291C38.4012 5.01267 39.2842 5.37843 39.2842 6.10877V28.0677Z" fill="#052333"/>
4
+ <path d="M27.2721 24.5018C27.2698 25.2127 26.4103 25.5671 25.9076 25.0645L21.1775 20.3344C20.8653 20.0223 20.8653 19.5162 21.1775 19.2041L25.9377 14.4438C26.4421 13.9395 27.3044 14.2983 27.3022 15.0116L27.2721 24.5018Z" fill="#052333"/>
5
+ <path d="M28.3149 6.96011H11.2167C8.86587 6.96012 6.96011 8.86587 6.9601 11.2167V28.3149L1.39945 33.8755C0.883015 34.392 0 34.0262 0 33.2958V11.2167C4.48304e-06 5.02189 5.02189 9.39218e-06 11.2167 0H33.2958C34.0262 0 34.3919 0.883017 33.8755 1.39945L28.3149 6.96011Z" fill="#052333"/>
6
+ <path d="M11.8783 15.1175C11.8806 14.4067 12.7401 14.0522 13.2428 14.5549L17.8625 19.1746C18.1747 19.4867 18.1747 19.9928 17.8625 20.3049L13.2134 24.9541C12.709 25.4584 11.8467 25.0996 11.8489 24.3863L11.8783 15.1175Z" fill="#052333"/>
7
+ </svg>