aamp-openclaw-plugin 0.1.25 → 0.1.26

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.
@@ -436,7 +436,12 @@ function restartGateway() {
436
436
  async function ensureMailboxIdentity({ aampHost, slug, credentialsFile }) {
437
437
  const resolvedCreds = expandHome(credentialsFile)
438
438
  if (existsSync(resolvedCreds)) {
439
- return { created: false, email: null, credentialsPath: resolvedCreds }
439
+ const cachedIdentity = readJsonFile(resolvedCreds)
440
+ return {
441
+ created: false,
442
+ email: cachedIdentity?.email ?? null,
443
+ credentialsPath: resolvedCreds,
444
+ }
440
445
  }
441
446
 
442
447
  const base = normalizeBaseUrl(aampHost)
@@ -649,7 +654,9 @@ async function runInit() {
649
654
  ` codingBaselineAdded: ${toolPolicyPlan.missingCodingTools.length > 0 && includeCodingBaseline ? 'yes' : 'no'}`,
650
655
  identityResult.created
651
656
  ? ` mailbox: ${identityResult.email} (registered and saved to ${identityResult.credentialsPath})`
652
- : ` mailbox: existing credentials reused from ${identityResult.credentialsPath}`,
657
+ : identityResult.email
658
+ ? ` mailbox: ${identityResult.email} (existing credentials reused from ${identityResult.credentialsPath})`
659
+ : ` mailbox: existing credentials reused from ${identityResult.credentialsPath}`,
653
660
  '',
654
661
  restartResult.ok
655
662
  ? `Gateway restart: ${restartResult.message}`
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "skills"
8
8
  ],
9
9
  "license": "MIT",
10
- "version": "0.1.25",
10
+ "version": "0.1.26",
11
11
  "description": "AAMP Agent Mail Protocol — OpenClaw plugin. Gives OpenClaw an AAMP mailbox identity and lets it receive, process and reply to AAMP tasks.",
12
12
  "type": "module",
13
13
  "main": "dist/index.js",