agentful 0.4.18 → 0.4.19

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 (2) hide show
  1. package/dist/index.cjs +41 -21
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  mod
34
34
  ));
35
35
 
36
- // ../../mainmvp/cli/node_modules/commander/lib/error.js
36
+ // node_modules/commander/lib/error.js
37
37
  var require_error = __commonJS({
38
- "../../mainmvp/cli/node_modules/commander/lib/error.js"(exports2) {
38
+ "node_modules/commander/lib/error.js"(exports2) {
39
39
  "use strict";
40
40
  var CommanderError2 = class extends Error {
41
41
  /**
@@ -69,9 +69,9 @@ var require_error = __commonJS({
69
69
  }
70
70
  });
71
71
 
72
- // ../../mainmvp/cli/node_modules/commander/lib/argument.js
72
+ // node_modules/commander/lib/argument.js
73
73
  var require_argument = __commonJS({
74
- "../../mainmvp/cli/node_modules/commander/lib/argument.js"(exports2) {
74
+ "node_modules/commander/lib/argument.js"(exports2) {
75
75
  "use strict";
76
76
  var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
77
77
  var Argument2 = class {
@@ -197,9 +197,9 @@ var require_argument = __commonJS({
197
197
  }
198
198
  });
199
199
 
200
- // ../../mainmvp/cli/node_modules/commander/lib/help.js
200
+ // node_modules/commander/lib/help.js
201
201
  var require_help = __commonJS({
202
- "../../mainmvp/cli/node_modules/commander/lib/help.js"(exports2) {
202
+ "node_modules/commander/lib/help.js"(exports2) {
203
203
  "use strict";
204
204
  var { humanReadableArgName } = require_argument();
205
205
  var Help2 = class {
@@ -612,9 +612,9 @@ var require_help = __commonJS({
612
612
  }
613
613
  });
614
614
 
615
- // ../../mainmvp/cli/node_modules/commander/lib/option.js
615
+ // node_modules/commander/lib/option.js
616
616
  var require_option = __commonJS({
617
- "../../mainmvp/cli/node_modules/commander/lib/option.js"(exports2) {
617
+ "node_modules/commander/lib/option.js"(exports2) {
618
618
  "use strict";
619
619
  var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
620
620
  var Option2 = class {
@@ -885,9 +885,9 @@ var require_option = __commonJS({
885
885
  }
886
886
  });
887
887
 
888
- // ../../mainmvp/cli/node_modules/commander/lib/suggestSimilar.js
888
+ // node_modules/commander/lib/suggestSimilar.js
889
889
  var require_suggestSimilar = __commonJS({
890
- "../../mainmvp/cli/node_modules/commander/lib/suggestSimilar.js"(exports2) {
890
+ "node_modules/commander/lib/suggestSimilar.js"(exports2) {
891
891
  "use strict";
892
892
  var maxDistance = 3;
893
893
  function editDistance(a, b) {
@@ -966,9 +966,9 @@ var require_suggestSimilar = __commonJS({
966
966
  }
967
967
  });
968
968
 
969
- // ../../mainmvp/cli/node_modules/commander/lib/command.js
969
+ // node_modules/commander/lib/command.js
970
970
  var require_command = __commonJS({
971
- "../../mainmvp/cli/node_modules/commander/lib/command.js"(exports2) {
971
+ "node_modules/commander/lib/command.js"(exports2) {
972
972
  "use strict";
973
973
  var EventEmitter = require("events").EventEmitter;
974
974
  var childProcess = require("child_process");
@@ -3010,9 +3010,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
3010
3010
  }
3011
3011
  });
3012
3012
 
3013
- // ../../mainmvp/cli/node_modules/commander/index.js
3013
+ // node_modules/commander/index.js
3014
3014
  var require_commander = __commonJS({
3015
- "../../mainmvp/cli/node_modules/commander/index.js"(exports2) {
3015
+ "node_modules/commander/index.js"(exports2) {
3016
3016
  "use strict";
3017
3017
  var { Argument: Argument2 } = require_argument();
3018
3018
  var { Command: Command2 } = require_command();
@@ -3044,7 +3044,7 @@ var VERSION, brand, useColor, wrap, paint, tuiDesign, sym, ui;
3044
3044
  var init_branding = __esm({
3045
3045
  "src/branding.ts"() {
3046
3046
  "use strict";
3047
- VERSION = "0.4.18" ? "0.4.18" : null.version;
3047
+ VERSION = "0.4.19" ? "0.4.19" : null.version;
3048
3048
  brand = {
3049
3049
  name: "agentful",
3050
3050
  // the command users type
@@ -3103,9 +3103,9 @@ var init_branding = __esm({
3103
3103
  }
3104
3104
  });
3105
3105
 
3106
- // ../../mainmvp/cli/node_modules/ignore/index.js
3106
+ // node_modules/ignore/index.js
3107
3107
  var require_ignore = __commonJS({
3108
- "../../mainmvp/cli/node_modules/ignore/index.js"(exports2, module2) {
3108
+ "node_modules/ignore/index.js"(exports2, module2) {
3109
3109
  "use strict";
3110
3110
  function makeArray(subject) {
3111
3111
  return Array.isArray(subject) ? subject : [subject];
@@ -3521,6 +3521,23 @@ function dropEngineFarewell() {
3521
3521
  }
3522
3522
  });
3523
3523
 
3524
+ // src/lib/engineUpdate.ts
3525
+ var UPDATE_OVERRIDE_SOURCE;
3526
+ var init_engineUpdate = __esm({
3527
+ "src/lib/engineUpdate.ts"() {
3528
+ "use strict";
3529
+ UPDATE_OVERRIDE_SOURCE = String.raw`
3530
+ /** Hide the engine's /update. Returns the layer's dispose for api.lifecycle.onDispose. */
3531
+ function hideEngineUpdate(api) {
3532
+ return api.keymap.registerLayer({
3533
+ priority: 1,
3534
+ commands: [{ namespace: 'palette', name: 'opencode.update', hidden: true, run() {} }],
3535
+ })
3536
+ }
3537
+ `;
3538
+ }
3539
+ });
3540
+
3524
3541
  // src/branding/logo.txt
3525
3542
  var logo_default;
3526
3543
  var init_logo = __esm({
@@ -3566,13 +3583,15 @@ function tail(text, max) {
3566
3583
  const s = String(text)
3567
3584
  return s.length <= max ? s : '\u2026' + s.slice(s.length - (max - 1))
3568
3585
  }
3569
- ${FAREWELL_FILTER_SOURCE}
3586
+ ${FAREWELL_FILTER_SOURCE}${UPDATE_OVERRIDE_SOURCE}
3570
3587
  const plugin = {
3571
3588
  id: 'agentful-branding',
3572
3589
  tui(api) {
3573
3590
  // Through safe(): a throw here would make the host roll back the whole
3574
3591
  // plugin, and the design with it \u2014 for the sake of one line on quit.
3575
3592
  safe(() => api.lifecycle.onDispose(dropEngineFarewell))
3593
+ // Same for the /update override: without a keymap api it is just not there.
3594
+ safe(() => api.lifecycle.onDispose(hideEngineUpdate(api)))
3576
3595
 
3577
3596
  const Prompt = api.ui.Prompt
3578
3597
  const HostSlot = api.ui.Slot
@@ -3855,11 +3874,12 @@ var init_plugin = __esm({
3855
3874
  "use strict";
3856
3875
  init_branding();
3857
3876
  init_engineFarewell();
3877
+ init_engineUpdate();
3858
3878
  init_logo();
3859
3879
  }
3860
3880
  });
3861
3881
 
3862
- // ../../mainmvp/cli/node_modules/commander/esm.mjs
3882
+ // node_modules/commander/esm.mjs
3863
3883
  var import_index = __toESM(require_commander(), 1);
3864
3884
  var {
3865
3885
  program,
@@ -4821,7 +4841,7 @@ init_branding();
4821
4841
  var import_node_fs4 = require("fs");
4822
4842
  var import_node_path6 = require("path");
4823
4843
 
4824
- // ../../mainmvp/cli/node_modules/fflate/esm/index.mjs
4844
+ // node_modules/fflate/esm/index.mjs
4825
4845
  var import_module = require("module");
4826
4846
  var require2 = (0, import_module.createRequire)("/");
4827
4847
  var _a;
@@ -8008,7 +8028,7 @@ var import_node_stream = require("stream");
8008
8028
  var import_promises3 = require("stream/promises");
8009
8029
  init_branding();
8010
8030
  var ENGINE_BINARY = "agentful-engine";
8011
- var FALLBACK_ENGINE_VERSION = "v1.18.32";
8031
+ var FALLBACK_ENGINE_VERSION = "v1.19.4";
8012
8032
  function compareVersions(a, b) {
8013
8033
  const pa = a.replace(/^v/, "").split(".").map((n) => parseInt(n, 10) || 0);
8014
8034
  const pb = b.replace(/^v/, "").split(".").map((n) => parseInt(n, 10) || 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentful",
3
- "version": "0.4.18",
3
+ "version": "0.4.19",
4
4
  "description": "Agentful in your terminal — local development with push-to-cloud previews",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://agentful.dev",