@almyty/skills 1.0.1 → 1.0.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/dist/auth.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Shares credentials with @almyty/mcp-server via ~/.almyty/credentials.json.
5
5
  *
6
6
  * Supports:
7
- * 1. Environment variable (APIFAI_TOKEN) — for CI/scripts
7
+ * 1. Environment variable (ALMYTY_TOKEN) — for CI/scripts
8
8
  * 2. Stored credentials (~/.almyty/credentials.json) — for interactive use
9
9
  * 3. Interactive login (npx @almyty/skills login) — stores credentials
10
10
  */
package/dist/auth.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Shares credentials with @almyty/mcp-server via ~/.almyty/credentials.json.
5
5
  *
6
6
  * Supports:
7
- * 1. Environment variable (APIFAI_TOKEN) — for CI/scripts
7
+ * 1. Environment variable (ALMYTY_TOKEN) — for CI/scripts
8
8
  * 2. Stored credentials (~/.almyty/credentials.json) — for interactive use
9
9
  * 3. Interactive login (npx @almyty/skills login) — stores credentials
10
10
  */
@@ -56,8 +56,8 @@ export function logout() {
56
56
  * Resolve token: env var > stored credentials
57
57
  */
58
58
  export function resolveAuth() {
59
- const envToken = process.env.APIFAI_TOKEN;
60
- const envUrl = process.env.APIFAI_URL || 'https://api.almyty.com';
59
+ const envToken = process.env.ALMYTY_TOKEN;
60
+ const envUrl = process.env.ALMYTY_URL || 'https://api.almyty.com';
61
61
  if (envToken) {
62
62
  return { url: envUrl, token: envToken };
63
63
  }
@@ -67,7 +67,7 @@ export function resolveAuth() {
67
67
  }
68
68
  console.error('Not authenticated. Run one of:');
69
69
  console.error(' npx @almyty/skills login');
70
- console.error(' export APIFAI_TOKEN=<your-token>');
70
+ console.error(' export ALMYTY_TOKEN=<your-token>');
71
71
  process.exit(1);
72
72
  }
73
73
  /**
package/dist/config.js CHANGED
@@ -3,7 +3,7 @@ import { homedir } from 'os';
3
3
  import { join, resolve } from 'path';
4
4
  import { detectAgents, getDefaultTargets, filterAgents } from './agents.js';
5
5
  export function loadConfig(projectDir) {
6
- const envDir = process.env.APIFAI_SKILLS_DIR;
6
+ const envDir = process.env.ALMYTY_SKILLS_DIR;
7
7
  if (envDir) {
8
8
  return { skillsDir: envDir };
9
9
  }
package/dist/index.js CHANGED
@@ -33,9 +33,9 @@ References:
33
33
 
34
34
  Config:
35
35
  .almytyrc JSON config file (project or home dir)
36
- APIFAI_SKILLS_DIR Override skill installation directory
37
- APIFAI_URL Override API URL
38
- APIFAI_TOKEN Override auth token
36
+ ALMYTY_SKILLS_DIR Override skill installation directory
37
+ ALMYTY_URL Override API URL
38
+ ALMYTY_TOKEN Override auth token
39
39
 
40
40
  Options:
41
41
  --interval, -i <seconds> Daemon poll interval in seconds (default: 60)
@@ -143,7 +143,7 @@ async function main() {
143
143
  const urlOverride = args.flags.url || config.url;
144
144
  switch (command) {
145
145
  case 'login': {
146
- const url = urlOverride || process.env.APIFAI_URL || 'https://api.almyty.com';
146
+ const url = urlOverride || process.env.ALMYTY_URL || 'https://api.almyty.com';
147
147
  await login(url);
148
148
  break;
149
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almyty/skills",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Install API skills into AI coding agents — Claude Code, Cursor, Windsurf, Copilot, Codex",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",