taskcarry 0.3.2__py3-none-any.whl

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.
Files changed (105) hide show
  1. taskcarry/__init__.py +3 -0
  2. taskcarry/__main__.py +4 -0
  3. taskcarry/adapter_contracts.py +166 -0
  4. taskcarry/agy_turns.py +282 -0
  5. taskcarry/api.py +111 -0
  6. taskcarry/board.py +313 -0
  7. taskcarry/board_assets/board.css +1087 -0
  8. taskcarry/board_assets/board.js +1187 -0
  9. taskcarry/board_assets/browse.js +214 -0
  10. taskcarry/board_assets/index.html +43 -0
  11. taskcarry/board_assets/taskcarry-icon.ico +0 -0
  12. taskcarry/board_assets/taskcarry-mark.svg +28 -0
  13. taskcarry/board_data.py +466 -0
  14. taskcarry/chat_joins.py +157 -0
  15. taskcarry/cli.py +119 -0
  16. taskcarry/codex_capture.py +184 -0
  17. taskcarry/codex_host.py +293 -0
  18. taskcarry/collaboration_exchange.py +316 -0
  19. taskcarry/connection.py +159 -0
  20. taskcarry/continuity.py +300 -0
  21. taskcarry/contracts.py +165 -0
  22. taskcarry/conversation_capture.py +669 -0
  23. taskcarry/core.py +896 -0
  24. taskcarry/cycle_contracts.py +73 -0
  25. taskcarry/discovery.py +434 -0
  26. taskcarry/discovery_contracts.py +52 -0
  27. taskcarry/exchange_contracts.py +67 -0
  28. taskcarry/exchange_endpoint.py +377 -0
  29. taskcarry/exchange_packets.py +142 -0
  30. taskcarry/experience_contracts.py +129 -0
  31. taskcarry/experience_exchange.py +214 -0
  32. taskcarry/experience_notes.py +433 -0
  33. taskcarry/experience_storage.py +125 -0
  34. taskcarry/experience_tools.py +26 -0
  35. taskcarry/feishu/__init__.py +1 -0
  36. taskcarry/feishu/display.py +122 -0
  37. taskcarry/feishu/project_watch.py +145 -0
  38. taskcarry/feishu/review_sets.py +80 -0
  39. taskcarry/feishu/sender.py +42 -0
  40. taskcarry/feishu/subscription.py +193 -0
  41. taskcarry/feishu/windows_agent.py +287 -0
  42. taskcarry/feishu/windows_secret.py +34 -0
  43. taskcarry/gitops.py +170 -0
  44. taskcarry/governance.py +88 -0
  45. taskcarry/governance_cycle.py +775 -0
  46. taskcarry/identification.py +82 -0
  47. taskcarry/integration.py +663 -0
  48. taskcarry/maintenance.py +118 -0
  49. taskcarry/mcp.py +183 -0
  50. taskcarry/member_join.py +184 -0
  51. taskcarry/member_routing.py +145 -0
  52. taskcarry/onboarding.py +272 -0
  53. taskcarry/onboarding_complete.py +252 -0
  54. taskcarry/path_batches.py +19 -0
  55. taskcarry/preservation.py +257 -0
  56. taskcarry/project_collaboration.py +453 -0
  57. taskcarry/project_history.py +166 -0
  58. taskcarry/project_identity.py +51 -0
  59. taskcarry/project_recovery.py +824 -0
  60. taskcarry/recovery_contracts.py +25 -0
  61. taskcarry/recovery_files.py +153 -0
  62. taskcarry/recovery_git.py +234 -0
  63. taskcarry/remote_capture.py +89 -0
  64. taskcarry/remote_transfer.py +356 -0
  65. taskcarry/role_connection.py +215 -0
  66. taskcarry/setup.py +597 -0
  67. taskcarry/shared_workbench.py +480 -0
  68. taskcarry/skill_data/taskcarry-experience-recovery/SKILL.md +37 -0
  69. taskcarry/skill_data/taskcarry-governance-reconcile/SKILL.md +47 -0
  70. taskcarry/skill_data/taskcarry-governance-reconcile/references/daily-governance.md +72 -0
  71. taskcarry/skill_data/taskcarry-project-setup/SKILL.md +48 -0
  72. taskcarry/skill_data/taskcarry-project-setup/references/onboarding.md +198 -0
  73. taskcarry/skill_data/taskcarry-task-delivery/SKILL.md +32 -0
  74. taskcarry/skill_data/taskcarry-task-delivery/references/conditional-experience.md +93 -0
  75. taskcarry/skill_data/taskcarry-task-delivery/references/worker-channel.md +41 -0
  76. taskcarry/source_review_set.py +80 -0
  77. taskcarry/state_format.py +47 -0
  78. taskcarry/store.py +472 -0
  79. taskcarry/task_context.py +141 -0
  80. taskcarry/text_handback.py +98 -0
  81. taskcarry/transfer_contracts.py +18 -0
  82. taskcarry/updates.py +351 -0
  83. taskcarry/workbench.py +625 -0
  84. taskcarry/workbench_contracts.py +32 -0
  85. taskcarry/workbuddy_capture.py +451 -0
  86. taskcarry/workbuddy_setup.py +212 -0
  87. taskcarry/worker_channel.py +859 -0
  88. taskcarry/worker_contracts.py +190 -0
  89. taskcarry/worker_storage.py +60 -0
  90. taskcarry/worker_tools.py +111 -0
  91. taskcarry-0.3.2.dist-info/METADATA +203 -0
  92. taskcarry-0.3.2.dist-info/RECORD +105 -0
  93. taskcarry-0.3.2.dist-info/WHEEL +5 -0
  94. taskcarry-0.3.2.dist-info/entry_points.txt +5 -0
  95. taskcarry-0.3.2.dist-info/licenses/LICENSE +21 -0
  96. taskcarry-0.3.2.dist-info/licenses/LICENSE_SCOPE.md +31 -0
  97. taskcarry-0.3.2.dist-info/top_level.txt +2 -0
  98. taskcarry_https/__init__.py +1 -0
  99. taskcarry_https/consent.py +207 -0
  100. taskcarry_https/reader.py +132 -0
  101. taskcarry_https/review.py +116 -0
  102. taskcarry_https/server.py +163 -0
  103. taskcarry_https/team.py +335 -0
  104. taskcarry_https/team_host.py +109 -0
  105. taskcarry_https/web_host.py +82 -0
@@ -0,0 +1,51 @@
1
+ """Explicit legacy identity adoption; reads never initialize or migrate state."""
2
+ import json
3
+ import uuid
4
+
5
+ from .core import Core, _id, digest_bytes
6
+ from .store import GovernanceError, now
7
+
8
+
9
+ def _fingerprint(value):
10
+ return digest_bytes(json.dumps(value, sort_keys=True, ensure_ascii=False,
11
+ separators=(',', ':')).encode('utf-8'))
12
+
13
+
14
+ class ProjectIdentity(Core):
15
+ def identity(self, action='status', plan_id=None):
16
+ if action == 'status':
17
+ if plan_id is not None:
18
+ raise GovernanceError('IDENTITY_ARGUMENT', 'Status does not accept a plan.')
19
+ return {'source': self.source(), 'effects_executed': False}
20
+ if action not in ('plan', 'execute'):
21
+ raise GovernanceError('IDENTITY_ACTION', 'Use status, plan or execute.')
22
+ with self.store.transaction():
23
+ config = self.store.get('config', 'project')
24
+ if action == 'plan':
25
+ if plan_id is not None:
26
+ raise GovernanceError('IDENTITY_ARGUMENT', 'Plan does not accept a prior plan ID.')
27
+ if config.get('project_id'):
28
+ return {'source': self.source(), 'state': 'ALREADY_PORTABLE', 'effects_executed': False}
29
+ fingerprint = _fingerprint(config)
30
+ pid = 'identity-' + fingerprint[:24]
31
+ prior = self.store.get('identity_plans', pid)
32
+ if prior:
33
+ return prior
34
+ plan = {'plan_id': pid, 'state': 'PLANNED', 'config_fingerprint': fingerprint,
35
+ 'previous_source': self.source(), 'project_id': 'project-' + uuid.uuid4().hex,
36
+ 'replica_id': 'replica-' + uuid.uuid4().hex, 'created_at': now()}
37
+ self.store.put('identity_plans', pid, plan)
38
+ return plan
39
+ plan = self.store.get('identity_plans', _id(plan_id, 'Identity plan'))
40
+ if not plan:
41
+ raise GovernanceError('IDENTITY_PLAN_UNKNOWN', 'Prepare a legacy identity plan first.')
42
+ if config.get('project_id') == plan['project_id']:
43
+ return {'source': self.source(), 'state': 'COMPLETED', 'reused': True}
44
+ if _fingerprint(config) != plan['config_fingerprint']:
45
+ raise GovernanceError('IDENTITY_CHANGED', 'Project configuration changed; prepare a new plan.')
46
+ config.update(project_id=plan['project_id'], replica_id=plan['replica_id'],
47
+ source_aliases=[plan['previous_source']['source_id']])
48
+ self.store.put('config', 'project', config)
49
+ self.store.put('identity_plans', plan['plan_id'], {**plan, 'state': 'COMPLETED'})
50
+ self.store.event('project_identity_adopted', {'plan_id': plan['plan_id'], 'source': self.source()})
51
+ return {'source': self.source(), 'state': 'COMPLETED', 'reused': False}