signetai 0.147.12 → 0.147.18

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/mcp-stdio.js CHANGED
@@ -38363,6 +38363,19 @@ function up86(db) {
38363
38363
  ON summary_jobs(agent_id, session_key, content_hash)
38364
38364
  `);
38365
38365
  }
38366
+ function addColumnIfMissing22(db, table, column, definition) {
38367
+ const cols = db.prepare(`PRAGMA table_info(${table})`).all();
38368
+ if (cols.some((col) => col.name === column))
38369
+ return;
38370
+ db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
38371
+ }
38372
+ function up87(db) {
38373
+ addColumnIfMissing22(db, "summary_jobs", "boundary_reason", "TEXT");
38374
+ db.exec(`
38375
+ CREATE INDEX IF NOT EXISTS idx_summary_jobs_boundary_reason
38376
+ ON summary_jobs(agent_id, session_key, boundary_reason)
38377
+ `);
38378
+ }
38366
38379
  var MIGRATIONS = [
38367
38380
  {
38368
38381
  version: 1,
@@ -39066,6 +39079,14 @@ var MIGRATIONS = [
39066
39079
  artifacts: {
39067
39080
  columns: [{ table: "summary_jobs", column: "content_hash" }]
39068
39081
  }
39082
+ },
39083
+ {
39084
+ version: 87,
39085
+ name: "summary-jobs-boundary-reason",
39086
+ up: up87,
39087
+ artifacts: {
39088
+ columns: [{ table: "summary_jobs", column: "boundary_reason" }]
39089
+ }
39069
39090
  }
39070
39091
  ];
39071
39092
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -39099,6 +39120,11 @@ function normalizeRememberTags(tags) {
39099
39120
  }
39100
39121
  return;
39101
39122
  }
39123
+ function normalizeRecallLimit(limit) {
39124
+ if (typeof limit !== "number" || !Number.isFinite(limit))
39125
+ return 10;
39126
+ return Math.min(100, Math.max(1, Math.trunc(limit)));
39127
+ }
39102
39128
  function partitionRecallRows(rows) {
39103
39129
  return {
39104
39130
  primary: rows.filter((row) => row.supplementary !== true),
@@ -39220,7 +39246,11 @@ function formatRecallText(raw) {
39220
39246
  if (parsed.meta.temporal?.mode === "timeline")
39221
39247
  return formatTemporalRecallText(primary, parsed.meta.temporal);
39222
39248
  const noun = parsed.meta.totalReturned === 1 ? "memory" : "memories";
39223
- const parts = [`Found ${parsed.meta.totalReturned} ${noun}${parsed.method ? ` (${parsed.method})` : ""}.`];
39249
+ const parts = payload.aggregate?.partial === true && typeof payload.aggregate.message === "string" ? [
39250
+ payload.aggregate.message,
39251
+ "",
39252
+ `Found ${parsed.meta.totalReturned} ${noun}${parsed.method ? ` (${parsed.method})` : ""}.`
39253
+ ] : [`Found ${parsed.meta.totalReturned} ${noun}${parsed.method ? ` (${parsed.method})` : ""}.`];
39224
39254
  if (primary.length > 0) {
39225
39255
  parts.push("", "Primary matches:", ...primary.map((row) => formatRecallRow(row)));
39226
39256
  }
@@ -39234,7 +39264,7 @@ function buildRecallRequestBody(query, options = {}) {
39234
39264
  return withDefined({
39235
39265
  query,
39236
39266
  keywordQuery: options.keywordQuery ?? options.keyword_query,
39237
- limit: options.limit,
39267
+ limit: normalizeRecallLimit(options.limit),
39238
39268
  project: options.project,
39239
39269
  type: options.type,
39240
39270
  tags: options.tags,
@@ -39245,11 +39275,11 @@ function buildRecallRequestBody(query, options = {}) {
39245
39275
  until: options.until,
39246
39276
  time: options.time,
39247
39277
  expand: options.expand === true ? true : undefined,
39248
- agentId: options.agentId,
39249
- sessionKey: options.sessionKey,
39250
- includeRecalled: options.includeRecalled === true ? true : undefined,
39278
+ agentId: options.agentId ?? options.agent_id ?? options.contextAgentId,
39279
+ sessionKey: options.sessionKey ?? options.session_key,
39280
+ includeRecalled: options.includeRecalled === true || options.include_recalled === true ? true : undefined,
39251
39281
  scope: options.scope,
39252
- sourceOnly: options.sourceOnly === true ? true : undefined,
39282
+ sourceOnly: options.sourceOnly === true || options.source_only === true ? true : undefined,
39253
39283
  aggregate: options.aggregate === true ? true : undefined,
39254
39284
  aggregateBudget: options.aggregateBudget ?? options.aggregate_budget,
39255
39285
  saveAggregate: options.saveAggregate === false || options.save_aggregate === false ? false : options.saveAggregate === true || options.save_aggregate === true ? true : undefined
@@ -41998,7 +42028,8 @@ async function createMcpServer(opts) {
41998
42028
  save_aggregate: exports_external.boolean().optional().describe("Save the aggregate answer as a memory"),
41999
42029
  session_key: exports_external.string().optional().describe("Session key for per-context recall dedupe"),
42000
42030
  agent_id: exports_external.string().optional().describe("Agent ID for scoped recall"),
42001
- include_recalled: exports_external.boolean().optional().describe("Include rows already recalled in this context")
42031
+ include_recalled: exports_external.boolean().optional().describe("Include rows already recalled in this context"),
42032
+ scope: exports_external.enum(["global", "agent", "session"]).optional().describe("Recall scope constraint")
42002
42033
  })
42003
42034
  }, async ({
42004
42035
  query,
@@ -42020,13 +42051,14 @@ async function createMcpServer(opts) {
42020
42051
  save_aggregate,
42021
42052
  session_key,
42022
42053
  agent_id,
42023
- include_recalled
42054
+ include_recalled,
42055
+ scope
42024
42056
  }) => {
42025
42057
  const result = await fetchDaemon(baseUrl, "/api/memory/recall", {
42026
42058
  method: "POST",
42027
42059
  body: buildRecallRequestBody(query, {
42028
42060
  keyword_query,
42029
- limit: limit ?? 10,
42061
+ limit,
42030
42062
  project,
42031
42063
  type,
42032
42064
  tags,
@@ -42041,7 +42073,8 @@ async function createMcpServer(opts) {
42041
42073
  save_aggregate,
42042
42074
  sessionKey: session_key,
42043
42075
  agentId: agent_id,
42044
- includeRecalled: include_recalled
42076
+ includeRecalled: include_recalled,
42077
+ scope
42045
42078
  })
42046
42079
  });
42047
42080
  if (!result.ok) {
@@ -42074,7 +42107,8 @@ async function createMcpServer(opts) {
42074
42107
  save_aggregate: exports_external.boolean().optional().describe("Save the aggregate answer as a memory"),
42075
42108
  session_key: exports_external.string().optional().describe("Session key for per-context recall dedupe"),
42076
42109
  agent_id: exports_external.string().optional().describe("Agent ID for scoped recall"),
42077
- include_recalled: exports_external.boolean().optional().describe("Include rows already recalled in this context")
42110
+ include_recalled: exports_external.boolean().optional().describe("Include rows already recalled in this context"),
42111
+ scope: exports_external.enum(["global", "agent", "session"]).optional().describe("Recall scope constraint")
42078
42112
  })
42079
42113
  }, async ({
42080
42114
  query,
@@ -42093,13 +42127,14 @@ async function createMcpServer(opts) {
42093
42127
  save_aggregate,
42094
42128
  session_key,
42095
42129
  agent_id,
42096
- include_recalled
42130
+ include_recalled,
42131
+ scope
42097
42132
  }) => {
42098
42133
  const result = await fetchDaemon(baseUrl, "/api/memory/recall", {
42099
42134
  method: "POST",
42100
42135
  body: buildRecallRequestBody(query, {
42101
42136
  keyword_query,
42102
- limit: limit ?? 10,
42137
+ limit,
42103
42138
  project,
42104
42139
  type,
42105
42140
  tags,
@@ -42112,7 +42147,8 @@ async function createMcpServer(opts) {
42112
42147
  save_aggregate,
42113
42148
  sessionKey: session_key,
42114
42149
  agentId: agent_id,
42115
- includeRecalled: include_recalled
42150
+ includeRecalled: include_recalled,
42151
+ scope
42116
42152
  })
42117
42153
  });
42118
42154
  if (!result.ok)
@@ -42135,7 +42171,7 @@ async function createMcpServer(opts) {
42135
42171
  method: "POST",
42136
42172
  body: {
42137
42173
  ...buildRecallRequestBody(query, {
42138
- limit: limit ?? 10,
42174
+ limit,
42139
42175
  project,
42140
42176
  sessionKey: session_key,
42141
42177
  agentId: agent_id,
@@ -1,43 +1,43 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "version": "0.147.12",
3
+ "version": "0.147.18",
4
4
  "assets": [
5
5
  {
6
6
  "name": "signet-darwin-arm64",
7
7
  "platform": "darwin-arm64",
8
- "sha256": "43137109d0bfc4091324e2680d2d8c2e968bc0a493925ba767a8668be92fa454",
9
- "size": 113115040
8
+ "sha256": "97995003e35d8426f02c20f18be9939ef75b8c6b3d1a5d2b5328aaf4a3909f7c",
9
+ "size": 113148064
10
10
  },
11
11
  {
12
12
  "name": "signet-darwin-x64",
13
13
  "platform": "darwin-x64",
14
- "sha256": "5c953323c065aba69870900ffbca9ee0a62be5e0a839abc76c5006743992cf4e",
15
- "size": 117770816
14
+ "sha256": "5c8eaf4558ffbd7daa633719d9fd2ce386e456ad881d50e459396885fd043109",
15
+ "size": 117803584
16
16
  },
17
17
  {
18
18
  "name": "signet-linux-arm64",
19
19
  "platform": "linux-arm64",
20
- "sha256": "4471762e9f862fd62c5bfa8355bd44bc14f5297865368a18df5b4cda5d2e226c",
21
- "size": 150378839
20
+ "sha256": "35207c46bdaa3a55a4a85478decf90273710dff9e1badd4385f1eb42e71a806c",
21
+ "size": 150408946
22
22
  },
23
23
  {
24
24
  "name": "signet-linux-x64",
25
25
  "platform": "linux-x64",
26
- "sha256": "e34e57a0f8d4e7f0f054982a0e1a20ea604915a685430206007378da9d7d5797",
27
- "size": 150937838
26
+ "sha256": "5a13669bd73689e770f8f7215db7c32fa0addff039e2c2b4bd61f3451278575d",
27
+ "size": 150967949
28
28
  },
29
29
  {
30
30
  "name": "signet-win32-x64.exe",
31
31
  "platform": "win32-x64",
32
- "sha256": "ea9a15e08c15b9654e781ac9a574bab3cf17f3ae4c920f33c6bbe499996e3d4c",
33
- "size": 167070720
32
+ "sha256": "5c72da363ddcf23587ab1eb85faff3aa9a31fa3781ec2a5deb7453fa00f0fc71",
33
+ "size": 167100928
34
34
  }
35
35
  ],
36
36
  "components": {
37
37
  "connectors": {
38
- "url": "signet-connectors-0.147.12.tar.gz",
39
- "sha256": "bf09b50cc29363677c8efc52690f643d072f21ae3581f1ceef757834e66871e5",
40
- "size": 15379
38
+ "url": "signet-connectors-0.147.18.tar.gz",
39
+ "sha256": "62c2045360cae2e58a3bb52f15fb6fbbe7722619f6f9630890e811e993cef719",
40
+ "size": 15108
41
41
  }
42
42
  }
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signetai",
3
- "version": "0.147.12",
3
+ "version": "0.147.18",
4
4
  "description": "Signet native CLI installer wrapper",
5
5
  "type": "module",
6
6
  "bin": {
@@ -65,10 +65,10 @@
65
65
  "access": "public"
66
66
  },
67
67
  "optionalDependencies": {
68
- "signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.12/signetai-darwin-arm64-0.147.12.tgz",
69
- "signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.12/signetai-darwin-x64-0.147.12.tgz",
70
- "signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.12/signetai-linux-arm64-0.147.12.tgz",
71
- "signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.12/signetai-linux-x64-0.147.12.tgz",
72
- "signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.12/signetai-win32-x64-0.147.12.tgz"
68
+ "signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.18/signetai-darwin-arm64-0.147.18.tgz",
69
+ "signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.18/signetai-darwin-x64-0.147.18.tgz",
70
+ "signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.18/signetai-linux-arm64-0.147.18.tgz",
71
+ "signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.18/signetai-linux-x64-0.147.18.tgz",
72
+ "signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.18/signetai-win32-x64-0.147.18.tgz"
73
73
  }
74
74
  }