executor 1.2.4-beta.2 → 1.2.4-beta.4
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.md +1 -0
- package/bin/executor.mjs +37 -5
- package/package.json +1 -1
- package/resources/web/assets/{highlighted-body-TPN3WLV5-zMnrvDEs.js → highlighted-body-TPN3WLV5-BNzQ45td.js} +1 -1
- package/resources/web/assets/{index-DxR_-y39.js → index-C81r_B2h.js} +2 -2
- package/resources/web/assets/{mermaid-O7DHMXV3-CB_QyhtV.js → mermaid-O7DHMXV3-DYFvhbe6.js} +4 -4
- package/resources/web/index.html +1 -1
package/README.md
CHANGED
|
@@ -349,6 +349,7 @@ If you are exploring the repo, these are the directories that matter most:
|
|
|
349
349
|
- One-time npm setup: either configure npm trusted publishing for `RhysSullivan/executor` with the workflow file `.github/workflows/publish-executor-package.yml`, or add a GitHub Actions secret named `NPM_TOKEN` that can publish the `executor` package.
|
|
350
350
|
- Stable releases use a normal semver like `1.2.3` and publish to npm under `latest`.
|
|
351
351
|
- Beta releases use a prerelease semver like `1.3.0-beta.1` and publish to npm under `beta`.
|
|
352
|
+
- When a release should become an upgrade test fixture, capture a real workspace snapshot with `bun run fixture:release:capture -- ...` and commit it under [`packages/platform/control-plane/src/runtime/__fixtures__`](./packages/platform/control-plane/src/runtime/__fixtures__/README.md).
|
|
352
353
|
|
|
353
354
|
## Project status
|
|
354
355
|
|
package/bin/executor.mjs
CHANGED
|
@@ -291997,9 +291997,6 @@ var replacePathParameters = (input) => input.pathTemplate.replaceAll(/\{([^}]+)\
|
|
|
291997
291997
|
return encodeURIComponent(values4[0]);
|
|
291998
291998
|
});
|
|
291999
291999
|
var resolveGoogleDiscoveryBaseUrl = (input) => {
|
|
292000
|
-
if (input.baseUrl) {
|
|
292001
|
-
return new URL(input.baseUrl).toString();
|
|
292002
|
-
}
|
|
292003
292000
|
return new URL(input.providerData.invocation.servicePath || "", input.providerData.invocation.rootUrl).toString();
|
|
292004
292001
|
};
|
|
292005
292002
|
var responseHeadersRecord2 = (response) => {
|
|
@@ -292237,8 +292234,7 @@ var googleDiscoverySourceAdapter = {
|
|
|
292237
292234
|
parameters: providerData.invocation.parameters
|
|
292238
292235
|
});
|
|
292239
292236
|
const url2 = new URL(resolvedPath.replace(/^\//, ""), resolveGoogleDiscoveryBaseUrl({
|
|
292240
|
-
providerData
|
|
292241
|
-
baseUrl: input.source.endpoint
|
|
292237
|
+
providerData
|
|
292242
292238
|
}));
|
|
292243
292239
|
const headers = {
|
|
292244
292240
|
...bindingConfig.defaultHeaders
|
|
@@ -364582,6 +364578,38 @@ var createLocalControlPlanePersistence = (context7, fileSystem) => ({
|
|
|
364582
364578
|
close: async () => {}
|
|
364583
364579
|
});
|
|
364584
364580
|
|
|
364581
|
+
// packages/platform/control-plane/src/runtime/catalog/source/reconcile.ts
|
|
364582
|
+
var shouldReconcileSource = (source2) => source2.enabled && source2.status === "connected" && getSourceAdapterForSource(source2).catalogKind !== "internal";
|
|
364583
|
+
var reconcileMissingSourceCatalogArtifacts = (input) => gen2(function* () {
|
|
364584
|
+
const runtimeLocalWorkspace = yield* RuntimeLocalWorkspaceService;
|
|
364585
|
+
const sourceStore = yield* RuntimeSourceStoreService;
|
|
364586
|
+
const sourceArtifactStore = yield* SourceArtifactStore;
|
|
364587
|
+
const sourceCatalogSync = yield* RuntimeSourceCatalogSyncService;
|
|
364588
|
+
const sources = yield* sourceStore.loadSourcesInWorkspace(input.workspaceId, {
|
|
364589
|
+
actorAccountId: input.actorAccountId
|
|
364590
|
+
});
|
|
364591
|
+
for (const source2 of sources) {
|
|
364592
|
+
if (!shouldReconcileSource(source2)) {
|
|
364593
|
+
continue;
|
|
364594
|
+
}
|
|
364595
|
+
const artifact = yield* sourceArtifactStore.read({
|
|
364596
|
+
context: runtimeLocalWorkspace.context,
|
|
364597
|
+
sourceId: source2.id
|
|
364598
|
+
});
|
|
364599
|
+
if (artifact !== null) {
|
|
364600
|
+
continue;
|
|
364601
|
+
}
|
|
364602
|
+
yield* sourceCatalogSync.sync({
|
|
364603
|
+
source: source2,
|
|
364604
|
+
actorAccountId: input.actorAccountId
|
|
364605
|
+
}).pipe(catchAll2(() => _void));
|
|
364606
|
+
}
|
|
364607
|
+
}).pipe(withSpan2("source.catalog.reconcile_missing", {
|
|
364608
|
+
attributes: {
|
|
364609
|
+
"executor.workspace.id": input.workspaceId
|
|
364610
|
+
}
|
|
364611
|
+
}));
|
|
364612
|
+
|
|
364585
364613
|
// packages/platform/control-plane/src/runtime/execution/state.ts
|
|
364586
364614
|
class ResumeUnsupportedError extends TaggedError("ResumeUnsupportedError") {
|
|
364587
364615
|
}
|
|
@@ -364652,6 +364680,10 @@ var createControlPlaneRuntime = (options9) => gen2(function* () {
|
|
|
364652
364680
|
});
|
|
364653
364681
|
const managedRuntime = make85(concreteRuntimeLayer);
|
|
364654
364682
|
yield* managedRuntime.runtimeEffect;
|
|
364683
|
+
yield* reconcileMissingSourceCatalogArtifacts({
|
|
364684
|
+
workspaceId: localInstallation.workspaceId,
|
|
364685
|
+
actorAccountId: localInstallation.accountId
|
|
364686
|
+
}).pipe(provide2(managedRuntime), catchAll2(() => _void));
|
|
364655
364687
|
return {
|
|
364656
364688
|
persistence,
|
|
364657
364689
|
localInstallation,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,R as c,M as p,B as x}from"./mermaid-O7DHMXV3-
|
|
1
|
+
import{r,R as c,M as p,B as x}from"./mermaid-O7DHMXV3-DYFvhbe6.js";import{j as d}from"./index-CRuElBS1.js";var R=({code:i,language:e,raw:t,className:g,startLine:u,...m})=>{let{shikiTheme:o}=r.useContext(c),a=p(),[n,s]=r.useState(t);return r.useEffect(()=>{if(!a){s(t);return}let l=a.highlight({code:i,language:e,themes:o},h=>{s(h)});l&&s(l)},[i,e,o,a,t]),d.jsx(x,{className:g,language:e,result:n,startLine:u,...m})};export{R as HighlightedCodeBlockBody};
|