@docyrus/docyrus 0.2.1 → 0.2.2
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/main.js +7 -68
- package/main.js.map +2 -2
- package/package.json +1 -1
- package/resources/pi-agent/skills/docyrus-platform/references/automation-and-workflows.md +49 -26
- package/resources/pi-agent/skills/docyrus-platform/references/developer-tools.md +1 -1
- package/resources/pi-agent/skills/docyrus-platform/references/docyrus-cli-usage.md +223 -0
- package/resources/pi-agent/skills/docyrus-platform/references/integrations-and-events.md +3 -0
package/main.js
CHANGED
|
@@ -139453,7 +139453,7 @@ function buildInputSchema(args2, env2, options2) {
|
|
|
139453
139453
|
// package.json
|
|
139454
139454
|
var package_default = {
|
|
139455
139455
|
name: "@docyrus/docyrus",
|
|
139456
|
-
version: "0.2.
|
|
139456
|
+
version: "0.2.2",
|
|
139457
139457
|
private: false,
|
|
139458
139458
|
description: "Docyrus API CLI",
|
|
139459
139459
|
main: "./main.js",
|
|
@@ -142300,7 +142300,8 @@ var ACTION_NODE_TYPES = [
|
|
|
142300
142300
|
"generate-document",
|
|
142301
142301
|
"ai-prompt",
|
|
142302
142302
|
"ai-agent",
|
|
142303
|
-
"execute-script"
|
|
142303
|
+
"execute-script",
|
|
142304
|
+
"wait-for"
|
|
142304
142305
|
];
|
|
142305
142306
|
var HTTP_REQUEST_METHODS = ["GET", "POST", "PUT", "PATCH", "DELETE"];
|
|
142306
142307
|
async function getAutomationRunContext(dependencies) {
|
|
@@ -142507,6 +142508,7 @@ function nodeFlags(type, options2) {
|
|
|
142507
142508
|
case "ai-prompt":
|
|
142508
142509
|
case "ai-agent":
|
|
142509
142510
|
case "execute-script":
|
|
142511
|
+
case "wait-for":
|
|
142510
142512
|
return base;
|
|
142511
142513
|
}
|
|
142512
142514
|
}
|
|
@@ -157184,11 +157186,11 @@ function createSpinner(message) {
|
|
|
157184
157186
|
|
|
157185
157187
|
// src/services/piAgentLauncher.ts
|
|
157186
157188
|
var DOCYRUS_EXTERNAL_SKILL_SOURCE = "docyrus/agent-skills";
|
|
157187
|
-
var DOCYRUS_PACKAGED_PLATFORM_SKILL_NAME = "docyrus-platform";
|
|
157188
157189
|
var DOCYRUS_MIGRATED_SKILL_NAMES = [
|
|
157189
157190
|
"docyrus-app-dev",
|
|
157190
157191
|
"docyrus-api-dev",
|
|
157191
|
-
"docyrus-cli-app"
|
|
157192
|
+
"docyrus-cli-app",
|
|
157193
|
+
"docyrus-platform"
|
|
157192
157194
|
];
|
|
157193
157195
|
var DOCYRUS_EXTERNAL_SKILL_AGENT_IDS = [
|
|
157194
157196
|
"claude-code",
|
|
@@ -157421,10 +157423,7 @@ async function syncTrackedSkills(params) {
|
|
|
157421
157423
|
}));
|
|
157422
157424
|
}
|
|
157423
157425
|
async function cleanupLegacyDocyrusPiSkills(params) {
|
|
157424
|
-
const docyrusOwned = [
|
|
157425
|
-
...DOCYRUS_MIGRATED_SKILL_NAMES,
|
|
157426
|
-
DOCYRUS_PACKAGED_PLATFORM_SKILL_NAME
|
|
157427
|
-
];
|
|
157426
|
+
const docyrusOwned = [...DOCYRUS_MIGRATED_SKILL_NAMES];
|
|
157428
157427
|
const candidateRoots = [
|
|
157429
157428
|
(0, import_node_path30.join)(params.cwd, ".pi", "skills"),
|
|
157430
157429
|
(0, import_node_path30.join)(params.cwd, ".agents", "skills")
|
|
@@ -157489,23 +157488,6 @@ function createDocyrusSkillsInstallArgs(scope) {
|
|
|
157489
157488
|
);
|
|
157490
157489
|
return args2;
|
|
157491
157490
|
}
|
|
157492
|
-
function createPackagedDocyrusPlatformInstallArgs(params) {
|
|
157493
|
-
const args2 = [
|
|
157494
|
-
"skills",
|
|
157495
|
-
"add",
|
|
157496
|
-
params.skillSourcePath
|
|
157497
|
-
];
|
|
157498
|
-
if (params.scope === "global") {
|
|
157499
|
-
args2.push("--global");
|
|
157500
|
-
}
|
|
157501
|
-
args2.push(
|
|
157502
|
-
"--agent",
|
|
157503
|
-
...DOCYRUS_EXTERNAL_SKILL_AGENT_IDS,
|
|
157504
|
-
"--copy",
|
|
157505
|
-
"--yes"
|
|
157506
|
-
);
|
|
157507
|
-
return args2;
|
|
157508
|
-
}
|
|
157509
157491
|
async function installExternalDocyrusSkillsOnce(params) {
|
|
157510
157492
|
const markerPath = (0, import_node_path30.join)(params.agentRootPath, DOCYRUS_EXTERNAL_SKILL_MARKER_FILE);
|
|
157511
157493
|
if ((0, import_node_fs17.existsSync)(markerPath)) {
|
|
@@ -157578,9 +157560,6 @@ async function ensureManagedDiffityInstalled(params) {
|
|
|
157578
157560
|
binDir
|
|
157579
157561
|
};
|
|
157580
157562
|
}
|
|
157581
|
-
function resolvePackagedDocyrusPlatformSkillPath(resourceRoot) {
|
|
157582
|
-
return (0, import_node_path30.join)(resourceRoot, "skills", DOCYRUS_PACKAGED_PLATFORM_SKILL_NAME);
|
|
157583
|
-
}
|
|
157584
157563
|
function resolvePackagedOfficeCliRootPath(resourceRoot) {
|
|
157585
157564
|
return (0, import_node_path30.join)((0, import_node_path30.resolve)(resourceRoot, ".."), "officecli");
|
|
157586
157565
|
}
|
|
@@ -157772,34 +157751,6 @@ async function ensureManagedOfficeCliInstalled(params) {
|
|
|
157772
157751
|
};
|
|
157773
157752
|
}
|
|
157774
157753
|
}
|
|
157775
|
-
function installPackagedDocyrusPlatformSkill(params) {
|
|
157776
|
-
const skillSourcePath = resolvePackagedDocyrusPlatformSkillPath(params.resourceRoot);
|
|
157777
|
-
if (!(0, import_node_fs17.existsSync)(skillSourcePath)) {
|
|
157778
|
-
process.stderr.write("[docyrus] Packaged docyrus-platform skill is missing. Continuing without agent sync.\n");
|
|
157779
|
-
return;
|
|
157780
|
-
}
|
|
157781
|
-
const result = params.spawnCommand(
|
|
157782
|
-
resolveNpxCommand(),
|
|
157783
|
-
createPackagedDocyrusPlatformInstallArgs({
|
|
157784
|
-
scope: params.scope,
|
|
157785
|
-
skillSourcePath
|
|
157786
|
-
}),
|
|
157787
|
-
{
|
|
157788
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
157789
|
-
encoding: "utf8",
|
|
157790
|
-
cwd: params.cwd,
|
|
157791
|
-
env: {
|
|
157792
|
-
...process.env
|
|
157793
|
-
}
|
|
157794
|
-
}
|
|
157795
|
-
);
|
|
157796
|
-
if (result.error || result.status !== 0) {
|
|
157797
|
-
process.stderr.write(
|
|
157798
|
-
`[docyrus] Automatic docyrus-platform skill sync failed. Continuing without it: ${result.error?.message || summarizeFailure3(result, "npx skills add")}
|
|
157799
|
-
`
|
|
157800
|
-
);
|
|
157801
|
-
}
|
|
157802
|
-
}
|
|
157803
157754
|
function validatePiAgentLaunchRequest(params) {
|
|
157804
157755
|
if (params.request.mode && !params.request.print && params.stdinIsTTY) {
|
|
157805
157756
|
throw new UserInputError("`--mode` requires `--print` when stdin is interactive.");
|
|
@@ -157871,12 +157822,6 @@ function createPiAgentLauncher(options2) {
|
|
|
157871
157822
|
scope: options2.settingsPaths.scope,
|
|
157872
157823
|
spawnCommand
|
|
157873
157824
|
});
|
|
157874
|
-
installPackagedDocyrusPlatformSkill({
|
|
157875
|
-
resourceRoot,
|
|
157876
|
-
cwd,
|
|
157877
|
-
scope: options2.settingsPaths.scope,
|
|
157878
|
-
spawnCommand
|
|
157879
|
-
});
|
|
157880
157825
|
spinner.update("Checking project plan...");
|
|
157881
157826
|
const { resolveProjectPlanGraphPath: resolveProjectPlanGraphPath2, ensureProjectPlanGraph: ensureProjectPlanGraph2 } = await Promise.resolve().then(() => (init_graph2(), graph_exports2));
|
|
157882
157827
|
const projectPlanGraphPath = resolveProjectPlanGraphPath2(cwd);
|
|
@@ -158037,12 +157982,6 @@ function createPiAgentServerLauncher(options2) {
|
|
|
158037
157982
|
scope: options2.settingsPaths.scope,
|
|
158038
157983
|
spawnCommand: import_node_child_process10.spawnSync
|
|
158039
157984
|
});
|
|
158040
|
-
installPackagedDocyrusPlatformSkill({
|
|
158041
|
-
resourceRoot,
|
|
158042
|
-
cwd,
|
|
158043
|
-
scope: options2.settingsPaths.scope,
|
|
158044
|
-
spawnCommand: import_node_child_process10.spawnSync
|
|
158045
|
-
});
|
|
158046
157985
|
spinner.update("Installing tools...");
|
|
158047
157986
|
const officeCli = await ensureManagedOfficeCliInstalled({
|
|
158048
157987
|
agentRootPath,
|