@agentpie/skill 0.1.0

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/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # @agentpie/skill
2
+
3
+ Global creator-facing AgentPie Skill registry helper.
4
+
5
+ This package exposes `agentpie-skill` and reuses the XiaShe Skill CLI implementation with AgentPie defaults:
6
+
7
+ - registry base: `https://api.agentpie.app`
8
+ - manifest file: `agentpie.skill.json`
9
+ - product name: `AgentPie`
10
+
11
+ ## Local development
12
+
13
+ ```bash
14
+ node packages/agentpie-skill-cli/bin/agentpie-skill.mjs --help
15
+ node packages/agentpie-skill-cli/bin/agentpie-skill.mjs inspect .
16
+ node packages/agentpie-skill-cli/bin/agentpie-skill.mjs attach . --code AP-XXXX-XXXX
17
+ node packages/agentpie-skill-cli/bin/agentpie-skill.mjs pack . --out .agentpie/package
18
+ node packages/agentpie-skill-cli/bin/agentpie-skill.mjs prompt . --hub generic
19
+ ```
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+
3
+ process.env.XIASHE_SKILL_CLI_NAME = process.env.XIASHE_SKILL_CLI_NAME || 'agentpie-skill';
4
+ process.env.XIASHE_SKILL_PRODUCT_NAME = process.env.XIASHE_SKILL_PRODUCT_NAME || 'AgentPie';
5
+ process.env.XIASHE_SKILL_REGISTRY_PROVIDER = process.env.XIASHE_SKILL_REGISTRY_PROVIDER || 'agentpie';
6
+ process.env.XIASHE_SKILL_DEFAULT_BASE_URL = process.env.XIASHE_SKILL_DEFAULT_BASE_URL || 'https://api.agentpie.app';
7
+ process.env.XIASHE_SKILL_MANIFEST_FILE = process.env.XIASHE_SKILL_MANIFEST_FILE || 'agentpie.skill.json';
8
+ process.env.XIASHE_SKILL_WORK_DIR = process.env.XIASHE_SKILL_WORK_DIR || '.agentpie';
9
+
10
+ try {
11
+ await import('@xiashe/skill/bin/xiashe-skill.mjs');
12
+ } catch {
13
+ try {
14
+ await import('xiashe-skill/bin/xiashe-skill.mjs');
15
+ } catch {
16
+ await import('../../xiashe-skill-cli/bin/xiashe-skill.mjs');
17
+ }
18
+ }
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@agentpie/skill",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "bin": {
6
+ "agentpie-skill": "bin/agentpie-skill.mjs"
7
+ },
8
+ "files": [
9
+ "bin",
10
+ "README.md"
11
+ ],
12
+ "dependencies": {
13
+ "@xiashe/skill": "0.1.0"
14
+ },
15
+ "engines": {
16
+ "node": ">=20"
17
+ }
18
+ }