@tangle-network/agent-profile-materialize 1.1.112 → 1.1.114
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/index.js +7 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1762,6 +1762,7 @@ const OPENCODE_NATIVE_TOOL_IDS = [
|
|
|
1762
1762
|
const OPENCODE_NATIVE_TOOL_ID_SET = new Set(OPENCODE_NATIVE_TOOL_IDS);
|
|
1763
1763
|
/** Permission IDs accepted by OpenCode (tools except read, plus special permissions). */
|
|
1764
1764
|
const OPENCODE_NATIVE_PERMISSION_IDS = [
|
|
1765
|
+
"*",
|
|
1765
1766
|
"apply_patch",
|
|
1766
1767
|
"bash",
|
|
1767
1768
|
"codesearch",
|
|
@@ -1792,6 +1793,7 @@ function openCodeToolName(name) {
|
|
|
1792
1793
|
return openCodeNativeToolId(name);
|
|
1793
1794
|
}
|
|
1794
1795
|
function openCodePermissionName(name) {
|
|
1796
|
+
if (name === "*") return "*";
|
|
1795
1797
|
if (name.includes("*") || name.includes("?")) return void 0;
|
|
1796
1798
|
const normalized = normalizedControlName(name);
|
|
1797
1799
|
if (["write", "edit"].includes(normalized)) return "edit";
|
|
@@ -1980,6 +1982,10 @@ function materializeOpenCodeControls(toolEntries, permissionEntries, add, unsupp
|
|
|
1980
1982
|
return false;
|
|
1981
1983
|
});
|
|
1982
1984
|
const enforceablePermissions = permissionEntries.filter(([name, policy]) => {
|
|
1985
|
+
if (name === "*" && policy !== "deny") {
|
|
1986
|
+
unsupported("permissions", "opencode: the default permission \"*\" supports only \"deny\"; grant named tools or declared MCP tools explicitly");
|
|
1987
|
+
return false;
|
|
1988
|
+
}
|
|
1983
1989
|
if (normalizedControlName(name) !== "read") return true;
|
|
1984
1990
|
if (!permissionAllowsEverything(policy)) unsupported("permissions", "opencode: read access cannot be denied or approval-gated");
|
|
1985
1991
|
return false;
|
|
@@ -2348,6 +2354,7 @@ function lowerProfilePrompt(profile, harness, binds, instructionsRoot, builder)
|
|
|
2348
2354
|
add(primaryAgentPath, markMaterializerSubagent(primaryAgentPath, [
|
|
2349
2355
|
"---",
|
|
2350
2356
|
"mode: primary",
|
|
2357
|
+
...profile.description === void 0 ? [] : [`description: ${JSON.stringify(profile.description)}`],
|
|
2351
2358
|
"---",
|
|
2352
2359
|
systemPrompt,
|
|
2353
2360
|
""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-profile-materialize",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.114",
|
|
4
4
|
"description": "Materialize an AgentProfile into the native per-harness workspace files (the one shared materializer for cli-bridge, agent-container, and VB).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@tangle-network/agent-interface": "^5.10.23"
|
|
38
38
|
},
|
|
39
39
|
"tangleRelease": {
|
|
40
|
-
"sourceSha": "
|
|
41
|
-
"mergedAt": "2026-11-
|
|
40
|
+
"sourceSha": "1149d593998c5aa2ec8e0e9716164445cfd82f96",
|
|
41
|
+
"mergedAt": "2026-11-14T23:49:42-08:00"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsdown",
|