@ilivemylife/graph-sdk 1.0.7 → 1.0.8

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/cli.mjs CHANGED
@@ -523,7 +523,7 @@ function createApolloClient(options) {
523
523
  const { token, httpUrl, wsUrl, enableSubscriptions, webSocketImpl } = options;
524
524
  const requestHeaders = {
525
525
  "access-token": token,
526
- "x-client": `sdk/${"1.0.7"}`
526
+ "x-client": `sdk/${"1.0.8"}`
527
527
  };
528
528
  const httpLink = createHttpLink({
529
529
  uri: httpUrl,
@@ -536,7 +536,7 @@ function createApolloClient(options) {
536
536
  if (enableSubscriptions) {
537
537
  const wsClientOptions = {
538
538
  url: wsUrl,
539
- connectionParams: { "access-token": token, "x-client": `sdk/${"1.0.7"}` }
539
+ connectionParams: { "access-token": token, "x-client": `sdk/${"1.0.8"}` }
540
540
  };
541
541
  if (webSocketImpl) {
542
542
  wsClientOptions.webSocketImpl = webSocketImpl;
@@ -2383,7 +2383,7 @@ async function cmdUpdate() {
2383
2383
  const { execSync } = await import("child_process");
2384
2384
  console.log("Checking for updates...");
2385
2385
  try {
2386
- const currentVersion = "1.0.7";
2386
+ const currentVersion = "1.0.8";
2387
2387
  let latestVersion;
2388
2388
  try {
2389
2389
  const result = execSync("npm view @ilivemylife/graph-sdk version", { encoding: "utf-8" }).trim();
@@ -2413,7 +2413,7 @@ async function cmdDoctor() {
2413
2413
  console.log("\u2550".repeat(60));
2414
2414
  let issues = 0;
2415
2415
  console.log(`
2416
- [Version] ${"1.0.7"}`);
2416
+ [Version] ${"1.0.8"}`);
2417
2417
  const localConfigPath = findLocalConfigFile();
2418
2418
  const globalExists = existsSync2(GLOBAL_CONFIG_FILE);
2419
2419
  console.log("\n[Config Files]");
@@ -2604,11 +2604,11 @@ async function cmdUninstall() {
2604
2604
  console.log("\u2550".repeat(60));
2605
2605
  }
2606
2606
  function showVersion() {
2607
- console.log(`@ilivemylife/graph-sdk v${"1.0.7"}`);
2607
+ console.log(`@ilivemylife/graph-sdk v${"1.0.8"}`);
2608
2608
  }
2609
2609
  function showHelp() {
2610
2610
  console.log(`
2611
- @ilivemylife/graph-sdk v${"1.0.7"}
2611
+ @ilivemylife/graph-sdk v${"1.0.8"}
2612
2612
  CLI for iLiveMyLife Knowledge Graph
2613
2613
 
2614
2614
  USAGE
package/dist/client.cjs CHANGED
@@ -623,7 +623,7 @@ function createApolloClient(options) {
623
623
  const { token, httpUrl, wsUrl, enableSubscriptions, webSocketImpl } = options;
624
624
  const requestHeaders = {
625
625
  "access-token": token,
626
- "x-client": `sdk/${"1.0.7"}`
626
+ "x-client": `sdk/${"1.0.8"}`
627
627
  };
628
628
  const httpLink = createHttpLink({
629
629
  uri: httpUrl,
@@ -636,7 +636,7 @@ function createApolloClient(options) {
636
636
  if (enableSubscriptions) {
637
637
  const wsClientOptions = {
638
638
  url: wsUrl,
639
- connectionParams: { "access-token": token, "x-client": `sdk/${"1.0.7"}` }
639
+ connectionParams: { "access-token": token, "x-client": `sdk/${"1.0.8"}` }
640
640
  };
641
641
  if (webSocketImpl) {
642
642
  wsClientOptions.webSocketImpl = webSocketImpl;
package/dist/client.mjs CHANGED
@@ -550,7 +550,7 @@ function createApolloClient(options) {
550
550
  const { token, httpUrl, wsUrl, enableSubscriptions, webSocketImpl } = options;
551
551
  const requestHeaders = {
552
552
  "access-token": token,
553
- "x-client": `sdk/${"1.0.7"}`
553
+ "x-client": `sdk/${"1.0.8"}`
554
554
  };
555
555
  const httpLink = createHttpLink({
556
556
  uri: httpUrl,
@@ -563,7 +563,7 @@ function createApolloClient(options) {
563
563
  if (enableSubscriptions) {
564
564
  const wsClientOptions = {
565
565
  url: wsUrl,
566
- connectionParams: { "access-token": token, "x-client": `sdk/${"1.0.7"}` }
566
+ connectionParams: { "access-token": token, "x-client": `sdk/${"1.0.8"}` }
567
567
  };
568
568
  if (webSocketImpl) {
569
569
  wsClientOptions.webSocketImpl = webSocketImpl;
@@ -540,7 +540,7 @@ function createApolloClient(options) {
540
540
  const { token, httpUrl, wsUrl, enableSubscriptions, webSocketImpl } = options;
541
541
  const requestHeaders = {
542
542
  "access-token": token,
543
- "x-client": `sdk/${"1.0.7"}`
543
+ "x-client": `sdk/${"1.0.8"}`
544
544
  };
545
545
  const httpLink = createHttpLink({
546
546
  uri: httpUrl,
@@ -553,7 +553,7 @@ function createApolloClient(options) {
553
553
  if (enableSubscriptions) {
554
554
  const wsClientOptions = {
555
555
  url: wsUrl,
556
- connectionParams: { "access-token": token, "x-client": `sdk/${"1.0.7"}` }
556
+ connectionParams: { "access-token": token, "x-client": `sdk/${"1.0.8"}` }
557
557
  };
558
558
  if (webSocketImpl) {
559
559
  wsClientOptions.webSocketImpl = webSocketImpl;
@@ -1278,6 +1278,43 @@ When adding item, set \`refId\` to target node ID. The new node becomes a shortc
1278
1278
  - Nodes can have shareable invite links
1279
1279
  - Users in node see each other's icons
1280
1280
  - Privacy controlled via tags (private, wallet, etc.)
1281
+ `,
1282
+ lifebot: `
1283
+ # Lifebot (AI Assistant)
1284
+
1285
+ Lifebot is the built-in AI assistant in iLiveMyLife. Understanding how to interact with it is important.
1286
+
1287
+ ## Enabling Lifebot on a Node
1288
+
1289
+ - Add \`assist\` tag to the node \u2014 this enables Lifebot for that node
1290
+ - Without \`assist\` tag, Lifebot will NOT respond to messages
1291
+ - Exception: personal/root nodes may have Lifebot enabled by default
1292
+
1293
+ ## Messaging Lifebot
1294
+
1295
+ ### Guaranteeing a Response
1296
+ - Use \`@Lifebot\` mention in message text \u2014 guarantees Lifebot will respond
1297
+ - Without mention, Lifebot may decide the message isn't addressed to him
1298
+ - In collaborative nodes with multiple users, \`@Lifebot\` is especially important
1299
+
1300
+ ### The \`lifebot\` Parameter
1301
+ - \`lifebot: "on"\` \u2014 this is the DEFAULT, does nothing special
1302
+ - \`lifebot: "off"\` \u2014 explicitly disables Lifebot for this specific message
1303
+ - The parameter exists to DISABLE Lifebot when needed, not to enable it
1304
+
1305
+ ## graph_ask_lifebot vs graph_add_message
1306
+
1307
+ | Method | Behavior |
1308
+ |--------|----------|
1309
+ | \`graph_ask_lifebot\` | Synchronous \u2014 waits for response, returns it directly. May timeout. |
1310
+ | \`graph_add_message\` | Asynchronous \u2014 sends message, Lifebot responds later. Read with \`graph_messages\`. |
1311
+
1312
+ ## Best Practices
1313
+
1314
+ 1. Always add \`assist\` tag when creating nodes where Lifebot should respond
1315
+ 2. Use \`@Lifebot\` in collaborative/shared nodes
1316
+ 3. For immediate answers, use \`graph_ask_lifebot\`
1317
+ 4. For fire-and-forget, use \`graph_add_message\` and check response later
1281
1318
  `
1282
1319
  };
1283
1320
  async function isHighPrivacyNodeOrRef(graph, item) {
@@ -1308,7 +1345,7 @@ function getGraphInfo(topic) {
1308
1345
  if (!topic || topic === "all") {
1309
1346
  return Object.values(GRAPH_KNOWLEDGE).join("\n---\n");
1310
1347
  }
1311
- return GRAPH_KNOWLEDGE[topic] || `Unknown topic: ${topic}. Available: markers, tags, links, privacy, all`;
1348
+ return GRAPH_KNOWLEDGE[topic] || `Unknown topic: ${topic}. Available: markers, tags, links, privacy, lifebot, all`;
1312
1349
  }
1313
1350
  var server = new Server(
1314
1351
  {
@@ -1639,8 +1676,8 @@ To enable markers on parent: tags: ["#markerList#0000018190aaf813-a61a6f263e6a00
1639
1676
  properties: {
1640
1677
  topic: {
1641
1678
  type: "string",
1642
- enum: ["markers", "tags", "links", "privacy", "all"],
1643
- description: "Topic to get info about: markers (status system), tags (special tags), links (references), privacy (access control), all (everything)"
1679
+ enum: ["markers", "tags", "links", "privacy", "lifebot", "all"],
1680
+ description: "Topic to get info about: markers (status system), tags (special tags), links (references), privacy (access control), lifebot (AI assistant), all (everything)"
1644
1681
  }
1645
1682
  },
1646
1683
  required: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilivemylife/graph-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "SDK and CLI for iLiveMyLife Knowledge Graph",
5
5
  "license": "UNLICENSED",
6
6
  "engines": {