@agent-native/creative-context 0.8.40 → 0.8.41-nightly-20261014124140
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../src/schema/migrations.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACrC;AAED,eAAO,MAAM,yBAAyB,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../src/schema/migrations.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACrC;AAED,eAAO,MAAM,yBAAyB,EAAE,wBAAwB,EAwV/D,CAAC"}
|
|
@@ -330,5 +330,17 @@ export const creativeContextMigrations = [
|
|
|
330
330
|
ON creative_contexts (default_scope_key);
|
|
331
331
|
`,
|
|
332
332
|
},
|
|
333
|
+
{
|
|
334
|
+
version: 8,
|
|
335
|
+
name: "creative-context-share-tables-notified-at",
|
|
336
|
+
// Core's createSharesTable names notified_at in every share insert; these
|
|
337
|
+
// tables were created without it, so every share attempt failed.
|
|
338
|
+
sql: `
|
|
339
|
+
ALTER TABLE IF EXISTS creative_context_source_shares ADD COLUMN IF NOT EXISTS notified_at TEXT;
|
|
340
|
+
ALTER TABLE IF EXISTS creative_context_brand_profile_shares ADD COLUMN IF NOT EXISTS notified_at TEXT;
|
|
341
|
+
ALTER TABLE IF EXISTS creative_context_pack_shares ADD COLUMN IF NOT EXISTS notified_at TEXT;
|
|
342
|
+
ALTER TABLE IF EXISTS creative_context_shares ADD COLUMN IF NOT EXISTS notified_at TEXT;
|
|
343
|
+
`,
|
|
344
|
+
},
|
|
333
345
|
];
|
|
334
346
|
//# sourceMappingURL=migrations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../src/schema/migrations.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,yBAAyB,GAA+B;IACnE;QACE,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,6BAA6B;QACnC,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2JJ;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,mCAAmC;QACzC,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqDJ;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,sCAAsC;QAC5C,GAAG,EAAE;;;;;;;;KAQJ;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,oCAAoC;QAC1C,GAAG,EAAE;;;;KAIJ;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,2CAA2C;QACjD,GAAG,EAAE;;;;;KAKJ;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,uCAAuC;QAC7C,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4DJ;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,2CAA2C;QACjD,kHAAkH;QAClH,GAAG,EAAE;;;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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/creative-context",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.41-nightly-20261014124140",
|
|
4
4
|
"description": "Shared creative context ingestion, versioning, search, brand DNA, and context-pack primitives for agent-native apps.",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"react-dom": "^19.2.7",
|
|
59
59
|
"typescript-7": "npm:typescript@^7.0.2",
|
|
60
60
|
"vitest": "^4.1.5",
|
|
61
|
-
"@agent-native/core": "0.
|
|
62
|
-
"@agent-native/toolkit": "^0.
|
|
61
|
+
"@agent-native/core": "0.209.0-nightly-20261014124140",
|
|
62
|
+
"@agent-native/toolkit": "^0.209.0-nightly-20261014124140"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@agent-native/core": "
|
|
66
|
-
"@agent-native/toolkit": "
|
|
65
|
+
"@agent-native/core": "0.209.0-nightly-20261014124140",
|
|
66
|
+
"@agent-native/toolkit": "0.209.0-nightly-20261014124140",
|
|
67
67
|
"@tabler/icons-react": ">=3.41.1",
|
|
68
68
|
"@tanstack/react-query": ">=5.101.4",
|
|
69
69
|
"drizzle-orm": ">=0.45",
|
|
@@ -10,6 +10,29 @@ describe("creative context migrations", () => {
|
|
|
10
10
|
expect(foundation).toContain("created_at TEXT NOT NULL");
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
+
it("adds notified_at to every share table so Core share inserts succeed", () => {
|
|
14
|
+
const shareTables = new Set(
|
|
15
|
+
creativeContextMigrations
|
|
16
|
+
.flatMap(
|
|
17
|
+
(migration) =>
|
|
18
|
+
String(migration.sql).match(
|
|
19
|
+
/CREATE TABLE IF NOT EXISTS (creative_context_\w*shares)/g,
|
|
20
|
+
) ?? [],
|
|
21
|
+
)
|
|
22
|
+
.map((statement) => statement.split(" ").pop()),
|
|
23
|
+
);
|
|
24
|
+
expect(shareTables.size).toBe(4);
|
|
25
|
+
|
|
26
|
+
const notifiedAt = creativeContextMigrations.find(
|
|
27
|
+
(migration) => migration.version === 8,
|
|
28
|
+
);
|
|
29
|
+
for (const table of shareTables) {
|
|
30
|
+
expect(String(notifiedAt?.sql)).toContain(
|
|
31
|
+
`ALTER TABLE IF EXISTS ${table} ADD COLUMN IF NOT EXISTS notified_at TEXT`,
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
13
36
|
it("adds durable brand-profile promotion audit storage", () => {
|
|
14
37
|
const audit = creativeContextMigrations.find(
|
|
15
38
|
(migration) => migration.version === 3,
|
package/src/schema/migrations.ts
CHANGED
|
@@ -336,4 +336,16 @@ export const creativeContextMigrations: CreativeContextMigration[] = [
|
|
|
336
336
|
ON creative_contexts (default_scope_key);
|
|
337
337
|
`,
|
|
338
338
|
},
|
|
339
|
+
{
|
|
340
|
+
version: 8,
|
|
341
|
+
name: "creative-context-share-tables-notified-at",
|
|
342
|
+
// Core's createSharesTable names notified_at in every share insert; these
|
|
343
|
+
// tables were created without it, so every share attempt failed.
|
|
344
|
+
sql: `
|
|
345
|
+
ALTER TABLE IF EXISTS creative_context_source_shares ADD COLUMN IF NOT EXISTS notified_at TEXT;
|
|
346
|
+
ALTER TABLE IF EXISTS creative_context_brand_profile_shares ADD COLUMN IF NOT EXISTS notified_at TEXT;
|
|
347
|
+
ALTER TABLE IF EXISTS creative_context_pack_shares ADD COLUMN IF NOT EXISTS notified_at TEXT;
|
|
348
|
+
ALTER TABLE IF EXISTS creative_context_shares ADD COLUMN IF NOT EXISTS notified_at TEXT;
|
|
349
|
+
`,
|
|
350
|
+
},
|
|
339
351
|
];
|