@epilot/cli 0.1.198 → 0.1.200

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.
Files changed (78) hide show
  1. package/README.md +1 -1
  2. package/definitions/validation-rules.json +32 -18
  3. package/dist/{access-token-6M73U65X.js → access-token-YY5XEXCZ.js} +7 -2
  4. package/dist/{add-component-Y4QT4T7A.js → add-component-3JJPSATL.js} +2 -2
  5. package/dist/{add-function-LCYMPAFP.js → add-function-5BL3P3T2.js} +2 -2
  6. package/dist/{address-RRFWS66E.js → address-HX7C55LD.js} +7 -2
  7. package/dist/{address-suggestions-IUFHAOF3.js → address-suggestions-37JSWGXA.js} +7 -2
  8. package/dist/{ai-agents-FOHPTQYY.js → ai-agents-WZ7KWYCI.js} +7 -2
  9. package/dist/{api-EVTACZQZ.js → api-6352LRJL.js} +2 -2
  10. package/dist/app-TJXMLLIA.js +26 -0
  11. package/dist/{audit-logs-3J4N6UYR.js → audit-logs-ZSVUTTU6.js} +7 -2
  12. package/dist/{automation-7Y76HTRK.js → automation-BF537D5U.js} +7 -2
  13. package/dist/{billing-YY2TSJTU.js → billing-CCMVTP5Z.js} +7 -2
  14. package/dist/bin/epilot.js +61 -61
  15. package/dist/{blueprint-manifest-CMKSIHJ4.js → blueprint-manifest-TJFXVCKL.js} +7 -2
  16. package/dist/{calendar-MZ4LZ3CN.js → calendar-FJAHKOLR.js} +7 -2
  17. package/dist/{chat-GUVIMPCI.js → chat-QENVX2HL.js} +7 -2
  18. package/dist/{chunk-NIWZ5U7G.js → chunk-2ZR23ZQ5.js} +1 -1
  19. package/dist/{chunk-2HWJT4DW.js → chunk-DSUGYXKL.js} +1 -1
  20. package/dist/chunk-EY42RC57.js +30 -0
  21. package/dist/{chunk-HTDQ45IO.js → chunk-RMFDIW6G.js} +1 -1
  22. package/dist/{chunk-EHZEQBBO.js → chunk-T5IXUA4U.js} +1 -1
  23. package/dist/{completion-MKB6GT45.js → completion-HGJY6G3I.js} +1 -1
  24. package/dist/{configuration-hub-BM35YSCV.js → configuration-hub-PBGPUTGV.js} +7 -2
  25. package/dist/{consent-AYZ5FUL7.js → consent-G4M2A7BO.js} +7 -2
  26. package/dist/{customer-portal-JJK5332Z.js → customer-portal-57YPSZYN.js} +7 -2
  27. package/dist/{dashboard-G3GN6IOU.js → dashboard-Y5IKZ7TN.js} +7 -2
  28. package/dist/{data-governance-BZITK3ZN.js → data-governance-2CSTENNA.js} +7 -2
  29. package/dist/{deduplication-E22YOLQE.js → deduplication-OFVXUXKZ.js} +7 -2
  30. package/dist/{deploy-QHJ4C2F2.js → deploy-4PFVGP5M.js} +2 -2
  31. package/dist/{design-XTEAXLGB.js → design-L77G72PP.js} +7 -2
  32. package/dist/{dev-3XIOTHNS.js → dev-324QVCJJ.js} +2 -2
  33. package/dist/{document-MO4ZXSYJ.js → document-XRSGAGMS.js} +7 -2
  34. package/dist/{email-settings-W3VTKFBS.js → email-settings-AFXW6TOY.js} +7 -2
  35. package/dist/{email-template-APFUMUYX.js → email-template-JYJ6IMQQ.js} +7 -2
  36. package/dist/{entity-YL2PRN6H.js → entity-ZLUVGFF6.js} +7 -2
  37. package/dist/{entity-mapping-UAJKGXPN.js → entity-mapping-5GJBNREQ.js} +7 -2
  38. package/dist/{environments-KALTTHAM.js → environments-WNXPA4NW.js} +7 -2
  39. package/dist/{event-catalog-4LNI3DYU.js → event-catalog-437NXJ3N.js} +7 -2
  40. package/dist/{export-NMTFU6A5.js → export-2KPUNZ7F.js} +2 -2
  41. package/dist/{external-values-BCGFLIFW.js → external-values-DBNHZS3B.js} +7 -2
  42. package/dist/{file-V5XG75F6.js → file-H6U77X3P.js} +7 -2
  43. package/dist/{iban-Y5JREQ5G.js → iban-CDRED73J.js} +7 -2
  44. package/dist/{identity-XQTU4C6U.js → identity-RSP2FHOK.js} +7 -2
  45. package/dist/{init-KCFFN5YH.js → init-TVSRRZHU.js} +2 -2
  46. package/dist/{integration-toolkit-2R5ZP4I2.js → integration-toolkit-EY4XQYUI.js} +7 -2
  47. package/dist/{journey-3MNDPSG5.js → journey-7YV7O2ZJ.js} +7 -2
  48. package/dist/{kanban-LPNW5LPK.js → kanban-WUNLHV6V.js} +7 -2
  49. package/dist/{message-BEIBRVIC.js → message-AAILT7RE.js} +7 -2
  50. package/dist/{metering-M5O6CTMK.js → metering-KZPNNDW6.js} +7 -2
  51. package/dist/{notes-KMOZ7T5D.js → notes-P5IFCC3K.js} +7 -2
  52. package/dist/{notification-OUAOFWAM.js → notification-XR6MO4AC.js} +7 -2
  53. package/dist/{organization-AXMBLMOH.js → organization-FHCUEOI3.js} +7 -2
  54. package/dist/{partner-directory-4O5WL5P2.js → partner-directory-JUYTZSQY.js} +7 -2
  55. package/dist/{permissions-QQPFPNPZ.js → permissions-YSZ2ZR37.js} +7 -2
  56. package/dist/{phone-integration-QN2BKQCR.js → phone-integration-LC4TNK3J.js} +7 -2
  57. package/dist/{pricing-DL3HPEHE.js → pricing-J37OIBSE.js} +7 -2
  58. package/dist/{pricing-tier-7DP562MY.js → pricing-tier-SXHFPZ3U.js} +7 -2
  59. package/dist/{purpose-2VPP2CXM.js → purpose-NPYUAZXH.js} +7 -2
  60. package/dist/{query-UD7IJVHV.js → query-25K642VF.js} +7 -2
  61. package/dist/{remove-component-RDBF3UZ7.js → remove-component-BO2E4PPJ.js} +2 -2
  62. package/dist/{review-H4VIW7QN.js → review-W2LVW6IH.js} +2 -2
  63. package/dist/{sandbox-REGYRKJC.js → sandbox-HU3VPF73.js} +7 -2
  64. package/dist/{sharing-RPMG2ZU3.js → sharing-3ET3NOIK.js} +7 -2
  65. package/dist/{snapshot-ZXFXSPRR.js → snapshot-W2OBSTCG.js} +7 -2
  66. package/dist/{submission-M4IPK4YH.js → submission-CBVGCZ2B.js} +7 -2
  67. package/dist/{targeting-UDDWIUFQ.js → targeting-PUVUJAV3.js} +7 -2
  68. package/dist/{template-variables-7BOB5KCW.js → template-variables-QZG2K4UK.js} +7 -2
  69. package/dist/{upgrade-LKXESLZZ.js → upgrade-VIUK7LQS.js} +1 -1
  70. package/dist/{user-PJEPOBDO.js → user-CK52YW5T.js} +7 -2
  71. package/dist/{validate-A2YTP4MJ.js → validate-FLS73UXX.js} +2 -2
  72. package/dist/{validation-rules-O3M25AHM.js → validation-rules-6AFNONHX.js} +7 -2
  73. package/dist/{versions-Q53TBTDC.js → versions-QW5Y5WP5.js} +2 -2
  74. package/dist/{webhooks-Q5XPARTY.js → webhooks-QGMAB4B3.js} +7 -2
  75. package/dist/{workflow-YDERCC6Y.js → workflow-HDCVBHJI.js} +7 -2
  76. package/dist/{workflow-definition-DMWOZER5.js → workflow-definition-YIG2VM6J.js} +7 -2
  77. package/package.json +1 -1
  78. package/dist/app-KXOWP7PW.js +0 -26
package/README.md CHANGED
@@ -29,7 +29,7 @@ npm install -g @epilot/cli
29
29
 
30
30
  <!-- usage-help -->
31
31
  ```
32
- epilot v0.1.198 — CLI for epilot APIs
32
+ epilot v0.1.200 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -2143,9 +2143,23 @@
2143
2143
  }
2144
2144
  ]
2145
2145
  },
2146
+ "ValueReference": {
2147
+ "description": "A value resolved at evaluation time instead of written into the rule, identified by\n`source`. Each field that accepts a reference lists the sources it allows; a rule using\nany other source is rejected when it is saved.\n",
2148
+ "oneOf": [
2149
+ {
2150
+ "$ref": "#/components/schemas/ContextValue"
2151
+ },
2152
+ {
2153
+ "$ref": "#/components/schemas/EnvironmentValue"
2154
+ },
2155
+ {
2156
+ "$ref": "#/components/schemas/ExternalValue"
2157
+ }
2158
+ ]
2159
+ },
2146
2160
  "EnvironmentValue": {
2147
2161
  "type": "object",
2148
- "description": "A comparison value resolved at evaluation time from an organisation environment variable\n(environments-api). The rule stores the key, never the value, so one change to the variable\nreaches every rule that references it and a blueprint install never overwrites the\norganisation's own value.\n\nOnly browser-safe variable types are allowed: `Number` for numeric comparisons, `Text` for\ntext comparisons and for dates (ISO 8601 string), `Boolean` for `applies_when` values.\n`String` and `SecretString` variables are rejected at write time. Write-time validation also\nchecks that the variable exists in the organisation; a variable that exists without a value\n(for example seeded by a blueprint install) is accepted and resolves as unavailable until set.\n",
2162
+ "description": "A comparison value resolved at evaluation time from an organisation environment variable\n(environments-api). The rule stores the key, never the value, so one change to the variable\nreaches every rule that references it and a blueprint install never overwrites the\norganisation's own value.\n\nOnly browser-safe variable types are allowed: `Number` for numeric comparisons, adjustment\namounts and relative-date offsets, `Text` for text comparisons and for dates (ISO 8601\nstring), `Boolean` for `applies_when` values.\n`String` and `SecretString` variables are rejected at write time. Write-time validation also\nchecks that the variable exists in the organisation; a variable that exists without a value\n(for example seeded by a blueprint install) is accepted and resolves as unavailable until set.\n",
2149
2163
  "required": [
2150
2164
  "source",
2151
2165
  "key"
@@ -2286,17 +2300,14 @@
2286
2300
  ]
2287
2301
  },
2288
2302
  "value": {
2289
- "description": "The adjustment amount - a fixed number, or a context path resolving to a number\n(e.g. a per-contract percentage limit). Contextual adjustment values must not\ncarry a nested adjustment.\n",
2303
+ "description": "The adjustment amount - a fixed non-negative number, or a reference resolving to a\nnumber at evaluation time. Accepted reference sources: `context` (e.g. a per-contract\npercentage limit) and `environment` (a `Number` organisation environment variable).\nAny other source is rejected at write time, and the reference must not carry its own\n`adjust`.\n",
2290
2304
  "oneOf": [
2291
2305
  {
2292
2306
  "type": "number",
2293
2307
  "minimum": 0
2294
2308
  },
2295
2309
  {
2296
- "$ref": "#/components/schemas/ContextValue"
2297
- },
2298
- {
2299
- "$ref": "#/components/schemas/EnvironmentValue"
2310
+ "$ref": "#/components/schemas/ValueReference"
2300
2311
  }
2301
2312
  ]
2302
2313
  },
@@ -2313,7 +2324,7 @@
2313
2324
  "up",
2314
2325
  "down"
2315
2326
  ],
2316
- "description": "Rounds the adjusted result to a whole number - `up` (ceiling) or `down` (floor).\nOmitted means no rounding. Used for bounds like \"round up(current \u00d7 0.9) to whole euros\".\n"
2327
+ "description": "Rounds the adjusted result to a whole number - `up` (ceiling) or `down` (floor).\nOmitted means no rounding. Used for bounds like \"round up(current × 0.9) to whole euros\".\n"
2317
2328
  }
2318
2329
  }
2319
2330
  },
@@ -2334,10 +2345,17 @@
2334
2345
  ]
2335
2346
  },
2336
2347
  "offset": {
2337
- "type": "integer",
2338
- "minimum": -36500,
2339
- "maximum": 36500,
2340
- "description": "Offset from the anchor. Negative values are in the past, positive in the future, 0 is the anchor itself."
2348
+ "description": "Offset from the anchor. Negative values are in the past, positive in the future, 0 is the anchor itself.\nEither a fixed whole number, or a reference resolved at evaluation time. Accepted reference source:\n`environment` (a `Number` organisation environment variable). Any other source is rejected at write\ntime, and the reference must not carry an `adjust`. If the referenced value is missing or is not a\nwhole number within ±36500, the comparison is unresolved.\n",
2349
+ "oneOf": [
2350
+ {
2351
+ "type": "integer",
2352
+ "minimum": -36500,
2353
+ "maximum": 36500
2354
+ },
2355
+ {
2356
+ "$ref": "#/components/schemas/ValueReference"
2357
+ }
2358
+ ]
2341
2359
  },
2342
2360
  "unit": {
2343
2361
  "type": "string",
@@ -2598,7 +2616,7 @@
2598
2616
  "description": "Comparison applied to the resolved context value. `isEmpty` / `isNotEmpty`\ntake no `value`; all other operators require one.\n"
2599
2617
  },
2600
2618
  "value": {
2601
- "description": "Comparison value for binary operators: a static number, string or boolean, or an\norganisation environment variable (`Number`, `Text` or `Boolean`) so a precondition\ncan act as a per-organisation switch or threshold.\n",
2619
+ "description": "Comparison value for binary operators: a static number, string or boolean, or a\nreference resolved at evaluation time. Accepted reference source: `environment` (a\n`Number`, `Text` or `Boolean` organisation environment variable), so a precondition\ncan act as a per-organisation switch or threshold. Any other source is rejected at\nwrite time, and the reference must not carry an `adjust`.\n",
2602
2620
  "oneOf": [
2603
2621
  {
2604
2622
  "type": "number"
@@ -2610,7 +2628,7 @@
2610
2628
  "type": "boolean"
2611
2629
  },
2612
2630
  {
2613
- "$ref": "#/components/schemas/EnvironmentValue"
2631
+ "$ref": "#/components/schemas/ValueReference"
2614
2632
  }
2615
2633
  ]
2616
2634
  }
@@ -2634,9 +2652,5 @@
2634
2652
  }
2635
2653
  }
2636
2654
  },
2637
- "servers": [
2638
- {
2639
- "url": "https://validation-rules.sls.epilot.io"
2640
- }
2641
- ]
2655
+ "servers": []
2642
2656
  }
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolveRepeatedFlag
4
+ } from "./chunk-EY42RC57.js";
2
5
  import {
3
6
  callApi
4
- } from "./chunk-NIWZ5U7G.js";
5
- import "./chunk-HTDQ45IO.js";
7
+ } from "./chunk-2ZR23ZQ5.js";
8
+ import "./chunk-RMFDIW6G.js";
6
9
  import "./chunk-IOLKUHUB.js";
7
10
  import "./chunk-SQ55BTMV.js";
8
11
  import "./chunk-QPUCHKXS.js";
@@ -48,6 +51,8 @@ var access_token_default = defineCommand({
48
51
  ...args,
49
52
  help: !!args._ophelp,
50
53
  _apihelp: !!args._apihelp,
54
+ param: resolveRepeatedFlag({ rawArgs, names: ["-p", "--param"], parsed: args.param }),
55
+ header: resolveRepeatedFlag({ rawArgs, names: ["-H", "--header"], parsed: args.header }),
51
56
  _args: positionalArgs
52
57
  });
53
58
  }
@@ -3,8 +3,8 @@ import {
3
3
  log,
4
4
  readManifest,
5
5
  writeManifest
6
- } from "./chunk-2HWJT4DW.js";
7
- import "./chunk-HTDQ45IO.js";
6
+ } from "./chunk-DSUGYXKL.js";
7
+ import "./chunk-RMFDIW6G.js";
8
8
  import "./chunk-SQ55BTMV.js";
9
9
  import "./chunk-QPUCHKXS.js";
10
10
  import "./chunk-7ZQ666ZQ.js";
@@ -4,8 +4,8 @@ import {
4
4
  readManifest,
5
5
  validateScheduleExpression,
6
6
  writeManifest
7
- } from "./chunk-2HWJT4DW.js";
8
- import "./chunk-HTDQ45IO.js";
7
+ } from "./chunk-DSUGYXKL.js";
8
+ import "./chunk-RMFDIW6G.js";
9
9
  import "./chunk-SQ55BTMV.js";
10
10
  import "./chunk-QPUCHKXS.js";
11
11
  import "./chunk-7ZQ666ZQ.js";
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolveRepeatedFlag
4
+ } from "./chunk-EY42RC57.js";
2
5
  import {
3
6
  callApi
4
- } from "./chunk-NIWZ5U7G.js";
5
- import "./chunk-HTDQ45IO.js";
7
+ } from "./chunk-2ZR23ZQ5.js";
8
+ import "./chunk-RMFDIW6G.js";
6
9
  import "./chunk-IOLKUHUB.js";
7
10
  import "./chunk-SQ55BTMV.js";
8
11
  import "./chunk-QPUCHKXS.js";
@@ -48,6 +51,8 @@ var address_default = defineCommand({
48
51
  ...args,
49
52
  help: !!args._ophelp,
50
53
  _apihelp: !!args._apihelp,
54
+ param: resolveRepeatedFlag({ rawArgs, names: ["-p", "--param"], parsed: args.param }),
55
+ header: resolveRepeatedFlag({ rawArgs, names: ["-H", "--header"], parsed: args.header }),
51
56
  _args: positionalArgs
52
57
  });
53
58
  }
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolveRepeatedFlag
4
+ } from "./chunk-EY42RC57.js";
2
5
  import {
3
6
  callApi
4
- } from "./chunk-NIWZ5U7G.js";
5
- import "./chunk-HTDQ45IO.js";
7
+ } from "./chunk-2ZR23ZQ5.js";
8
+ import "./chunk-RMFDIW6G.js";
6
9
  import "./chunk-IOLKUHUB.js";
7
10
  import "./chunk-SQ55BTMV.js";
8
11
  import "./chunk-QPUCHKXS.js";
@@ -48,6 +51,8 @@ var address_suggestions_default = defineCommand({
48
51
  ...args,
49
52
  help: !!args._ophelp,
50
53
  _apihelp: !!args._apihelp,
54
+ param: resolveRepeatedFlag({ rawArgs, names: ["-p", "--param"], parsed: args.param }),
55
+ header: resolveRepeatedFlag({ rawArgs, names: ["-H", "--header"], parsed: args.header }),
51
56
  _args: positionalArgs
52
57
  });
53
58
  }
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolveRepeatedFlag
4
+ } from "./chunk-EY42RC57.js";
2
5
  import {
3
6
  callApi
4
- } from "./chunk-NIWZ5U7G.js";
5
- import "./chunk-HTDQ45IO.js";
7
+ } from "./chunk-2ZR23ZQ5.js";
8
+ import "./chunk-RMFDIW6G.js";
6
9
  import "./chunk-IOLKUHUB.js";
7
10
  import "./chunk-SQ55BTMV.js";
8
11
  import "./chunk-QPUCHKXS.js";
@@ -48,6 +51,8 @@ var ai_agents_default = defineCommand({
48
51
  ...args,
49
52
  help: !!args._ophelp,
50
53
  _apihelp: !!args._apihelp,
54
+ param: resolveRepeatedFlag({ rawArgs, names: ["-p", "--param"], parsed: args.param }),
55
+ header: resolveRepeatedFlag({ rawArgs, names: ["-H", "--header"], parsed: args.header }),
51
56
  _args: positionalArgs
52
57
  });
53
58
  }
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-NIWZ5U7G.js";
5
- import "./chunk-HTDQ45IO.js";
4
+ } from "./chunk-2ZR23ZQ5.js";
5
+ import "./chunk-RMFDIW6G.js";
6
6
  import "./chunk-IOLKUHUB.js";
7
7
  import "./chunk-SQ55BTMV.js";
8
8
  import "./chunk-QPUCHKXS.js";
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/commands/app/index.ts
4
+ import { defineCommand } from "citty";
5
+ var app_default = defineCommand({
6
+ meta: {
7
+ name: "app",
8
+ description: "Manage epilot Apps \u2014 create, deploy, and manage app manifests"
9
+ },
10
+ subCommands: {
11
+ init: () => import("./init-TVSRRZHU.js").then((m) => m.default),
12
+ "add-component": () => import("./add-component-3JJPSATL.js").then((m) => m.default),
13
+ "remove-component": () => import("./remove-component-BO2E4PPJ.js").then((m) => m.default),
14
+ "add-function": () => import("./add-function-5BL3P3T2.js").then((m) => m.default),
15
+ validate: () => import("./validate-FLS73UXX.js").then((m) => m.default),
16
+ deploy: () => import("./deploy-4PFVGP5M.js").then((m) => m.default),
17
+ dev: () => import("./dev-324QVCJJ.js").then((m) => m.default),
18
+ export: () => import("./export-2KPUNZ7F.js").then((m) => m.default),
19
+ versions: () => import("./versions-QW5Y5WP5.js").then((m) => m.default),
20
+ review: () => import("./review-W2LVW6IH.js").then((m) => m.default),
21
+ api: () => import("./api-6352LRJL.js").then((m) => m.default)
22
+ }
23
+ });
24
+ export {
25
+ app_default as default
26
+ };
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolveRepeatedFlag
4
+ } from "./chunk-EY42RC57.js";
2
5
  import {
3
6
  callApi
4
- } from "./chunk-NIWZ5U7G.js";
5
- import "./chunk-HTDQ45IO.js";
7
+ } from "./chunk-2ZR23ZQ5.js";
8
+ import "./chunk-RMFDIW6G.js";
6
9
  import "./chunk-IOLKUHUB.js";
7
10
  import "./chunk-SQ55BTMV.js";
8
11
  import "./chunk-QPUCHKXS.js";
@@ -48,6 +51,8 @@ var audit_logs_default = defineCommand({
48
51
  ...args,
49
52
  help: !!args._ophelp,
50
53
  _apihelp: !!args._apihelp,
54
+ param: resolveRepeatedFlag({ rawArgs, names: ["-p", "--param"], parsed: args.param }),
55
+ header: resolveRepeatedFlag({ rawArgs, names: ["-H", "--header"], parsed: args.header }),
51
56
  _args: positionalArgs
52
57
  });
53
58
  }
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolveRepeatedFlag
4
+ } from "./chunk-EY42RC57.js";
2
5
  import {
3
6
  callApi
4
- } from "./chunk-NIWZ5U7G.js";
5
- import "./chunk-HTDQ45IO.js";
7
+ } from "./chunk-2ZR23ZQ5.js";
8
+ import "./chunk-RMFDIW6G.js";
6
9
  import "./chunk-IOLKUHUB.js";
7
10
  import "./chunk-SQ55BTMV.js";
8
11
  import "./chunk-QPUCHKXS.js";
@@ -48,6 +51,8 @@ var automation_default = defineCommand({
48
51
  ...args,
49
52
  help: !!args._ophelp,
50
53
  _apihelp: !!args._apihelp,
54
+ param: resolveRepeatedFlag({ rawArgs, names: ["-p", "--param"], parsed: args.param }),
55
+ header: resolveRepeatedFlag({ rawArgs, names: ["-H", "--header"], parsed: args.header }),
51
56
  _args: positionalArgs
52
57
  });
53
58
  }
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolveRepeatedFlag
4
+ } from "./chunk-EY42RC57.js";
2
5
  import {
3
6
  callApi
4
- } from "./chunk-NIWZ5U7G.js";
5
- import "./chunk-HTDQ45IO.js";
7
+ } from "./chunk-2ZR23ZQ5.js";
8
+ import "./chunk-RMFDIW6G.js";
6
9
  import "./chunk-IOLKUHUB.js";
7
10
  import "./chunk-SQ55BTMV.js";
8
11
  import "./chunk-QPUCHKXS.js";
@@ -48,6 +51,8 @@ var billing_default = defineCommand({
48
51
  ...args,
49
52
  help: !!args._ophelp,
50
53
  _apihelp: !!args._apihelp,
54
+ param: resolveRepeatedFlag({ rawArgs, names: ["-p", "--param"], parsed: args.param }),
55
+ header: resolveRepeatedFlag({ rawArgs, names: ["-H", "--header"], parsed: args.header }),
51
56
  _args: positionalArgs
52
57
  });
53
58
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "../chunk-EHZEQBBO.js";
4
+ } from "../chunk-T5IXUA4U.js";
5
5
 
6
6
  // bin/epilot.ts
7
7
  import { runMain } from "citty";
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.198",
14
+ version: "0.1.200",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -31,63 +31,63 @@ var main = defineCommand({
31
31
  org: () => import("../org-YNGJNLKY.js").then((m) => m.default),
32
32
  profile: () => import("../profile-G2FH3DXR.js").then((m) => m.default),
33
33
  config: () => import("../config-PJWYWLQH.js").then((m) => m.default),
34
- completion: () => import("../completion-MKB6GT45.js").then((m) => m.default),
35
- upgrade: () => import("../upgrade-LKXESLZZ.js").then((m) => m.default),
36
- "access-token": () => import("../access-token-6M73U65X.js").then((m) => m.default),
37
- address: () => import("../address-RRFWS66E.js").then((m) => m.default),
38
- "address-suggestions": () => import("../address-suggestions-IUFHAOF3.js").then((m) => m.default),
39
- "ai-agents": () => import("../ai-agents-FOHPTQYY.js").then((m) => m.default),
40
- app: () => import("../app-KXOWP7PW.js").then((m) => m.default),
41
- "audit-logs": () => import("../audit-logs-3J4N6UYR.js").then((m) => m.default),
42
- automation: () => import("../automation-7Y76HTRK.js").then((m) => m.default),
43
- billing: () => import("../billing-YY2TSJTU.js").then((m) => m.default),
44
- "blueprint-manifest": () => import("../blueprint-manifest-CMKSIHJ4.js").then((m) => m.default),
45
- calendar: () => import("../calendar-MZ4LZ3CN.js").then((m) => m.default),
46
- chat: () => import("../chat-GUVIMPCI.js").then((m) => m.default),
47
- "configuration-hub": () => import("../configuration-hub-BM35YSCV.js").then((m) => m.default),
48
- consent: () => import("../consent-AYZ5FUL7.js").then((m) => m.default),
49
- "customer-portal": () => import("../customer-portal-JJK5332Z.js").then((m) => m.default),
50
- dashboard: () => import("../dashboard-G3GN6IOU.js").then((m) => m.default),
51
- "data-governance": () => import("../data-governance-BZITK3ZN.js").then((m) => m.default),
52
- deduplication: () => import("../deduplication-E22YOLQE.js").then((m) => m.default),
53
- design: () => import("../design-XTEAXLGB.js").then((m) => m.default),
54
- document: () => import("../document-MO4ZXSYJ.js").then((m) => m.default),
55
- "email-settings": () => import("../email-settings-W3VTKFBS.js").then((m) => m.default),
56
- "email-template": () => import("../email-template-APFUMUYX.js").then((m) => m.default),
57
- entity: () => import("../entity-YL2PRN6H.js").then((m) => m.default),
58
- "entity-mapping": () => import("../entity-mapping-UAJKGXPN.js").then((m) => m.default),
59
- environments: () => import("../environments-KALTTHAM.js").then((m) => m.default),
60
- "event-catalog": () => import("../event-catalog-4LNI3DYU.js").then((m) => m.default),
61
- "external-values": () => import("../external-values-BCGFLIFW.js").then((m) => m.default),
62
- file: () => import("../file-V5XG75F6.js").then((m) => m.default),
63
- iban: () => import("../iban-Y5JREQ5G.js").then((m) => m.default),
64
- identity: () => import("../identity-XQTU4C6U.js").then((m) => m.default),
65
- "integration-toolkit": () => import("../integration-toolkit-2R5ZP4I2.js").then((m) => m.default),
66
- journey: () => import("../journey-3MNDPSG5.js").then((m) => m.default),
67
- kanban: () => import("../kanban-LPNW5LPK.js").then((m) => m.default),
68
- message: () => import("../message-BEIBRVIC.js").then((m) => m.default),
69
- metering: () => import("../metering-M5O6CTMK.js").then((m) => m.default),
70
- notes: () => import("../notes-KMOZ7T5D.js").then((m) => m.default),
71
- notification: () => import("../notification-OUAOFWAM.js").then((m) => m.default),
72
- organization: () => import("../organization-AXMBLMOH.js").then((m) => m.default),
73
- "partner-directory": () => import("../partner-directory-4O5WL5P2.js").then((m) => m.default),
74
- permissions: () => import("../permissions-QQPFPNPZ.js").then((m) => m.default),
75
- "phone-integration": () => import("../phone-integration-QN2BKQCR.js").then((m) => m.default),
76
- pricing: () => import("../pricing-DL3HPEHE.js").then((m) => m.default),
77
- "pricing-tier": () => import("../pricing-tier-7DP562MY.js").then((m) => m.default),
78
- purpose: () => import("../purpose-2VPP2CXM.js").then((m) => m.default),
79
- query: () => import("../query-UD7IJVHV.js").then((m) => m.default),
80
- sandbox: () => import("../sandbox-REGYRKJC.js").then((m) => m.default),
81
- sharing: () => import("../sharing-RPMG2ZU3.js").then((m) => m.default),
82
- snapshot: () => import("../snapshot-ZXFXSPRR.js").then((m) => m.default),
83
- submission: () => import("../submission-M4IPK4YH.js").then((m) => m.default),
84
- targeting: () => import("../targeting-UDDWIUFQ.js").then((m) => m.default),
85
- "template-variables": () => import("../template-variables-7BOB5KCW.js").then((m) => m.default),
86
- user: () => import("../user-PJEPOBDO.js").then((m) => m.default),
87
- "validation-rules": () => import("../validation-rules-O3M25AHM.js").then((m) => m.default),
88
- webhooks: () => import("../webhooks-Q5XPARTY.js").then((m) => m.default),
89
- workflow: () => import("../workflow-YDERCC6Y.js").then((m) => m.default),
90
- "workflow-definition": () => import("../workflow-definition-DMWOZER5.js").then((m) => m.default)
34
+ completion: () => import("../completion-HGJY6G3I.js").then((m) => m.default),
35
+ upgrade: () => import("../upgrade-VIUK7LQS.js").then((m) => m.default),
36
+ "access-token": () => import("../access-token-YY5XEXCZ.js").then((m) => m.default),
37
+ address: () => import("../address-HX7C55LD.js").then((m) => m.default),
38
+ "address-suggestions": () => import("../address-suggestions-37JSWGXA.js").then((m) => m.default),
39
+ "ai-agents": () => import("../ai-agents-WZ7KWYCI.js").then((m) => m.default),
40
+ app: () => import("../app-TJXMLLIA.js").then((m) => m.default),
41
+ "audit-logs": () => import("../audit-logs-ZSVUTTU6.js").then((m) => m.default),
42
+ automation: () => import("../automation-BF537D5U.js").then((m) => m.default),
43
+ billing: () => import("../billing-CCMVTP5Z.js").then((m) => m.default),
44
+ "blueprint-manifest": () => import("../blueprint-manifest-TJFXVCKL.js").then((m) => m.default),
45
+ calendar: () => import("../calendar-FJAHKOLR.js").then((m) => m.default),
46
+ chat: () => import("../chat-QENVX2HL.js").then((m) => m.default),
47
+ "configuration-hub": () => import("../configuration-hub-PBGPUTGV.js").then((m) => m.default),
48
+ consent: () => import("../consent-G4M2A7BO.js").then((m) => m.default),
49
+ "customer-portal": () => import("../customer-portal-57YPSZYN.js").then((m) => m.default),
50
+ dashboard: () => import("../dashboard-Y5IKZ7TN.js").then((m) => m.default),
51
+ "data-governance": () => import("../data-governance-2CSTENNA.js").then((m) => m.default),
52
+ deduplication: () => import("../deduplication-OFVXUXKZ.js").then((m) => m.default),
53
+ design: () => import("../design-L77G72PP.js").then((m) => m.default),
54
+ document: () => import("../document-XRSGAGMS.js").then((m) => m.default),
55
+ "email-settings": () => import("../email-settings-AFXW6TOY.js").then((m) => m.default),
56
+ "email-template": () => import("../email-template-JYJ6IMQQ.js").then((m) => m.default),
57
+ entity: () => import("../entity-ZLUVGFF6.js").then((m) => m.default),
58
+ "entity-mapping": () => import("../entity-mapping-5GJBNREQ.js").then((m) => m.default),
59
+ environments: () => import("../environments-WNXPA4NW.js").then((m) => m.default),
60
+ "event-catalog": () => import("../event-catalog-437NXJ3N.js").then((m) => m.default),
61
+ "external-values": () => import("../external-values-DBNHZS3B.js").then((m) => m.default),
62
+ file: () => import("../file-H6U77X3P.js").then((m) => m.default),
63
+ iban: () => import("../iban-CDRED73J.js").then((m) => m.default),
64
+ identity: () => import("../identity-RSP2FHOK.js").then((m) => m.default),
65
+ "integration-toolkit": () => import("../integration-toolkit-EY4XQYUI.js").then((m) => m.default),
66
+ journey: () => import("../journey-7YV7O2ZJ.js").then((m) => m.default),
67
+ kanban: () => import("../kanban-WUNLHV6V.js").then((m) => m.default),
68
+ message: () => import("../message-AAILT7RE.js").then((m) => m.default),
69
+ metering: () => import("../metering-KZPNNDW6.js").then((m) => m.default),
70
+ notes: () => import("../notes-P5IFCC3K.js").then((m) => m.default),
71
+ notification: () => import("../notification-XR6MO4AC.js").then((m) => m.default),
72
+ organization: () => import("../organization-FHCUEOI3.js").then((m) => m.default),
73
+ "partner-directory": () => import("../partner-directory-JUYTZSQY.js").then((m) => m.default),
74
+ permissions: () => import("../permissions-YSZ2ZR37.js").then((m) => m.default),
75
+ "phone-integration": () => import("../phone-integration-LC4TNK3J.js").then((m) => m.default),
76
+ pricing: () => import("../pricing-J37OIBSE.js").then((m) => m.default),
77
+ "pricing-tier": () => import("../pricing-tier-SXHFPZ3U.js").then((m) => m.default),
78
+ purpose: () => import("../purpose-NPYUAZXH.js").then((m) => m.default),
79
+ query: () => import("../query-25K642VF.js").then((m) => m.default),
80
+ sandbox: () => import("../sandbox-HU3VPF73.js").then((m) => m.default),
81
+ sharing: () => import("../sharing-3ET3NOIK.js").then((m) => m.default),
82
+ snapshot: () => import("../snapshot-W2OBSTCG.js").then((m) => m.default),
83
+ submission: () => import("../submission-CBVGCZ2B.js").then((m) => m.default),
84
+ targeting: () => import("../targeting-PUVUJAV3.js").then((m) => m.default),
85
+ "template-variables": () => import("../template-variables-QZG2K4UK.js").then((m) => m.default),
86
+ user: () => import("../user-CK52YW5T.js").then((m) => m.default),
87
+ "validation-rules": () => import("../validation-rules-6AFNONHX.js").then((m) => m.default),
88
+ webhooks: () => import("../webhooks-QGMAB4B3.js").then((m) => m.default),
89
+ workflow: () => import("../workflow-HDCVBHJI.js").then((m) => m.default),
90
+ "workflow-definition": () => import("../workflow-definition-YIG2VM6J.js").then((m) => m.default)
91
91
  }
92
92
  });
93
93
 
@@ -142,13 +142,13 @@ process.stderr.on("error", (err) => {
142
142
  if (err.code === "EPIPE") process.exit(0);
143
143
  throw err;
144
144
  });
145
- var VERSION = true ? "0.1.198" : (await null).default.version;
145
+ var VERSION = true ? "0.1.200" : (await null).default.version;
146
146
  var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
147
147
  process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
148
148
  var args = process.argv.slice(2);
149
149
  var completionsIdx = args.indexOf("--_completions");
150
150
  if (completionsIdx >= 0) {
151
- const { handleCompletions } = await import("../completion-MKB6GT45.js");
151
+ const { handleCompletions } = await import("../completion-HGJY6G3I.js");
152
152
  handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
153
153
  process.exit(0);
154
154
  }
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolveRepeatedFlag
4
+ } from "./chunk-EY42RC57.js";
2
5
  import {
3
6
  callApi
4
- } from "./chunk-NIWZ5U7G.js";
5
- import "./chunk-HTDQ45IO.js";
7
+ } from "./chunk-2ZR23ZQ5.js";
8
+ import "./chunk-RMFDIW6G.js";
6
9
  import "./chunk-IOLKUHUB.js";
7
10
  import "./chunk-SQ55BTMV.js";
8
11
  import "./chunk-QPUCHKXS.js";
@@ -48,6 +51,8 @@ var blueprint_manifest_default = defineCommand({
48
51
  ...args,
49
52
  help: !!args._ophelp,
50
53
  _apihelp: !!args._apihelp,
54
+ param: resolveRepeatedFlag({ rawArgs, names: ["-p", "--param"], parsed: args.param }),
55
+ header: resolveRepeatedFlag({ rawArgs, names: ["-H", "--header"], parsed: args.header }),
51
56
  _args: positionalArgs
52
57
  });
53
58
  }
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolveRepeatedFlag
4
+ } from "./chunk-EY42RC57.js";
2
5
  import {
3
6
  callApi
4
- } from "./chunk-NIWZ5U7G.js";
5
- import "./chunk-HTDQ45IO.js";
7
+ } from "./chunk-2ZR23ZQ5.js";
8
+ import "./chunk-RMFDIW6G.js";
6
9
  import "./chunk-IOLKUHUB.js";
7
10
  import "./chunk-SQ55BTMV.js";
8
11
  import "./chunk-QPUCHKXS.js";
@@ -48,6 +51,8 @@ var calendar_default = defineCommand({
48
51
  ...args,
49
52
  help: !!args._ophelp,
50
53
  _apihelp: !!args._apihelp,
54
+ param: resolveRepeatedFlag({ rawArgs, names: ["-p", "--param"], parsed: args.param }),
55
+ header: resolveRepeatedFlag({ rawArgs, names: ["-H", "--header"], parsed: args.header }),
51
56
  _args: positionalArgs
52
57
  });
53
58
  }
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolveRepeatedFlag
4
+ } from "./chunk-EY42RC57.js";
2
5
  import {
3
6
  callApi
4
- } from "./chunk-NIWZ5U7G.js";
5
- import "./chunk-HTDQ45IO.js";
7
+ } from "./chunk-2ZR23ZQ5.js";
8
+ import "./chunk-RMFDIW6G.js";
6
9
  import "./chunk-IOLKUHUB.js";
7
10
  import "./chunk-SQ55BTMV.js";
8
11
  import "./chunk-QPUCHKXS.js";
@@ -48,6 +51,8 @@ var chat_default = defineCommand({
48
51
  ...args,
49
52
  help: !!args._ophelp,
50
53
  _apihelp: !!args._apihelp,
54
+ param: resolveRepeatedFlag({ rawArgs, names: ["-p", "--param"], parsed: args.param }),
55
+ header: resolveRepeatedFlag({ rawArgs, names: ["-H", "--header"], parsed: args.header }),
51
56
  _args: positionalArgs
52
57
  });
53
58
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CLI_USER_AGENT
4
- } from "./chunk-HTDQ45IO.js";
4
+ } from "./chunk-RMFDIW6G.js";
5
5
  import {
6
6
  formatOperationsTable,
7
7
  isInteractive,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CLI_USER_AGENT
4
- } from "./chunk-HTDQ45IO.js";
4
+ } from "./chunk-RMFDIW6G.js";
5
5
  import {
6
6
  loadCredentials,
7
7
  resolveToken
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/lib/repeated-flags.ts
4
+ var collectRepeatedFlag = (params) => {
5
+ const { rawArgs, names } = params;
6
+ const values = [];
7
+ for (let i = 0; i < rawArgs.length; i++) {
8
+ const arg = rawArgs[i];
9
+ if (arg === "--") break;
10
+ const inlineName = names.find((name) => arg.startsWith(`${name}=`));
11
+ if (inlineName) {
12
+ values.push(arg.substring(inlineName.length + 1));
13
+ continue;
14
+ }
15
+ if (names.includes(arg) && i + 1 < rawArgs.length) {
16
+ values.push(rawArgs[i + 1]);
17
+ i++;
18
+ }
19
+ }
20
+ return values;
21
+ };
22
+ var resolveRepeatedFlag = (params) => {
23
+ const { rawArgs, names, parsed } = params;
24
+ const collected = rawArgs ? collectRepeatedFlag({ rawArgs, names }) : [];
25
+ return collected.length > 0 ? collected : parsed;
26
+ };
27
+
28
+ export {
29
+ resolveRepeatedFlag
30
+ };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/lib/user-agent.ts
4
- var CLI_USER_AGENT = `epilot-cli/${true ? "0.1.198" : "dev"}`;
4
+ var CLI_USER_AGENT = `epilot-cli/${true ? "0.1.200" : "dev"}`;
5
5
 
6
6
  export {
7
7
  CLI_USER_AGENT