@akalsey/sapience 0.2.0 → 0.2.1
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/dist/src/service.js +2 -0
- package/package.json +1 -1
package/dist/src/service.js
CHANGED
|
@@ -42,6 +42,8 @@ export default definePluginEntry({
|
|
|
42
42
|
name: "Sapience",
|
|
43
43
|
description: "Autonomy layer: routes sapience-thinking proposals through tier function, calibrates to human preferences, delivers weekly digest",
|
|
44
44
|
register(api) {
|
|
45
|
+
if (!api.runtime?.agent?.resolveAgentWorkspaceDir)
|
|
46
|
+
return;
|
|
45
47
|
const workspaceDir = api.runtime.agent.resolveAgentWorkspaceDir(api.pluginConfig);
|
|
46
48
|
const config = mergeConfig(api.pluginConfig, workspaceDir);
|
|
47
49
|
// Write presence marker synchronously so sapience-thinking's .present check is race-free
|