@celljs/ta-initiative 4.15.2 → 4.17.0
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/extension/index.mjs +3 -2
- package/host/index.mjs +1 -1
- package/package.json +3 -3
- package/web/index.js +5 -3
package/extension/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
2
|
+
var TA_WEBHOOK_MAX_BYTES = 256 * 1024;
|
|
2
3
|
var TA_HOST_EVENT = "ta:host";
|
|
3
4
|
var TaHostUtil;
|
|
4
5
|
(function(TaHostUtil2) {
|
|
@@ -216,7 +217,7 @@ var CHAT_KINDS = [
|
|
|
216
217
|
// web-src/chat-proposals.ts
|
|
217
218
|
var MEANS = {
|
|
218
219
|
act: "act (do it now, in this turn, then say in a line that you did it; the user may undo it)",
|
|
219
|
-
ask: "ask (do not do it: a card asks the user after your turn; mention it in a few words at most)",
|
|
220
|
+
ask: "ask (do not do it: a card asks the user after your turn; mention it in a few words at most, and do not ask it again yourself, no choices nor blocked for it)",
|
|
220
221
|
digest: "digest (do not do it nor mention it: it goes to the daily brief)",
|
|
221
222
|
off: "off (never propose it)"
|
|
222
223
|
};
|
|
@@ -437,7 +438,7 @@ ${TaLanguageUtil.pick(language, {
|
|
|
437
438
|
`5b. Learn the user, so that every conversation of Ta knows them: rewrite with ${PROFILE_TOOL} the whole of what you know of them (below), from the requests: who they are and what they work on; how they want things done (what they corrected, what they said "always", "never", "next time" about, what they approved that was not obvious); what they usually want next after a kind of work (test, commit, push, a screenshot, a report), so that Ta does it without being asked; and what Ta should do on its own and what it must ask first. Markdown, short lines under a few headings, at most ${Limits.PROFILE_CHARS} characters, in the language of the user; keep what still holds, drop what turned out wrong, never a secret (keys, tokens, passwords) or a private matter. Leave it as it is when you learned nothing new.`
|
|
438
439
|
] : [],
|
|
439
440
|
input.auto ? `6. Reviews come every ${input.every} days, and the user lets you choose: call ${PACE_TOOL} once with the days to the next review (1 to 30) and why: sooner while the work changes and you found much to do, later when nothing changed.` : `6. Reviews come every ${input.every} days, as the user set; do not change it.`,
|
|
440
|
-
`7. End with a short report: what was done on its own, what waits for the user in their suggestions (on the double's home), what went to the brief, each with why in a few words, as ${PROPOSE_TOOL} answered;${input.learn ? " what you newly learned of the user, in a line or two;" : ""} nothing more. On a card, the tasks go in a table or steps, not in changes (which are files). When nothing needed doing, say so in one line.`,
|
|
441
|
+
`7. End with a short report: what was done on its own, what waits for the user in their suggestions (on the double's home), what went to the brief, each with why in a few words, as ${PROPOSE_TOOL} answered;${input.learn ? " what you newly learned of the user, in a line or two;" : ""} nothing more. On a card, the tasks go in a table or steps, not in changes (which are files). When nothing needed doing, say so in one line. What waits in the suggestions is asked there: the report itself asks nothing, its card is done (partial when something failed), never blocked nor with choices.`,
|
|
441
442
|
"Use the tools only for what you change and what you must check (a file, git log); the material is below.",
|
|
442
443
|
"",
|
|
443
444
|
`Requests of the user since ${day(input.since)} (by conversation, latest first):`
|
package/host/index.mjs
CHANGED
|
@@ -855,7 +855,7 @@ ${TaLanguageUtil.pick(language, {
|
|
|
855
855
|
`5b. Learn the user, so that every conversation of Ta knows them: rewrite with ${PROFILE_TOOL} the whole of what you know of them (below), from the requests: who they are and what they work on; how they want things done (what they corrected, what they said "always", "never", "next time" about, what they approved that was not obvious); what they usually want next after a kind of work (test, commit, push, a screenshot, a report), so that Ta does it without being asked; and what Ta should do on its own and what it must ask first. Markdown, short lines under a few headings, at most ${Limits.PROFILE_CHARS} characters, in the language of the user; keep what still holds, drop what turned out wrong, never a secret (keys, tokens, passwords) or a private matter. Leave it as it is when you learned nothing new.`
|
|
856
856
|
] : [],
|
|
857
857
|
input.auto ? `6. Reviews come every ${input.every} days, and the user lets you choose: call ${PACE_TOOL} once with the days to the next review (1 to 30) and why: sooner while the work changes and you found much to do, later when nothing changed.` : `6. Reviews come every ${input.every} days, as the user set; do not change it.`,
|
|
858
|
-
`7. End with a short report: what was done on its own, what waits for the user in their suggestions (on the double's home), what went to the brief, each with why in a few words, as ${PROPOSE_TOOL} answered;${input.learn ? " what you newly learned of the user, in a line or two;" : ""} nothing more. On a card, the tasks go in a table or steps, not in changes (which are files). When nothing needed doing, say so in one line.`,
|
|
858
|
+
`7. End with a short report: what was done on its own, what waits for the user in their suggestions (on the double's home), what went to the brief, each with why in a few words, as ${PROPOSE_TOOL} answered;${input.learn ? " what you newly learned of the user, in a line or two;" : ""} nothing more. On a card, the tasks go in a table or steps, not in changes (which are files). When nothing needed doing, say so in one line. What waits in the suggestions is asked there: the report itself asks nothing, its card is done (partial when something failed), never blocked nor with choices.`,
|
|
859
859
|
"Use the tools only for what you change and what you must check (a file, git log); the material is below.",
|
|
860
860
|
"",
|
|
861
861
|
`Requests of the user since ${day(input.since)} (by conversation, latest first):`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-initiative",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.17.0",
|
|
4
4
|
"description": "A pi package for Ta: what Ta does on its own and how far, by kind and by the user's trust; proposals other packages offer, the user's suggestions to decide or undo, and a weekly review that keeps the scheduled tasks and learns the user",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@celljs/ta-protocol": "4.
|
|
31
|
-
"@celljs/ta-web": "4.
|
|
30
|
+
"@celljs/ta-protocol": "4.17.0",
|
|
31
|
+
"@celljs/ta-web": "4.17.0",
|
|
32
32
|
"@types/react": "^19.3.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
package/web/index.js
CHANGED
|
@@ -1225,7 +1225,8 @@ function initiativeSettings(pi, store) {
|
|
|
1225
1225
|
};
|
|
1226
1226
|
return {
|
|
1227
1227
|
title: () => words().settingsTitle,
|
|
1228
|
-
icon: pi.ui.icons.
|
|
1228
|
+
icon: pi.ui.icons.Lightbulb,
|
|
1229
|
+
group: "ta",
|
|
1229
1230
|
rows: [
|
|
1230
1231
|
{ key: "mode", label: () => words().modeLabel, description: () => words().modeHint, render: () => /* @__PURE__ */ React.createElement(ModeSelect, {
|
|
1231
1232
|
pi,
|
|
@@ -1313,7 +1314,7 @@ var STYLE = `
|
|
|
1313
1314
|
.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }
|
|
1314
1315
|
[data-touch] .tev-profile-text { font-size: 16px; }
|
|
1315
1316
|
/* The suggestions: a card each, its kind, what and why, the answers */
|
|
1316
|
-
.tin-inbox { display: flex; flex-direction: column; min-height: 100%; max-width:
|
|
1317
|
+
.tin-inbox { display: flex; flex-direction: column; min-height: 100%; max-width: var(--ta-page-width); margin: 0 auto; padding: 12px 16px 32px; box-sizing: border-box; }
|
|
1317
1318
|
.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }
|
|
1318
1319
|
.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
|
|
1319
1320
|
/*
|
|
@@ -1419,7 +1420,8 @@ function activate(pi) {
|
|
|
1419
1420
|
store
|
|
1420
1421
|
}),
|
|
1421
1422
|
order: 75,
|
|
1422
|
-
discover: true
|
|
1423
|
+
discover: true,
|
|
1424
|
+
group: "work"
|
|
1423
1425
|
});
|
|
1424
1426
|
pi.registerMessageRenderer(CARD_TYPE, ({ message: message3 }) => {
|
|
1425
1427
|
const ids = message3.details?.ids;
|