@access-mcp/announcements 0.3.0 → 0.3.1

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/server.d.ts CHANGED
@@ -9,6 +9,10 @@ export declare class AnnouncementsServer extends BaseAccessServer {
9
9
  /**
10
10
  * Get or create the Drupal auth provider for JSON:API write operations.
11
11
  * Requires DRUPAL_API_URL, DRUPAL_USERNAME, and DRUPAL_PASSWORD env vars.
12
+ *
13
+ * Acting user is determined in priority order:
14
+ * 1. X-Acting-User header (from request context)
15
+ * 2. ACTING_USER environment variable (fallback)
12
16
  */
13
17
  private getDrupalAuth;
14
18
  protected getTools(): Tool[];
@@ -28,12 +32,20 @@ export declare class AnnouncementsServer extends BaseAccessServer {
28
32
  private enhanceAnnouncements;
29
33
  private searchAnnouncements;
30
34
  /**
31
- * Get the acting user's UID from environment variable.
32
- * This identifies who the announcement should be attributed to.
35
+ * Get the acting user's ACCESS ID for content attribution.
36
+ *
37
+ * Priority order:
38
+ * 1. X-Acting-User header (from request context)
39
+ * 2. ACTING_USER environment variable (fallback)
40
+ *
41
+ * Returns the ACCESS ID (e.g., "username@access-ci.org")
33
42
  */
34
- private getActingUserUid;
43
+ private getActingUserAccessId;
35
44
  /**
36
45
  * Create a new announcement via Drupal JSON:API
46
+ *
47
+ * The X-Acting-User header (set by DrupalAuthProvider) tells Drupal which
48
+ * ACCESS user is creating the content. Drupal handles user resolution.
37
49
  */
38
50
  private createAnnouncement;
39
51
  /**
@@ -49,9 +61,11 @@ export declare class AnnouncementsServer extends BaseAccessServer {
49
61
  */
50
62
  private getMyAnnouncements;
51
63
  /**
52
- * Get a user's UUID by their Drupal user ID (internal helper)
64
+ * Get a user's UUID by their ACCESS ID (e.g., "user@access-ci.org").
65
+ *
66
+ * The Drupal username should match the full ACCESS ID.
53
67
  */
54
- private getUserUuidByUid;
68
+ private getUserUuidByAccessId;
55
69
  /**
56
70
  * Get announcement context - tags, affinity groups, and options for creating announcements
57
71
  */