portable-agent-layer 0.50.0 → 0.51.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.
@@ -88,6 +88,7 @@ $GREEN = $ESC + "[32m"
88
88
  $YELLOW = $ESC + "[33m"
89
89
  $RED = $ESC + "[31m"
90
90
  $DIM = $ESC + "[90m"
91
+ $ITALIC = $ESC + "[3m"
91
92
  $RESET = $ESC + "[0m"
92
93
 
93
94
  # Choose bar color based on context usage
@@ -140,3 +141,43 @@ Write-Host ($BAR_COLOR + $BAR + $RESET + " " + $CTX_STR + $DIM + $RATE_STR + $RE
140
141
 
141
142
  # Line 3: Update available (only when cache says available AND versions differ)
142
143
  if ($UPDATE_LINE) { Write-Host ($YELLOW + $UPDATE_LINE + $RESET) }
144
+
145
+ # Line 4: Rotating quote (changes every 30 minutes)
146
+ $QUOTES = @(
147
+ "Make it work, make it right, make it fast.|Kent Beck"
148
+ "Simplicity is the soul of efficiency.|Austin Freeman"
149
+ "Talk is cheap. Show me the code.|Linus Torvalds"
150
+ "First, solve the problem. Then, write the code.|John Johnson"
151
+ "Premature optimization is the root of all evil.|Donald Knuth"
152
+ "The art of programming is organizing complexity.|Edsger Dijkstra"
153
+ "The best code is no code at all.|Jeff Atwood"
154
+ "Truth can only be found in one place: the code.|Robert C. Martin"
155
+ "A ship in harbor is safe - but that is not what ships are for.|John A. Shedd"
156
+ "Before software can be reusable, it first has to be usable.|Ralph Johnson"
157
+ "Good software makes the complex appear simple.|Grady Booch"
158
+ "Measure twice, cut once.|traditional"
159
+ "An expert has made all possible mistakes in a narrow field.|Niels Bohr"
160
+ "Give me six hours to chop down a tree and I will spend the first four sharpening the axe.|Abraham Lincoln"
161
+ "Don't believe everything you read on the internet.|Abraham Lincoln"
162
+ "Good judgement is the result of experience and experience the result of bad judgement.|Mark Twain"
163
+ "We are what we repeatedly do. Excellence is not an act, but a habit.|Aristotle"
164
+ "Knowing yourself is the beginning of all wisdom.|Aristotle"
165
+ "Do what you can, with what you have, where you are.|Theodore Roosevelt"
166
+ "The two most powerful warriors are patience and time.|Leo Tolstoy"
167
+ "Comparison is the thief of joy.|Theodore Roosevelt"
168
+ "To improve is to change; to be perfect is to change often.|Winston Churchill"
169
+ "Absorb what is useful, discard what is useless, add what is essentially your own.|Bruce Lee"
170
+ "It is not what happens to you, but how you react that matters.|Epictetus"
171
+ "He who has a why can bear almost any how.|Friedrich Nietzsche"
172
+ "In the middle of difficulty lies opportunity.|Albert Einstein"
173
+ "A person who never made a mistake never tried anything new.|Albert Einstein"
174
+ "The journey of a thousand miles begins with one step.|Lao Tzu"
175
+ )
176
+ $EPOCH = [DateTimeOffset]::UtcNow.ToUnixTimeSeconds()
177
+ $SLOT = [int]([math]::Floor($EPOCH / 5400))
178
+ $SLOT_OFFSET = $EPOCH % 5400
179
+ if ($SLOT_OFFSET -lt 900) {
180
+ $QUOTE_IDX = $SLOT % $QUOTES.Count
181
+ $QUOTE_PARTS = $QUOTES[$QUOTE_IDX] -split '\|'
182
+ Write-Host ($DIM + $ITALIC + '"' + $QUOTE_PARTS[0] + '" - ' + $QUOTE_PARTS[1] + $RESET)
183
+ }
@@ -112,6 +112,7 @@ GREEN='\033[32m'
112
112
  YELLOW='\033[33m'
113
113
  RED='\033[31m'
114
114
  DIM='\033[90m'
115
+ ITALIC='\033[3m'
115
116
  RESET='\033[0m'
116
117
 
117
118
  # Choose bar color based on context usage
@@ -176,4 +177,46 @@ fi
176
177
 
177
178
  # Line 3: Update available (only when cache says available AND versions differ)
178
179
  [ -n "$UPDATE_LINE" ] && echo -e "${YELLOW}${UPDATE_LINE}${RESET}"
180
+
181
+ # Line 4: Rotating quote (changes every 30 minutes)
182
+ QUOTES=(
183
+ "Make it work, make it right, make it fast.|Kent Beck"
184
+ "Simplicity is the soul of efficiency.|Austin Freeman"
185
+ "Talk is cheap. Show me the code.|Linus Torvalds"
186
+ "First, solve the problem. Then, write the code.|John Johnson"
187
+ "Premature optimization is the root of all evil.|Donald Knuth"
188
+ "The art of programming is organizing complexity.|Edsger Dijkstra"
189
+ "The best code is no code at all.|Jeff Atwood"
190
+ "Truth can only be found in one place: the code.|Robert C. Martin"
191
+ "A ship in harbor is safe — but that is not what ships are for.|John A. Shedd"
192
+ "Before software can be reusable, it first has to be usable.|Ralph Johnson"
193
+ "Good software makes the complex appear simple.|Grady Booch"
194
+ "Measure twice, cut once.|traditional"
195
+ "An expert has made all possible mistakes in a narrow field.|Niels Bohr"
196
+ "Give me six hours to chop down a tree and I will spend the first four sharpening the axe.|Abraham Lincoln"
197
+ "Don't believe everything you read on the internet.|Abraham Lincoln"
198
+ "Good judgement is the result of experience and experience the result of bad judgement.|Mark Twain"
199
+ "We are what we repeatedly do. Excellence is not an act, but a habit.|Aristotle"
200
+ "Knowing yourself is the beginning of all wisdom.|Aristotle"
201
+ "Do what you can, with what you have, where you are.|Theodore Roosevelt"
202
+ "The two most powerful warriors are patience and time.|Leo Tolstoy"
203
+ "Comparison is the thief of joy.|Theodore Roosevelt"
204
+ "To improve is to change; to be perfect is to change often.|Winston Churchill"
205
+ "Absorb what is useful, discard what is useless, add what is essentially your own.|Bruce Lee"
206
+ "It is not what happens to you, but how you react that matters.|Epictetus"
207
+ "He who has a why can bear almost any how.|Friedrich Nietzsche"
208
+ "In the middle of difficulty lies opportunity.|Albert Einstein"
209
+ "A person who never made a mistake never tried anything new.|Albert Einstein"
210
+ "The journey of a thousand miles begins with one step.|Lao Tzu"
211
+ )
212
+ SLOT=$(( $(date +%s) / 5400 ))
213
+ SLOT_OFFSET=$(( $(date +%s) % 5400 ))
214
+ if [ $SLOT_OFFSET -lt 900 ]; then
215
+ QUOTE_IDX=$(( SLOT % ${#QUOTES[@]} ))
216
+ QUOTE_ENTRY="${QUOTES[$QUOTE_IDX]}"
217
+ QUOTE_TEXT="${QUOTE_ENTRY%|*}"
218
+ QUOTE_AUTHOR="${QUOTE_ENTRY##*|}"
219
+ echo -e "${DIM}${ITALIC}\"${QUOTE_TEXT}\" — ${QUOTE_AUTHOR}${RESET}"
220
+ fi
221
+
179
222
  exit 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portable-agent-layer",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "description": "PAL — Portable Agent Layer: persistent personal context for AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {