@anhlp/alp-paseo 0.0.0-beta.1 → 0.0.0-beta.2

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 (77) hide show
  1. package/README.md +15 -4
  2. package/client/task-pills.ts +5 -1
  3. package/package.json +6 -12
  4. package/server/dist/alpd.js +1867 -741
  5. package/server/dist/index.js +1954 -800
  6. package/server/dist/library.js +4 -2
  7. package/server/dist/main.js +36 -5
  8. package/server/dist/mapping.js +25 -16
  9. package/server/dist/panel/library.js +4 -2
  10. package/server/dist/panel/mapping.js +25 -16
  11. package/server/dist/panel/tasks.js +4 -2
  12. package/server/dist/panel/usage.js +4 -2
  13. package/server/dist/paseo/agents.js +47 -17
  14. package/server/dist/paseo/index.js +34 -4
  15. package/server/dist/paseo/plugins.js +4 -2
  16. package/server/dist/paseo/timeline-items.js +25 -2
  17. package/server/dist/provider-core.js +23 -1
  18. package/server/dist/provider.js +1804 -656
  19. package/server/dist/remote/index.js +27 -3
  20. package/server/dist/remote/link.js +4 -2
  21. package/server/dist/remote/panels.js +4 -2
  22. package/server/dist/remote/provider.js +27 -3
  23. package/server/dist/tasks.js +4 -2
  24. package/server/dist/tool-detail.js +26 -0
  25. package/server/dist/usage.js +4 -2
  26. package/server/dist/web-app/_expo/static/js/web/{index-185bf24e94a45852b2cfa53666d1cb86.js → index-c01174e6924afca25f226efae0b2a3ae.js} +2 -2
  27. package/server/dist/web-app/_expo/static/js/web/{index-185bf24e94a45852b2cfa53666d1cb86.js.br → index-c01174e6924afca25f226efae0b2a3ae.js.br} +0 -0
  28. package/server/dist/web-app/_expo/static/js/web/{index-185bf24e94a45852b2cfa53666d1cb86.js.gz → index-c01174e6924afca25f226efae0b2a3ae.js.gz} +0 -0
  29. package/server/dist/web-app/alp-web-app.json +2 -1
  30. package/server/dist/web-app/index.html +1 -1
  31. package/server/dist/web-app/index.html.br +0 -0
  32. package/server/dist/web-app/index.html.gz +0 -0
  33. package/server/dist/web.js +4 -2
  34. package/server/dist/alp-templates.d.ts +0 -9
  35. package/server/dist/compat.d.ts +0 -3
  36. package/server/dist/index.d.ts +0 -10
  37. package/server/dist/library.d.ts +0 -1
  38. package/server/dist/main.d.ts +0 -2
  39. package/server/dist/mapping-wire.d.ts +0 -58
  40. package/server/dist/mapping.d.ts +0 -99
  41. package/server/dist/panel/compat.d.ts +0 -3
  42. package/server/dist/panel/library.d.ts +0 -6
  43. package/server/dist/panel/mapping.d.ts +0 -1
  44. package/server/dist/panel/session-tasks.d.ts +0 -6
  45. package/server/dist/panel/tasks.d.ts +0 -8
  46. package/server/dist/panel/usage.d.ts +0 -3
  47. package/server/dist/paseo/agents.d.ts +0 -65
  48. package/server/dist/paseo/chat-search.d.ts +0 -18
  49. package/server/dist/paseo/checkout.d.ts +0 -71
  50. package/server/dist/paseo/files.d.ts +0 -19
  51. package/server/dist/paseo/gateway.d.ts +0 -61
  52. package/server/dist/paseo/git.d.ts +0 -21
  53. package/server/dist/paseo/index.d.ts +0 -56
  54. package/server/dist/paseo/plugins.d.ts +0 -17
  55. package/server/dist/paseo/providers.d.ts +0 -19
  56. package/server/dist/paseo/quiet.d.ts +0 -2
  57. package/server/dist/paseo/relay-transport.d.ts +0 -43
  58. package/server/dist/paseo/relay.d.ts +0 -84
  59. package/server/dist/paseo/timeline-items.d.ts +0 -13
  60. package/server/dist/paseo/timeline-projection.d.ts +0 -96
  61. package/server/dist/paseo/timeline-store.d.ts +0 -60
  62. package/server/dist/paseo/usage.d.ts +0 -12
  63. package/server/dist/paseo/workspaces.d.ts +0 -58
  64. package/server/dist/provider-core.d.ts +0 -68
  65. package/server/dist/provider.d.ts +0 -28
  66. package/server/dist/remote/index.d.ts +0 -10
  67. package/server/dist/remote/link.d.ts +0 -58
  68. package/server/dist/remote/panels.d.ts +0 -29
  69. package/server/dist/remote/provider.d.ts +0 -25
  70. package/server/dist/session-tasks.d.ts +0 -1
  71. package/server/dist/shared/library.d.ts +0 -258
  72. package/server/dist/shared/tasks.d.ts +0 -128
  73. package/server/dist/shared/team-models.d.ts +0 -14
  74. package/server/dist/shared/usage.d.ts +0 -27
  75. package/server/dist/tasks.d.ts +0 -1
  76. package/server/dist/usage.d.ts +0 -1
  77. package/server/dist/web.d.ts +0 -42
package/README.md CHANGED
@@ -45,8 +45,9 @@ and project overrides.
45
45
 
46
46
  ## Install
47
47
 
48
- This is the beta `0.0.0-beta.1` (not published yet); name it when you install (`@beta`, or
49
- exactly `@0.0.0-beta.1`). See the
48
+ This is the beta `0.0.0-beta.2` (until it is on npm, `@beta` installs `0.0.0-beta.1`; check with
49
+ `npm view @anhlp/alp-paseo dist-tags`); name it when you install (`@beta`, or
50
+ exactly `@0.0.0-beta.2`). See the
50
51
  [release notes](https://github.com/phucanh08/alp/blob/main/docs/alp/beta-release-notes.md) and
51
52
  [install, upgrade and removal steps](https://github.com/phucanh08/alp/blob/main/docs/alp/beta-install.md).
52
53
 
@@ -74,6 +75,16 @@ paseo plugin add npm:@anhlp/alp-paseo@beta
74
75
  paseo provider models alp
75
76
  ```
76
77
 
78
+ This works from `0.0.0-beta.2`, which ships no type declarations. In `0.0.0-beta.1` the `npm:`
79
+ source fails: Paseo installs it without peers and cannot resolve the `@getpaseo/*` types the
80
+ plugin's declarations import ([#111](https://github.com/phucanh08/alp/issues/111)). With beta.1,
81
+ install it with npm and add it by path:
82
+
83
+ ```sh
84
+ npm install -g @anhlp/alp-paseo@beta
85
+ paseo plugin add "$(npm root -g)/@anhlp/alp-paseo"
86
+ ```
87
+
77
88
  From then on the plugin keeps alpd running while Paseo runs. It starts alpd when
78
89
  Paseo starts, checks every 5 seconds, and starts it again when alpd is down; with
79
90
  `alp daemon install` (experimental), it starts alpd through that service. Sessions open in Paseo
@@ -118,7 +129,7 @@ for existing projects, model selection, permissions, and runtime limitations.
118
129
 
119
130
  ## Remote mode (deferred, not in the beta)
120
131
 
121
- Remote mode is **not part of `0.0.0-beta.1`**: it needs `@anhlp/alp-gateway`, which is not
132
+ Remote mode is **not part of the beta (`0.0.0-beta.2`)**: it needs `@anhlp/alp-gateway`, which is not
122
133
  published. The text below describes the code in this repository for development only.
123
134
 
124
135
  To use ALP running on another machine, start the daemon process that loads this plugin with
@@ -159,7 +170,7 @@ Do not use `--legacy-peer-deps` for a standalone installation unless you supply
159
170
  peers explicitly. The binary is also discoverable on PATH, so registration is optional
160
171
  for a global install. For a local install, run
161
172
  `./node_modules/.bin/alp-web-integration --register` with the intended `ALP_HOME`.
162
- The existing `paseo plugin add npm:@anhlp/alp-paseo@beta` route for a Paseo host remains
173
+ Adding the plugin to a Paseo host (`npm:` from beta.2; by path in beta.1, see above) remains
163
174
  available independently of this standalone web process.
164
175
 
165
176
  Core upgrades no longer update a bundled plugin: upgrade `@anhlp/alp-paseo`
@@ -1,8 +1,12 @@
1
- import type { PaseoAgent, PaseoAgentListResult } from '@getpaseo/client';
2
1
  import type { PluginButton, PluginButtonMenuEntry, PluginButtonRegistration, PluginClientContext, PluginOpenScreenInput } from '@getpaseo/plugin/client';
3
2
  import { tasksList, type TaskRow } from '../shared/tasks';
4
3
  import { stateOf } from './tasks-panel';
5
4
 
5
+ // Through the host SDK, not `@getpaseo/client`: that is only a peer, which `paseo plugin add npm:`
6
+ // does not install, and Paseo resolves every type import of a plugin's sources (#111).
7
+ type PaseoAgentListResult = Awaited<ReturnType<PluginClientContext['paseo']['agents']['list']>>;
8
+ type PaseoAgent = PaseoAgentListResult['entries'][number]['agent'];
9
+
6
10
  /**
7
11
  * The Tasks pill in the composer of each ALP agent. On a phone the workspace's "+" tab,
8
12
  * and with it the Tasks panel, is out of reach, but the composer is not. The pill shows
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anhlp/alp-paseo",
3
- "version": "0.0.0-beta.1",
3
+ "version": "0.0.0-beta.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "paseo-plugin.json",
@@ -16,11 +16,11 @@
16
16
  "@anthropic-ai/sdk": "0.131.0",
17
17
  "@modelcontextprotocol/sdk": "1.32.1",
18
18
  "zod": "4.4.3",
19
- "@anhlp/alp-protocol": "0.0.0-beta.1",
20
- "@anhlp/alp-core": "0.0.0-beta.1",
21
- "@anhlp/alp-runtime": "0.0.0-beta.1",
22
- "@anhlp/alp-daemon": "0.0.0-beta.1",
23
- "@anhlp/alp-client": "0.0.0-beta.1",
19
+ "@anhlp/alp-protocol": "0.0.0-beta.2",
20
+ "@anhlp/alp-core": "0.0.0-beta.2",
21
+ "@anhlp/alp-runtime": "0.0.0-beta.2",
22
+ "@anhlp/alp-daemon": "0.0.0-beta.2",
23
+ "@anhlp/alp-client": "0.0.0-beta.2",
24
24
  "ws": "^8.22.0"
25
25
  },
26
26
  "peerDependencies": {
@@ -69,27 +69,21 @@
69
69
  },
70
70
  "exports": {
71
71
  ".": {
72
- "types": "./server/dist/index.d.ts",
73
72
  "default": "./server/dist/index.js"
74
73
  },
75
74
  "./main": {
76
- "types": "./server/dist/main.d.ts",
77
75
  "default": "./server/dist/main.js"
78
76
  },
79
77
  "./web": {
80
- "types": "./server/dist/web.d.ts",
81
78
  "default": "./server/dist/web.js"
82
79
  },
83
80
  "./remote": {
84
- "types": "./server/dist/remote/index.d.ts",
85
81
  "default": "./server/dist/remote/index.js"
86
82
  },
87
83
  "./paseo/*": {
88
- "types": "./server/dist/paseo/*.d.ts",
89
84
  "default": "./server/dist/paseo/*.js"
90
85
  },
91
86
  "./panel/*": {
92
- "types": "./server/dist/panel/*.d.ts",
93
87
  "default": "./server/dist/panel/*.js"
94
88
  }
95
89
  },