@atolis-hq/wake 0.4.82 → 0.4.83
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.
|
@@ -168,9 +168,9 @@ function sameRevision(left, right) {
|
|
|
168
168
|
return left.workItemId === right.workItemId && left.revisionId === right.revisionId;
|
|
169
169
|
}
|
|
170
170
|
function contextExport(share, contextScope) {
|
|
171
|
-
|
|
171
|
+
// Only trigger invocations carry a shared context; for a WorkItem run the work-item scope already
|
|
172
|
+
// is the artifact context, so a share request is a no-op rather than a failed write.
|
|
173
|
+
if (share !== true || contextScope === undefined)
|
|
172
174
|
return {};
|
|
173
|
-
if (contextScope === undefined)
|
|
174
|
-
throw new Error('This run has no trusted shared context');
|
|
175
175
|
return { contextExport: artifactSharedContextNameSchema.parse(contextScope) };
|
|
176
176
|
}
|
|
@@ -102,7 +102,7 @@ export function createArtifactMcpServer(artifacts, session) {
|
|
|
102
102
|
share: z
|
|
103
103
|
.boolean()
|
|
104
104
|
.optional()
|
|
105
|
-
.describe("Select this revision for export to the run's trusted context after successful acceptance."),
|
|
105
|
+
.describe("Select this revision for export to the run's trusted shared context after successful acceptance. Only recurring trigger invocations have one; elsewhere (including plan.md) it has no effect, and the artifact stays readable by later stages of the same WorkItem."),
|
|
106
106
|
},
|
|
107
107
|
}, async ({ path, content, encoding, mediaType, share }) => {
|
|
108
108
|
await session.assertActive();
|
|
@@ -124,6 +124,6 @@ export function resolveWakeVersion(options = {}) {
|
|
|
124
124
|
return `g${headHash.slice(0, 7)}`;
|
|
125
125
|
return '0.1.0-dev';
|
|
126
126
|
}
|
|
127
|
-
export const wakeVersion = "v0.4.
|
|
127
|
+
export const wakeVersion = "v0.4.83";
|
|
128
128
|
/** The registry-installable version used by packaged sandbox images. */
|
|
129
129
|
export const wakePackageVersion = packageVersion(defaultRepoRoot) ?? wakeVersion;
|