@asteroidai/cli 1.9.366 → 1.9.368

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/asteroid.js CHANGED
@@ -903,7 +903,7 @@ var COMMANDS = [
903
903
  query: [],
904
904
  binary: false,
905
905
  readOnly: false,
906
- destructive: false,
906
+ destructive: true,
907
907
  body: {
908
908
  required: true,
909
909
  contentType: "application/json",
@@ -2376,7 +2376,7 @@ var COMMANDS = [
2376
2376
  query: [],
2377
2377
  binary: false,
2378
2378
  readOnly: false,
2379
- destructive: false,
2379
+ destructive: true,
2380
2380
  body: {
2381
2381
  required: true,
2382
2382
  contentType: "application/json",
@@ -2399,6 +2399,231 @@ var COMMANDS = [
2399
2399
  credentialOrganization: false
2400
2400
  }
2401
2401
  },
2402
+ {
2403
+ command: "memory create",
2404
+ tool: "memory_create",
2405
+ title: "Create memory",
2406
+ description: "Save something the next agent in this organization needs to know: how a portal behaves, why a workflow is built the way it is, a customer's or facility's rules. Give a one-line `description` and plain-text `content`. Link the `portalId` (from `skills_list`) or `portal` name, and the `workflowId`, when the memory is about them, and add `tags`. Run `memory_list` first and update a memory that already covers it instead of adding another. Never store patient names, member IDs, dates of birth or anything else about one patient or case: keep only what helps the next agent build or fix a workflow.",
2407
+ method: "POST",
2408
+ path: "/astro/v2/memory",
2409
+ args: [],
2410
+ query: [],
2411
+ binary: false,
2412
+ readOnly: false,
2413
+ destructive: false,
2414
+ body: {
2415
+ required: true,
2416
+ contentType: "application/json",
2417
+ fields: [
2418
+ {
2419
+ name: "description",
2420
+ flag: "description",
2421
+ type: "string",
2422
+ required: true,
2423
+ description: "One line, 1 to 200 characters, that tells the next agent what this memory holds."
2424
+ },
2425
+ {
2426
+ name: "content",
2427
+ flag: "content",
2428
+ type: "string",
2429
+ required: true,
2430
+ description: "Plain text, 1 to 10000 characters. Leave out patient data and anything about one case. Keep what helps the next agent build or fix a workflow."
2431
+ },
2432
+ {
2433
+ name: "portal",
2434
+ flag: "portal",
2435
+ type: "string",
2436
+ required: false,
2437
+ description: "The portal's name or host, when the memory is about a portal."
2438
+ },
2439
+ {
2440
+ name: "portalId",
2441
+ flag: "portal-id",
2442
+ type: "string",
2443
+ required: false,
2444
+ description: "The portal's ID from `skills_list`."
2445
+ },
2446
+ {
2447
+ name: "workflowId",
2448
+ flag: "workflow-id",
2449
+ type: "string",
2450
+ required: false,
2451
+ description: "The workflow the memory is about."
2452
+ },
2453
+ {
2454
+ name: "tags",
2455
+ flag: "tags",
2456
+ type: "string[]",
2457
+ required: false,
2458
+ description: "Up to 20 labels that make the memory easy to find."
2459
+ }
2460
+ ],
2461
+ files: [],
2462
+ credentialOrganization: false
2463
+ }
2464
+ },
2465
+ {
2466
+ command: "memory delete",
2467
+ tool: "memory_delete",
2468
+ title: "Delete memory",
2469
+ description: "Delete a memory for good, when it is wrong and no longer useful. Prefer `memory_update` when it only needs correcting.",
2470
+ method: "DELETE",
2471
+ path: "/astro/v2/memory/{memoryId}",
2472
+ args: [
2473
+ {
2474
+ name: "memoryId",
2475
+ flag: "memory-id",
2476
+ type: "string",
2477
+ required: true
2478
+ }
2479
+ ],
2480
+ query: [],
2481
+ binary: false,
2482
+ readOnly: false,
2483
+ destructive: true
2484
+ },
2485
+ {
2486
+ command: "memory get",
2487
+ tool: "memory_get",
2488
+ title: "Get memory",
2489
+ description: "Get one memory with its content, by the id from `memory_list`.",
2490
+ method: "GET",
2491
+ path: "/astro/v2/memory/{memoryId}",
2492
+ args: [
2493
+ {
2494
+ name: "memoryId",
2495
+ flag: "memory-id",
2496
+ type: "string",
2497
+ required: true
2498
+ }
2499
+ ],
2500
+ query: [],
2501
+ binary: false,
2502
+ readOnly: true,
2503
+ destructive: false
2504
+ },
2505
+ {
2506
+ command: "memory list",
2507
+ tool: "memory_list",
2508
+ title: "List memory",
2509
+ description: "List the organization's memory: what its agents learned while building, one line per memory with its `description`, linked `portal`, `portalId`, `workflowId` and `tags`, newest first. Call it once at the start of a conversation, before other work, and pass `nextCursor` as `cursor` while one comes back. Filter by `workflowId`, `portalId` or `tag`, or search with `query`. `memory_get` returns a memory's content.",
2510
+ method: "GET",
2511
+ path: "/astro/v2/memory",
2512
+ args: [],
2513
+ query: [
2514
+ {
2515
+ name: "portalId",
2516
+ flag: "portal-id",
2517
+ type: "string",
2518
+ required: false,
2519
+ description: "Only memories linked to this portal."
2520
+ },
2521
+ {
2522
+ name: "workflowId",
2523
+ flag: "workflow-id",
2524
+ type: "string",
2525
+ required: false,
2526
+ description: "Only memories about this workflow."
2527
+ },
2528
+ {
2529
+ name: "tag",
2530
+ flag: "tag",
2531
+ type: "string",
2532
+ required: false,
2533
+ description: "Only memories with this tag."
2534
+ },
2535
+ {
2536
+ name: "query",
2537
+ flag: "query",
2538
+ type: "string",
2539
+ required: false,
2540
+ description: "Text to find in the description or content, case-insensitive."
2541
+ },
2542
+ {
2543
+ name: "limit",
2544
+ flag: "limit",
2545
+ type: "integer",
2546
+ required: false,
2547
+ description: "Up to 200. Defaults to 200."
2548
+ },
2549
+ {
2550
+ name: "cursor",
2551
+ flag: "cursor",
2552
+ type: "string",
2553
+ required: false,
2554
+ description: "`nextCursor` from the previous page."
2555
+ }
2556
+ ],
2557
+ binary: false,
2558
+ readOnly: true,
2559
+ destructive: false
2560
+ },
2561
+ {
2562
+ command: "memory update",
2563
+ tool: "memory_update",
2564
+ title: "Update memory",
2565
+ description: "Change a memory when what it says is out of date or incomplete. Send only the fields to change; `tags` replaces the list, and null unlinks `portal`, `portalId` or `workflowId`. Never store patient names, member IDs, dates of birth or anything else about one patient or case: keep only what helps the next agent build or fix a workflow.",
2566
+ method: "PATCH",
2567
+ path: "/astro/v2/memory/{memoryId}",
2568
+ args: [
2569
+ {
2570
+ name: "memoryId",
2571
+ flag: "memory-id",
2572
+ type: "string",
2573
+ required: true
2574
+ }
2575
+ ],
2576
+ query: [],
2577
+ binary: false,
2578
+ readOnly: false,
2579
+ destructive: false,
2580
+ body: {
2581
+ required: true,
2582
+ contentType: "application/json",
2583
+ fields: [
2584
+ {
2585
+ name: "description",
2586
+ flag: "description",
2587
+ type: "string",
2588
+ required: false
2589
+ },
2590
+ {
2591
+ name: "content",
2592
+ flag: "content",
2593
+ type: "string",
2594
+ required: false
2595
+ },
2596
+ {
2597
+ name: "portal",
2598
+ flag: "portal",
2599
+ type: "string",
2600
+ required: false,
2601
+ description: "A portal's name or host. One line, 1 to 200 characters."
2602
+ },
2603
+ {
2604
+ name: "portalId",
2605
+ flag: "portal-id",
2606
+ type: "string",
2607
+ required: false
2608
+ },
2609
+ {
2610
+ name: "workflowId",
2611
+ flag: "workflow-id",
2612
+ type: "string",
2613
+ required: false
2614
+ },
2615
+ {
2616
+ name: "tags",
2617
+ flag: "tags",
2618
+ type: "string[]",
2619
+ required: false,
2620
+ description: "Replaces the memory's tags."
2621
+ }
2622
+ ],
2623
+ files: [],
2624
+ credentialOrganization: false
2625
+ }
2626
+ },
2402
2627
  {
2403
2628
  command: "model list",
2404
2629
  tool: "models_list",
@@ -2722,7 +2947,7 @@ var COMMANDS = [
2722
2947
  query: [],
2723
2948
  binary: false,
2724
2949
  readOnly: false,
2725
- destructive: false,
2950
+ destructive: true,
2726
2951
  body: {
2727
2952
  required: true,
2728
2953
  contentType: "application/json",
@@ -5540,7 +5765,7 @@ var COMMANDS = [
5540
5765
  query: [],
5541
5766
  binary: false,
5542
5767
  readOnly: false,
5543
- destructive: false,
5768
+ destructive: true,
5544
5769
  body: {
5545
5770
  required: true,
5546
5771
  contentType: "application/json",
@@ -7790,7 +8015,7 @@ var ApiError = class extends Error {
7790
8015
  status;
7791
8016
  body;
7792
8017
  };
7793
- var VERSION = "1.9.366";
8018
+ var VERSION = "1.9.368";
7794
8019
  function problem(status, body, fallback) {
7795
8020
  if (body && typeof body === "object") {
7796
8021
  const record2 = body;
package/dist/core.js CHANGED
@@ -924,7 +924,7 @@ var COMMANDS = [
924
924
  query: [],
925
925
  binary: false,
926
926
  readOnly: false,
927
- destructive: false,
927
+ destructive: true,
928
928
  body: {
929
929
  required: true,
930
930
  contentType: "application/json",
@@ -2397,7 +2397,7 @@ var COMMANDS = [
2397
2397
  query: [],
2398
2398
  binary: false,
2399
2399
  readOnly: false,
2400
- destructive: false,
2400
+ destructive: true,
2401
2401
  body: {
2402
2402
  required: true,
2403
2403
  contentType: "application/json",
@@ -2420,6 +2420,231 @@ var COMMANDS = [
2420
2420
  credentialOrganization: false
2421
2421
  }
2422
2422
  },
2423
+ {
2424
+ command: "memory create",
2425
+ tool: "memory_create",
2426
+ title: "Create memory",
2427
+ description: "Save something the next agent in this organization needs to know: how a portal behaves, why a workflow is built the way it is, a customer's or facility's rules. Give a one-line `description` and plain-text `content`. Link the `portalId` (from `skills_list`) or `portal` name, and the `workflowId`, when the memory is about them, and add `tags`. Run `memory_list` first and update a memory that already covers it instead of adding another. Never store patient names, member IDs, dates of birth or anything else about one patient or case: keep only what helps the next agent build or fix a workflow.",
2428
+ method: "POST",
2429
+ path: "/astro/v2/memory",
2430
+ args: [],
2431
+ query: [],
2432
+ binary: false,
2433
+ readOnly: false,
2434
+ destructive: false,
2435
+ body: {
2436
+ required: true,
2437
+ contentType: "application/json",
2438
+ fields: [
2439
+ {
2440
+ name: "description",
2441
+ flag: "description",
2442
+ type: "string",
2443
+ required: true,
2444
+ description: "One line, 1 to 200 characters, that tells the next agent what this memory holds."
2445
+ },
2446
+ {
2447
+ name: "content",
2448
+ flag: "content",
2449
+ type: "string",
2450
+ required: true,
2451
+ description: "Plain text, 1 to 10000 characters. Leave out patient data and anything about one case. Keep what helps the next agent build or fix a workflow."
2452
+ },
2453
+ {
2454
+ name: "portal",
2455
+ flag: "portal",
2456
+ type: "string",
2457
+ required: false,
2458
+ description: "The portal's name or host, when the memory is about a portal."
2459
+ },
2460
+ {
2461
+ name: "portalId",
2462
+ flag: "portal-id",
2463
+ type: "string",
2464
+ required: false,
2465
+ description: "The portal's ID from `skills_list`."
2466
+ },
2467
+ {
2468
+ name: "workflowId",
2469
+ flag: "workflow-id",
2470
+ type: "string",
2471
+ required: false,
2472
+ description: "The workflow the memory is about."
2473
+ },
2474
+ {
2475
+ name: "tags",
2476
+ flag: "tags",
2477
+ type: "string[]",
2478
+ required: false,
2479
+ description: "Up to 20 labels that make the memory easy to find."
2480
+ }
2481
+ ],
2482
+ files: [],
2483
+ credentialOrganization: false
2484
+ }
2485
+ },
2486
+ {
2487
+ command: "memory delete",
2488
+ tool: "memory_delete",
2489
+ title: "Delete memory",
2490
+ description: "Delete a memory for good, when it is wrong and no longer useful. Prefer `memory_update` when it only needs correcting.",
2491
+ method: "DELETE",
2492
+ path: "/astro/v2/memory/{memoryId}",
2493
+ args: [
2494
+ {
2495
+ name: "memoryId",
2496
+ flag: "memory-id",
2497
+ type: "string",
2498
+ required: true
2499
+ }
2500
+ ],
2501
+ query: [],
2502
+ binary: false,
2503
+ readOnly: false,
2504
+ destructive: true
2505
+ },
2506
+ {
2507
+ command: "memory get",
2508
+ tool: "memory_get",
2509
+ title: "Get memory",
2510
+ description: "Get one memory with its content, by the id from `memory_list`.",
2511
+ method: "GET",
2512
+ path: "/astro/v2/memory/{memoryId}",
2513
+ args: [
2514
+ {
2515
+ name: "memoryId",
2516
+ flag: "memory-id",
2517
+ type: "string",
2518
+ required: true
2519
+ }
2520
+ ],
2521
+ query: [],
2522
+ binary: false,
2523
+ readOnly: true,
2524
+ destructive: false
2525
+ },
2526
+ {
2527
+ command: "memory list",
2528
+ tool: "memory_list",
2529
+ title: "List memory",
2530
+ description: "List the organization's memory: what its agents learned while building, one line per memory with its `description`, linked `portal`, `portalId`, `workflowId` and `tags`, newest first. Call it once at the start of a conversation, before other work, and pass `nextCursor` as `cursor` while one comes back. Filter by `workflowId`, `portalId` or `tag`, or search with `query`. `memory_get` returns a memory's content.",
2531
+ method: "GET",
2532
+ path: "/astro/v2/memory",
2533
+ args: [],
2534
+ query: [
2535
+ {
2536
+ name: "portalId",
2537
+ flag: "portal-id",
2538
+ type: "string",
2539
+ required: false,
2540
+ description: "Only memories linked to this portal."
2541
+ },
2542
+ {
2543
+ name: "workflowId",
2544
+ flag: "workflow-id",
2545
+ type: "string",
2546
+ required: false,
2547
+ description: "Only memories about this workflow."
2548
+ },
2549
+ {
2550
+ name: "tag",
2551
+ flag: "tag",
2552
+ type: "string",
2553
+ required: false,
2554
+ description: "Only memories with this tag."
2555
+ },
2556
+ {
2557
+ name: "query",
2558
+ flag: "query",
2559
+ type: "string",
2560
+ required: false,
2561
+ description: "Text to find in the description or content, case-insensitive."
2562
+ },
2563
+ {
2564
+ name: "limit",
2565
+ flag: "limit",
2566
+ type: "integer",
2567
+ required: false,
2568
+ description: "Up to 200. Defaults to 200."
2569
+ },
2570
+ {
2571
+ name: "cursor",
2572
+ flag: "cursor",
2573
+ type: "string",
2574
+ required: false,
2575
+ description: "`nextCursor` from the previous page."
2576
+ }
2577
+ ],
2578
+ binary: false,
2579
+ readOnly: true,
2580
+ destructive: false
2581
+ },
2582
+ {
2583
+ command: "memory update",
2584
+ tool: "memory_update",
2585
+ title: "Update memory",
2586
+ description: "Change a memory when what it says is out of date or incomplete. Send only the fields to change; `tags` replaces the list, and null unlinks `portal`, `portalId` or `workflowId`. Never store patient names, member IDs, dates of birth or anything else about one patient or case: keep only what helps the next agent build or fix a workflow.",
2587
+ method: "PATCH",
2588
+ path: "/astro/v2/memory/{memoryId}",
2589
+ args: [
2590
+ {
2591
+ name: "memoryId",
2592
+ flag: "memory-id",
2593
+ type: "string",
2594
+ required: true
2595
+ }
2596
+ ],
2597
+ query: [],
2598
+ binary: false,
2599
+ readOnly: false,
2600
+ destructive: false,
2601
+ body: {
2602
+ required: true,
2603
+ contentType: "application/json",
2604
+ fields: [
2605
+ {
2606
+ name: "description",
2607
+ flag: "description",
2608
+ type: "string",
2609
+ required: false
2610
+ },
2611
+ {
2612
+ name: "content",
2613
+ flag: "content",
2614
+ type: "string",
2615
+ required: false
2616
+ },
2617
+ {
2618
+ name: "portal",
2619
+ flag: "portal",
2620
+ type: "string",
2621
+ required: false,
2622
+ description: "A portal's name or host. One line, 1 to 200 characters."
2623
+ },
2624
+ {
2625
+ name: "portalId",
2626
+ flag: "portal-id",
2627
+ type: "string",
2628
+ required: false
2629
+ },
2630
+ {
2631
+ name: "workflowId",
2632
+ flag: "workflow-id",
2633
+ type: "string",
2634
+ required: false
2635
+ },
2636
+ {
2637
+ name: "tags",
2638
+ flag: "tags",
2639
+ type: "string[]",
2640
+ required: false,
2641
+ description: "Replaces the memory's tags."
2642
+ }
2643
+ ],
2644
+ files: [],
2645
+ credentialOrganization: false
2646
+ }
2647
+ },
2423
2648
  {
2424
2649
  command: "model list",
2425
2650
  tool: "models_list",
@@ -2743,7 +2968,7 @@ var COMMANDS = [
2743
2968
  query: [],
2744
2969
  binary: false,
2745
2970
  readOnly: false,
2746
- destructive: false,
2971
+ destructive: true,
2747
2972
  body: {
2748
2973
  required: true,
2749
2974
  contentType: "application/json",
@@ -5561,7 +5786,7 @@ var COMMANDS = [
5561
5786
  query: [],
5562
5787
  binary: false,
5563
5788
  readOnly: false,
5564
- destructive: false,
5789
+ destructive: true,
5565
5790
  body: {
5566
5791
  required: true,
5567
5792
  contentType: "application/json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.366",
3
+ "version": "1.9.368",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",