@kiroku-solutions/kiroku-ai 0.1.2 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiroku-solutions/kiroku-ai",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Interactive CLI to bootstrap Kiroku AI Standards (AI Context as Code) into any project.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/config.mjs CHANGED
@@ -46,7 +46,7 @@ function resolveToken() {
46
46
  for (const rcPath of npmrcPaths) {
47
47
  if (fs.existsSync(rcPath)) {
48
48
  const content = fs.readFileSync(rcPath, 'utf-8');
49
- const match = content.match(/\/\/npm\.pkg\.github\.com\/:_authToken=([^\s]+)/);
49
+ const match = content.match(/\/\/(?:npm\.pkg\.github\.com|api\.github\.com)\/:_authToken=([^\s]+)/);
50
50
  if (match && match[1]) {
51
51
  return match[1];
52
52
  }
@@ -70,7 +70,8 @@ export function setToken(newToken) {
70
70
  export function saveTokenToNpmrc(newToken) {
71
71
  try {
72
72
  const npmrcPath = path.join(os.homedir(), '.npmrc');
73
- const line = `\n//npm.pkg.github.com/:_authToken=${newToken}\n@kiroku-solutions:registry=https://npm.pkg.github.com/\n`;
73
+ // Guardamos el token para el CLI, pero SIN redirigir el paquete @kiroku-solutions
74
+ const line = `\n//api.github.com/:_authToken=${newToken}\n`;
74
75
  fs.appendFileSync(npmrcPath, line, 'utf-8');
75
76
  } catch (e) {
76
77
  // Fail silently if we can't write to ~/.npmrc
package/src/prompts.mjs CHANGED
@@ -221,7 +221,7 @@ export async function promptForToken() {
221
221
 
222
222
  const token = ensure(
223
223
  await text({
224
- message: 'Enter your GitHub PAT (with read:packages permission):',
224
+ message: 'Enter your GitHub PAT (with "repo" permission):',
225
225
  placeholder: 'ghp_...',
226
226
  validate(value) {
227
227
  if (!value.trim()) return 'Token is required to download private skills.';