@integrity-labs/agt-cli 0.10.0 → 0.10.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/bin/agt.js +8 -8
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-UWH2MMKY.js → chunk-N7TRKQMT.js} +54 -9
- package/dist/chunk-N7TRKQMT.js.map +1 -0
- package/dist/{chunk-2TSCVXHE.js → chunk-QU7FBXH3.js} +4 -2
- package/dist/chunk-QU7FBXH3.js.map +1 -0
- package/dist/{claude-scheduler-VFBZFE6U.js → claude-scheduler-7PVWQHWU.js} +2 -2
- package/dist/lib/manager-worker.js +26 -3
- package/dist/lib/manager-worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2TSCVXHE.js.map +0 -1
- package/dist/chunk-UWH2MMKY.js.map +0 -1
- /package/dist/{claude-scheduler-VFBZFE6U.js.map → claude-scheduler-7PVWQHWU.js.map} +0 -0
|
@@ -464,12 +464,30 @@ you need context about who you work for or how to operate.
|
|
|
464
464
|
|
|
465
465
|
${body}`;
|
|
466
466
|
}
|
|
467
|
+
function buildReportsToSection(reportsTo) {
|
|
468
|
+
if (!reportsTo)
|
|
469
|
+
return "";
|
|
470
|
+
const typeLabel = reportsTo.type === "agent" ? "Agent" : "Person";
|
|
471
|
+
let section = `
|
|
472
|
+
## Reports To
|
|
473
|
+
|
|
474
|
+
- **${reportsTo.name}** (${typeLabel})`;
|
|
475
|
+
if (reportsTo.title)
|
|
476
|
+
section += `
|
|
477
|
+
- Title: ${reportsTo.title}`;
|
|
478
|
+
if (reportsTo.description)
|
|
479
|
+
section += `
|
|
480
|
+
- ${reportsTo.description}`;
|
|
481
|
+
section += "\n";
|
|
482
|
+
return section;
|
|
483
|
+
}
|
|
467
484
|
function generateSoulMd(input) {
|
|
468
|
-
const { frontmatter, role, description, resolvedChannels, team, knowledge } = input;
|
|
485
|
+
const { frontmatter, role, description, resolvedChannels, team, knowledge, reportsTo } = input;
|
|
469
486
|
const channelList = resolvedChannels?.length ? resolvedChannels.join(", ") : "none";
|
|
470
487
|
const roleDisplay = role ?? "Agent";
|
|
471
488
|
const desc = description?.trim();
|
|
472
489
|
const knowledgeSection = buildKnowledgeSection(knowledge);
|
|
490
|
+
const reportsToSection = buildReportsToSection(reportsTo);
|
|
473
491
|
return `# ${frontmatter.display_name}
|
|
474
492
|
|
|
475
493
|
You are **${frontmatter.display_name}**, **${roleDisplay}**${team ? ` at **${team.name}**` : ""}.
|
|
@@ -479,7 +497,7 @@ ${desc}
|
|
|
479
497
|
- Owner: ${frontmatter.owner.name}
|
|
480
498
|
- Environment: ${frontmatter.environment}
|
|
481
499
|
- Channels: ${channelList}
|
|
482
|
-
${knowledgeSection}`;
|
|
500
|
+
${reportsToSection}${knowledgeSection}`;
|
|
483
501
|
}
|
|
484
502
|
function generateAgentsMd(input) {
|
|
485
503
|
const { frontmatter, role, description, team } = input;
|
|
@@ -688,7 +706,8 @@ var openclawAdapter = {
|
|
|
688
706
|
description: input.agent.description,
|
|
689
707
|
resolvedChannels: input.resolvedChannels,
|
|
690
708
|
team: input.team,
|
|
691
|
-
knowledge: knowledgeRefs.length > 0 ? knowledgeRefs : void 0
|
|
709
|
+
knowledge: knowledgeRefs.length > 0 ? knowledgeRefs : void 0,
|
|
710
|
+
reportsTo: input.reportsTo
|
|
692
711
|
};
|
|
693
712
|
const artifacts = [
|
|
694
713
|
{ relativePath: "openclaw.json5", content: serializeOpenClawConfig(config) },
|
|
@@ -1916,8 +1935,29 @@ ${seed.trim()}
|
|
|
1916
1935
|
|
|
1917
1936
|
`;
|
|
1918
1937
|
}
|
|
1938
|
+
function buildReportsToSection2(reportsTo) {
|
|
1939
|
+
if (!reportsTo)
|
|
1940
|
+
return "";
|
|
1941
|
+
const typeLabel = reportsTo.type === "agent" ? "Agent" : "Person";
|
|
1942
|
+
let section = `## Reports To
|
|
1943
|
+
|
|
1944
|
+
- **${reportsTo.name}** (${typeLabel})`;
|
|
1945
|
+
if (reportsTo.title)
|
|
1946
|
+
section += `
|
|
1947
|
+
- Title: ${reportsTo.title}`;
|
|
1948
|
+
if (reportsTo.description)
|
|
1949
|
+
section += `
|
|
1950
|
+
- ${reportsTo.description}`;
|
|
1951
|
+
section += `
|
|
1952
|
+
|
|
1953
|
+
Escalate blockers, questions, and important decisions to your manager.
|
|
1954
|
+
When your manager sends you a message, prioritize it.
|
|
1955
|
+
|
|
1956
|
+
`;
|
|
1957
|
+
return section;
|
|
1958
|
+
}
|
|
1919
1959
|
function generateClaudeMd(input) {
|
|
1920
|
-
const { frontmatter, role, description, resolvedChannels, team, consoleUrl, hasQmd, integrations, knowledge, timezone, personalitySeed } = input;
|
|
1960
|
+
const { frontmatter, role, description, resolvedChannels, team, consoleUrl, hasQmd, integrations, knowledge, timezone, reportsTo, personalitySeed } = input;
|
|
1921
1961
|
const channelList = resolvedChannels?.length ? resolvedChannels.join(", ") : "none";
|
|
1922
1962
|
const roleDisplay = role ?? "Agent";
|
|
1923
1963
|
const desc = description?.trim();
|
|
@@ -1926,6 +1966,7 @@ function generateClaudeMd(input) {
|
|
|
1926
1966
|
const integrationsSection = buildIntegrationsSection(integrations);
|
|
1927
1967
|
const knowledgeSection = buildKnowledgeSection2(knowledge);
|
|
1928
1968
|
const personalitySection = buildPersonalitySection(personalitySeed);
|
|
1969
|
+
const reportsToSection = buildReportsToSection2(reportsTo);
|
|
1929
1970
|
return `# ${frontmatter.display_name}
|
|
1930
1971
|
|
|
1931
1972
|
You are **${frontmatter.display_name}**, **${roleDisplay}**${team ? ` at **${team.name}**` : ""}.
|
|
@@ -1981,7 +2022,7 @@ first to load your recent board state. This gives you context about completed an
|
|
|
1981
2022
|
in-progress items so you can answer accurately.
|
|
1982
2023
|
|
|
1983
2024
|
${memorySection}
|
|
1984
|
-
${integrationsSection}${knowledgeSection}## Development Workflow
|
|
2025
|
+
${reportsToSection}${integrationsSection}${knowledgeSection}## Development Workflow
|
|
1985
2026
|
|
|
1986
2027
|
### Repository Management
|
|
1987
2028
|
|
|
@@ -2798,12 +2839,16 @@ function setActiveTeam(slug) {
|
|
|
2798
2839
|
config.active_team = slug;
|
|
2799
2840
|
saveConfig(config);
|
|
2800
2841
|
}
|
|
2842
|
+
function getHost() {
|
|
2843
|
+
return process.env["AGT_HOST"];
|
|
2844
|
+
}
|
|
2801
2845
|
var AGT_HOST = process.env["AGT_HOST"];
|
|
2802
2846
|
function requireHost() {
|
|
2803
|
-
|
|
2847
|
+
const host = getHost();
|
|
2848
|
+
if (!host) {
|
|
2804
2849
|
throw new Error("AGT_HOST is not set. Export it to point at the Augmented API (e.g. export AGT_HOST=https://your-api.example.com)");
|
|
2805
2850
|
}
|
|
2806
|
-
return
|
|
2851
|
+
return host;
|
|
2807
2852
|
}
|
|
2808
2853
|
|
|
2809
2854
|
// src/lib/api-client.ts
|
|
@@ -4834,7 +4879,7 @@ export {
|
|
|
4834
4879
|
getApiKey,
|
|
4835
4880
|
getActiveTeam,
|
|
4836
4881
|
setActiveTeam,
|
|
4837
|
-
|
|
4882
|
+
getHost,
|
|
4838
4883
|
requireHost,
|
|
4839
4884
|
exchangeApiKey,
|
|
4840
4885
|
ApiError,
|
|
@@ -4861,4 +4906,4 @@ export {
|
|
|
4861
4906
|
detectDrift,
|
|
4862
4907
|
provision
|
|
4863
4908
|
};
|
|
4864
|
-
//# sourceMappingURL=chunk-
|
|
4909
|
+
//# sourceMappingURL=chunk-N7TRKQMT.js.map
|