@awebai/pi 0.1.2 → 0.1.3

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 CHANGED
@@ -7,7 +7,14 @@ This package is the Pi integration for aweb. It is about **awakening**, not cust
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- pi install npm:@awebai/pi
10
+ pi install npm:@awebai/pi@latest
11
+ pi list
12
+ ```
13
+
14
+ If you previously installed a local checkout (for example `/path/to/aweb/pi-extension`), remove it first:
15
+
16
+ ```bash
17
+ pi remove /path/to/aweb/pi-extension
11
18
  ```
12
19
 
13
20
  Then start pi inside an aweb worktree:
@@ -23,7 +30,7 @@ If the worktree is not initialized, the extension will show actionable setup ins
23
30
  aw init
24
31
  ```
25
32
 
26
- Then restart pi or run:
33
+ Then restart pi (recommended; ensures packages/extensions are reloaded) or run:
27
34
 
28
35
  ```text
29
36
  /reload
@@ -56,7 +63,7 @@ aw workspace status
56
63
 
57
64
  ## Dependency behavior
58
65
 
59
- The package depends on `@awebai/aw` so a fresh `pi install npm:@awebai/pi` can resolve an `aw` binary even when `aw` is not globally installed.
66
+ The package depends on `@awebai/aw` so a fresh `pi install npm:@awebai/pi@latest` can resolve an `aw` binary even when `aw` is not globally installed.
60
67
 
61
68
  Resolution order:
62
69
 
package/dist/index.js CHANGED
@@ -4901,7 +4901,9 @@ async function resolveConfig(workdir) {
4901
4901
  const certificate = await loadConfiguredTeamCertificate(workdir, teamID, certPath);
4902
4902
  const identity = await readYAML(identityPath);
4903
4903
  const did = computeDIDKey(getPublicKey(signingKey));
4904
- const stableID = (identity?.stable_id || "").trim() || (certificate.member_did_aw || "").trim();
4904
+ const identityStableID = (identity?.stable_id || "").trim();
4905
+ const certificateStableID = (certificate.member_did_aw || "").trim();
4906
+ const stableID = certificateStableID || identityStableID;
4905
4907
  const address = (certificate.member_address || "").trim() || (identity?.address || "").trim();
4906
4908
  const registryURL = (identity?.registry_url || "").trim();
4907
4909
  if ((identity?.did || "").trim() && did !== identity?.did?.trim()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awebai/pi",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Aweb for Pi: real-time channel awakenings, aw CLI onboarding, and aweb skills.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,8 +20,9 @@
20
20
  "scripts": {
21
21
  "sync-skills": "rm -rf skills && mkdir -p skills && cp -R ../skills/aweb-coordination ../skills/aweb-messaging ../skills/aweb-team-membership skills/",
22
22
  "build": "npm run sync-skills && rm -rf dist && tsc -p tsconfig.json --noEmit && npx esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --external:@awebai/aw",
23
- "prepack": "npm run build",
24
- "prepublishOnly": "npm run build",
23
+ "test:package": "node scripts/check-package-dist.mjs",
24
+ "prepack": "npm run build && npm run test:package",
25
+ "prepublishOnly": "npm run prepack",
25
26
  "start": "tsx src/index.ts"
26
27
  },
27
28
  "dependencies": {