@skaile/workspaces 0.47.2 → 0.48.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/CHANGELOG.md +18 -0
- package/dist/asset-manager/index.js +1 -1
- package/dist/{chunk-GWJLWRHB.js → chunk-2RVTJJWY.js} +15 -7
- package/dist/chunk-2RVTJJWY.js.map +1 -0
- package/dist/{chunk-VATPY6IM.js → chunk-7KCG5LBG.js} +72 -12
- package/dist/chunk-7KCG5LBG.js.map +1 -0
- package/dist/{chunk-5N2VOZGJ.js → chunk-7UYT3SNF.js} +2 -2
- package/dist/{chunk-5N2VOZGJ.js.map → chunk-7UYT3SNF.js.map} +1 -1
- package/dist/{chunk-FL4476RJ.js → chunk-DFCX5YY5.js} +3 -3
- package/dist/{chunk-FL4476RJ.js.map → chunk-DFCX5YY5.js.map} +1 -1
- package/dist/{chunk-DDR4OSSM.js → chunk-T2CIVTTC.js} +3 -2
- package/dist/chunk-T2CIVTTC.js.map +1 -0
- package/dist/{chunk-DDSL5XUT.js → chunk-UEHPL3KU.js} +2 -2
- package/dist/{chunk-DDSL5XUT.js.map → chunk-UEHPL3KU.js.map} +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/connectors/config.js +1 -1
- package/dist/connectors/index.js +2 -2
- package/dist/connectors/src/connector-manager.d.ts +6 -1
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/connector-types.d.ts +25 -0
- package/dist/connectors/src/connector-types.d.ts.map +1 -1
- package/dist/connectors/src/materialized-connectors.d.ts.map +1 -1
- package/dist/factory-assets/connectors/deploy.js +2 -2
- package/dist/factory-assets/connectors/devserver.js +2 -2
- package/dist/factory-assets/connectors/flow/adapter.js +2 -2
- package/dist/factory-assets/connectors/flow/run-flow.js +3 -3
- package/dist/factory-assets/connectors/flow.js +2 -2
- package/dist/factory-assets/connectors/git.js +2 -2
- package/dist/factory-assets/connectors/gmail.js +2 -2
- package/dist/factory-assets/connectors/googledrive.js +2 -2
- package/dist/factory-assets/connectors/local.js +2 -2
- package/dist/factory-assets/connectors/mattermost.js +2 -2
- package/dist/factory-assets/connectors/memory.js +2 -2
- package/dist/factory-assets/connectors/minio.js +2 -2
- package/dist/factory-assets/connectors/postgres.js +2 -2
- package/dist/factory-assets/connectors/s3.js +2 -2
- package/dist/factory-assets/connectors/sharepoint.js +2 -2
- package/dist/factory-assets/connectors/sqlite.js +2 -2
- package/dist/factory-assets/connectors/static-server.js +2 -2
- package/dist/factory-assets/connectors/tunnel.js +2 -2
- package/dist/factory-assets/connectors/webdav.js +2 -2
- package/dist/factory-assets/connectors/xstate-store.js +2 -2
- package/dist/factory-assets/connectors/xstate.js +2 -2
- package/dist/runner/index.js +4 -4
- package/dist/runner/src/serve.d.ts +25 -1
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +1 -1
- package/dist/sdk/index.js +4 -4
- package/dist/sdk/runner.js +4 -4
- package/dist/tui/index.js +4 -4
- package/dist/types/src/events.d.ts +4 -0
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-DDR4OSSM.js.map +0 -1
- package/dist/chunk-GWJLWRHB.js.map +0 -1
- package/dist/chunk-VATPY6IM.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.48.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#230](https://github.com/skaile-ai/workspaces/pull/230) [`334bdc8`](https://github.com/skaile-ai/workspaces/commit/334bdc83ae000c3c6c9ec9bc0d99a32687701d12) Thanks [@peteralbert](https://github.com/peteralbert)! - Runner: wire a live connector token-refresh mediator so a backend-auth git mount's token rotates via `host.refresh_credential` (passing the provider link id) instead of failing `not-configured`. Previously the runner pre-minted the token once at wake and never supplied the refresh mediator, so the agent's `git push` 401'd ~1h after each wake.
|
|
8
|
+
|
|
9
|
+
## 0.47.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#227](https://github.com/skaile-ai/workspaces/pull/227) [`2765b64`](https://github.com/skaile-ai/workspaces/commit/2765b64124f805f73b017fbd86927cf1e126cdd9) Thanks [@peteralbert](https://github.com/peteralbert)! - Carry the connector connection name (`label`) from a materialized `CONNECTOR.md`
|
|
14
|
+
into the `resources_available` wire payload. `fromMaterializedConnectorMd` now
|
|
15
|
+
parses `meta.label`, `ConnectorDeclaration`/`ConnectorInfo`/`MountInfo` gain an
|
|
16
|
+
optional `label`, and `splitConnectorsForWire` emits it on both mounts and tool
|
|
17
|
+
connectors — so library-assigned (asset-materialized) connectors show their
|
|
18
|
+
connection name in the platform resource-explorer tab instead of the driver name.
|
|
19
|
+
Backward-compatible: old consumers ignore the new optional field.
|
|
20
|
+
|
|
3
21
|
## 0.47.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AssetManager, MissingManifestError, NON_DEPLOYABLE_KINDS, parseCanonicalLockKey } from '../chunk-
|
|
1
|
+
export { AssetManager, MissingManifestError, NON_DEPLOYABLE_KINDS, parseCanonicalLockKey } from '../chunk-7UYT3SNF.js';
|
|
2
2
|
export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-4VPRAG35.js';
|
|
3
3
|
import '../chunk-G3GODNHM.js';
|
|
4
4
|
import '../chunk-ZAP2BDHG.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { renderGoogleDriveConfig, renderOneDriveConfig, renderWebDAVConfig } from './chunk-OVRSNIKJ.js';
|
|
2
|
-
import { resolveAuthRef, resolveAuth, resolveMountCredentialString, resolveMountCredential } from './chunk-
|
|
2
|
+
import { resolveAuthRef, resolveAuth, resolveMountCredentialString, resolveMountCredential } from './chunk-T2CIVTTC.js';
|
|
3
3
|
import { PortPool, createFsWatcher, RcloneProcessManager, ensureDirMode } from './chunk-4OCZBSBY.js';
|
|
4
4
|
import { pluginRegistry } from './chunk-6E6PKKAD.js';
|
|
5
5
|
import { computeFlowStateFromSnapshots } from './chunk-X46FY45B.js';
|
|
@@ -6003,7 +6003,11 @@ var ConnectorManager = class {
|
|
|
6003
6003
|
/**
|
|
6004
6004
|
* Wrap the user-supplied `TokenMediator` so `reason: 'initial'` calls for an
|
|
6005
6005
|
* `auth: backend` connector first consult the pre-minted credentials. Falls
|
|
6006
|
-
* back to the original mediator for refresh / retry-401 paths.
|
|
6006
|
+
* back to the original mediator for refresh / retry-401 paths. On that
|
|
6007
|
+
* fall-through it attaches the connector's `driver` + `providerLinkId` taken
|
|
6008
|
+
* from the `declaration` (authoritative routing — a connector cannot override
|
|
6009
|
+
* them per call) so the runner mediator can pick the platform refresh `kind`
|
|
6010
|
+
* and `id`.
|
|
6007
6011
|
*
|
|
6008
6012
|
* Namespace fallback: when no `connector:<id>` pre-mint entry exists, the
|
|
6009
6013
|
* lookup retries under the legacy `mount:<id>` key. This is a defence-in-depth
|
|
@@ -6012,9 +6016,12 @@ var ConnectorManager = class {
|
|
|
6012
6016
|
* When the fallback fires, a `warn` log signals that the platform writer is
|
|
6013
6017
|
* filing credentials under the pre-unified namespace key.
|
|
6014
6018
|
*/
|
|
6015
|
-
buildWrappedMediator() {
|
|
6019
|
+
buildWrappedMediator(declaration) {
|
|
6016
6020
|
const original = this.tokenMediator;
|
|
6017
6021
|
const preMinted = this.preMintedSecrets;
|
|
6022
|
+
const driver = declaration.driver;
|
|
6023
|
+
const optionsLink = declaration.options?.providerLinkId;
|
|
6024
|
+
const providerLinkId = declaration.providerLinkId ?? (typeof optionsLink === "string" ? optionsLink : void 0);
|
|
6018
6025
|
if (!preMinted) return original;
|
|
6019
6026
|
return async ({ connectorId, reason }) => {
|
|
6020
6027
|
if (reason === "initial") {
|
|
@@ -6047,7 +6054,7 @@ var ConnectorManager = class {
|
|
|
6047
6054
|
message: `Connector '${connectorId}' requested ${reason} token but no pre-mint is available and no runner-side mediator is wired.`
|
|
6048
6055
|
};
|
|
6049
6056
|
}
|
|
6050
|
-
return original({ connectorId, reason });
|
|
6057
|
+
return original({ connectorId, reason, driver, providerLinkId });
|
|
6051
6058
|
};
|
|
6052
6059
|
}
|
|
6053
6060
|
/**
|
|
@@ -6133,7 +6140,7 @@ var ConnectorManager = class {
|
|
|
6133
6140
|
const ctx = {
|
|
6134
6141
|
secrets: this.chain ?? this.secrets,
|
|
6135
6142
|
// Both filesystem and tool faces use this for the auth: backend initial-mint path.
|
|
6136
|
-
tokenMediator: this.buildWrappedMediator(),
|
|
6143
|
+
tokenMediator: this.buildWrappedMediator(declaration),
|
|
6137
6144
|
abortSignal: this.disposeController.signal
|
|
6138
6145
|
};
|
|
6139
6146
|
if (this.chain && connector.describeFields && declaration.auth !== "backend") {
|
|
@@ -6748,6 +6755,7 @@ var ConnectorManager = class {
|
|
|
6748
6755
|
return [...this.active.entries()].map(([id, entry]) => ({
|
|
6749
6756
|
id,
|
|
6750
6757
|
driver: entry.connector.name,
|
|
6758
|
+
label: entry.declaration.label,
|
|
6751
6759
|
access: entry.declaration.access,
|
|
6752
6760
|
mountPath: entry.handle.mountPath,
|
|
6753
6761
|
// Surfaced so wire projections (splitConnectorsForWire) can distinguish a
|
|
@@ -8774,5 +8782,5 @@ function createConnector() {
|
|
|
8774
8782
|
}
|
|
8775
8783
|
|
|
8776
8784
|
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, DEFAULT_REACTIVE_COOLDOWN_MS, DeployConnector, DevServerConnector, FleetHealthGate, FlowAdapter, GitConnector, GmailConnector, GoogleDriveConnector, LocalConnector, LogBuffer, ManagedGitconfigCollisionError, MattermostConnector, MemoryConnector, MinIOConnector, NOT_READY_SENTINEL, PROACTIVE_RCLONE_REFRESH_MARGIN_MS, PostgresConnector, RoMountPlaceholderBarrier, S3Connector, SQLiteConnector, SharePointConnector, StaticServerConnector, TunnelConnector, WebDAVConnector, XStateConnector, XStateStoreConnector, __test, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, createConnector, createConnector10, createConnector11, createConnector12, createConnector13, createConnector14, createConnector15, createConnector16, createConnector17, createConnector18, createConnector19, createConnector2, createConnector3, createConnector4, createConnector5, createConnector6, createConnector7, createConnector8, createConnector9, createRcloneTokenRefresh, createWorktree, defaultMountPlaceholderBarrier, defaultSpawn, ensureFleetMounted, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, probeFleetHealth, readGitSyncStatus, registerBuiltinConnectors, removeMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock };
|
|
8777
|
-
//# sourceMappingURL=chunk-
|
|
8778
|
-
//# sourceMappingURL=chunk-
|
|
8785
|
+
//# sourceMappingURL=chunk-2RVTJJWY.js.map
|
|
8786
|
+
//# sourceMappingURL=chunk-2RVTJJWY.js.map
|