@things-factory/ai-dashboard 10.1.314 → 10.1.316

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.
@@ -239,6 +239,8 @@ const spec = {
239
239
  name: card_names_js_1.CARD_TOOL,
240
240
  /* Only someone who may save a card is offered one. The data's doors are asked when it runs, as the person. */
241
241
  doors: ['Mutation.saveDashboardCardProposal'],
242
+ /* A card the person saves - nothing is kept until they do. */
243
+ proposes: true,
242
244
  description: 'Offer a dashboard card - a definition the person saves to 나의 대시보드, drawn afterwards from the data without you. ' +
243
245
  'source.read is a read you have (a list target, or a detail read with source.list naming one of its lists); source.where holds its conditions or arguments - ' +
244
246
  'for a period use relative values so the card stays current - a day: today, -30d, this-month-start, this-month-end, last-month-start, this-year-start, -5m-start (the first day five months ago); ' +
@@ -359,13 +361,14 @@ const readSpec = {
359
361
  exports.cardCategory = {
360
362
  name: card_names_js_1.CARD_CATEGORY,
361
363
  description: 'dashboard cards - definitions the person saves and the dashboard draws from the data',
364
+ /* Every rule is about the card tool - said where it is open (ADR-0237). */
362
365
  guidance: [
363
- `- When the person asks for a card, a tile, a chart or a table on their dashboard (대시보드 카드, 카드로 만들어 줘), read the data with its read tool to learn its columns, then call ${card_names_js_1.CARD_TOOL} in the same turn. Never ask whether to make or save it; the card is the answer.`,
364
- `- A card is drawn later from the data as whoever opens it - you are not there. Put periods as relative values in source.where, never today's dates; say "this month" as this-month-start / this-month-end.`,
365
- `- "Top N" is rows.sortBy the amount, desc: true, limit N. Counting customers, places or months (상위 5곳, 거래처별, 월별) is rows.groupBy that column with view.values - each name one bar. Amounts in two currencies are never added - group or match by the currency, or use a column already in won.`,
366
- `- When ${card_names_js_1.CARD_TOOL} refuses, fix the definition from what it returns and call again in the same turn; if the data cannot be drawn this way, say so in one line.`,
367
- `- When the person picked a dashboard card to change (its id after [keys] dashboardCards), call readDashboardCard, then ${card_names_js_1.CARD_TOOL} with the whole changed definition, cardId and baseVersion - in the same turn. When the change makes its name untrue (top 5 → top 10), give it a true name.`
368
- ].join('\n'),
366
+ { text: `- When the person asks for a card, a tile, a chart or a table on their dashboard (대시보드 카드, 카드로 만들어 줘), read the data with its read tool to learn its columns, then call ${card_names_js_1.CARD_TOOL} in the same turn. Never ask whether to make or save it; the card is the answer.`, tools: [card_names_js_1.CARD_TOOL] },
367
+ { text: `- A card is drawn later from the data as whoever opens it - you are not there. Put periods as relative values in source.where, never today's dates; say "this month" as this-month-start / this-month-end.`, tools: [card_names_js_1.CARD_TOOL] },
368
+ { text: `- "Top N" is rows.sortBy the amount, desc: true, limit N. Counting customers, places or months (상위 5곳, 거래처별, 월별) is rows.groupBy that column with view.values - each name one bar. Amounts in two currencies are never added - group or match by the currency, or use a column already in won.`, tools: [card_names_js_1.CARD_TOOL] },
369
+ { text: `- When ${card_names_js_1.CARD_TOOL} refuses, fix the definition from what it returns and call again in the same turn; if the data cannot be drawn this way, say so in one line.`, tools: [card_names_js_1.CARD_TOOL] },
370
+ { text: `- When the person picked a dashboard card to change (its id after [keys] dashboardCards), call readDashboardCard, then ${card_names_js_1.CARD_TOOL} with the whole changed definition, cardId and baseVersion - in the same turn. When the change makes its name untrue (top 5 → top 10), give it a true name.`, tools: [card_names_js_1.CARD_TOOL] }
371
+ ],
369
372
  specs: [spec, readSpec]
370
373
  };
371
374
  (0, ai_client_base_1.registerToolCategory)(exports.cardCategory);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/ai-dashboard",
3
- "version": "10.1.314",
3
+ "version": "10.1.316",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "files": [
@@ -47,11 +47,11 @@
47
47
  "@operato/popup": "^10.29.39",
48
48
  "@operato/shell": "^10.29.69",
49
49
  "@operato/styles": "^10.0.0",
50
- "@things-factory/ai-assistant": "^10.1.314",
51
- "@things-factory/ai-client-base": "^10.1.314",
52
- "@things-factory/auth-base": "^10.1.314",
50
+ "@things-factory/ai-assistant": "^10.1.316",
51
+ "@things-factory/ai-client-base": "^10.1.316",
52
+ "@things-factory/auth-base": "^10.1.316",
53
53
  "@things-factory/env": "^10.1.298",
54
- "@things-factory/organization": "^10.1.314",
54
+ "@things-factory/organization": "^10.1.316",
55
55
  "@things-factory/shell": "^10.1.304",
56
56
  "graphql-scalars": "^1.22.0",
57
57
  "graphql-tag": "^2.12.6",
@@ -60,5 +60,5 @@
60
60
  "devDependencies": {
61
61
  "copyfiles": "^2.4.1"
62
62
  },
63
- "gitHead": "8d74df0a0618131ff17309638a6aa0affbd4c77d"
63
+ "gitHead": "8bdf4ae696ae7ec9c21312485f86f212052bb10a"
64
64
  }