@valiron/skill 1.0.4 → 1.0.6
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 +13 -1
- package/bin/cli.mjs +19 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -20,7 +20,18 @@ The CLI will ask which platform you use and place the skill file in the right lo
|
|
|
20
20
|
|
|
21
21
|
## What It Does
|
|
22
22
|
|
|
23
|
-
The skill file gives your AI coding assistant context about Valiron — the SDK,
|
|
23
|
+
The skill file gives your AI coding assistant context about Valiron — the SDK,
|
|
24
|
+
API, trust model, and middleware — so it can help you integrate Valiron into
|
|
25
|
+
your project.
|
|
26
|
+
|
|
27
|
+
It includes the SDK 1.3 provider-backed identity flow for ANS and future identity
|
|
28
|
+
providers. Agents can sign requests with `createAgentIdentityProof()`, while API
|
|
29
|
+
owners can verify identity, reputation, and policy with dedicated Express,
|
|
30
|
+
Fastify, Next.js, or framework-independent gates.
|
|
31
|
+
|
|
32
|
+
The installer fetches the current skill from Valiron each time it runs. Rerun
|
|
33
|
+
`npx @valiron/skill` and approve overwriting the existing file to refresh an
|
|
34
|
+
installed skill.
|
|
24
35
|
|
|
25
36
|
## Documentation
|
|
26
37
|
|
|
@@ -28,6 +39,7 @@ The skill file gives your AI coding assistant context about Valiron — the SDK,
|
|
|
28
39
|
- **[SDK Reference](https://valiron.co/docs/agents/SDK-REFERENCE.md)** — TypeScript SDK
|
|
29
40
|
- **[API Reference](https://valiron.co/docs/agents/API-REFERENCE.md)** — HTTP endpoints
|
|
30
41
|
- **[Quickstart](https://valiron.co/docs/agents/QUICKSTART.md)** — get started in 2 minutes
|
|
42
|
+
- **[Provider Identity](https://valiron.co/docs/agents/PROVIDER-IDENTITY.md)** — ANS signing and verification
|
|
31
43
|
|
|
32
44
|
## License
|
|
33
45
|
|
package/bin/cli.mjs
CHANGED
|
@@ -17,10 +17,28 @@ const PLATFORMS = [
|
|
|
17
17
|
{ key: "5", name: "Generic (AGENTS.md)", path: "AGENTS.md" },
|
|
18
18
|
];
|
|
19
19
|
|
|
20
|
-
function fetchURL(url) {
|
|
20
|
+
function fetchURL(url, redirectsRemaining = 5) {
|
|
21
21
|
return new Promise((res, rej) => {
|
|
22
22
|
get(url, (resp) => {
|
|
23
|
+
if (
|
|
24
|
+
resp.statusCode >= 300 &&
|
|
25
|
+
resp.statusCode < 400 &&
|
|
26
|
+
resp.headers.location
|
|
27
|
+
) {
|
|
28
|
+
if (redirectsRemaining === 0) {
|
|
29
|
+
resp.resume();
|
|
30
|
+
rej(new Error(`Too many redirects fetching ${url}`));
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const nextURL = new URL(resp.headers.location, url).toString();
|
|
35
|
+
resp.resume();
|
|
36
|
+
fetchURL(nextURL, redirectsRemaining - 1).then(res, rej);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
|
|
23
40
|
if (resp.statusCode !== 200) {
|
|
41
|
+
resp.resume();
|
|
24
42
|
rej(new Error(`HTTP ${resp.statusCode} fetching ${url}`));
|
|
25
43
|
return;
|
|
26
44
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valiron/skill",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Install Valiron agent skill into your project for any AI coding assistant",
|
|
5
5
|
"bin": {
|
|
6
|
-
"valiron-skill": "
|
|
6
|
+
"valiron-skill": "bin/cli.mjs"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"bin/"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "https://github.com/vatsashah45/Valiron.git",
|
|
24
|
+
"url": "git+https://github.com/vatsashah45/Valiron.git",
|
|
25
25
|
"directory": "packages/skill"
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://valiron.co",
|