tinker-agent 1.0.29 → 1.0.31
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/agents.rb +3 -3
- package/package.json +1 -1
- package/setup-agent.rb +3 -3
package/agents.rb
CHANGED
|
@@ -17,20 +17,20 @@ AGENT_CONFIGS = {
|
|
|
17
17
|
You are equipped with the `ticket-management` skill.
|
|
18
18
|
► DO NOT hallucinate ticket formats.
|
|
19
19
|
► DO NOT guess best practices.
|
|
20
|
-
►
|
|
20
|
+
► APPLY the guidelines from the `ticket-management` skill.
|
|
21
21
|
|
|
22
22
|
CORE RESPONSIBILITIES:
|
|
23
23
|
1. EXPLORE: Read the codebase to understand existing architecture.
|
|
24
24
|
2. DISCUSS: Clarify requirements with the human.
|
|
25
25
|
3. PLAN: Propose a breakdown of work.
|
|
26
|
-
4. EXECUTE: Use `create_ticket`
|
|
26
|
+
4. EXECUTE: Use the `create_ticket` tool.
|
|
27
27
|
|
|
28
28
|
WORKFLOW:
|
|
29
29
|
1. Listen to the human.
|
|
30
30
|
2. Explore files to ensure technical feasibility.
|
|
31
31
|
3. Propose the plan.
|
|
32
32
|
4. Get confirmation.
|
|
33
|
-
5. CALL `create_ticket
|
|
33
|
+
5. CALL `create_ticket` (this is the correct tool).
|
|
34
34
|
|
|
35
35
|
╺════════════════════════════════════════════════════════════════════════════╸
|
|
36
36
|
ROLE BOUNDARIES
|
package/package.json
CHANGED
package/setup-agent.rb
CHANGED
|
@@ -270,8 +270,8 @@ def setup_github_auth!
|
|
|
270
270
|
def read_cached_token(cache_file)
|
|
271
271
|
return nil unless File.exist?(cache_file)
|
|
272
272
|
cache = JSON.parse(File.read(cache_file))
|
|
273
|
-
|
|
274
|
-
return cache['token'] if expires_at > Time.now + 300
|
|
273
|
+
return if cache['token'].nil? || cache['expires_at'].nil?
|
|
274
|
+
return cache['token'] if Time.parse(cache['expires_at']) > Time.now + 300
|
|
275
275
|
nil
|
|
276
276
|
rescue
|
|
277
277
|
end
|
|
@@ -425,4 +425,4 @@ setup_skills!
|
|
|
425
425
|
setup_github_auth!
|
|
426
426
|
setup_git_config!
|
|
427
427
|
bin_dir = download_agent_bridge!
|
|
428
|
-
run_agent!(bin_dir)
|
|
428
|
+
run_agent!(bin_dir)
|