@celljs/ta-host 4.7.0 → 4.9.0
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/README.en.md +34 -4
- package/README.md +33 -3
- package/cell.schema.json +4 -0
- package/cell.yml +2 -0
- package/esm/node/auth-server-impl.d.ts +2 -0
- package/esm/node/auth-server-impl.js +7 -0
- package/esm/node/client-tool-broker.d.ts +11 -3
- package/esm/node/client-tool-broker.js +23 -3
- package/esm/node/extension-providers.d.ts +22 -0
- package/esm/node/extension-providers.js +52 -0
- package/esm/node/host-protocol.d.ts +22 -1
- package/esm/node/host-protocol.js +1 -0
- package/esm/node/index.d.ts +6 -0
- package/esm/node/index.js +6 -0
- package/esm/node/live-run.d.ts +22 -0
- package/esm/node/live-run.js +58 -0
- package/esm/node/message-page.d.ts +17 -0
- package/esm/node/message-page.js +71 -0
- package/esm/node/package-host-extension.d.ts +4 -2
- package/esm/node/package-host-extension.js +4 -3
- package/esm/node/package-hosts.d.ts +2 -2
- package/esm/node/package-hosts.js +2 -0
- package/esm/node/package-server-impl.d.ts +9 -1
- package/esm/node/package-server-impl.js +16 -1
- package/esm/node/relay-bridge.d.ts +9 -1
- package/esm/node/relay-bridge.js +44 -4
- package/esm/node/remote-ui-context.d.ts +6 -1
- package/esm/node/remote-ui-context.js +31 -3
- package/esm/node/session-catalog.d.ts +69 -0
- package/esm/node/session-catalog.js +211 -0
- package/esm/node/session-files.d.ts +18 -0
- package/esm/node/session-files.js +32 -0
- package/esm/node/session-info-util.d.ts +4 -1
- package/esm/node/session-info-util.js +8 -3
- package/esm/node/settings-server-impl.d.ts +1 -0
- package/esm/node/settings-server-impl.js +8 -0
- package/esm/node/settings-store.d.ts +3 -1
- package/esm/node/settings-store.js +25 -3
- package/esm/node/sign-in/access-server-impl.d.ts +19 -0
- package/esm/node/sign-in/access-server-impl.js +82 -0
- package/esm/node/sign-in/access-store.d.ts +65 -0
- package/esm/node/sign-in/access-store.js +175 -0
- package/esm/node/sign-in/index.d.ts +7 -0
- package/esm/node/sign-in/index.js +8 -0
- package/esm/node/sign-in/sign-in-flow.d.ts +58 -0
- package/esm/node/sign-in/sign-in-flow.js +104 -0
- package/esm/node/sign-in/sign-in-middleware.d.ts +10 -0
- package/esm/node/sign-in/sign-in-middleware.js +48 -0
- package/esm/node/sign-in/sign-in-pages.d.ts +31 -0
- package/esm/node/sign-in/sign-in-pages.js +118 -0
- package/esm/node/sign-in/sign-in-provider.d.ts +135 -0
- package/esm/node/sign-in/sign-in-provider.js +225 -0
- package/esm/node/sign-in/ta-sign-in.d.ts +10 -0
- package/esm/node/sign-in/ta-sign-in.js +32 -0
- package/esm/node/ta-access.d.ts +7 -0
- package/esm/node/ta-access.js +30 -1
- package/esm/node/ta-server-impl.d.ts +8 -3
- package/esm/node/ta-server-impl.js +25 -6
- package/esm/node/ta-session-factory.d.ts +4 -1
- package/esm/node/ta-session-factory.js +30 -7
- package/esm/node/ta-session-registry.d.ts +2 -0
- package/esm/node/ta-session-registry.js +23 -3
- package/esm/node/ta-session.d.ts +24 -2
- package/esm/node/ta-session.js +84 -6
- package/esm/node/temporary-packages.d.ts +46 -0
- package/esm/node/temporary-packages.js +114 -0
- package/esm/node/temporary-purge.d.ts +13 -0
- package/esm/node/temporary-purge.js +51 -0
- package/esm/node/terminal-service.d.ts +18 -2
- package/esm/node/terminal-service.js +45 -9
- package/esm/node/terminal-util.d.ts +14 -0
- package/esm/node/terminal-util.js +30 -1
- package/esm/node/web-extension-catalog.d.ts +28 -1
- package/esm/node/web-extension-catalog.js +173 -5
- package/esm/node/web-extension-util.d.ts +5 -1
- package/esm/node/web-extension-util.js +36 -5
- package/esm/node/workspace-protocol.d.ts +2 -0
- package/esm/node/workspace-server-impl.d.ts +2 -1
- package/esm/node/workspace-server-impl.js +13 -1
- package/esm/node/workspace-service.d.ts +1 -0
- package/esm/node/workspace-service.js +13 -1
- package/lib/node/auth-server-impl.d.ts +2 -0
- package/lib/node/auth-server-impl.js +7 -0
- package/lib/node/client-tool-broker.d.ts +11 -3
- package/lib/node/client-tool-broker.js +23 -3
- package/lib/node/extension-providers.d.ts +23 -0
- package/lib/node/extension-providers.js +55 -0
- package/lib/node/host-protocol.d.ts +22 -1
- package/lib/node/host-protocol.js +2 -1
- package/lib/node/index.d.ts +6 -0
- package/lib/node/index.js +6 -0
- package/lib/node/live-run.d.ts +23 -0
- package/lib/node/live-run.js +62 -0
- package/lib/node/message-page.d.ts +18 -0
- package/lib/node/message-page.js +74 -0
- package/lib/node/package-host-extension.d.ts +4 -2
- package/lib/node/package-host-extension.js +4 -3
- package/lib/node/package-hosts.d.ts +2 -2
- package/lib/node/package-hosts.js +2 -0
- package/lib/node/package-server-impl.d.ts +9 -1
- package/lib/node/package-server-impl.js +15 -0
- package/lib/node/relay-bridge.d.ts +9 -1
- package/lib/node/relay-bridge.js +43 -3
- package/lib/node/remote-ui-context.d.ts +6 -1
- package/lib/node/remote-ui-context.js +31 -3
- package/lib/node/session-catalog.d.ts +70 -0
- package/lib/node/session-catalog.js +214 -0
- package/lib/node/session-files.d.ts +19 -0
- package/lib/node/session-files.js +36 -0
- package/lib/node/session-info-util.d.ts +4 -1
- package/lib/node/session-info-util.js +7 -2
- package/lib/node/settings-server-impl.d.ts +1 -0
- package/lib/node/settings-server-impl.js +8 -0
- package/lib/node/settings-store.d.ts +3 -1
- package/lib/node/settings-store.js +25 -3
- package/lib/node/sign-in/access-server-impl.d.ts +20 -0
- package/lib/node/sign-in/access-server-impl.js +85 -0
- package/lib/node/sign-in/access-store.d.ts +66 -0
- package/lib/node/sign-in/access-store.js +179 -0
- package/lib/node/sign-in/index.d.ts +8 -0
- package/lib/node/sign-in/index.js +24 -0
- package/lib/node/sign-in/sign-in-flow.d.ts +59 -0
- package/lib/node/sign-in/sign-in-flow.js +108 -0
- package/lib/node/sign-in/sign-in-middleware.d.ts +11 -0
- package/lib/node/sign-in/sign-in-middleware.js +51 -0
- package/lib/node/sign-in/sign-in-pages.d.ts +32 -0
- package/lib/node/sign-in/sign-in-pages.js +121 -0
- package/lib/node/sign-in/sign-in-provider.d.ts +136 -0
- package/lib/node/sign-in/sign-in-provider.js +232 -0
- package/lib/node/sign-in/ta-sign-in.d.ts +11 -0
- package/lib/node/sign-in/ta-sign-in.js +35 -0
- package/lib/node/ta-access.d.ts +7 -0
- package/lib/node/ta-access.js +30 -1
- package/lib/node/ta-server-impl.d.ts +8 -3
- package/lib/node/ta-server-impl.js +24 -5
- package/lib/node/ta-session-factory.d.ts +4 -1
- package/lib/node/ta-session-factory.js +30 -7
- package/lib/node/ta-session-registry.d.ts +2 -0
- package/lib/node/ta-session-registry.js +23 -3
- package/lib/node/ta-session.d.ts +24 -2
- package/lib/node/ta-session.js +84 -6
- package/lib/node/temporary-packages.d.ts +47 -0
- package/lib/node/temporary-packages.js +118 -0
- package/lib/node/temporary-purge.d.ts +14 -0
- package/lib/node/temporary-purge.js +54 -0
- package/lib/node/terminal-service.d.ts +18 -2
- package/lib/node/terminal-service.js +44 -8
- package/lib/node/terminal-util.d.ts +14 -0
- package/lib/node/terminal-util.js +30 -1
- package/lib/node/web-extension-catalog.d.ts +28 -1
- package/lib/node/web-extension-catalog.js +172 -4
- package/lib/node/web-extension-util.d.ts +5 -1
- package/lib/node/web-extension-util.js +36 -5
- package/lib/node/workspace-protocol.d.ts +2 -0
- package/lib/node/workspace-server-impl.d.ts +2 -1
- package/lib/node/workspace-server-impl.js +12 -0
- package/lib/node/workspace-service.d.ts +1 -0
- package/lib/node/workspace-service.js +13 -1
- package/package.json +17 -12
- package/esm/node/auth-server-impl.js.map +0 -1
- package/esm/node/client-channel.js.map +0 -1
- package/esm/node/client-tool-broker.js.map +0 -1
- package/esm/node/event-log.js.map +0 -1
- package/esm/node/exec-environment-factory.js.map +0 -1
- package/esm/node/extension-data-notifier.js.map +0 -1
- package/esm/node/extension-data.js.map +0 -1
- package/esm/node/host-protocol.js.map +0 -1
- package/esm/node/index.js.map +0 -1
- package/esm/node/module.js.map +0 -1
- package/esm/node/package-host-extension.js.map +0 -1
- package/esm/node/package-hosts.js.map +0 -1
- package/esm/node/package-server-impl.js.map +0 -1
- package/esm/node/package-switch.js.map +0 -1
- package/esm/node/receipt-book.js.map +0 -1
- package/esm/node/relay-bridge.js.map +0 -1
- package/esm/node/remote/index.js.map +0 -1
- package/esm/node/remote/pi-directories.js.map +0 -1
- package/esm/node/remote/port-forwards.js.map +0 -1
- package/esm/node/remote/remote-hosts.js.map +0 -1
- package/esm/node/remote/remote-protocol.js.map +0 -1
- package/esm/node/remote/remote-server-impl.js.map +0 -1
- package/esm/node/remote-ui-context.js.map +0 -1
- package/esm/node/session-info-util.js.map +0 -1
- package/esm/node/session-storage/file-session-storage.js.map +0 -1
- package/esm/node/session-storage/index.js.map +0 -1
- package/esm/node/session-storage/session-storage-protocol.js.map +0 -1
- package/esm/node/session-storage/stored-session.js.map +0 -1
- package/esm/node/settings-server-impl.js.map +0 -1
- package/esm/node/settings-store.js.map +0 -1
- package/esm/node/ta-access.js.map +0 -1
- package/esm/node/ta-errors.js.map +0 -1
- package/esm/node/ta-event-util.js.map +0 -1
- package/esm/node/ta-server-impl.js.map +0 -1
- package/esm/node/ta-session-factory.js.map +0 -1
- package/esm/node/ta-session-registry.js.map +0 -1
- package/esm/node/ta-session.js.map +0 -1
- package/esm/node/terminal-protocol.js.map +0 -1
- package/esm/node/terminal-service.js.map +0 -1
- package/esm/node/terminal-util.js.map +0 -1
- package/esm/node/web-extension-catalog.js.map +0 -1
- package/esm/node/web-extension-util.js.map +0 -1
- package/esm/node/working-directory.js.map +0 -1
- package/esm/node/workspace-files.js.map +0 -1
- package/esm/node/workspace-protocol.js.map +0 -1
- package/esm/node/workspace-server-impl.js.map +0 -1
- package/esm/node/workspace-service.js.map +0 -1
- package/esm/node/workspace-util.js.map +0 -1
- package/lib/node/auth-server-impl.d.ts.map +0 -1
- package/lib/node/auth-server-impl.js.map +0 -1
- package/lib/node/auth-server-impl.spec.d.ts +0 -2
- package/lib/node/auth-server-impl.spec.d.ts.map +0 -1
- package/lib/node/auth-server-impl.spec.js +0 -47
- package/lib/node/auth-server-impl.spec.js.map +0 -1
- package/lib/node/client-channel.d.ts.map +0 -1
- package/lib/node/client-channel.js.map +0 -1
- package/lib/node/client-channel.spec.d.ts +0 -2
- package/lib/node/client-channel.spec.d.ts.map +0 -1
- package/lib/node/client-channel.spec.js +0 -106
- package/lib/node/client-channel.spec.js.map +0 -1
- package/lib/node/client-tool-broker.d.ts.map +0 -1
- package/lib/node/client-tool-broker.js.map +0 -1
- package/lib/node/client-tool-broker.spec.d.ts +0 -2
- package/lib/node/client-tool-broker.spec.d.ts.map +0 -1
- package/lib/node/client-tool-broker.spec.js +0 -49
- package/lib/node/client-tool-broker.spec.js.map +0 -1
- package/lib/node/event-log.d.ts.map +0 -1
- package/lib/node/event-log.js.map +0 -1
- package/lib/node/event-log.spec.d.ts +0 -2
- package/lib/node/event-log.spec.d.ts.map +0 -1
- package/lib/node/event-log.spec.js +0 -48
- package/lib/node/event-log.spec.js.map +0 -1
- package/lib/node/exec-environment-factory.d.ts.map +0 -1
- package/lib/node/exec-environment-factory.js.map +0 -1
- package/lib/node/extension-data-notifier.d.ts.map +0 -1
- package/lib/node/extension-data-notifier.js.map +0 -1
- package/lib/node/extension-data-notifier.spec.d.ts +0 -2
- package/lib/node/extension-data-notifier.spec.d.ts.map +0 -1
- package/lib/node/extension-data-notifier.spec.js +0 -35
- package/lib/node/extension-data-notifier.spec.js.map +0 -1
- package/lib/node/extension-data.d.ts.map +0 -1
- package/lib/node/extension-data.js.map +0 -1
- package/lib/node/extension-data.spec.d.ts +0 -2
- package/lib/node/extension-data.spec.d.ts.map +0 -1
- package/lib/node/extension-data.spec.js +0 -99
- package/lib/node/extension-data.spec.js.map +0 -1
- package/lib/node/host-protocol.d.ts.map +0 -1
- package/lib/node/host-protocol.js.map +0 -1
- package/lib/node/index.d.ts.map +0 -1
- package/lib/node/index.js.map +0 -1
- package/lib/node/module.d.ts.map +0 -1
- package/lib/node/module.js.map +0 -1
- package/lib/node/package-host-extension.d.ts.map +0 -1
- package/lib/node/package-host-extension.js.map +0 -1
- package/lib/node/package-hosts.d.ts.map +0 -1
- package/lib/node/package-hosts.js.map +0 -1
- package/lib/node/package-hosts.spec.d.ts +0 -2
- package/lib/node/package-hosts.spec.d.ts.map +0 -1
- package/lib/node/package-hosts.spec.js +0 -53
- package/lib/node/package-hosts.spec.js.map +0 -1
- package/lib/node/package-server-impl.d.ts.map +0 -1
- package/lib/node/package-server-impl.js.map +0 -1
- package/lib/node/package-switch.d.ts.map +0 -1
- package/lib/node/package-switch.js.map +0 -1
- package/lib/node/receipt-book.d.ts.map +0 -1
- package/lib/node/receipt-book.js.map +0 -1
- package/lib/node/receipt-book.spec.d.ts +0 -2
- package/lib/node/receipt-book.spec.d.ts.map +0 -1
- package/lib/node/receipt-book.spec.js +0 -39
- package/lib/node/receipt-book.spec.js.map +0 -1
- package/lib/node/relay-bridge.d.ts.map +0 -1
- package/lib/node/relay-bridge.js.map +0 -1
- package/lib/node/remote/index.d.ts.map +0 -1
- package/lib/node/remote/index.js.map +0 -1
- package/lib/node/remote/pi-directories.d.ts.map +0 -1
- package/lib/node/remote/pi-directories.js.map +0 -1
- package/lib/node/remote/port-forwards.d.ts.map +0 -1
- package/lib/node/remote/port-forwards.js.map +0 -1
- package/lib/node/remote/remote-hosts.d.ts.map +0 -1
- package/lib/node/remote/remote-hosts.js.map +0 -1
- package/lib/node/remote/remote-protocol.d.ts.map +0 -1
- package/lib/node/remote/remote-protocol.js.map +0 -1
- package/lib/node/remote/remote-server-impl.d.ts.map +0 -1
- package/lib/node/remote/remote-server-impl.js.map +0 -1
- package/lib/node/remote/remote.spec.d.ts +0 -2
- package/lib/node/remote/remote.spec.d.ts.map +0 -1
- package/lib/node/remote/remote.spec.js +0 -130
- package/lib/node/remote/remote.spec.js.map +0 -1
- package/lib/node/remote-ui-context.d.ts.map +0 -1
- package/lib/node/remote-ui-context.js.map +0 -1
- package/lib/node/remote-ui-context.spec.d.ts +0 -2
- package/lib/node/remote-ui-context.spec.d.ts.map +0 -1
- package/lib/node/remote-ui-context.spec.js +0 -62
- package/lib/node/remote-ui-context.spec.js.map +0 -1
- package/lib/node/session-info-util.d.ts.map +0 -1
- package/lib/node/session-info-util.js.map +0 -1
- package/lib/node/session-info-util.spec.d.ts +0 -2
- package/lib/node/session-info-util.spec.d.ts.map +0 -1
- package/lib/node/session-info-util.spec.js +0 -22
- package/lib/node/session-info-util.spec.js.map +0 -1
- package/lib/node/session-storage/file-session-storage.d.ts.map +0 -1
- package/lib/node/session-storage/file-session-storage.js.map +0 -1
- package/lib/node/session-storage/file-session-storage.spec.d.ts +0 -2
- package/lib/node/session-storage/file-session-storage.spec.d.ts.map +0 -1
- package/lib/node/session-storage/file-session-storage.spec.js +0 -70
- package/lib/node/session-storage/file-session-storage.spec.js.map +0 -1
- package/lib/node/session-storage/index.d.ts.map +0 -1
- package/lib/node/session-storage/index.js.map +0 -1
- package/lib/node/session-storage/session-storage-protocol.d.ts.map +0 -1
- package/lib/node/session-storage/session-storage-protocol.js.map +0 -1
- package/lib/node/session-storage/stored-session.d.ts.map +0 -1
- package/lib/node/session-storage/stored-session.js.map +0 -1
- package/lib/node/session-storage/stored-session.spec.d.ts +0 -2
- package/lib/node/session-storage/stored-session.spec.d.ts.map +0 -1
- package/lib/node/session-storage/stored-session.spec.js +0 -73
- package/lib/node/session-storage/stored-session.spec.js.map +0 -1
- package/lib/node/settings-server-impl.d.ts.map +0 -1
- package/lib/node/settings-server-impl.js.map +0 -1
- package/lib/node/settings-store.d.ts.map +0 -1
- package/lib/node/settings-store.js.map +0 -1
- package/lib/node/settings-store.spec.d.ts +0 -2
- package/lib/node/settings-store.spec.d.ts.map +0 -1
- package/lib/node/settings-store.spec.js +0 -146
- package/lib/node/settings-store.spec.js.map +0 -1
- package/lib/node/ta-access.d.ts.map +0 -1
- package/lib/node/ta-access.js.map +0 -1
- package/lib/node/ta-access.spec.d.ts +0 -2
- package/lib/node/ta-access.spec.d.ts.map +0 -1
- package/lib/node/ta-access.spec.js +0 -33
- package/lib/node/ta-access.spec.js.map +0 -1
- package/lib/node/ta-errors.d.ts.map +0 -1
- package/lib/node/ta-errors.js.map +0 -1
- package/lib/node/ta-errors.spec.d.ts +0 -2
- package/lib/node/ta-errors.spec.d.ts.map +0 -1
- package/lib/node/ta-errors.spec.js +0 -25
- package/lib/node/ta-errors.spec.js.map +0 -1
- package/lib/node/ta-event-util.d.ts.map +0 -1
- package/lib/node/ta-event-util.js.map +0 -1
- package/lib/node/ta-event-util.spec.d.ts +0 -2
- package/lib/node/ta-event-util.spec.d.ts.map +0 -1
- package/lib/node/ta-event-util.spec.js +0 -28
- package/lib/node/ta-event-util.spec.js.map +0 -1
- package/lib/node/ta-server-impl.d.ts.map +0 -1
- package/lib/node/ta-server-impl.js.map +0 -1
- package/lib/node/ta-session-factory.d.ts.map +0 -1
- package/lib/node/ta-session-factory.js.map +0 -1
- package/lib/node/ta-session-registry.d.ts.map +0 -1
- package/lib/node/ta-session-registry.js.map +0 -1
- package/lib/node/ta-session.d.ts.map +0 -1
- package/lib/node/ta-session.js.map +0 -1
- package/lib/node/terminal-protocol.d.ts.map +0 -1
- package/lib/node/terminal-protocol.js.map +0 -1
- package/lib/node/terminal-service.d.ts.map +0 -1
- package/lib/node/terminal-service.js.map +0 -1
- package/lib/node/terminal-service.spec.d.ts +0 -2
- package/lib/node/terminal-service.spec.d.ts.map +0 -1
- package/lib/node/terminal-service.spec.js +0 -79
- package/lib/node/terminal-service.spec.js.map +0 -1
- package/lib/node/terminal-util.d.ts.map +0 -1
- package/lib/node/terminal-util.js.map +0 -1
- package/lib/node/terminal-util.spec.d.ts +0 -2
- package/lib/node/terminal-util.spec.d.ts.map +0 -1
- package/lib/node/terminal-util.spec.js +0 -71
- package/lib/node/terminal-util.spec.js.map +0 -1
- package/lib/node/web-extension-catalog.d.ts.map +0 -1
- package/lib/node/web-extension-catalog.js.map +0 -1
- package/lib/node/web-extension-catalog.spec.d.ts +0 -2
- package/lib/node/web-extension-catalog.spec.d.ts.map +0 -1
- package/lib/node/web-extension-catalog.spec.js +0 -157
- package/lib/node/web-extension-catalog.spec.js.map +0 -1
- package/lib/node/web-extension-util.d.ts.map +0 -1
- package/lib/node/web-extension-util.js.map +0 -1
- package/lib/node/working-directory.d.ts.map +0 -1
- package/lib/node/working-directory.js.map +0 -1
- package/lib/node/workspace-files.d.ts.map +0 -1
- package/lib/node/workspace-files.js.map +0 -1
- package/lib/node/workspace-files.spec.d.ts +0 -2
- package/lib/node/workspace-files.spec.d.ts.map +0 -1
- package/lib/node/workspace-files.spec.js +0 -133
- package/lib/node/workspace-files.spec.js.map +0 -1
- package/lib/node/workspace-protocol.d.ts.map +0 -1
- package/lib/node/workspace-protocol.js.map +0 -1
- package/lib/node/workspace-server-impl.d.ts.map +0 -1
- package/lib/node/workspace-server-impl.js.map +0 -1
- package/lib/node/workspace-service.d.ts.map +0 -1
- package/lib/node/workspace-service.js.map +0 -1
- package/lib/node/workspace-service.spec.d.ts +0 -2
- package/lib/node/workspace-service.spec.d.ts.map +0 -1
- package/lib/node/workspace-service.spec.js +0 -104
- package/lib/node/workspace-service.spec.js.map +0 -1
- package/lib/node/workspace-util.d.ts.map +0 -1
- package/lib/node/workspace-util.js.map +0 -1
- package/lib/node/workspace-util.spec.d.ts +0 -2
- package/lib/node/workspace-util.spec.d.ts.map +0 -1
- package/lib/node/workspace-util.spec.js +0 -44
- package/lib/node/workspace-util.spec.js.map +0 -1
- package/src/node/auth-server-impl.spec.ts +0 -49
- package/src/node/auth-server-impl.ts +0 -252
- package/src/node/client-channel.spec.ts +0 -117
- package/src/node/client-channel.ts +0 -94
- package/src/node/client-tool-broker.spec.ts +0 -53
- package/src/node/client-tool-broker.ts +0 -106
- package/src/node/event-log.spec.ts +0 -52
- package/src/node/event-log.ts +0 -59
- package/src/node/exec-environment-factory.ts +0 -66
- package/src/node/extension-data-notifier.spec.ts +0 -34
- package/src/node/extension-data-notifier.ts +0 -124
- package/src/node/extension-data.spec.ts +0 -105
- package/src/node/extension-data.ts +0 -180
- package/src/node/host-protocol.ts +0 -62
- package/src/node/index.ts +0 -37
- package/src/node/module.ts +0 -4
- package/src/node/package-host-extension.ts +0 -20
- package/src/node/package-hosts.spec.ts +0 -54
- package/src/node/package-hosts.ts +0 -202
- package/src/node/package-server-impl.ts +0 -87
- package/src/node/package-switch.ts +0 -80
- package/src/node/receipt-book.spec.ts +0 -41
- package/src/node/receipt-book.ts +0 -40
- package/src/node/relay-bridge.ts +0 -94
- package/src/node/remote/index.ts +0 -5
- package/src/node/remote/pi-directories.ts +0 -49
- package/src/node/remote/port-forwards.ts +0 -148
- package/src/node/remote/remote-hosts.ts +0 -170
- package/src/node/remote/remote-protocol.ts +0 -57
- package/src/node/remote/remote-server-impl.ts +0 -60
- package/src/node/remote/remote.spec.ts +0 -142
- package/src/node/remote-ui-context.spec.ts +0 -68
- package/src/node/remote-ui-context.ts +0 -168
- package/src/node/session-info-util.spec.ts +0 -23
- package/src/node/session-info-util.ts +0 -55
- package/src/node/session-storage/file-session-storage.spec.ts +0 -72
- package/src/node/session-storage/file-session-storage.ts +0 -145
- package/src/node/session-storage/index.ts +0 -3
- package/src/node/session-storage/session-storage-protocol.ts +0 -81
- package/src/node/session-storage/stored-session.spec.ts +0 -80
- package/src/node/session-storage/stored-session.ts +0 -149
- package/src/node/settings-server-impl.ts +0 -33
- package/src/node/settings-store.spec.ts +0 -156
- package/src/node/settings-store.ts +0 -314
- package/src/node/ta-access.spec.ts +0 -36
- package/src/node/ta-access.ts +0 -156
- package/src/node/ta-errors.spec.ts +0 -25
- package/src/node/ta-errors.ts +0 -75
- package/src/node/ta-event-util.spec.ts +0 -29
- package/src/node/ta-event-util.ts +0 -23
- package/src/node/ta-server-impl.ts +0 -341
- package/src/node/ta-session-factory.ts +0 -203
- package/src/node/ta-session-registry.ts +0 -75
- package/src/node/ta-session.ts +0 -240
- package/src/node/terminal-protocol.ts +0 -18
- package/src/node/terminal-service.spec.ts +0 -84
- package/src/node/terminal-service.ts +0 -259
- package/src/node/terminal-util.spec.ts +0 -78
- package/src/node/terminal-util.ts +0 -166
- package/src/node/web-extension-catalog.spec.ts +0 -172
- package/src/node/web-extension-catalog.ts +0 -177
- package/src/node/web-extension-util.ts +0 -144
- package/src/node/working-directory.ts +0 -71
- package/src/node/workspace-files.spec.ts +0 -145
- package/src/node/workspace-files.ts +0 -256
- package/src/node/workspace-protocol.ts +0 -22
- package/src/node/workspace-server-impl.ts +0 -90
- package/src/node/workspace-service.spec.ts +0 -113
- package/src/node/workspace-service.ts +0 -223
- package/src/node/workspace-util.spec.ts +0 -47
- package/src/node/workspace-util.ts +0 -103
|
@@ -15,6 +15,20 @@ export interface TerminalLaunch {
|
|
|
15
15
|
* shell runs on pipes, and {@link PipeDiscipline} does what the terminal would.
|
|
16
16
|
*/
|
|
17
17
|
export declare namespace TerminalUtil {
|
|
18
|
+
/** A full reset of the terminal (RIS): its screen, scrollback and modes. */
|
|
19
|
+
const RESET = "\u001Bc";
|
|
20
|
+
/**
|
|
21
|
+
* At most `max` characters of the end of `text`, from the start of a line when it is cut, so that it
|
|
22
|
+
* does not start inside a control sequence or a character.
|
|
23
|
+
*/
|
|
24
|
+
function tail(text: string, max: number): string;
|
|
25
|
+
/**
|
|
26
|
+
* A shell started by ssh or by an app of the desktop often has no locale (`C`): it then reads
|
|
27
|
+
* Chinese, typed or pasted, as bytes it cannot show (`<ffffffff>`), and programs print `?`. When
|
|
28
|
+
* the locale is not UTF-8, the shell gets one for its characters (LC_CTYPE, and LC_ALL when set):
|
|
29
|
+
* C.UTF-8 where the system has it, else en_US.UTF-8; its messages and formats stay as they were.
|
|
30
|
+
*/
|
|
31
|
+
const UTF8_LOCALE: string;
|
|
18
32
|
/** The command that tells the platform: three lines. */
|
|
19
33
|
const PROBE = "uname -s; command -v script; printf %s \"$SHELL\"";
|
|
20
34
|
function parsePlatform(output: string, fallbackShell: string): TerminalPlatform;
|
|
@@ -17,6 +17,33 @@ const TTY_SEARCH_CHARS = 4096;
|
|
|
17
17
|
*/
|
|
18
18
|
var TerminalUtil;
|
|
19
19
|
(function (TerminalUtil) {
|
|
20
|
+
/** A full reset of the terminal (RIS): its screen, scrollback and modes. */
|
|
21
|
+
TerminalUtil.RESET = '\x1bc';
|
|
22
|
+
/**
|
|
23
|
+
* At most `max` characters of the end of `text`, from the start of a line when it is cut, so that it
|
|
24
|
+
* does not start inside a control sequence or a character.
|
|
25
|
+
*/
|
|
26
|
+
function tail(text, max) {
|
|
27
|
+
if (text.length <= max) {
|
|
28
|
+
return text;
|
|
29
|
+
}
|
|
30
|
+
const cut = text.slice(-max);
|
|
31
|
+
const line = cut.indexOf('\n');
|
|
32
|
+
return line < 0 ? cut : cut.slice(line + 1);
|
|
33
|
+
}
|
|
34
|
+
TerminalUtil.tail = tail;
|
|
35
|
+
/**
|
|
36
|
+
* A shell started by ssh or by an app of the desktop often has no locale (`C`): it then reads
|
|
37
|
+
* Chinese, typed or pasted, as bytes it cannot show (`<ffffffff>`), and programs print `?`. When
|
|
38
|
+
* the locale is not UTF-8, the shell gets one for its characters (LC_CTYPE, and LC_ALL when set):
|
|
39
|
+
* C.UTF-8 where the system has it, else en_US.UTF-8; its messages and formats stay as they were.
|
|
40
|
+
*/
|
|
41
|
+
TerminalUtil.UTF8_LOCALE = [
|
|
42
|
+
'case "${LC_ALL:-${LC_CTYPE:-$LANG}}" in *[Uu][Tt][Ff]-8*|*[Uu][Tt][Ff]8*) ;; *)',
|
|
43
|
+
"ta_utf8=$(locale -a 2>/dev/null | grep -i -x -m 1 -E 'c\\.utf-?8|en_us\\.utf-?8'); ta_utf8=${ta_utf8:-en_US.UTF-8};",
|
|
44
|
+
'[ -n "$LC_ALL" ] && export LC_ALL="$ta_utf8"; export LC_CTYPE="$ta_utf8"; unset ta_utf8;;',
|
|
45
|
+
'esac',
|
|
46
|
+
].join(' ');
|
|
20
47
|
/** The command that tells the platform: three lines. */
|
|
21
48
|
TerminalUtil.PROBE = 'uname -s; command -v script; printf %s "$SHELL"';
|
|
22
49
|
function parsePlatform(output, fallbackShell) {
|
|
@@ -34,8 +61,10 @@ var TerminalUtil;
|
|
|
34
61
|
const boot = [
|
|
35
62
|
// macOS's bash 3.2 otherwise asks to switch to zsh on each start.
|
|
36
63
|
'export TERM=xterm-256color BASH_SILENCE_DEPRECATION_WARNING=1',
|
|
37
|
-
|
|
64
|
+
TerminalUtil.UTF8_LOCALE,
|
|
65
|
+
// Sized before it says its name: a resize that waited for the name comes after this size.
|
|
38
66
|
`stty cols ${cols} rows ${rows} 2>/dev/null`,
|
|
67
|
+
`printf '\\033]1337;ta-tty=%s\\007' "$(tty)"`,
|
|
39
68
|
`exec ${quote(platform.shell)} -i`,
|
|
40
69
|
].join('; ');
|
|
41
70
|
let script;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type CodingAgentOptions, type PiSdk } from '@celljs/ai-coding-agent';
|
|
2
|
-
import type { TaPackageInfo, TaSettingsScope, TaWebExtensionInfo, TaWebExtensionSource } from '@celljs/ta-protocol';
|
|
2
|
+
import type { TaPackageInfo, TaSettingsScope, TaTemporaryFrom, TaTemporaryInfo, TaWebExtensionInfo, TaWebExtensionSource } from '@celljs/ta-protocol';
|
|
3
3
|
import { WebExtensionCatalog } from './host-protocol';
|
|
4
4
|
import { PiDirectories } from './remote/remote-protocol';
|
|
5
|
+
import { type TemporaryRecord, TemporaryStore } from './temporary-packages';
|
|
5
6
|
import { type WebExtensionPackage } from './web-extension-util';
|
|
6
7
|
type PackageManager = InstanceType<PiSdk['DefaultPackageManager']>;
|
|
7
8
|
type SettingsManager = ReturnType<PiSdk['SettingsManager']['create']>;
|
|
@@ -11,6 +12,8 @@ interface Loaded {
|
|
|
11
12
|
settings: SettingsManager;
|
|
12
13
|
trusted: boolean;
|
|
13
14
|
projectDir: string;
|
|
15
|
+
/** pi's, a directory of this machine. */
|
|
16
|
+
cwd: string;
|
|
14
17
|
}
|
|
15
18
|
/**
|
|
16
19
|
* Finds packages, and their web extensions, where pi finds extensions: in the packages that come with ta, in the packages of
|
|
@@ -22,6 +25,24 @@ export declare class WebExtensionCatalogImpl implements WebExtensionCatalog {
|
|
|
22
25
|
protected readonly directories: PiDirectories;
|
|
23
26
|
packages(cwd: string): Promise<TaPackageInfo[]>;
|
|
24
27
|
install(cwd: string, source: string, scope: TaSettingsScope): Promise<void>;
|
|
28
|
+
openTemporary(cwd: string, source: string, from: TaTemporaryFrom): Promise<TaWebExtensionInfo[]>;
|
|
29
|
+
updateTemporary(cwd: string, id: string, change: {
|
|
30
|
+
used?: boolean;
|
|
31
|
+
kept?: boolean;
|
|
32
|
+
}): Promise<void>;
|
|
33
|
+
installTemporary(cwd: string, id: string): Promise<void>;
|
|
34
|
+
/** Removes the temporary packages unused for longer than the retention, not kept; how many went. */
|
|
35
|
+
purgeTemporary(cwd: string): Promise<number>;
|
|
36
|
+
get temporaryRetention(): number;
|
|
37
|
+
setTemporaryRetention(days: number): void;
|
|
38
|
+
protected temporary(): TemporaryStore;
|
|
39
|
+
packageOf(cwd: string, id: string): Promise<TaPackageInfo>;
|
|
40
|
+
/** A package another computer shared by a link, put in Ta's own temporary directory (RelayShareUtil). */
|
|
41
|
+
protected fetchShare(link: string): Promise<string>;
|
|
42
|
+
protected fetch(manager: PackageManager, source: string): Promise<string>;
|
|
43
|
+
protected findTemporary(cwd: string, id: string): Promise<WebExtensionPackage>;
|
|
44
|
+
/** Ta's own directory is deleted, what pi fetched removed, a path of the user's only forgotten. */
|
|
45
|
+
protected dropTemporary(record: TemporaryRecord, manager: PackageManager): Promise<void>;
|
|
25
46
|
removePackage(cwd: string, id: string): Promise<void>;
|
|
26
47
|
list(cwd: string): Promise<TaWebExtensionInfo[]>;
|
|
27
48
|
read(cwd: string, id: string): Promise<TaWebExtensionSource>;
|
|
@@ -37,5 +58,11 @@ export declare class WebExtensionCatalogImpl implements WebExtensionCatalog {
|
|
|
37
58
|
protected resolve(manager: PackageManager): Promise<import("@earendil-works/pi-coding-agent", { with: { "resolution-mode": "import" } }).ResolvedPaths>;
|
|
38
59
|
protected load(location: string): Promise<Loaded>;
|
|
39
60
|
}
|
|
61
|
+
export declare namespace TemporaryUtil {
|
|
62
|
+
/** A source of the file system, as pi takes it: not `npm:`, `git:` or a URL. */
|
|
63
|
+
function isPath(source: string): boolean;
|
|
64
|
+
function expand(path: string): string;
|
|
65
|
+
function info({ source, from, openedAt, usedAt, kept }: TemporaryRecord): TaTemporaryInfo;
|
|
66
|
+
}
|
|
40
67
|
export {};
|
|
41
68
|
//# sourceMappingURL=web-extension-catalog.d.ts.map
|
|
@@ -9,17 +9,20 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.WebExtensionCatalogImpl = void 0;
|
|
12
|
+
exports.TemporaryUtil = exports.WebExtensionCatalogImpl = void 0;
|
|
13
13
|
const node_fs_1 = require("node:fs");
|
|
14
14
|
const node_path_1 = require("node:path");
|
|
15
15
|
const ai_coding_agent_1 = require("@celljs/ai-coding-agent");
|
|
16
16
|
const core_1 = require("@celljs/core");
|
|
17
|
+
const package_archive_1 = require("@celljs/ta-harness/lib/node/package-archive");
|
|
17
18
|
const ta_brand_1 = require("@celljs/ta-harness/lib/node/ta-brand");
|
|
18
19
|
const ta_packages_1 = require("@celljs/ta-harness/lib/node/ta-packages");
|
|
20
|
+
const node_1 = require("@celljs/ta-relay/lib/node");
|
|
19
21
|
const host_protocol_1 = require("./host-protocol");
|
|
20
22
|
const package_switch_1 = require("./package-switch");
|
|
21
23
|
const remote_protocol_1 = require("./remote/remote-protocol");
|
|
22
24
|
const ta_errors_1 = require("./ta-errors");
|
|
25
|
+
const temporary_packages_1 = require("./temporary-packages");
|
|
23
26
|
const web_extension_util_1 = require("./web-extension-util");
|
|
24
27
|
/**
|
|
25
28
|
* Finds packages, and their web extensions, where pi finds extensions: in the packages that come with ta, in the packages of
|
|
@@ -41,6 +44,138 @@ let WebExtensionCatalogImpl = class WebExtensionCatalogImpl {
|
|
|
41
44
|
throw ta_errors_1.TaErrors.invalidArgument(`The project ${cwd} is not trusted.`, 'Trust it first, or install the package for the user.');
|
|
42
45
|
}
|
|
43
46
|
await manager.installAndPersist(trimmed, { local: scope === 'project' });
|
|
47
|
+
if (scope === 'user') {
|
|
48
|
+
const root = manager.getInstalledPath(trimmed, 'user');
|
|
49
|
+
const record = this.temporary().find(candidate => candidate.source === trimmed || (!!root && (0, node_path_1.resolve)(candidate.root) === (0, node_path_1.resolve)(root)));
|
|
50
|
+
if (record) {
|
|
51
|
+
this.temporary().forget(record.root);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async openTemporary(cwd, source, from) {
|
|
56
|
+
const trimmed = typeof source === 'string' ? source.trim() : '';
|
|
57
|
+
if (!trimmed || /[\r\n]/.test(trimmed) || !['market', 'link', 'agent'].includes(from)) {
|
|
58
|
+
throw ta_errors_1.TaErrors.invalidArgument('A temporary package needs a source of one line and where it came from.', 'Pass npm:<name>, git:<repository>, a URL of a repository or a path, and market, link or agent.');
|
|
59
|
+
}
|
|
60
|
+
const loaded = await this.load(cwd);
|
|
61
|
+
const open = loaded.packages.find(pkg => { var _a; return pkg.source === trimmed || (pkg.origin === 'temporary' && ((_a = pkg.temporary) === null || _a === void 0 ? void 0 : _a.source) === trimmed); });
|
|
62
|
+
if (open) {
|
|
63
|
+
if (open.origin === 'temporary') {
|
|
64
|
+
this.temporary().update(open.root, { used: true });
|
|
65
|
+
}
|
|
66
|
+
return web_extension_util_1.WebExtensionUtil.describe(open);
|
|
67
|
+
}
|
|
68
|
+
const root = node_1.RelayShareUtil.is(trimmed)
|
|
69
|
+
? await this.fetchShare(trimmed)
|
|
70
|
+
: TemporaryUtil.isPath(trimmed)
|
|
71
|
+
? (0, node_path_1.resolve)(loaded.cwd, TemporaryUtil.expand(trimmed))
|
|
72
|
+
: await this.fetch(loaded.manager, trimmed);
|
|
73
|
+
if (!(0, node_fs_1.existsSync)((0, node_path_1.join)(root, 'package.json'))) {
|
|
74
|
+
throw ta_errors_1.TaErrors.invalidArgument(`${trimmed} is not a package: ${root} has no package.json.`, 'Pass the directory of a package, or a source of npm or Git.');
|
|
75
|
+
}
|
|
76
|
+
const record = this.temporary().add(root, trimmed, from);
|
|
77
|
+
const infos = web_extension_util_1.WebExtensionUtil.describe({ root, scope: 'user', origin: 'temporary', source: trimmed, temporary: TemporaryUtil.info(record) });
|
|
78
|
+
if (infos.length === 0) {
|
|
79
|
+
await this.dropTemporary(record, loaded.manager);
|
|
80
|
+
throw ta_errors_1.TaErrors.invalidArgument(`${trimmed} has no web extension, so it cannot open without installing.`, 'Install it instead: what it has runs in conversations.');
|
|
81
|
+
}
|
|
82
|
+
return infos;
|
|
83
|
+
}
|
|
84
|
+
async updateTemporary(cwd, id, change) {
|
|
85
|
+
const pkg = await this.findTemporary(cwd, id);
|
|
86
|
+
this.temporary().update(pkg.root, { used: (change === null || change === void 0 ? void 0 : change.used) === true, kept: typeof (change === null || change === void 0 ? void 0 : change.kept) === 'boolean' ? change.kept : undefined });
|
|
87
|
+
}
|
|
88
|
+
async installTemporary(cwd, id) {
|
|
89
|
+
const pkg = await this.findTemporary(cwd, id);
|
|
90
|
+
const store = this.temporary();
|
|
91
|
+
const record = store.find(candidate => candidate.root === pkg.root);
|
|
92
|
+
if (record && store.owns(record.root)) {
|
|
93
|
+
const target = (0, node_path_1.join)(this.agentDir(), 'extensions', (0, node_path_1.basename)(record.root));
|
|
94
|
+
if ((0, node_fs_1.existsSync)(target)) {
|
|
95
|
+
throw ta_errors_1.TaErrors.invalidArgument(`A package is in ${target} already.`, 'Remove that one first, or rename the directory of this one.');
|
|
96
|
+
}
|
|
97
|
+
(0, node_fs_1.mkdirSync)((0, node_path_1.join)(this.agentDir(), 'extensions'), { recursive: true });
|
|
98
|
+
(0, node_fs_1.renameSync)(record.root, target);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
const loaded = await this.load(cwd);
|
|
102
|
+
loaded.manager.addSourceToSettings(pkg.source, { local: false });
|
|
103
|
+
await loaded.settings.flush();
|
|
104
|
+
}
|
|
105
|
+
store.forget(pkg.root);
|
|
106
|
+
}
|
|
107
|
+
/** Removes the temporary packages unused for longer than the retention, not kept; how many went. */
|
|
108
|
+
async purgeTemporary(cwd) {
|
|
109
|
+
const expired = this.temporary().expired();
|
|
110
|
+
if (expired.length === 0) {
|
|
111
|
+
return 0;
|
|
112
|
+
}
|
|
113
|
+
const { manager } = await this.load(cwd);
|
|
114
|
+
for (const record of expired) {
|
|
115
|
+
await this.dropTemporary(record, manager).catch(error => console.warn(`Could not remove the temporary package ${record.root}:`, error));
|
|
116
|
+
}
|
|
117
|
+
return expired.length;
|
|
118
|
+
}
|
|
119
|
+
get temporaryRetention() {
|
|
120
|
+
return this.temporary().retentionDays;
|
|
121
|
+
}
|
|
122
|
+
setTemporaryRetention(days) {
|
|
123
|
+
if (!Number.isInteger(days) || days < 0 || days > 3650) {
|
|
124
|
+
throw ta_errors_1.TaErrors.invalidArgument(`${String(days)} is not a number of days.`, 'Pass a whole number of days from 0 (never) to 3650.');
|
|
125
|
+
}
|
|
126
|
+
this.temporary().retentionDays = days;
|
|
127
|
+
}
|
|
128
|
+
temporary() {
|
|
129
|
+
return new temporary_packages_1.TemporaryStore(this.agentDir());
|
|
130
|
+
}
|
|
131
|
+
async packageOf(cwd, id) {
|
|
132
|
+
const { packages } = await this.load(cwd);
|
|
133
|
+
const pkg = packages.find(candidate => web_extension_util_1.WebExtensionUtil.describePackage(candidate).id === id || web_extension_util_1.WebExtensionUtil.describe(candidate).some(info => info.id === id));
|
|
134
|
+
if (!pkg) {
|
|
135
|
+
throw ta_errors_1.TaErrors.invalidArgument(`No package has the id ${id}.`, 'listPackages lists the ones there are; the package may have moved or gone.');
|
|
136
|
+
}
|
|
137
|
+
return web_extension_util_1.WebExtensionUtil.describePackage(pkg);
|
|
138
|
+
}
|
|
139
|
+
/** A package another computer shared by a link, put in Ta's own temporary directory (RelayShareUtil). */
|
|
140
|
+
async fetchShare(link) {
|
|
141
|
+
var _a;
|
|
142
|
+
const { share } = node_1.RelayShareUtil.parse(link);
|
|
143
|
+
const { data } = await node_1.RelayShareUtil.fetch(link);
|
|
144
|
+
const { top, files } = package_archive_1.PackageArchive.unpack(data);
|
|
145
|
+
const name = (_a = package_archive_1.PackageArchive.nameOf(files)) !== null && _a !== void 0 ? _a : top;
|
|
146
|
+
// The share in the name: two shares of packages of one name do not take each other's place.
|
|
147
|
+
const root = (0, node_path_1.join)(this.temporary().directory, `${package_archive_1.PackageArchive.directoryName(name)}-${share.slice(0, 8).toLowerCase()}`);
|
|
148
|
+
(0, node_fs_1.mkdirSync)(this.temporary().directory, { recursive: true });
|
|
149
|
+
package_archive_1.PackageArchive.extract(files, root);
|
|
150
|
+
return root;
|
|
151
|
+
}
|
|
152
|
+
async fetch(manager, source) {
|
|
153
|
+
await manager.install(source, { local: false });
|
|
154
|
+
const root = manager.getInstalledPath(source, 'user');
|
|
155
|
+
if (!root) {
|
|
156
|
+
throw ta_errors_1.TaErrors.invalidArgument(`${source} installed nowhere pi can find.`, 'Check the source: npm:<name>, git:<repository> or a URL of a repository.');
|
|
157
|
+
}
|
|
158
|
+
return root;
|
|
159
|
+
}
|
|
160
|
+
async findTemporary(cwd, id) {
|
|
161
|
+
const { packages } = await this.load(cwd);
|
|
162
|
+
const pkg = packages.find(candidate => candidate.origin === 'temporary' &&
|
|
163
|
+
(web_extension_util_1.WebExtensionUtil.describePackage(candidate).id === id || web_extension_util_1.WebExtensionUtil.describe(candidate).some(info => info.id === id)));
|
|
164
|
+
if (!pkg) {
|
|
165
|
+
throw ta_errors_1.TaErrors.invalidArgument(`No temporary package has the id ${id}.`, 'listPackages lists the ones there are; it may have been installed, removed or cleared.');
|
|
166
|
+
}
|
|
167
|
+
return pkg;
|
|
168
|
+
}
|
|
169
|
+
/** Ta's own directory is deleted, what pi fetched removed, a path of the user's only forgotten. */
|
|
170
|
+
async dropTemporary(record, manager) {
|
|
171
|
+
const store = this.temporary();
|
|
172
|
+
if (store.owns(record.root)) {
|
|
173
|
+
(0, node_fs_1.rmSync)(record.root, { recursive: true, force: true });
|
|
174
|
+
}
|
|
175
|
+
else if (!TemporaryUtil.isPath(record.source)) {
|
|
176
|
+
await manager.remove(record.source, { local: false });
|
|
177
|
+
}
|
|
178
|
+
store.forget(record.root);
|
|
44
179
|
}
|
|
45
180
|
async removePackage(cwd, id) {
|
|
46
181
|
const { packages, manager } = await this.load(cwd);
|
|
@@ -69,7 +204,7 @@ let WebExtensionCatalogImpl = class WebExtensionCatalogImpl {
|
|
|
69
204
|
return;
|
|
70
205
|
}
|
|
71
206
|
const loaded = await this.load(cwd);
|
|
72
|
-
const pkg = loaded.packages.find(candidate => candidate.origin !== 'builtin' && web_extension_util_1.WebExtensionUtil.describePackage(candidate).id === nameOrId);
|
|
207
|
+
const pkg = loaded.packages.find(candidate => candidate.origin !== 'builtin' && candidate.origin !== 'temporary' && web_extension_util_1.WebExtensionUtil.describePackage(candidate).id === nameOrId);
|
|
73
208
|
if (!pkg) {
|
|
74
209
|
throw ta_errors_1.TaErrors.invalidArgument(`${nameOrId} is neither a package that comes with Ta nor the id of a package.`, 'Pass the name of a built-in package, or an id of listPackages.');
|
|
75
210
|
}
|
|
@@ -87,6 +222,11 @@ let WebExtensionCatalogImpl = class WebExtensionCatalogImpl {
|
|
|
87
222
|
const { name } = web_extension_util_1.WebExtensionUtil.describePackage(pkg);
|
|
88
223
|
throw ta_errors_1.TaErrors.invalidArgument(`${name} comes with Ta and cannot be removed.`, 'Turn it off with setPackageEnabled instead.');
|
|
89
224
|
}
|
|
225
|
+
if (pkg.origin === 'temporary') {
|
|
226
|
+
const record = this.temporary().find(candidate => candidate.root === pkg.root);
|
|
227
|
+
await this.dropTemporary(record !== null && record !== void 0 ? record : { root: pkg.root, source: pkg.source, from: 'agent', openedAt: 0, usedAt: 0, kept: false }, manager);
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
90
230
|
if (pkg.origin === 'directory') {
|
|
91
231
|
(0, node_fs_1.rmSync)(pkg.root, { recursive: true, force: true });
|
|
92
232
|
return;
|
|
@@ -142,16 +282,27 @@ let WebExtensionCatalogImpl = class WebExtensionCatalogImpl {
|
|
|
142
282
|
}
|
|
143
283
|
}
|
|
144
284
|
}
|
|
285
|
+
// Opened without installing: unless installed meanwhile, as a package of the setting.
|
|
286
|
+
const store = new temporary_packages_1.TemporaryStore(agentDir);
|
|
287
|
+
for (const record of store.list()) {
|
|
288
|
+
const installed = found.get(record.root);
|
|
289
|
+
if (installed && installed.origin !== 'temporary') {
|
|
290
|
+
store.forget(record.root);
|
|
291
|
+
}
|
|
292
|
+
else if (!installed) {
|
|
293
|
+
found.set(record.root, { root: record.root, scope: 'user', origin: 'temporary', source: record.source, temporary: TemporaryUtil.info(record) });
|
|
294
|
+
}
|
|
295
|
+
}
|
|
145
296
|
// The others are on while pi loads any of theirs, or, with only a web extension, unless turned off in ta.json.
|
|
146
297
|
const resolved = await this.resolve(manager);
|
|
147
298
|
const webOff = ta_packages_1.TaPackages.disabledWeb(agentDir);
|
|
148
299
|
for (const pkg of found.values()) {
|
|
149
|
-
if (pkg.origin !== 'builtin') {
|
|
300
|
+
if (pkg.origin !== 'builtin' && pkg.origin !== 'temporary') {
|
|
150
301
|
const resources = package_switch_1.PackageSwitch.resourcesOf(resolved, pkg.root);
|
|
151
302
|
pkg.enabled = resources.length > 0 ? package_switch_1.PackageSwitch.isEnabled(resources) : !webOff.has(pkg.root);
|
|
152
303
|
}
|
|
153
304
|
}
|
|
154
|
-
return { packages: [...found.values()], manager, settings: settingsManager, trusted, projectDir: (0, node_path_1.join)(cwd, sdk.CONFIG_DIR_NAME) };
|
|
305
|
+
return { packages: [...found.values()], manager, settings: settingsManager, trusted, projectDir: (0, node_path_1.join)(cwd, sdk.CONFIG_DIR_NAME), cwd };
|
|
155
306
|
}
|
|
156
307
|
};
|
|
157
308
|
exports.WebExtensionCatalogImpl = WebExtensionCatalogImpl;
|
|
@@ -166,4 +317,21 @@ __decorate([
|
|
|
166
317
|
exports.WebExtensionCatalogImpl = WebExtensionCatalogImpl = __decorate([
|
|
167
318
|
(0, core_1.Component)(host_protocol_1.WebExtensionCatalog)
|
|
168
319
|
], WebExtensionCatalogImpl);
|
|
320
|
+
var TemporaryUtil;
|
|
321
|
+
(function (TemporaryUtil) {
|
|
322
|
+
/** A source of the file system, as pi takes it: not `npm:`, `git:` or a URL. */
|
|
323
|
+
function isPath(source) {
|
|
324
|
+
return !/^(npm:|git:|[a-z][a-z0-9+.-]*:\/\/|git@)/i.test(source) && ((0, node_path_1.isAbsolute)(source) || /^(\.{1,2}[\\/]|~[\\/]?|[a-zA-Z]:[\\/])/.test(source));
|
|
325
|
+
}
|
|
326
|
+
TemporaryUtil.isPath = isPath;
|
|
327
|
+
function expand(path) {
|
|
328
|
+
var _a, _b;
|
|
329
|
+
return path.startsWith('~') ? (0, node_path_1.join)((_b = (_a = process.env.HOME) !== null && _a !== void 0 ? _a : process.env.USERPROFILE) !== null && _b !== void 0 ? _b : '', path.slice(1)) : path;
|
|
330
|
+
}
|
|
331
|
+
TemporaryUtil.expand = expand;
|
|
332
|
+
function info({ source, from, openedAt, usedAt, kept }) {
|
|
333
|
+
return { source, from, openedAt, usedAt, kept };
|
|
334
|
+
}
|
|
335
|
+
TemporaryUtil.info = info;
|
|
336
|
+
})(TemporaryUtil || (exports.TemporaryUtil = TemporaryUtil = {}));
|
|
169
337
|
//# sourceMappingURL=web-extension-catalog.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TaPackageInfo, TaWebExtensionInfo } from '@celljs/ta-protocol';
|
|
1
|
+
import type { TaPackageInfo, TaTemporaryInfo, TaWebExtensionInfo } from '@celljs/ta-protocol';
|
|
2
2
|
/** Where a package is and how pi came to load it. */
|
|
3
3
|
export interface WebExtensionPackage {
|
|
4
4
|
root: string;
|
|
@@ -7,6 +7,8 @@ export interface WebExtensionPackage {
|
|
|
7
7
|
source: string;
|
|
8
8
|
/** False for a built-in package that is turned off; default true. */
|
|
9
9
|
enabled?: boolean;
|
|
10
|
+
/** For a temporary package (TemporaryStore). */
|
|
11
|
+
temporary?: TaTemporaryInfo;
|
|
10
12
|
}
|
|
11
13
|
/** Reads the web extensions of packages: `pi.web` of their `package.json`, else the modules in `web/`. */
|
|
12
14
|
export declare namespace WebExtensionUtil {
|
|
@@ -18,5 +20,7 @@ export declare namespace WebExtensionUtil {
|
|
|
18
20
|
function hash(code: string): string;
|
|
19
21
|
/** The subdirectories of an `extensions/` directory that are packages, as pi finds them there. */
|
|
20
22
|
function packageDirectories(directory: string): string[];
|
|
23
|
+
/** The name of the package in its package.json, else of its directory. */
|
|
24
|
+
function nameOf(root: string): string;
|
|
21
25
|
}
|
|
22
26
|
//# sourceMappingURL=web-extension-util.d.ts.map
|
|
@@ -14,23 +14,28 @@ var WebExtensionUtil;
|
|
|
14
14
|
(function (WebExtensionUtil) {
|
|
15
15
|
function describe(pkg) {
|
|
16
16
|
const manifest = readManifest(pkg.root);
|
|
17
|
-
return entries(pkg.root, manifest).map(entry => { var _a, _b; return ({
|
|
17
|
+
return entries(pkg.root, manifest).map(entry => { var _a, _b; var _c, _d; return ({
|
|
18
18
|
id: id(pkg, entry),
|
|
19
|
-
name: (
|
|
19
|
+
name: (_c = manifest === null || manifest === void 0 ? void 0 : manifest.name) !== null && _c !== void 0 ? _c : (0, node_path_1.basename)(pkg.root),
|
|
20
20
|
description: manifest === null || manifest === void 0 ? void 0 : manifest.description,
|
|
21
21
|
version: manifest === null || manifest === void 0 ? void 0 : manifest.version,
|
|
22
22
|
scope: pkg.scope,
|
|
23
23
|
origin: pkg.origin,
|
|
24
|
-
enabled: (
|
|
24
|
+
enabled: (_d = pkg.enabled) !== null && _d !== void 0 ? _d : true,
|
|
25
25
|
source: pkg.source,
|
|
26
26
|
entry,
|
|
27
27
|
hash: hash((0, node_fs_1.readFileSync)((0, node_path_1.join)(pkg.root, entry), 'utf8')),
|
|
28
|
+
title: text((_a = manifest === null || manifest === void 0 ? void 0 : manifest.pi) === null || _a === void 0 ? void 0 : _a.title),
|
|
29
|
+
icon: icon(manifest),
|
|
30
|
+
activation: pkg.temporary || ((_b = manifest === null || manifest === void 0 ? void 0 : manifest.pi) === null || _b === void 0 ? void 0 : _b.webActivation) === 'open' ? 'open' : 'startup',
|
|
31
|
+
...(pkg.temporary ? { temporary: pkg.temporary } : {}),
|
|
28
32
|
}); });
|
|
29
33
|
}
|
|
30
34
|
WebExtensionUtil.describe = describe;
|
|
31
35
|
/** The package itself, whatever it holds. */
|
|
32
36
|
function describePackage(pkg) {
|
|
33
37
|
var _a, _b;
|
|
38
|
+
var _c, _d;
|
|
34
39
|
const manifest = readManifest(pkg.root);
|
|
35
40
|
const resources = PI_RESOURCES.filter(type => holds(pkg.root, manifest, type));
|
|
36
41
|
if (entries(pkg.root, manifest).length > 0) {
|
|
@@ -38,15 +43,19 @@ var WebExtensionUtil;
|
|
|
38
43
|
}
|
|
39
44
|
return {
|
|
40
45
|
id: (0, node_crypto_1.createHash)('sha256').update(`${pkg.scope}\0${pkg.root}`).digest('hex').slice(0, 16),
|
|
41
|
-
name: (
|
|
46
|
+
name: (_c = manifest === null || manifest === void 0 ? void 0 : manifest.name) !== null && _c !== void 0 ? _c : (0, node_path_1.basename)(pkg.root),
|
|
47
|
+
title: text((_a = manifest === null || manifest === void 0 ? void 0 : manifest.pi) === null || _a === void 0 ? void 0 : _a.title),
|
|
48
|
+
summary: text((_b = manifest === null || manifest === void 0 ? void 0 : manifest.pi) === null || _b === void 0 ? void 0 : _b.summary),
|
|
49
|
+
icon: icon(manifest),
|
|
42
50
|
description: manifest === null || manifest === void 0 ? void 0 : manifest.description,
|
|
43
51
|
version: manifest === null || manifest === void 0 ? void 0 : manifest.version,
|
|
44
52
|
scope: pkg.scope,
|
|
45
53
|
origin: pkg.origin,
|
|
46
|
-
enabled: (
|
|
54
|
+
enabled: (_d = pkg.enabled) !== null && _d !== void 0 ? _d : true,
|
|
47
55
|
source: pkg.source,
|
|
48
56
|
root: pkg.root,
|
|
49
57
|
resources,
|
|
58
|
+
...(pkg.temporary ? { temporary: pkg.temporary } : {}),
|
|
50
59
|
};
|
|
51
60
|
}
|
|
52
61
|
WebExtensionUtil.describePackage = describePackage;
|
|
@@ -80,6 +89,17 @@ var WebExtensionUtil;
|
|
|
80
89
|
function id(pkg, entry) {
|
|
81
90
|
return (0, node_crypto_1.createHash)('sha256').update(`${pkg.scope}\0${pkg.root}\0${entry}`).digest('hex').slice(0, 16);
|
|
82
91
|
}
|
|
92
|
+
function icon(manifest) {
|
|
93
|
+
var _a;
|
|
94
|
+
return typeof ((_a = manifest === null || manifest === void 0 ? void 0 : manifest.pi) === null || _a === void 0 ? void 0 : _a.icon) === 'string' && manifest.pi.icon !== '' ? manifest.pi.icon : undefined;
|
|
95
|
+
}
|
|
96
|
+
/** The name of the package in its package.json, else of its directory. */
|
|
97
|
+
function nameOf(root) {
|
|
98
|
+
var _a;
|
|
99
|
+
var _b;
|
|
100
|
+
return (_b = (_a = readManifest(root)) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : (0, node_path_1.basename)(root);
|
|
101
|
+
}
|
|
102
|
+
WebExtensionUtil.nameOf = nameOf;
|
|
83
103
|
function readManifest(root) {
|
|
84
104
|
try {
|
|
85
105
|
return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(root, 'package.json'), 'utf8'));
|
|
@@ -88,6 +108,17 @@ var WebExtensionUtil;
|
|
|
88
108
|
return undefined;
|
|
89
109
|
}
|
|
90
110
|
}
|
|
111
|
+
/** `pi.title` or `pi.summary`: a string, or strings by language; what is neither is left out. */
|
|
112
|
+
function text(value) {
|
|
113
|
+
if (typeof value === 'string') {
|
|
114
|
+
return value.trim() || undefined;
|
|
115
|
+
}
|
|
116
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
const languages = Object.entries(value).filter((entry) => typeof entry[1] === 'string' && entry[1].trim() !== '');
|
|
120
|
+
return languages.length > 0 ? Object.fromEntries(languages) : undefined;
|
|
121
|
+
}
|
|
91
122
|
/** As pi finds them: what `pi` of package.json declares, else the directory of that name. */
|
|
92
123
|
function holds(root, manifest, type) {
|
|
93
124
|
if (manifest === null || manifest === void 0 ? void 0 : manifest.pi) {
|
|
@@ -10,6 +10,8 @@ export interface TaWorkspace {
|
|
|
10
10
|
listDirectory(cwd: string, path: string): Promise<TaDirEntry[]>;
|
|
11
11
|
readFile(cwd: string, path: string): Promise<TaFileContent>;
|
|
12
12
|
writeFile(cwd: string, path: string, text: string): Promise<void>;
|
|
13
|
+
/** Bytes to a file, the folders on its way made; with `append`, after what it holds. */
|
|
14
|
+
uploadFile(cwd: string, path: string, data: Uint8Array, append: boolean): Promise<void>;
|
|
13
15
|
findFiles(cwd: string, query: string, limit?: number): Promise<string[]>;
|
|
14
16
|
runCommand(cwd: string, command: string, args: string[], options?: TaRunCommandOptions): Promise<TaCommandOutput>;
|
|
15
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExecEnvironmentFactory } from '@celljs/ta-exec';
|
|
2
|
-
import { type TaCommandOutput, type TaDirEntry, type TaFileContent, type TaOpenTerminalOptions, type TaRunCommandOptions, type TaTerminalInfo, TaTerminalServer, TaWorkspaceServer } from '@celljs/ta-protocol';
|
|
2
|
+
import { type TaCommandOutput, type TaDirEntry, type TaFileContent, type TaOpenTerminalOptions, type TaRunCommandOptions, type TaTerminalInfo, TaTerminalServer, type TaUploadOptions, TaWorkspaceServer } from '@celljs/ta-protocol';
|
|
3
3
|
import { TaTerminals } from './terminal-protocol';
|
|
4
4
|
import { TaWorkspace, WorkspaceFiles } from './workspace-protocol';
|
|
5
5
|
/** The files and programs of a directory, for the web client; `cwd` defaults to the server's directory. */
|
|
@@ -10,6 +10,7 @@ export declare class TaWorkspaceServerImpl implements TaWorkspaceServer {
|
|
|
10
10
|
listDirectory(path: string, cwd?: string): Promise<TaDirEntry[]>;
|
|
11
11
|
readFile(path: string, cwd?: string): Promise<TaFileContent>;
|
|
12
12
|
writeFile(path: string, text: string, cwd?: string): Promise<void>;
|
|
13
|
+
uploadFile(path: string, data: string, options?: TaUploadOptions): Promise<void>;
|
|
13
14
|
fileUrl(path: string, cwd?: string): Promise<string>;
|
|
14
15
|
findFiles(query: string, cwd?: string, limit?: number): Promise<string[]>;
|
|
15
16
|
runCommand(command: string, args: string[], options?: TaRunCommandOptions): Promise<TaCommandOutput>;
|
|
@@ -29,6 +29,18 @@ let TaWorkspaceServerImpl = class TaWorkspaceServerImpl {
|
|
|
29
29
|
writeFile(path, text, cwd) {
|
|
30
30
|
return ta_errors_1.TaErrors.guard(async () => this.workspace.writeFile(await this.cwd(cwd), path, text));
|
|
31
31
|
}
|
|
32
|
+
uploadFile(path, data, options = {}) {
|
|
33
|
+
return ta_errors_1.TaErrors.guard(async () => {
|
|
34
|
+
if (typeof data !== 'string') {
|
|
35
|
+
throw ta_errors_1.TaErrors.invalidArgument('No bytes to write.', 'Pass the bytes of the file in base64.');
|
|
36
|
+
}
|
|
37
|
+
const bytes = Buffer.from(data, 'base64');
|
|
38
|
+
if (bytes.length > ta_protocol_1.TA_UPLOAD_PART_BYTES) {
|
|
39
|
+
throw ta_errors_1.TaErrors.invalidArgument('The part is too large.', `Send the file in parts of at most ${ta_protocol_1.TA_UPLOAD_PART_BYTES} bytes, each after the first with append.`);
|
|
40
|
+
}
|
|
41
|
+
await this.workspace.uploadFile(await this.cwd(options.cwd), path, bytes, options.append === true);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
32
44
|
fileUrl(path, cwd) {
|
|
33
45
|
return ta_errors_1.TaErrors.guard(async () => this.files.url(await this.cwd(cwd), path));
|
|
34
46
|
}
|
|
@@ -15,6 +15,7 @@ export declare class DefaultTaWorkspace implements TaWorkspace {
|
|
|
15
15
|
listDirectory(cwd: string, path: string): Promise<TaDirEntry[]>;
|
|
16
16
|
readFile(cwd: string, path: string): Promise<TaFileContent>;
|
|
17
17
|
writeFile(cwd: string, path: string, text: string): Promise<void>;
|
|
18
|
+
uploadFile(cwd: string, path: string, data: Uint8Array, append: boolean): Promise<void>;
|
|
18
19
|
findFiles(cwd: string, query: string, limit?: number): Promise<string[]>;
|
|
19
20
|
/**
|
|
20
21
|
* Without a shell: the program gets its arguments as they are. `/bin/sh` only closes the standard
|
|
@@ -56,7 +56,7 @@ let DefaultTaWorkspace = class DefaultTaWorkspace {
|
|
|
56
56
|
if (!(stat === null || stat === void 0 ? void 0 : stat.isDirectory)) {
|
|
57
57
|
throw ta_errors_1.TaErrors.invalidArgument(`${path} is not a directory.`, 'Pass the path of a directory inside the workspace.');
|
|
58
58
|
}
|
|
59
|
-
const entries =
|
|
59
|
+
const entries = await env.readdir(target.absolute);
|
|
60
60
|
const listed = await Promise.all(entries.map(async (entry) => {
|
|
61
61
|
const entryPath = workspace_util_1.WorkspaceUtil.join(target.relative, entry.name);
|
|
62
62
|
if (entry.isDirectory) {
|
|
@@ -97,6 +97,18 @@ let DefaultTaWorkspace = class DefaultTaWorkspace {
|
|
|
97
97
|
}
|
|
98
98
|
await env.writeFile(target.absolute, text);
|
|
99
99
|
}
|
|
100
|
+
async uploadFile(cwd, path, data, append) {
|
|
101
|
+
var _a;
|
|
102
|
+
const env = this.environments.create(cwd);
|
|
103
|
+
const target = workspace_util_1.WorkspaceUtil.inside(env.cwd, path);
|
|
104
|
+
if (!target.relative || ((_a = (await env.stat(target.absolute))) === null || _a === void 0 ? void 0 : _a.isDirectory)) {
|
|
105
|
+
throw ta_errors_1.TaErrors.invalidArgument(`${path || '.'} is a directory.`, 'Pass the path of a file inside the workspace.');
|
|
106
|
+
}
|
|
107
|
+
if (!append) {
|
|
108
|
+
await env.mkdir((0, node_path_1.dirname)(target.absolute));
|
|
109
|
+
}
|
|
110
|
+
await env.writeFile(target.absolute, data, { append });
|
|
111
|
+
}
|
|
100
112
|
async findFiles(cwd, query, limit = DEFAULT_FIND_LIMIT) {
|
|
101
113
|
const env = this.environments.create(cwd);
|
|
102
114
|
return workspace_util_1.WorkspaceUtil.fuzzyFind(await this.listFiles(env), query, Math.max(1, limit));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-host",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
4
4
|
"description": "ta serve: pi sessions for many clients over WebSocket",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cell-component"
|
|
@@ -22,9 +22,10 @@
|
|
|
22
22
|
"files": [
|
|
23
23
|
"lib",
|
|
24
24
|
"esm",
|
|
25
|
-
"src",
|
|
26
25
|
"cell.yml",
|
|
27
|
-
"cell.schema.json"
|
|
26
|
+
"cell.schema.json",
|
|
27
|
+
"!lib/**/*.spec.*",
|
|
28
|
+
"!**/*.map"
|
|
28
29
|
],
|
|
29
30
|
"scripts": {
|
|
30
31
|
"build": "tsc -b && bun ../../scripts/build-esm.ts",
|
|
@@ -33,15 +34,15 @@
|
|
|
33
34
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@celljs/ai-agent": "4.
|
|
37
|
-
"@celljs/ai-coding-agent": "4.
|
|
38
|
-
"@celljs/core": "4.
|
|
39
|
-
"@celljs/rpc": "4.
|
|
40
|
-
"@celljs/ta-exec": "4.
|
|
41
|
-
"@celljs/ta-harness": "4.
|
|
42
|
-
"@celljs/ta-protocol": "4.
|
|
43
|
-
"@celljs/ta-relay": "4.
|
|
44
|
-
"@celljs/web": "4.
|
|
37
|
+
"@celljs/ai-agent": "4.9.0",
|
|
38
|
+
"@celljs/ai-coding-agent": "4.9.0",
|
|
39
|
+
"@celljs/core": "4.9.0",
|
|
40
|
+
"@celljs/rpc": "4.9.0",
|
|
41
|
+
"@celljs/ta-exec": "4.9.0",
|
|
42
|
+
"@celljs/ta-harness": "4.9.0",
|
|
43
|
+
"@celljs/ta-protocol": "4.9.0",
|
|
44
|
+
"@celljs/ta-relay": "4.9.0",
|
|
45
|
+
"@celljs/web": "4.9.0",
|
|
45
46
|
"@earendil-works/pi-coding-agent": "^1.5.0"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
@@ -78,6 +79,10 @@
|
|
|
78
79
|
"import": "./esm/node/session-storage/index.js",
|
|
79
80
|
"default": "./lib/node/session-storage/index.js"
|
|
80
81
|
},
|
|
82
|
+
"./lib/node/sign-in": {
|
|
83
|
+
"import": "./esm/node/sign-in/index.js",
|
|
84
|
+
"default": "./lib/node/sign-in/index.js"
|
|
85
|
+
},
|
|
81
86
|
"./lib/*.js": {
|
|
82
87
|
"import": "./esm/*.js",
|
|
83
88
|
"default": "./lib/*.js"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-server-impl.js","sourceRoot":"","sources":["../../src/node/auth-server-impl.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAA2B,oBAAoB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAsB,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAA4D,YAAY,EAAmB,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACxI,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAOvC,qFAAqF;AACrF,MAAM,SAAS,GAAG,iBAAiB,CAAC;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